blob: 401a95ceb5015f9c1fa61f6db64177ea31553f3e [file] [log] [blame]
Sol Boucher69b88bf2015-02-26 11:47:19 -08001#ifndef yyHEADER_H
2#define yyHEADER_H 1
3#define yyIN_HEADER 1
4
Sol Boucher69b88bf2015-02-26 11:47:19 -08005#define YY_INT_ALIGNED short int
6
7/* A lexical scanner generated by flex */
8
9#define FLEX_SCANNER
10#define YY_FLEX_MAJOR_VERSION 2
Patrick Georgi2b807342016-06-28 20:45:34 +020011#define YY_FLEX_MINOR_VERSION 6
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +080012#define YY_FLEX_SUBMINOR_VERSION 4
Sol Boucher69b88bf2015-02-26 11:47:19 -080013#if YY_FLEX_SUBMINOR_VERSION > 0
14#define FLEX_BETA
15#endif
16
17/* First, we deal with platform-specific or compiler-specific issues. */
18
19/* begin standard C headers. */
20#include <stdio.h>
21#include <string.h>
22#include <errno.h>
23#include <stdlib.h>
24
25/* end standard C headers. */
26
27/* flex integer type definitions */
28
29#ifndef FLEXINT_H
30#define FLEXINT_H
31
32/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
33
34#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
35
36/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
Martin Roth5c734132021-02-14 13:52:00 -070037 * if you want the limit (max/min) macros for int types.
Sol Boucher69b88bf2015-02-26 11:47:19 -080038 */
39#ifndef __STDC_LIMIT_MACROS
40#define __STDC_LIMIT_MACROS 1
41#endif
42
43#include <inttypes.h>
44typedef int8_t flex_int8_t;
45typedef uint8_t flex_uint8_t;
46typedef int16_t flex_int16_t;
47typedef uint16_t flex_uint16_t;
48typedef int32_t flex_int32_t;
49typedef uint32_t flex_uint32_t;
50#else
51typedef signed char flex_int8_t;
52typedef short int flex_int16_t;
53typedef int flex_int32_t;
Martin Roth5c734132021-02-14 13:52:00 -070054typedef unsigned char flex_uint8_t;
Sol Boucher69b88bf2015-02-26 11:47:19 -080055typedef unsigned short int flex_uint16_t;
56typedef unsigned int flex_uint32_t;
57
58/* Limits of integral types. */
59#ifndef INT8_MIN
60#define INT8_MIN (-128)
61#endif
62#ifndef INT16_MIN
63#define INT16_MIN (-32767-1)
64#endif
65#ifndef INT32_MIN
66#define INT32_MIN (-2147483647-1)
67#endif
68#ifndef INT8_MAX
69#define INT8_MAX (127)
70#endif
71#ifndef INT16_MAX
72#define INT16_MAX (32767)
73#endif
74#ifndef INT32_MAX
75#define INT32_MAX (2147483647)
76#endif
77#ifndef UINT8_MAX
78#define UINT8_MAX (255U)
79#endif
80#ifndef UINT16_MAX
81#define UINT16_MAX (65535U)
82#endif
83#ifndef UINT32_MAX
84#define UINT32_MAX (4294967295U)
85#endif
86
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +080087#ifndef SIZE_MAX
88#define SIZE_MAX (~(size_t)0)
89#endif
90
Sol Boucher69b88bf2015-02-26 11:47:19 -080091#endif /* ! C99 */
92
93#endif /* ! FLEXINT_H */
94
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +080095/* begin standard C++ headers. */
96
Hung-Te Lin9497fcb2019-03-04 14:28:37 +080097/* TODO: this is always defined, so inline it */
Sol Boucher69b88bf2015-02-26 11:47:19 -080098#define yyconst const
Hung-Te Lin9497fcb2019-03-04 14:28:37 +080099
100#if defined(__GNUC__) && __GNUC__ >= 3
101#define yynoreturn __attribute__((__noreturn__))
Sol Boucher69b88bf2015-02-26 11:47:19 -0800102#else
Hung-Te Lin9497fcb2019-03-04 14:28:37 +0800103#define yynoreturn
Sol Boucher69b88bf2015-02-26 11:47:19 -0800104#endif
105
106/* Size of default input buffer. */
107#ifndef YY_BUF_SIZE
108#ifdef __ia64__
109/* On IA-64, the buffer size is 16k, not 8k.
110 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
111 * Ditto for the __ia64__ case accordingly.
112 */
113#define YY_BUF_SIZE 32768
114#else
115#define YY_BUF_SIZE 16384
116#endif /* __ia64__ */
117#endif
118
119#ifndef YY_TYPEDEF_YY_BUFFER_STATE
120#define YY_TYPEDEF_YY_BUFFER_STATE
121typedef struct yy_buffer_state *YY_BUFFER_STATE;
122#endif
123
124#ifndef YY_TYPEDEF_YY_SIZE_T
125#define YY_TYPEDEF_YY_SIZE_T
126typedef size_t yy_size_t;
127#endif
128
Hung-Te Lin9497fcb2019-03-04 14:28:37 +0800129extern int yyleng;
Sol Boucher69b88bf2015-02-26 11:47:19 -0800130
131extern FILE *yyin, *yyout;
132
133#ifndef YY_STRUCT_YY_BUFFER_STATE
134#define YY_STRUCT_YY_BUFFER_STATE
135struct yy_buffer_state
136 {
137 FILE *yy_input_file;
138
139 char *yy_ch_buf; /* input buffer */
140 char *yy_buf_pos; /* current position in input buffer */
141
142 /* Size of input buffer in bytes, not including room for EOB
143 * characters.
144 */
Hung-Te Lin9497fcb2019-03-04 14:28:37 +0800145 int yy_buf_size;
Sol Boucher69b88bf2015-02-26 11:47:19 -0800146
147 /* Number of characters read into yy_ch_buf, not including EOB
148 * characters.
149 */
Patrick Georgi2b807342016-06-28 20:45:34 +0200150 int yy_n_chars;
Sol Boucher69b88bf2015-02-26 11:47:19 -0800151
152 /* Whether we "own" the buffer - i.e., we know we created it,
153 * and can realloc() it to grow it, and should free() it to
154 * delete it.
155 */
156 int yy_is_our_buffer;
157
158 /* Whether this is an "interactive" input source; if so, and
159 * if we're using stdio for input, then we want to use getc()
160 * instead of fread(), to make sure we stop fetching input after
161 * each newline.
162 */
163 int yy_is_interactive;
164
165 /* Whether we're considered to be at the beginning of a line.
166 * If so, '^' rules will be active on the next match, otherwise
167 * not.
168 */
169 int yy_at_bol;
170
171 int yy_bs_lineno; /**< The line count. */
172 int yy_bs_column; /**< The column count. */
Hung-Te Lin9497fcb2019-03-04 14:28:37 +0800173
Sol Boucher69b88bf2015-02-26 11:47:19 -0800174 /* Whether to try to fill the input buffer when we reach the
175 * end of it.
176 */
177 int yy_fill_buffer;
178
179 int yy_buffer_status;
180
181 };
182#endif /* !YY_STRUCT_YY_BUFFER_STATE */
183
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800184void yyrestart ( FILE *input_file );
185void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
186YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
187void yy_delete_buffer ( YY_BUFFER_STATE b );
188void yy_flush_buffer ( YY_BUFFER_STATE b );
189void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
190void yypop_buffer_state ( void );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800191
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800192YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
193YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
194YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800195
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800196void *yyalloc ( yy_size_t );
197void *yyrealloc ( void *, yy_size_t );
198void yyfree ( void * );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800199
200/* Begin user sect3 */
201
Patrick Georgi2b807342016-06-28 20:45:34 +0200202#define yywrap() (/*CONSTCOND*/1)
Sol Boucher69b88bf2015-02-26 11:47:19 -0800203#define YY_SKIP_YYWRAP
204
205extern int yylineno;
206
207extern char *yytext;
Patrick Georgi2b807342016-06-28 20:45:34 +0200208#ifdef yytext_ptr
209#undef yytext_ptr
210#endif
Sol Boucher69b88bf2015-02-26 11:47:19 -0800211#define yytext_ptr yytext
212
213#ifdef YY_HEADER_EXPORT_START_CONDITIONS
214#define INITIAL 0
Hung-Te Lin9497fcb2019-03-04 14:28:37 +0800215#define FLAGS 1
Sol Boucher69b88bf2015-02-26 11:47:19 -0800216
217#endif
218
219#ifndef YY_NO_UNISTD_H
220/* Special case for "unistd.h", since it is non-ANSI. We include it way
221 * down here because we want the user's section 1 to have been scanned first.
222 * The user has a chance to override it with an option.
223 */
224#include <unistd.h>
225#endif
226
227#ifndef YY_EXTRA_TYPE
228#define YY_EXTRA_TYPE void *
229#endif
230
231/* Accessor methods to globals.
232 These are made visible to non-reentrant scanners for convenience. */
233
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800234int yylex_destroy ( void );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800235
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800236int yyget_debug ( void );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800237
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800238void yyset_debug ( int debug_flag );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800239
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800240YY_EXTRA_TYPE yyget_extra ( void );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800241
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800242void yyset_extra ( YY_EXTRA_TYPE user_defined );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800243
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800244FILE *yyget_in ( void );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800245
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800246void yyset_in ( FILE * _in_str );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800247
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800248FILE *yyget_out ( void );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800249
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800250void yyset_out ( FILE * _out_str );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800251
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800252 int yyget_leng ( void );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800253
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800254char *yyget_text ( void );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800255
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800256int yyget_lineno ( void );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800257
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800258void yyset_lineno ( int _line_number );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800259
260/* Macros after this point can all be overridden by user definitions in
261 * section 1.
262 */
263
264#ifndef YY_SKIP_YYWRAP
265#ifdef __cplusplus
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800266extern "C" int yywrap ( void );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800267#else
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800268extern int yywrap ( void );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800269#endif
270#endif
271
272#ifndef yytext_ptr
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800273static void yy_flex_strncpy ( char *, const char *, int );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800274#endif
275
276#ifdef YY_NEED_STRLEN
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800277static int yy_flex_strlen ( const char * );
Sol Boucher69b88bf2015-02-26 11:47:19 -0800278#endif
279
280#ifndef YY_NO_INPUT
281
282#endif
283
284/* Amount of stuff to slurp up with each read. */
285#ifndef YY_READ_BUF_SIZE
286#ifdef __ia64__
287/* On IA-64, the buffer size is 16k, not 8k */
288#define YY_READ_BUF_SIZE 16384
289#else
290#define YY_READ_BUF_SIZE 8192
291#endif /* __ia64__ */
292#endif
293
294/* Number of entries by which start-condition stack grows. */
295#ifndef YY_START_STACK_INCR
296#define YY_START_STACK_INCR 25
297#endif
298
299/* Default declaration of generated scanner - a define so the user can
300 * easily add parameters.
301 */
302#ifndef YY_DECL
303#define YY_DECL_IS_OURS 1
304
305extern int yylex (void);
306
307#define YY_DECL int yylex (void)
308#endif /* !YY_DECL */
309
310/* yy_get_previous_state - get the state just before the EOB char was reached */
311
312#undef YY_NEW_FILE
313#undef YY_FLUSH_BUFFER
314#undef yy_set_bol
315#undef yy_new_buffer
316#undef yy_set_interactive
317#undef YY_DO_BEFORE_ACTION
318
319#ifdef YY_DECL_IS_OURS
320#undef YY_DECL_IS_OURS
321#undef YY_DECL
322#endif
323
Hung-Te Lin8cb45aa2023-06-15 15:26:40 +0800324#ifndef yy_create_buffer_ALREADY_DEFINED
325#undef yy_create_buffer
326#endif
327#ifndef yy_delete_buffer_ALREADY_DEFINED
328#undef yy_delete_buffer
329#endif
330#ifndef yy_scan_buffer_ALREADY_DEFINED
331#undef yy_scan_buffer
332#endif
333#ifndef yy_scan_string_ALREADY_DEFINED
334#undef yy_scan_string
335#endif
336#ifndef yy_scan_bytes_ALREADY_DEFINED
337#undef yy_scan_bytes
338#endif
339#ifndef yy_init_buffer_ALREADY_DEFINED
340#undef yy_init_buffer
341#endif
342#ifndef yy_flush_buffer_ALREADY_DEFINED
343#undef yy_flush_buffer
344#endif
345#ifndef yy_load_buffer_state_ALREADY_DEFINED
346#undef yy_load_buffer_state
347#endif
348#ifndef yy_switch_to_buffer_ALREADY_DEFINED
349#undef yy_switch_to_buffer
350#endif
351#ifndef yypush_buffer_state_ALREADY_DEFINED
352#undef yypush_buffer_state
353#endif
354#ifndef yypop_buffer_state_ALREADY_DEFINED
355#undef yypop_buffer_state
356#endif
357#ifndef yyensure_buffer_stack_ALREADY_DEFINED
358#undef yyensure_buffer_stack
359#endif
360#ifndef yylex_ALREADY_DEFINED
361#undef yylex
362#endif
363#ifndef yyrestart_ALREADY_DEFINED
364#undef yyrestart
365#endif
366#ifndef yylex_init_ALREADY_DEFINED
367#undef yylex_init
368#endif
369#ifndef yylex_init_extra_ALREADY_DEFINED
370#undef yylex_init_extra
371#endif
372#ifndef yylex_destroy_ALREADY_DEFINED
373#undef yylex_destroy
374#endif
375#ifndef yyget_debug_ALREADY_DEFINED
376#undef yyget_debug
377#endif
378#ifndef yyset_debug_ALREADY_DEFINED
379#undef yyset_debug
380#endif
381#ifndef yyget_extra_ALREADY_DEFINED
382#undef yyget_extra
383#endif
384#ifndef yyset_extra_ALREADY_DEFINED
385#undef yyset_extra
386#endif
387#ifndef yyget_in_ALREADY_DEFINED
388#undef yyget_in
389#endif
390#ifndef yyset_in_ALREADY_DEFINED
391#undef yyset_in
392#endif
393#ifndef yyget_out_ALREADY_DEFINED
394#undef yyget_out
395#endif
396#ifndef yyset_out_ALREADY_DEFINED
397#undef yyset_out
398#endif
399#ifndef yyget_leng_ALREADY_DEFINED
400#undef yyget_leng
401#endif
402#ifndef yyget_text_ALREADY_DEFINED
403#undef yyget_text
404#endif
405#ifndef yyget_lineno_ALREADY_DEFINED
406#undef yyget_lineno
407#endif
408#ifndef yyset_lineno_ALREADY_DEFINED
409#undef yyset_lineno
410#endif
411#ifndef yyget_column_ALREADY_DEFINED
412#undef yyget_column
413#endif
414#ifndef yyset_column_ALREADY_DEFINED
415#undef yyset_column
416#endif
417#ifndef yywrap_ALREADY_DEFINED
418#undef yywrap
419#endif
420#ifndef yyget_lval_ALREADY_DEFINED
421#undef yyget_lval
422#endif
423#ifndef yyset_lval_ALREADY_DEFINED
424#undef yyset_lval
425#endif
426#ifndef yyget_lloc_ALREADY_DEFINED
427#undef yyget_lloc
428#endif
429#ifndef yyset_lloc_ALREADY_DEFINED
430#undef yyset_lloc
431#endif
432#ifndef yyalloc_ALREADY_DEFINED
433#undef yyalloc
434#endif
435#ifndef yyrealloc_ALREADY_DEFINED
436#undef yyrealloc
437#endif
438#ifndef yyfree_ALREADY_DEFINED
439#undef yyfree
440#endif
441#ifndef yytext_ALREADY_DEFINED
442#undef yytext
443#endif
444#ifndef yyleng_ALREADY_DEFINED
445#undef yyleng
446#endif
447#ifndef yyin_ALREADY_DEFINED
448#undef yyin
449#endif
450#ifndef yyout_ALREADY_DEFINED
451#undef yyout
452#endif
453#ifndef yy_flex_debug_ALREADY_DEFINED
454#undef yy_flex_debug
455#endif
456#ifndef yylineno_ALREADY_DEFINED
457#undef yylineno
458#endif
459#ifndef yytables_fload_ALREADY_DEFINED
460#undef yytables_fload
461#endif
462#ifndef yytables_destroy_ALREADY_DEFINED
463#undef yytables_destroy
464#endif
465#ifndef yyTABLES_NAME_ALREADY_DEFINED
466#undef yyTABLES_NAME
467#endif
Sol Boucher69b88bf2015-02-26 11:47:19 -0800468
Sol Boucher69b88bf2015-02-26 11:47:19 -0800469#undef yyIN_HEADER
470#endif /* yyHEADER_H */