blob: f62bada2a22566631809f5a405597b82173f6e2f [file] [log] [blame]
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002#define YY_INT_ALIGNED short int
3
4/* A lexical scanner generated by flex */
5
6#define FLEX_SCANNER
7#define YY_FLEX_MAJOR_VERSION 2
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07008#define YY_FLEX_MINOR_VERSION 6
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00009#define YY_FLEX_SUBMINOR_VERSION 4
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +000010#if YY_FLEX_SUBMINOR_VERSION > 0
11#define FLEX_BETA
12#endif
13
14/* First, we deal with platform-specific or compiler-specific issues. */
15
16/* begin standard C headers. */
17#include <stdio.h>
18#include <string.h>
19#include <errno.h>
20#include <stdlib.h>
21
22/* end standard C headers. */
23
24/* flex integer type definitions */
25
26#ifndef FLEXINT_H
27#define FLEXINT_H
28
29/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
30
31#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
32
33/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -060034 * if you want the limit (max/min) macros for int types.
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +000035 */
36#ifndef __STDC_LIMIT_MACROS
37#define __STDC_LIMIT_MACROS 1
38#endif
39
40#include <inttypes.h>
41typedef int8_t flex_int8_t;
42typedef uint8_t flex_uint8_t;
43typedef int16_t flex_int16_t;
44typedef uint16_t flex_uint16_t;
45typedef int32_t flex_int32_t;
46typedef uint32_t flex_uint32_t;
47#else
48typedef signed char flex_int8_t;
49typedef short int flex_int16_t;
50typedef int flex_int32_t;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -060051typedef unsigned char flex_uint8_t;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +000052typedef unsigned short int flex_uint16_t;
53typedef unsigned int flex_uint32_t;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +000054
55/* Limits of integral types. */
56#ifndef INT8_MIN
57#define INT8_MIN (-128)
58#endif
59#ifndef INT16_MIN
60#define INT16_MIN (-32767-1)
61#endif
62#ifndef INT32_MIN
63#define INT32_MIN (-2147483647-1)
64#endif
65#ifndef INT8_MAX
66#define INT8_MAX (127)
67#endif
68#ifndef INT16_MAX
69#define INT16_MAX (32767)
70#endif
71#ifndef INT32_MAX
72#define INT32_MAX (2147483647)
73#endif
74#ifndef UINT8_MAX
75#define UINT8_MAX (255U)
76#endif
77#ifndef UINT16_MAX
78#define UINT16_MAX (65535U)
79#endif
80#ifndef UINT32_MAX
81#define UINT32_MAX (4294967295U)
82#endif
83
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +000084#ifndef SIZE_MAX
85#define SIZE_MAX (~(size_t)0)
86#endif
87
Patrick Georgi8d313682010-05-05 13:12:42 +000088#endif /* ! C99 */
89
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +000090#endif /* ! FLEXINT_H */
91
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +000092/* begin standard C++ headers. */
93
Justin TerAvestca2ed9f2018-01-17 16:36:30 -080094/* TODO: this is always defined, so inline it */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +000095#define yyconst const
Justin TerAvestca2ed9f2018-01-17 16:36:30 -080096
97#if defined(__GNUC__) && __GNUC__ >= 3
98#define yynoreturn __attribute__((__noreturn__))
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +000099#else
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800100#define yynoreturn
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000101#endif
102
103/* Returned upon end-of-file. */
104#define YY_NULL 0
105
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000106/* Promotes a possibly negative, possibly signed char to an
107 * integer in range [0..255] for use as an array index.
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000108 */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000109#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000110
111/* Enter a start condition. This macro really ought to take a parameter,
112 * but we do it the disgusting crufty way forced on us by the ()-less
113 * definition of BEGIN.
114 */
115#define BEGIN (yy_start) = 1 + 2 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000116/* Translate the current start state into a value that can be later handed
117 * to BEGIN to return to the state. The YYSTATE alias is for lex
118 * compatibility.
119 */
120#define YY_START (((yy_start) - 1) / 2)
121#define YYSTATE YY_START
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000122/* Action number for EOF rule of a given start state. */
123#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000124/* Special action meaning "start processing a new file". */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000125#define YY_NEW_FILE yyrestart( yyin )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000126#define YY_END_OF_BUFFER_CHAR 0
127
128/* Size of default input buffer. */
129#ifndef YY_BUF_SIZE
Patrick Georgi8d313682010-05-05 13:12:42 +0000130#ifdef __ia64__
131/* On IA-64, the buffer size is 16k, not 8k.
132 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
133 * Ditto for the __ia64__ case accordingly.
134 */
135#define YY_BUF_SIZE 32768
136#else
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000137#define YY_BUF_SIZE 16384
Patrick Georgi8d313682010-05-05 13:12:42 +0000138#endif /* __ia64__ */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000139#endif
140
141/* The state buf must be large enough to hold one state per character in the main buffer.
142 */
143#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
144
145#ifndef YY_TYPEDEF_YY_BUFFER_STATE
146#define YY_TYPEDEF_YY_BUFFER_STATE
147typedef struct yy_buffer_state *YY_BUFFER_STATE;
148#endif
149
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700150#ifndef YY_TYPEDEF_YY_SIZE_T
151#define YY_TYPEDEF_YY_SIZE_T
152typedef size_t yy_size_t;
153#endif
154
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800155extern int yyleng;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000156
157extern FILE *yyin, *yyout;
158
159#define EOB_ACT_CONTINUE_SCAN 0
160#define EOB_ACT_END_OF_FILE 1
161#define EOB_ACT_LAST_MATCH 2
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600162
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000163 #define YY_LESS_LINENO(n)
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700164 #define YY_LINENO_REWIND_TO(ptr)
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600165
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000166/* Return all but the first "n" matched characters back to the input stream. */
167#define yyless(n) \
168 do \
169 { \
170 /* Undo effects of setting up yytext. */ \
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000171 int yyless_macro_arg = (n); \
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000172 YY_LESS_LINENO(yyless_macro_arg);\
173 *yy_cp = (yy_hold_char); \
174 YY_RESTORE_YY_MORE_OFFSET \
175 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
176 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
177 } \
178 while ( 0 )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000179#define unput(c) yyunput( c, (yytext_ptr) )
180
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000181#ifndef YY_STRUCT_YY_BUFFER_STATE
182#define YY_STRUCT_YY_BUFFER_STATE
183struct yy_buffer_state
184 {
185 FILE *yy_input_file;
186
187 char *yy_ch_buf; /* input buffer */
188 char *yy_buf_pos; /* current position in input buffer */
189
190 /* Size of input buffer in bytes, not including room for EOB
191 * characters.
192 */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800193 int yy_buf_size;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000194
195 /* Number of characters read into yy_ch_buf, not including EOB
196 * characters.
197 */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800198 int yy_n_chars;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000199
200 /* Whether we "own" the buffer - i.e., we know we created it,
201 * and can realloc() it to grow it, and should free() it to
202 * delete it.
203 */
204 int yy_is_our_buffer;
205
206 /* Whether this is an "interactive" input source; if so, and
207 * if we're using stdio for input, then we want to use getc()
208 * instead of fread(), to make sure we stop fetching input after
209 * each newline.
210 */
211 int yy_is_interactive;
212
213 /* Whether we're considered to be at the beginning of a line.
214 * If so, '^' rules will be active on the next match, otherwise
215 * not.
216 */
217 int yy_at_bol;
218
219 int yy_bs_lineno; /**< The line count. */
220 int yy_bs_column; /**< The column count. */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800221
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000222 /* Whether to try to fill the input buffer when we reach the
223 * end of it.
224 */
225 int yy_fill_buffer;
226
227 int yy_buffer_status;
228
229#define YY_BUFFER_NEW 0
230#define YY_BUFFER_NORMAL 1
231 /* When an EOF's been seen but there's still some text to process
232 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
233 * shouldn't try reading from the input source any more. We might
234 * still have a bunch of tokens to match, though, because of
235 * possible backing-up.
236 *
237 * When we actually see the EOF, we change the status to "new"
238 * (via yyrestart()), so that the user can continue scanning by
239 * just pointing yyin at a new input file.
240 */
241#define YY_BUFFER_EOF_PENDING 2
242
243 };
244#endif /* !YY_STRUCT_YY_BUFFER_STATE */
245
246/* Stack of input buffers. */
247static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
248static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800249static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000250
251/* We provide macros for accessing buffer states in case in the
252 * future we want to put the buffer states in a more general
253 * "scanner state".
254 *
255 * Returns the top of the stack, or NULL.
256 */
257#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
258 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
259 : NULL)
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000260/* Same as previous macro, but useful when we know that the buffer stack is not
261 * NULL or when we need an lvalue. For internal use only.
262 */
263#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
264
265/* yy_hold_char holds the character lost when yytext is formed. */
266static char yy_hold_char;
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800267static int yy_n_chars; /* number of characters read into yy_ch_buf */
268int yyleng;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000269
270/* Points to current character in buffer. */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800271static char *yy_c_buf_p = NULL;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000272static int yy_init = 0; /* whether we need to initialize */
273static int yy_start = 0; /* start state number */
274
275/* Flag which is used to allow yywrap()'s to do buffer switches
276 * instead of setting up a fresh yyin. A bit of a hack ...
277 */
278static int yy_did_buffer_switch_on_eof;
279
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000280void yyrestart ( FILE *input_file );
281void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
282YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
283void yy_delete_buffer ( YY_BUFFER_STATE b );
284void yy_flush_buffer ( YY_BUFFER_STATE b );
285void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
286void yypop_buffer_state ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000287
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000288static void yyensure_buffer_stack ( void );
289static void yy_load_buffer_state ( void );
290static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
291#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000292
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000293YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
294YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
295YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000296
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000297void *yyalloc ( yy_size_t );
298void *yyrealloc ( void *, yy_size_t );
299void yyfree ( void * );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000300
301#define yy_new_buffer yy_create_buffer
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000302#define yy_set_interactive(is_interactive) \
303 { \
304 if ( ! YY_CURRENT_BUFFER ){ \
305 yyensure_buffer_stack (); \
306 YY_CURRENT_BUFFER_LVALUE = \
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000307 yy_create_buffer( yyin, YY_BUF_SIZE ); \
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000308 } \
309 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
310 }
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000311#define yy_set_bol(at_bol) \
312 { \
313 if ( ! YY_CURRENT_BUFFER ){\
314 yyensure_buffer_stack (); \
315 YY_CURRENT_BUFFER_LVALUE = \
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000316 yy_create_buffer( yyin, YY_BUF_SIZE ); \
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000317 } \
318 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
319 }
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000320#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
321
322/* Begin user sect3 */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000323typedef flex_uint8_t YY_CHAR;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000324
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800325FILE *yyin = NULL, *yyout = NULL;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000326
327typedef int yy_state_type;
328
329extern int yylineno;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000330int yylineno = 1;
331
332extern char *yytext;
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700333#ifdef yytext_ptr
334#undef yytext_ptr
335#endif
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000336#define yytext_ptr yytext
337
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000338static yy_state_type yy_get_previous_state ( void );
339static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
340static int yy_get_next_buffer ( void );
341static void yynoreturn yy_fatal_error ( const char* msg );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000342
343/* Done after the current pattern has been matched and before the
344 * corresponding action - sets up yytext.
345 */
346#define YY_DO_BEFORE_ACTION \
347 (yytext_ptr) = yy_bp; \
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800348 yyleng = (int) (yy_cp - yy_bp); \
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000349 (yy_hold_char) = *yy_cp; \
350 *yy_cp = '\0'; \
351 (yy_c_buf_p) = yy_cp;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600352#define YY_NUM_RULES 51
353#define YY_END_OF_BUFFER 52
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000354/* This struct is not used in this scanner,
355 but its presence is necessary. */
356struct yy_trans_info
357 {
358 flex_int32_t yy_verify;
359 flex_int32_t yy_nxt;
360 };
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600361static const flex_int16_t yy_accept[207] =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000362 { 0,
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600363 0, 0, 52, 50, 1, 3, 50, 50, 50, 45,
364 45, 42, 46, 50, 46, 46, 46, 46, 46, 50,
365 50, 50, 50, 50, 50, 50, 50, 50, 50, 43,
366 50, 1, 3, 50, 0, 50, 50, 0, 2, 45,
367 46, 50, 50, 50, 9, 50, 50, 46, 50, 50,
368 50, 50, 50, 50, 50, 50, 50, 50, 50, 36,
369 50, 50, 50, 50, 50, 50, 15, 50, 50, 50,
370 50, 50, 50, 50, 50, 50, 49, 49, 50, 0,
371 44, 50, 50, 50, 25, 50, 50, 35, 40, 50,
372 50, 50, 50, 50, 50, 22, 50, 50, 34, 50,
Sven Schnelle750edfd2011-03-01 21:43:57 +0000373
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600374 31, 50, 50, 16, 50, 19, 21, 50, 8, 50,
375 50, 29, 50, 30, 7, 50, 0, 47, 50, 4,
376 50, 50, 50, 32, 50, 50, 50, 33, 50, 50,
377 50, 50, 50, 28, 50, 50, 50, 50, 50, 48,
378 48, 6, 50, 50, 50, 12, 50, 50, 50, 50,
379 50, 23, 50, 50, 14, 50, 50, 50, 50, 5,
380 26, 50, 50, 17, 50, 20, 50, 13, 50, 50,
381 50, 50, 50, 27, 38, 50, 50, 50, 50, 50,
382 50, 50, 50, 50, 10, 50, 50, 50, 11, 50,
383 18, 50, 50, 50, 37, 50, 50, 24, 50, 39,
Duncan Laurie47b7b342020-05-15 15:39:08 -0700384
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600385 50, 50, 50, 50, 41, 0
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000386 } ;
387
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000388static const YY_CHAR yy_ec[256] =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000389 { 0,
390 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
391 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
392 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
393 1, 2, 1, 5, 6, 1, 1, 1, 1, 1,
394 1, 1, 1, 1, 1, 7, 1, 8, 7, 9,
395 7, 7, 7, 7, 7, 7, 7, 1, 1, 1,
Patrick Georgi2b108a42012-07-13 12:02:44 +0200396 10, 1, 1, 1, 11, 11, 11, 11, 12, 12,
397 1, 1, 13, 1, 1, 1, 1, 14, 1, 1,
398 1, 1, 1, 15, 1, 1, 1, 1, 1, 1,
399 1, 1, 1, 1, 16, 1, 17, 18, 19, 20,
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000400
Patrick Georgi2b108a42012-07-13 12:02:44 +0200401 21, 22, 23, 24, 25, 1, 1, 26, 27, 28,
Duncan Laurie47b7b342020-05-15 15:39:08 -0700402 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600403 39, 1, 1, 40, 1, 1, 1, 1, 1, 1,
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000404 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
405 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
406 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
407 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
408 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
409 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
410 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
411
412 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
413 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
414 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
415 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
416 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
417 1, 1, 1, 1, 1
418 } ;
419
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600420static const YY_CHAR yy_meta[41] =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000421 { 0,
422 1, 2, 2, 1, 1, 1, 1, 1, 1, 1,
423 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
424 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600425 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000426 } ;
427
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600428static const flex_int16_t yy_base[214] =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000429 { 0,
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600430 0, 0, 279, 0, 276, 280, 274, 39, 43, 40,
431 238, 0, 46, 261, 56, 60, 64, 67, 72, 56,
432 249, 74, 26, 61, 77, 82, 252, 81, 239, 0,
433 0, 269, 280, 89, 265, 110, 115, 266, 280, 0,
434 112, 115, 253, 242, 0, 241, 230, 121, 237, 232,
435 242, 231, 239, 243, 230, 232, 236, 236, 230, 236,
436 221, 221, 231, 221, 223, 225, 0, 212, 220, 214,
437 214, 116, 224, 216, 222, 122, 0, 280, 139, 234,
438 0, 227, 220, 206, 219, 209, 216, 0, 0, 207,
439 205, 211, 208, 199, 207, 0, 205, 195, 0, 199,
Patrick Georgi8d313682010-05-05 13:12:42 +0000440
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600441 0, 203, 193, 0, 196, 0, 0, 202, 0, 194,
442 193, 0, 184, 0, 0, 211, 210, 0, 181, 0,
443 194, 193, 186, 0, 190, 180, 176, 0, 186, 174,
444 180, 185, 186, 0, 173, 180, 167, 170, 159, 0,
445 280, 0, 171, 175, 167, 0, 166, 168, 164, 166,
446 171, 0, 155, 160, 0, 153, 153, 152, 149, 0,
447 0, 161, 163, 0, 147, 164, 150, 0, 157, 161,
448 142, 142, 149, 0, 0, 148, 140, 139, 137, 135,
449 121, 131, 121, 113, 0, 125, 123, 128, 0, 117,
450 0, 118, 121, 113, 0, 97, 105, 0, 88, 0,
Duncan Laurie47b7b342020-05-15 15:39:08 -0700451
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600452 78, 66, 37, 47, 0, 280, 49, 157, 159, 161,
453 163, 165, 167
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000454 } ;
455
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600456static const flex_int16_t yy_def[214] =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000457 { 0,
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600458 206, 1, 206, 207, 206, 206, 207, 208, 209, 207,
459 10, 207, 10, 207, 10, 10, 10, 10, 10, 207,
460 207, 207, 207, 207, 207, 207, 207, 207, 207, 207,
461 207, 206, 206, 208, 210, 211, 209, 212, 206, 10,
462 10, 10, 207, 207, 207, 207, 207, 10, 207, 207,
463 207, 207, 207, 207, 207, 207, 207, 207, 207, 207,
464 207, 207, 207, 207, 207, 207, 207, 207, 207, 207,
465 207, 207, 207, 207, 207, 207, 207, 206, 211, 213,
466 42, 207, 207, 207, 207, 207, 207, 207, 207, 207,
467 207, 207, 207, 207, 207, 207, 207, 207, 207, 207,
Patrick Georgi8d313682010-05-05 13:12:42 +0000468
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600469 207, 207, 207, 207, 207, 207, 207, 207, 207, 207,
470 207, 207, 207, 207, 207, 207, 206, 207, 207, 207,
471 207, 207, 207, 207, 207, 207, 207, 207, 207, 207,
472 207, 207, 207, 207, 207, 207, 207, 207, 207, 207,
473 206, 207, 207, 207, 207, 207, 207, 207, 207, 207,
474 207, 207, 207, 207, 207, 207, 207, 207, 207, 207,
475 207, 207, 207, 207, 207, 207, 207, 207, 207, 207,
476 207, 207, 207, 207, 207, 207, 207, 207, 207, 207,
477 207, 207, 207, 207, 207, 207, 207, 207, 207, 207,
478 207, 207, 207, 207, 207, 207, 207, 207, 207, 207,
Duncan Laurie47b7b342020-05-15 15:39:08 -0700479
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600480 207, 207, 207, 207, 207, 0, 206, 206, 206, 206,
481 206, 206, 206
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000482 } ;
483
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600484static const flex_int16_t yy_nxt[321] =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000485 { 0,
486 4, 5, 6, 7, 8, 9, 10, 11, 10, 12,
Nico Huber8e1ea522020-06-03 10:20:07 -0700487 13, 13, 14, 4, 4, 4, 15, 13, 16, 17,
488 18, 19, 20, 21, 22, 23, 24, 4, 25, 26,
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600489 4, 27, 28, 4, 29, 4, 4, 4, 4, 30,
490 35, 35, 62, 36, 38, 39, 40, 40, 40, 31,
491 41, 41, 41, 41, 41, 63, 41, 41, 41, 41,
492 41, 41, 41, 41, 41, 205, 41, 41, 41, 204,
493 41, 41, 41, 41, 41, 41, 55, 64, 41, 41,
494 41, 44, 58, 46, 48, 56, 203, 65, 45, 47,
495 35, 35, 49, 77, 51, 50, 53, 202, 66, 52,
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000496
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600497 69, 59, 60, 201, 67, 61, 68, 73, 54, 70,
498 74, 80, 80, 71, 31, 75, 38, 39, 41, 41,
499 41, 81, 81, 81, 200, 81, 81, 41, 41, 41,
500 199, 81, 81, 81, 81, 81, 81, 109, 110, 114,
501 80, 80, 115, 116, 198, 197, 196, 195, 194, 193,
502 192, 191, 190, 189, 188, 187, 86, 34, 34, 37,
503 37, 35, 35, 79, 79, 38, 38, 80, 80, 186,
504 185, 184, 183, 182, 181, 180, 179, 178, 177, 176,
505 175, 174, 173, 172, 171, 170, 169, 168, 167, 166,
506 165, 164, 163, 162, 161, 160, 159, 158, 157, 156,
Duncan Laurie47b7b342020-05-15 15:39:08 -0700507
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600508 155, 154, 153, 152, 151, 150, 149, 148, 147, 146,
509 145, 144, 143, 142, 141, 140, 139, 138, 137, 136,
510 135, 134, 133, 132, 131, 130, 129, 128, 127, 126,
511 125, 124, 123, 122, 121, 120, 119, 118, 117, 113,
512 112, 111, 108, 107, 106, 105, 104, 103, 102, 101,
513 100, 99, 98, 97, 96, 95, 94, 93, 92, 91,
514 90, 89, 88, 87, 85, 84, 83, 82, 39, 78,
515 32, 76, 72, 57, 43, 42, 33, 32, 206, 3,
516 206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
517 206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
Duncan Laurie47b7b342020-05-15 15:39:08 -0700518
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600519 206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
520 206, 206, 206, 206, 206, 206, 206, 206, 206, 206
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000521 } ;
522
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600523static const flex_int16_t yy_chk[321] =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000524 { 0,
525 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
526 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
527 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600528 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
529 8, 8, 23, 8, 9, 9, 10, 10, 10, 207,
530 10, 10, 13, 13, 13, 23, 10, 10, 10, 10,
531 10, 10, 15, 15, 15, 204, 16, 16, 16, 203,
532 17, 17, 17, 18, 18, 18, 20, 24, 19, 19,
533 19, 15, 22, 16, 17, 20, 202, 24, 15, 16,
534 34, 34, 17, 34, 18, 17, 19, 201, 25, 18,
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000535
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600536 26, 22, 22, 199, 25, 22, 25, 28, 19, 26,
537 28, 36, 36, 26, 36, 28, 37, 37, 41, 41,
538 41, 42, 42, 42, 197, 42, 42, 48, 48, 48,
539 196, 42, 42, 42, 42, 42, 42, 72, 72, 76,
540 79, 79, 76, 79, 194, 193, 192, 190, 188, 187,
541 186, 184, 183, 182, 181, 180, 48, 208, 208, 209,
542 209, 210, 210, 211, 211, 212, 212, 213, 213, 179,
543 178, 177, 176, 173, 172, 171, 170, 169, 167, 166,
544 165, 163, 162, 159, 158, 157, 156, 154, 153, 151,
545 150, 149, 148, 147, 145, 144, 143, 139, 138, 137,
Sven Schnelle750edfd2011-03-01 21:43:57 +0000546
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600547 136, 135, 133, 132, 131, 130, 129, 127, 126, 125,
548 123, 122, 121, 119, 117, 116, 113, 111, 110, 108,
549 105, 103, 102, 100, 98, 97, 95, 94, 93, 92,
550 91, 90, 87, 86, 85, 84, 83, 82, 80, 75,
551 74, 73, 71, 70, 69, 68, 66, 65, 64, 63,
552 62, 61, 60, 59, 58, 57, 56, 55, 54, 53,
553 52, 51, 50, 49, 47, 46, 44, 43, 38, 35,
554 32, 29, 27, 21, 14, 11, 7, 5, 3, 206,
555 206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
556 206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
Duncan Laurie47b7b342020-05-15 15:39:08 -0700557
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600558 206, 206, 206, 206, 206, 206, 206, 206, 206, 206,
559 206, 206, 206, 206, 206, 206, 206, 206, 206, 206
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000560 } ;
561
562static yy_state_type yy_last_accepting_state;
563static char *yy_last_accepting_cpos;
564
565extern int yy_flex_debug;
566int yy_flex_debug = 0;
567
568/* The intent behind this definition is that it'll catch
569 * any uses of REJECT which flex missed.
570 */
571#define REJECT reject_used_but_not_detected
572#define yymore() yymore_used_but_not_detected
573#define YY_MORE_ADJ 0
574#define YY_RESTORE_YY_MORE_OFFSET
575char *yytext;
Duncan Laurie47b7b342020-05-15 15:39:08 -0700576/* sconfig, coreboot device tree compiler */
577/* SPDX-License-Identifier: GPL-2.0-only */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000578
579#include "sconfig.tab.h"
580
581int linenum = 0;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000582
583#define INITIAL 0
584
585#ifndef YY_NO_UNISTD_H
586/* Special case for "unistd.h", since it is non-ANSI. We include it way
587 * down here because we want the user's section 1 to have been scanned first.
588 * The user has a chance to override it with an option.
589 */
590#include <unistd.h>
591#endif
592
593#ifndef YY_EXTRA_TYPE
594#define YY_EXTRA_TYPE void *
595#endif
596
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000597static int yy_init_globals ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000598
599/* Accessor methods to globals.
600 These are made visible to non-reentrant scanners for convenience. */
601
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000602int yylex_destroy ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000603
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000604int yyget_debug ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000605
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000606void yyset_debug ( int debug_flag );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000607
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000608YY_EXTRA_TYPE yyget_extra ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000609
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000610void yyset_extra ( YY_EXTRA_TYPE user_defined );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000611
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000612FILE *yyget_in ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000613
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000614void yyset_in ( FILE * _in_str );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000615
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000616FILE *yyget_out ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000617
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000618void yyset_out ( FILE * _out_str );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000619
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000620 int yyget_leng ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000621
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000622char *yyget_text ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000623
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000624int yyget_lineno ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000625
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000626void yyset_lineno ( int _line_number );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000627
628/* Macros after this point can all be overridden by user definitions in
629 * section 1.
630 */
631
632#ifndef YY_SKIP_YYWRAP
633#ifdef __cplusplus
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000634extern "C" int yywrap ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000635#else
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000636extern int yywrap ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000637#endif
638#endif
639
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700640#ifndef YY_NO_UNPUT
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600641
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000642 static void yyunput ( int c, char *buf_ptr );
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600643
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700644#endif
645
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000646#ifndef yytext_ptr
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000647static void yy_flex_strncpy ( char *, const char *, int );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000648#endif
649
650#ifdef YY_NEED_STRLEN
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000651static int yy_flex_strlen ( const char * );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000652#endif
653
654#ifndef YY_NO_INPUT
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000655#ifdef __cplusplus
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000656static int yyinput ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000657#else
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000658static int input ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000659#endif
660
661#endif
662
663/* Amount of stuff to slurp up with each read. */
664#ifndef YY_READ_BUF_SIZE
Patrick Georgi8d313682010-05-05 13:12:42 +0000665#ifdef __ia64__
666/* On IA-64, the buffer size is 16k, not 8k */
667#define YY_READ_BUF_SIZE 16384
668#else
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000669#define YY_READ_BUF_SIZE 8192
Patrick Georgi8d313682010-05-05 13:12:42 +0000670#endif /* __ia64__ */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000671#endif
672
673/* Copy whatever the last rule matched to the standard output. */
674#ifndef ECHO
675/* This used to be an fputs(), but since the string might contain NUL's,
676 * we now use fwrite().
677 */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800678#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000679#endif
680
681/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
682 * is returned in "result".
683 */
684#ifndef YY_INPUT
685#define YY_INPUT(buf,result,max_size) \
686 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
687 { \
688 int c = '*'; \
Patrick Rudolphac24d3c2019-04-12 14:42:17 +0200689 int n; \
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000690 for ( n = 0; n < max_size && \
691 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
692 buf[n] = (char) c; \
693 if ( c == '\n' ) \
694 buf[n++] = (char) c; \
695 if ( c == EOF && ferror( yyin ) ) \
696 YY_FATAL_ERROR( "input in flex scanner failed" ); \
697 result = n; \
698 } \
699 else \
700 { \
701 errno=0; \
Patrick Rudolphac24d3c2019-04-12 14:42:17 +0200702 while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000703 { \
704 if( errno != EINTR) \
705 { \
706 YY_FATAL_ERROR( "input in flex scanner failed" ); \
707 break; \
708 } \
709 errno=0; \
710 clearerr(yyin); \
711 } \
712 }\
713\
714
715#endif
716
717/* No semi-colon after return; correct usage is to write "yyterminate();" -
718 * we don't want an extra ';' after the "return" because that will cause
719 * some compilers to complain about unreachable statements.
720 */
721#ifndef yyterminate
722#define yyterminate() return YY_NULL
723#endif
724
725/* Number of entries by which start-condition stack grows. */
726#ifndef YY_START_STACK_INCR
727#define YY_START_STACK_INCR 25
728#endif
729
730/* Report a fatal error. */
731#ifndef YY_FATAL_ERROR
732#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
733#endif
734
735/* end tables serialization structures and prototypes */
736
737/* Default declaration of generated scanner - a define so the user can
738 * easily add parameters.
739 */
740#ifndef YY_DECL
741#define YY_DECL_IS_OURS 1
742
743extern int yylex (void);
744
745#define YY_DECL int yylex (void)
746#endif /* !YY_DECL */
747
748/* Code executed at the beginning of each rule, after yytext and yyleng
749 * have been set up.
750 */
751#ifndef YY_USER_ACTION
752#define YY_USER_ACTION
753#endif
754
755/* Code executed at the end of each rule. */
756#ifndef YY_BREAK
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700757#define YY_BREAK /*LINTED*/break;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000758#endif
759
760#define YY_RULE_SETUP \
761 YY_USER_ACTION
762
763/** The main scanner function which does all the work.
764 */
765YY_DECL
766{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700767 yy_state_type yy_current_state;
768 char *yy_cp, *yy_bp;
769 int yy_act;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600770
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000771 if ( !(yy_init) )
772 {
773 (yy_init) = 1;
774
775#ifdef YY_USER_INIT
776 YY_USER_INIT;
777#endif
778
779 if ( ! (yy_start) )
780 (yy_start) = 1; /* first start state */
781
782 if ( ! yyin )
783 yyin = stdin;
784
785 if ( ! yyout )
786 yyout = stdout;
787
788 if ( ! YY_CURRENT_BUFFER ) {
789 yyensure_buffer_stack ();
790 YY_CURRENT_BUFFER_LVALUE =
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000791 yy_create_buffer( yyin, YY_BUF_SIZE );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000792 }
793
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000794 yy_load_buffer_state( );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000795 }
796
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700797 {
798
799 while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000800 {
801 yy_cp = (yy_c_buf_p);
802
803 /* Support of yytext. */
804 *yy_cp = (yy_hold_char);
805
806 /* yy_bp points to the position in yy_ch_buf of the start of
807 * the current run.
808 */
809 yy_bp = yy_cp;
810
811 yy_current_state = (yy_start);
812yy_match:
813 do
814 {
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700815 YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000816 if ( yy_accept[yy_current_state] )
817 {
818 (yy_last_accepting_state) = yy_current_state;
819 (yy_last_accepting_cpos) = yy_cp;
820 }
821 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
822 {
823 yy_current_state = (int) yy_def[yy_current_state];
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600824 if ( yy_current_state >= 207 )
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000825 yy_c = yy_meta[yy_c];
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000826 }
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000827 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000828 ++yy_cp;
829 }
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600830 while ( yy_base[yy_current_state] != 280 );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000831
832yy_find_action:
833 yy_act = yy_accept[yy_current_state];
834 if ( yy_act == 0 )
835 { /* have to back up */
836 yy_cp = (yy_last_accepting_cpos);
837 yy_current_state = (yy_last_accepting_state);
838 yy_act = yy_accept[yy_current_state];
839 }
840
841 YY_DO_BEFORE_ACTION;
842
843do_action: /* This label is used only to access EOF actions. */
844
845 switch ( yy_act )
846 { /* beginning of action switch */
847 case 0: /* must back up */
848 /* undo the effects of YY_DO_BEFORE_ACTION */
849 *yy_cp = (yy_hold_char);
850 yy_cp = (yy_last_accepting_cpos);
851 yy_current_state = (yy_last_accepting_state);
852 goto yy_find_action;
853
854case 1:
855YY_RULE_SETUP
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000856{}
857 YY_BREAK
858case 2:
859/* rule 2 can match eol */
860YY_RULE_SETUP
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000861{linenum++;}
862 YY_BREAK
863case 3:
864/* rule 3 can match eol */
865YY_RULE_SETUP
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000866{linenum++;}
867 YY_BREAK
868case 4:
869YY_RULE_SETUP
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000870{return(CHIP);}
871 YY_BREAK
872case 5:
873YY_RULE_SETUP
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000874{return(DEVICE);}
875 YY_BREAK
876case 6:
877YY_RULE_SETUP
Nico Huber8e1ea522020-06-03 10:20:07 -0700878{return(ALIAS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000879 YY_BREAK
880case 7:
881YY_RULE_SETUP
Nico Huber8e1ea522020-06-03 10:20:07 -0700882{return(REFERENCE);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000883 YY_BREAK
884case 8:
885YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700886{return(REFERENCE);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000887 YY_BREAK
888case 9:
889YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700890{return(ASSOCIATION);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000891 YY_BREAK
892case 10:
893YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700894{return(REGISTER);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000895 YY_BREAK
896case 11:
897YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700898{return(FW_CONFIG_TABLE);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000899 YY_BREAK
900case 12:
901YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700902{return(FW_CONFIG_FIELD);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000903 YY_BREAK
904case 13:
905YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700906{return(FW_CONFIG_OPTION);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000907 YY_BREAK
908case 14:
909YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700910{return(FW_CONFIG_PROBE);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000911 YY_BREAK
912case 15:
913YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700914{yylval.number=1; return(BOOL);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000915 YY_BREAK
916case 16:
917YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700918{yylval.number=0; return(BOOL);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000919 YY_BREAK
920case 17:
921YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700922{yylval.number=3; return(STATUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000923 YY_BREAK
924case 18:
925YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700926{yylval.number=5; return(STATUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000927 YY_BREAK
928case 19:
929YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700930{yylval.number=PCI; return(BUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000931 YY_BREAK
932case 20:
933YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700934{yylval.number=IOAPIC; return(BUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000935 YY_BREAK
936case 21:
937YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700938{yylval.number=PNP; return(BUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000939 YY_BREAK
940case 22:
941YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700942{yylval.number=I2C; return(BUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000943 YY_BREAK
944case 23:
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000945YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700946{yylval.number=APIC; return(BUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000947 YY_BREAK
948case 24:
949YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700950{yylval.number=CPU_CLUSTER; return(BUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000951 YY_BREAK
952case 25:
Sven Schnelle750edfd2011-03-01 21:43:57 +0000953YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700954{yylval.number=CPU; return(BUS);}
Sven Schnelle750edfd2011-03-01 21:43:57 +0000955 YY_BREAK
956case 26:
957YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700958{yylval.number=DOMAIN; return(BUS);}
Sven Schnelle750edfd2011-03-01 21:43:57 +0000959 YY_BREAK
960case 27:
Patrick Georgi2b108a42012-07-13 12:02:44 +0200961YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700962{yylval.number=GENERIC; return(BUS);}
Patrick Georgi2b108a42012-07-13 12:02:44 +0200963 YY_BREAK
964case 28:
Aaron Durbinffda804b2014-09-03 12:40:15 -0500965YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700966{yylval.number=MMIO; return(BUS);}
Aaron Durbinffda804b2014-09-03 12:40:15 -0500967 YY_BREAK
968case 29:
Duncan Laurie4650f5b2016-05-07 20:01:34 -0700969YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700970{yylval.number=SPI; return(BUS);}
Duncan Laurie4650f5b2016-05-07 20:01:34 -0700971 YY_BREAK
972case 30:
Sven Schnelle0fa50a12012-06-21 22:19:48 +0200973YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700974{yylval.number=USB; return(BUS);}
Sven Schnelle0fa50a12012-06-21 22:19:48 +0200975 YY_BREAK
Duncan Laurie4650f5b2016-05-07 20:01:34 -0700976case 31:
Duncan Laurie4650f5b2016-05-07 20:01:34 -0700977YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700978{yylval.number=LPC; return(BUS);}
Duncan Laurie4650f5b2016-05-07 20:01:34 -0700979 YY_BREAK
980case 32:
Furquan Shaikhe6700292017-02-11 00:50:38 -0800981YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700982{yylval.number=ESPI; return(BUS);}
Furquan Shaikhe6700292017-02-11 00:50:38 -0800983 YY_BREAK
984case 33:
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800985YY_RULE_SETUP
Michael Niewöhnerdbb667a2020-12-11 21:26:02 +0100986{yylval.number=GPIO; return(BUS);}
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800987 YY_BREAK
988case 34:
Duncan Lauriebae9f852018-05-07 14:18:13 -0700989YY_RULE_SETUP
Michael Niewöhnerdbb667a2020-12-11 21:26:02 +0100990{yylval.number=IRQ; return(RESOURCE);}
Duncan Lauriebae9f852018-05-07 14:18:13 -0700991 YY_BREAK
992case 35:
Hung-Te Lin936dbe12018-09-10 10:51:26 +0800993YY_RULE_SETUP
Michael Niewöhnerdbb667a2020-12-11 21:26:02 +0100994{yylval.number=DRQ; return(RESOURCE);}
Hung-Te Lin936dbe12018-09-10 10:51:26 +0800995 YY_BREAK
996case 36:
Patrick Rudolphac24d3c2019-04-12 14:42:17 +0200997YY_RULE_SETUP
Michael Niewöhnerdbb667a2020-12-11 21:26:02 +0100998{yylval.number=IO; return(RESOURCE);}
Patrick Rudolphac24d3c2019-04-12 14:42:17 +0200999 YY_BREAK
1000case 37:
Raul E Rangel3f3f53c2020-05-06 11:47:04 -06001001YY_RULE_SETUP
Michael Niewöhnerdbb667a2020-12-11 21:26:02 +01001002{return(IOAPIC_IRQ);}
Raul E Rangel3f3f53c2020-05-06 11:47:04 -06001003 YY_BREAK
1004case 38:
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001005YY_RULE_SETUP
Michael Niewöhnerdbb667a2020-12-11 21:26:02 +01001006{return(INHERIT);}
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001007 YY_BREAK
Raul E Rangel3f3f53c2020-05-06 11:47:04 -06001008case 39:
Raul E Rangel3f3f53c2020-05-06 11:47:04 -06001009YY_RULE_SETUP
Michael Niewöhnerdbb667a2020-12-11 21:26:02 +01001010{return(SUBSYSTEMID);}
Raul E Rangel3f3f53c2020-05-06 11:47:04 -06001011 YY_BREAK
1012case 40:
Sven Schnelle0fa50a12012-06-21 22:19:48 +02001013YY_RULE_SETUP
Michael Niewöhnerdbb667a2020-12-11 21:26:02 +01001014{return(END);}
Sven Schnelle0fa50a12012-06-21 22:19:48 +02001015 YY_BREAK
Raul E Rangel3f3f53c2020-05-06 11:47:04 -06001016case 41:
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001017YY_RULE_SETUP
Michael Niewöhnerdbb667a2020-12-11 21:26:02 +01001018{return(SLOT_DESC);}
Duncan Laurie47b7b342020-05-15 15:39:08 -07001019 YY_BREAK
1020case 42:
Duncan Laurie47b7b342020-05-15 15:39:08 -07001021YY_RULE_SETUP
Michael Niewöhnerdbb667a2020-12-11 21:26:02 +01001022{return(EQUALS);}
Duncan Laurie47b7b342020-05-15 15:39:08 -07001023 YY_BREAK
1024case 43:
Duncan Laurie47b7b342020-05-15 15:39:08 -07001025YY_RULE_SETUP
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001026{return(PIPE);}
Duncan Laurie47b7b342020-05-15 15:39:08 -07001027 YY_BREAK
1028case 44:
1029YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -07001030{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(NUMBER);}
Duncan Laurie47b7b342020-05-15 15:39:08 -07001031 YY_BREAK
1032case 45:
Nico Huber8e1ea522020-06-03 10:20:07 -07001033YY_RULE_SETUP
Michael Niewöhnerdbb667a2020-12-11 21:26:02 +01001034{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(NUMBER);}
Nico Huber8e1ea522020-06-03 10:20:07 -07001035 YY_BREAK
1036case 46:
Nico Huber8e1ea522020-06-03 10:20:07 -07001037YY_RULE_SETUP
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001038{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(NUMBER);}
Nico Huber8e1ea522020-06-03 10:20:07 -07001039 YY_BREAK
1040case 47:
Duncan Lauriee335c2e2020-07-29 16:28:43 -07001041YY_RULE_SETUP
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001042{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(PCIINT);}
Duncan Lauriee335c2e2020-07-29 16:28:43 -07001043 YY_BREAK
1044case 48:
Michael Niewöhnerdbb667a2020-12-11 21:26:02 +01001045/* rule 48 can match eol */
1046YY_RULE_SETUP
1047{yylval.string = malloc(yyleng-1); strncpy(yylval.string, yytext+1, yyleng-2); yylval.string[yyleng-2]='\0'; return(STRING);}
1048 YY_BREAK
1049case 49:
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001050/* rule 49 can match eol */
1051YY_RULE_SETUP
1052{yylval.string = malloc(yyleng-1); strncpy(yylval.string, yytext+1, yyleng-2); yylval.string[yyleng-2]='\0'; return(STRING);}
1053 YY_BREAK
1054case 50:
Nico Huber8e1ea522020-06-03 10:20:07 -07001055YY_RULE_SETUP
1056{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(STRING);}
1057 YY_BREAK
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001058case 51:
Duncan Laurie47b7b342020-05-15 15:39:08 -07001059YY_RULE_SETUP
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001060ECHO;
1061 YY_BREAK
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001062case YY_STATE_EOF(INITIAL):
1063 yyterminate();
1064
1065 case YY_END_OF_BUFFER:
1066 {
1067 /* Amount of text matched not including the EOB char. */
1068 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1069
1070 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1071 *yy_cp = (yy_hold_char);
1072 YY_RESTORE_YY_MORE_OFFSET
1073
1074 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1075 {
1076 /* We're scanning a new file or input source. It's
1077 * possible that this happened because the user
1078 * just pointed yyin at a new source and called
1079 * yylex(). If so, then we have to assure
1080 * consistency between YY_CURRENT_BUFFER and our
1081 * globals. Here is the right place to do so, because
1082 * this is the first action (other than possibly a
1083 * back-up) that will match for the new input source.
1084 */
1085 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1086 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1087 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1088 }
1089
1090 /* Note that here we test for yy_c_buf_p "<=" to the position
1091 * of the first EOB in the buffer, since yy_c_buf_p will
1092 * already have been incremented past the NUL character
1093 * (since all states make transitions on EOB to the
1094 * end-of-buffer state). Contrast this with the test
1095 * in input().
1096 */
1097 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1098 { /* This was really a NUL. */
1099 yy_state_type yy_next_state;
1100
1101 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1102
1103 yy_current_state = yy_get_previous_state( );
1104
1105 /* Okay, we're now positioned to make the NUL
1106 * transition. We couldn't have
1107 * yy_get_previous_state() go ahead and do it
1108 * for us because it doesn't know how to deal
1109 * with the possibility of jamming (and we don't
1110 * want to build jamming into it because then it
1111 * will run more slowly).
1112 */
1113
1114 yy_next_state = yy_try_NUL_trans( yy_current_state );
1115
1116 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1117
1118 if ( yy_next_state )
1119 {
1120 /* Consume the NUL. */
1121 yy_cp = ++(yy_c_buf_p);
1122 yy_current_state = yy_next_state;
1123 goto yy_match;
1124 }
1125
1126 else
1127 {
1128 yy_cp = (yy_c_buf_p);
1129 goto yy_find_action;
1130 }
1131 }
1132
1133 else switch ( yy_get_next_buffer( ) )
1134 {
1135 case EOB_ACT_END_OF_FILE:
1136 {
1137 (yy_did_buffer_switch_on_eof) = 0;
1138
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001139 if ( yywrap( ) )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001140 {
1141 /* Note: because we've taken care in
1142 * yy_get_next_buffer() to have set up
1143 * yytext, we can now set up
1144 * yy_c_buf_p so that if some total
1145 * hoser (like flex itself) wants to
1146 * call the scanner after we return the
1147 * YY_NULL, it'll still work - another
1148 * YY_NULL will get returned.
1149 */
1150 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
1151
1152 yy_act = YY_STATE_EOF(YY_START);
1153 goto do_action;
1154 }
1155
1156 else
1157 {
1158 if ( ! (yy_did_buffer_switch_on_eof) )
1159 YY_NEW_FILE;
1160 }
1161 break;
1162 }
1163
1164 case EOB_ACT_CONTINUE_SCAN:
1165 (yy_c_buf_p) =
1166 (yytext_ptr) + yy_amount_of_matched_text;
1167
1168 yy_current_state = yy_get_previous_state( );
1169
1170 yy_cp = (yy_c_buf_p);
1171 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1172 goto yy_match;
1173
1174 case EOB_ACT_LAST_MATCH:
1175 (yy_c_buf_p) =
1176 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1177
1178 yy_current_state = yy_get_previous_state( );
1179
1180 yy_cp = (yy_c_buf_p);
1181 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1182 goto yy_find_action;
1183 }
1184 break;
1185 }
1186
1187 default:
1188 YY_FATAL_ERROR(
1189 "fatal flex scanner internal error--no action found" );
1190 } /* end of action switch */
1191 } /* end of scanning one token */
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001192 } /* end of user's declarations */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001193} /* end of yylex */
1194
1195/* yy_get_next_buffer - try to read in a new buffer
1196 *
1197 * Returns a code representing an action:
1198 * EOB_ACT_LAST_MATCH -
1199 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1200 * EOB_ACT_END_OF_FILE - end of file
1201 */
1202static int yy_get_next_buffer (void)
1203{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001204 char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1205 char *source = (yytext_ptr);
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001206 int number_to_move, i;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001207 int ret_val;
1208
1209 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1210 YY_FATAL_ERROR(
1211 "fatal flex scanner internal error--end of buffer missed" );
1212
1213 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1214 { /* Don't try to fill the buffer, so this is an EOF. */
1215 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1216 {
1217 /* We matched a single character, the EOB, so
1218 * treat this as a final EOF.
1219 */
1220 return EOB_ACT_END_OF_FILE;
1221 }
1222
1223 else
1224 {
1225 /* We matched some text prior to the EOB, first
1226 * process it.
1227 */
1228 return EOB_ACT_LAST_MATCH;
1229 }
1230 }
1231
1232 /* Try to read more data. */
1233
1234 /* First move last chars to start of buffer. */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001235 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001236
1237 for ( i = 0; i < number_to_move; ++i )
1238 *(dest++) = *(source++);
1239
1240 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1241 /* don't do the read, it's not guaranteed to return an EOF,
1242 * just force an EOF
1243 */
1244 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1245
1246 else
1247 {
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001248 int num_to_read =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001249 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1250
1251 while ( num_to_read <= 0 )
1252 { /* Not enough room in the buffer - grow it. */
1253
1254 /* just a shorter name for the current buffer */
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001255 YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001256
1257 int yy_c_buf_p_offset =
1258 (int) ((yy_c_buf_p) - b->yy_ch_buf);
1259
1260 if ( b->yy_is_our_buffer )
1261 {
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001262 int new_size = b->yy_buf_size * 2;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001263
1264 if ( new_size <= 0 )
1265 b->yy_buf_size += b->yy_buf_size / 8;
1266 else
1267 b->yy_buf_size *= 2;
1268
1269 b->yy_ch_buf = (char *)
1270 /* Include room in for 2 EOB chars. */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001271 yyrealloc( (void *) b->yy_ch_buf,
1272 (yy_size_t) (b->yy_buf_size + 2) );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001273 }
1274 else
1275 /* Can't grow it, we don't own it. */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001276 b->yy_ch_buf = NULL;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001277
1278 if ( ! b->yy_ch_buf )
1279 YY_FATAL_ERROR(
1280 "fatal error - scanner input buffer overflow" );
1281
1282 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1283
1284 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1285 number_to_move - 1;
1286
1287 }
1288
1289 if ( num_to_read > YY_READ_BUF_SIZE )
1290 num_to_read = YY_READ_BUF_SIZE;
1291
1292 /* Read in more data. */
1293 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001294 (yy_n_chars), num_to_read );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001295
1296 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1297 }
1298
1299 if ( (yy_n_chars) == 0 )
1300 {
1301 if ( number_to_move == YY_MORE_ADJ )
1302 {
1303 ret_val = EOB_ACT_END_OF_FILE;
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001304 yyrestart( yyin );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001305 }
1306
1307 else
1308 {
1309 ret_val = EOB_ACT_LAST_MATCH;
1310 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1311 YY_BUFFER_EOF_PENDING;
1312 }
1313 }
1314
1315 else
1316 ret_val = EOB_ACT_CONTINUE_SCAN;
1317
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001318 if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001319 /* Extend the array by 50%, plus the number we really need. */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001320 int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001321 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
1322 (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001323 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1324 YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001325 /* "- 2" to take care of EOB's */
1326 YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001327 }
1328
1329 (yy_n_chars) += number_to_move;
1330 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
1331 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
1332
1333 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1334
1335 return ret_val;
1336}
1337
1338/* yy_get_previous_state - get the state just before the EOB char was reached */
1339
1340 static yy_state_type yy_get_previous_state (void)
1341{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001342 yy_state_type yy_current_state;
1343 char *yy_cp;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001344
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001345 yy_current_state = (yy_start);
1346
1347 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1348 {
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001349 YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001350 if ( yy_accept[yy_current_state] )
1351 {
1352 (yy_last_accepting_state) = yy_current_state;
1353 (yy_last_accepting_cpos) = yy_cp;
1354 }
1355 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1356 {
1357 yy_current_state = (int) yy_def[yy_current_state];
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001358 if ( yy_current_state >= 207 )
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001359 yy_c = yy_meta[yy_c];
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001360 }
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001361 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001362 }
1363
1364 return yy_current_state;
1365}
1366
1367/* yy_try_NUL_trans - try to make a transition on the NUL character
1368 *
1369 * synopsis
1370 * next_state = yy_try_NUL_trans( current_state );
1371 */
1372 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1373{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001374 int yy_is_jam;
1375 char *yy_cp = (yy_c_buf_p);
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001376
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001377 YY_CHAR yy_c = 1;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001378 if ( yy_accept[yy_current_state] )
1379 {
1380 (yy_last_accepting_state) = yy_current_state;
1381 (yy_last_accepting_cpos) = yy_cp;
1382 }
1383 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1384 {
1385 yy_current_state = (int) yy_def[yy_current_state];
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001386 if ( yy_current_state >= 207 )
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001387 yy_c = yy_meta[yy_c];
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001388 }
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001389 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001390 yy_is_jam = (yy_current_state == 206);
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001391
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001392 return yy_is_jam ? 0 : yy_current_state;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001393}
1394
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001395#ifndef YY_NO_UNPUT
1396
1397 static void yyunput (int c, char * yy_bp )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001398{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001399 char *yy_cp;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001400
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001401 yy_cp = (yy_c_buf_p);
1402
1403 /* undo effects of setting up yytext */
1404 *yy_cp = (yy_hold_char);
1405
1406 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1407 { /* need to shift things up to make room */
1408 /* +2 for EOB chars. */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001409 int number_to_move = (yy_n_chars) + 2;
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001410 char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001411 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001412 char *source =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001413 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
1414
1415 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1416 *--dest = *--source;
1417
1418 yy_cp += (int) (dest - source);
1419 yy_bp += (int) (dest - source);
1420 YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001421 (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001422
1423 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1424 YY_FATAL_ERROR( "flex scanner push-back overflow" );
1425 }
1426
1427 *--yy_cp = (char) c;
1428
1429 (yytext_ptr) = yy_bp;
1430 (yy_hold_char) = *yy_cp;
1431 (yy_c_buf_p) = yy_cp;
1432}
1433
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001434#endif
1435
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001436#ifndef YY_NO_INPUT
1437#ifdef __cplusplus
1438 static int yyinput (void)
1439#else
1440 static int input (void)
1441#endif
1442
1443{
1444 int c;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001445
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001446 *(yy_c_buf_p) = (yy_hold_char);
1447
1448 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
1449 {
1450 /* yy_c_buf_p now points to the character we want to return.
1451 * If this occurs *before* the EOB characters, then it's a
1452 * valid NUL; if not, then we've hit the end of the buffer.
1453 */
1454 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1455 /* This was really a NUL. */
1456 *(yy_c_buf_p) = '\0';
1457
1458 else
1459 { /* need more input */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001460 int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001461 ++(yy_c_buf_p);
1462
1463 switch ( yy_get_next_buffer( ) )
1464 {
1465 case EOB_ACT_LAST_MATCH:
1466 /* This happens because yy_g_n_b()
1467 * sees that we've accumulated a
1468 * token and flags that we need to
1469 * try matching the token before
1470 * proceeding. But for input(),
1471 * there's no matching to consider.
1472 * So convert the EOB_ACT_LAST_MATCH
1473 * to EOB_ACT_END_OF_FILE.
1474 */
1475
1476 /* Reset buffer status. */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001477 yyrestart( yyin );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001478
1479 /*FALLTHROUGH*/
1480
1481 case EOB_ACT_END_OF_FILE:
1482 {
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001483 if ( yywrap( ) )
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001484 return 0;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001485
1486 if ( ! (yy_did_buffer_switch_on_eof) )
1487 YY_NEW_FILE;
1488#ifdef __cplusplus
1489 return yyinput();
1490#else
1491 return input();
1492#endif
1493 }
1494
1495 case EOB_ACT_CONTINUE_SCAN:
1496 (yy_c_buf_p) = (yytext_ptr) + offset;
1497 break;
1498 }
1499 }
1500 }
1501
1502 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
1503 *(yy_c_buf_p) = '\0'; /* preserve yytext */
1504 (yy_hold_char) = *++(yy_c_buf_p);
1505
1506 return c;
1507}
1508#endif /* ifndef YY_NO_INPUT */
1509
1510/** Immediately switch to a different input stream.
1511 * @param input_file A readable stream.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001512 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001513 * @note This function does not reset the start condition to @c INITIAL .
1514 */
1515 void yyrestart (FILE * input_file )
1516{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001517
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001518 if ( ! YY_CURRENT_BUFFER ){
1519 yyensure_buffer_stack ();
1520 YY_CURRENT_BUFFER_LVALUE =
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001521 yy_create_buffer( yyin, YY_BUF_SIZE );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001522 }
1523
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001524 yy_init_buffer( YY_CURRENT_BUFFER, input_file );
1525 yy_load_buffer_state( );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001526}
1527
1528/** Switch to a different input buffer.
1529 * @param new_buffer The new input buffer.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001530 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001531 */
1532 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
1533{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001534
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001535 /* TODO. We should be able to replace this entire function body
1536 * with
1537 * yypop_buffer_state();
1538 * yypush_buffer_state(new_buffer);
1539 */
1540 yyensure_buffer_stack ();
1541 if ( YY_CURRENT_BUFFER == new_buffer )
1542 return;
1543
1544 if ( YY_CURRENT_BUFFER )
1545 {
1546 /* Flush out information for old buffer. */
1547 *(yy_c_buf_p) = (yy_hold_char);
1548 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1549 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1550 }
1551
1552 YY_CURRENT_BUFFER_LVALUE = new_buffer;
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001553 yy_load_buffer_state( );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001554
1555 /* We don't actually know whether we did this switch during
1556 * EOF (yywrap()) processing, but the only time this flag
1557 * is looked at is after yywrap() is called, so it's safe
1558 * to go ahead and always set it.
1559 */
1560 (yy_did_buffer_switch_on_eof) = 1;
1561}
1562
1563static void yy_load_buffer_state (void)
1564{
1565 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1566 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1567 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1568 (yy_hold_char) = *(yy_c_buf_p);
1569}
1570
1571/** Allocate and initialize an input buffer state.
1572 * @param file A readable stream.
1573 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001574 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001575 * @return the allocated buffer state.
1576 */
1577 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
1578{
1579 YY_BUFFER_STATE b;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001580
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001581 b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001582 if ( ! b )
1583 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1584
Patrick Rudolphac24d3c2019-04-12 14:42:17 +02001585 b->yy_buf_size = size;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001586
1587 /* yy_ch_buf has to be 2 characters longer than the size given because
1588 * we need to put in 2 end-of-buffer characters.
1589 */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001590 b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001591 if ( ! b->yy_ch_buf )
1592 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1593
1594 b->yy_is_our_buffer = 1;
1595
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001596 yy_init_buffer( b, file );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001597
1598 return b;
1599}
1600
1601/** Destroy the buffer.
1602 * @param b a buffer created with yy_create_buffer()
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001603 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001604 */
1605 void yy_delete_buffer (YY_BUFFER_STATE b )
1606{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001607
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001608 if ( ! b )
1609 return;
1610
1611 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1612 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1613
1614 if ( b->yy_is_our_buffer )
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001615 yyfree( (void *) b->yy_ch_buf );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001616
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001617 yyfree( (void *) b );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001618}
1619
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001620/* Initializes or reinitializes a buffer.
1621 * This function is sometimes called more than once on the same buffer,
1622 * such as during a yyrestart() or at EOF.
1623 */
1624 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
1625
1626{
1627 int oerrno = errno;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001628
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001629 yy_flush_buffer( b );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001630
1631 b->yy_input_file = file;
1632 b->yy_fill_buffer = 1;
1633
1634 /* If b is the current buffer, then yy_init_buffer was _probably_
1635 * called from yyrestart() or through yy_get_next_buffer.
1636 * In that case, we don't want to reset the lineno or column.
1637 */
1638 if (b != YY_CURRENT_BUFFER){
1639 b->yy_bs_lineno = 1;
1640 b->yy_bs_column = 0;
1641 }
1642
1643 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001644
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001645 errno = oerrno;
1646}
1647
1648/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
1649 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001650 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001651 */
1652 void yy_flush_buffer (YY_BUFFER_STATE b )
1653{
1654 if ( ! b )
1655 return;
1656
1657 b->yy_n_chars = 0;
1658
1659 /* We always need two end-of-buffer characters. The first causes
1660 * a transition to the end-of-buffer state. The second causes
1661 * a jam in that state.
1662 */
1663 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1664 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1665
1666 b->yy_buf_pos = &b->yy_ch_buf[0];
1667
1668 b->yy_at_bol = 1;
1669 b->yy_buffer_status = YY_BUFFER_NEW;
1670
1671 if ( b == YY_CURRENT_BUFFER )
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001672 yy_load_buffer_state( );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001673}
1674
1675/** Pushes the new state onto the stack. The new state becomes
1676 * the current state. This function will allocate the stack
1677 * if necessary.
1678 * @param new_buffer The new state.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001679 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001680 */
1681void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
1682{
1683 if (new_buffer == NULL)
1684 return;
1685
1686 yyensure_buffer_stack();
1687
1688 /* This block is copied from yy_switch_to_buffer. */
1689 if ( YY_CURRENT_BUFFER )
1690 {
1691 /* Flush out information for old buffer. */
1692 *(yy_c_buf_p) = (yy_hold_char);
1693 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1694 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1695 }
1696
1697 /* Only push if top exists. Otherwise, replace top. */
1698 if (YY_CURRENT_BUFFER)
1699 (yy_buffer_stack_top)++;
1700 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1701
1702 /* copied from yy_switch_to_buffer. */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001703 yy_load_buffer_state( );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001704 (yy_did_buffer_switch_on_eof) = 1;
1705}
1706
1707/** Removes and deletes the top of the stack, if present.
1708 * The next element becomes the new top.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001709 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001710 */
1711void yypop_buffer_state (void)
1712{
1713 if (!YY_CURRENT_BUFFER)
1714 return;
1715
1716 yy_delete_buffer(YY_CURRENT_BUFFER );
1717 YY_CURRENT_BUFFER_LVALUE = NULL;
1718 if ((yy_buffer_stack_top) > 0)
1719 --(yy_buffer_stack_top);
1720
1721 if (YY_CURRENT_BUFFER) {
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001722 yy_load_buffer_state( );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001723 (yy_did_buffer_switch_on_eof) = 1;
1724 }
1725}
1726
1727/* Allocates the stack if it does not exist.
1728 * Guarantees space for at least one push.
1729 */
1730static void yyensure_buffer_stack (void)
1731{
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001732 yy_size_t num_to_alloc;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001733
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001734 if (!(yy_buffer_stack)) {
1735
1736 /* First allocation is just for 2 elements, since we don't know if this
1737 * scanner will even need a stack. We use 2 instead of 1 to avoid an
1738 * immediate realloc on the next call.
1739 */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001740 num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001741 (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
1742 (num_to_alloc * sizeof(struct yy_buffer_state*)
1743 );
1744 if ( ! (yy_buffer_stack) )
1745 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001746
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001747 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001748
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001749 (yy_buffer_stack_max) = num_to_alloc;
1750 (yy_buffer_stack_top) = 0;
1751 return;
1752 }
1753
1754 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1755
1756 /* Increase the buffer to prepare for a possible push. */
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001757 yy_size_t grow_size = 8 /* arbitrary grow size */;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001758
1759 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1760 (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
1761 ((yy_buffer_stack),
1762 num_to_alloc * sizeof(struct yy_buffer_state*)
1763 );
1764 if ( ! (yy_buffer_stack) )
1765 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1766
1767 /* zero only the new slots.*/
1768 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1769 (yy_buffer_stack_max) = num_to_alloc;
1770 }
1771}
1772
1773/** Setup the input buffer state to scan directly from a user-specified character buffer.
1774 * @param base the character buffer
1775 * @param size the size in bytes of the character buffer
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001776 *
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001777 * @return the newly allocated buffer state object.
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001778 */
1779YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
1780{
1781 YY_BUFFER_STATE b;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001782
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001783 if ( size < 2 ||
1784 base[size-2] != YY_END_OF_BUFFER_CHAR ||
1785 base[size-1] != YY_END_OF_BUFFER_CHAR )
1786 /* They forgot to leave room for the EOB's. */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001787 return NULL;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001788
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001789 b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001790 if ( ! b )
1791 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1792
Patrick Rudolphac24d3c2019-04-12 14:42:17 +02001793 b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001794 b->yy_buf_pos = b->yy_ch_buf = base;
1795 b->yy_is_our_buffer = 0;
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001796 b->yy_input_file = NULL;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001797 b->yy_n_chars = b->yy_buf_size;
1798 b->yy_is_interactive = 0;
1799 b->yy_at_bol = 1;
1800 b->yy_fill_buffer = 0;
1801 b->yy_buffer_status = YY_BUFFER_NEW;
1802
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001803 yy_switch_to_buffer( b );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001804
1805 return b;
1806}
1807
1808/** Setup the input buffer state to scan a string. The next call to yylex() will
1809 * scan from a @e copy of @a str.
1810 * @param yystr a NUL-terminated string to scan
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001811 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001812 * @return the newly allocated buffer state object.
1813 * @note If you want to scan bytes that may contain NUL values, then use
1814 * yy_scan_bytes() instead.
1815 */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001816YY_BUFFER_STATE yy_scan_string (const char * yystr )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001817{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001818
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001819 return yy_scan_bytes( yystr, (int) strlen(yystr) );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001820}
1821
1822/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
1823 * scan from a @e copy of @a bytes.
Patrick Georgi8d313682010-05-05 13:12:42 +00001824 * @param yybytes the byte buffer to scan
1825 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001826 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001827 * @return the newly allocated buffer state object.
1828 */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001829YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001830{
1831 YY_BUFFER_STATE b;
1832 char *buf;
1833 yy_size_t n;
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001834 int i;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001835
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001836 /* Get memory for full buffer, including space for trailing EOB's. */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001837 n = (yy_size_t) (_yybytes_len + 2);
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001838 buf = (char *) yyalloc( n );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001839 if ( ! buf )
1840 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
1841
1842 for ( i = 0; i < _yybytes_len; ++i )
1843 buf[i] = yybytes[i];
1844
1845 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1846
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001847 b = yy_scan_buffer( buf, n );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001848 if ( ! b )
1849 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
1850
1851 /* It's okay to grow etc. this buffer, and we should throw it
1852 * away when we're done.
1853 */
1854 b->yy_is_our_buffer = 1;
1855
1856 return b;
1857}
1858
1859#ifndef YY_EXIT_FAILURE
1860#define YY_EXIT_FAILURE 2
1861#endif
1862
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001863static void yynoreturn yy_fatal_error (const char* msg )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001864{
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001865 fprintf( stderr, "%s\n", msg );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001866 exit( YY_EXIT_FAILURE );
1867}
1868
1869/* Redefine yyless() so it works in section 3 code. */
1870
1871#undef yyless
1872#define yyless(n) \
1873 do \
1874 { \
1875 /* Undo effects of setting up yytext. */ \
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001876 int yyless_macro_arg = (n); \
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001877 YY_LESS_LINENO(yyless_macro_arg);\
1878 yytext[yyleng] = (yy_hold_char); \
1879 (yy_c_buf_p) = yytext + yyless_macro_arg; \
1880 (yy_hold_char) = *(yy_c_buf_p); \
1881 *(yy_c_buf_p) = '\0'; \
1882 yyleng = yyless_macro_arg; \
1883 } \
1884 while ( 0 )
1885
1886/* Accessor methods (get/set functions) to struct members. */
1887
1888/** Get the current line number.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001889 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001890 */
1891int yyget_lineno (void)
1892{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001893
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001894 return yylineno;
1895}
1896
1897/** Get the input stream.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001898 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001899 */
1900FILE *yyget_in (void)
1901{
1902 return yyin;
1903}
1904
1905/** Get the output stream.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001906 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001907 */
1908FILE *yyget_out (void)
1909{
1910 return yyout;
1911}
1912
1913/** Get the length of the current token.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001914 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001915 */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001916int yyget_leng (void)
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001917{
1918 return yyleng;
1919}
1920
1921/** Get the current token.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001922 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001923 */
1924
1925char *yyget_text (void)
1926{
1927 return yytext;
1928}
1929
1930/** Set the current line number.
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001931 * @param _line_number line number
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001932 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001933 */
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001934void yyset_lineno (int _line_number )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001935{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001936
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001937 yylineno = _line_number;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001938}
1939
1940/** Set the input stream. This does not discard the current
1941 * input buffer.
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001942 * @param _in_str A readable stream.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001943 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001944 * @see yy_switch_to_buffer
1945 */
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001946void yyset_in (FILE * _in_str )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001947{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001948 yyin = _in_str ;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001949}
1950
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001951void yyset_out (FILE * _out_str )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001952{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001953 yyout = _out_str ;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001954}
1955
1956int yyget_debug (void)
1957{
1958 return yy_flex_debug;
1959}
1960
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001961void yyset_debug (int _bdebug )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001962{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001963 yy_flex_debug = _bdebug ;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001964}
1965
1966static int yy_init_globals (void)
1967{
1968 /* Initialization is the same as for the non-reentrant scanner.
1969 * This function is called from yylex_destroy(), so don't allocate here.
1970 */
1971
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001972 (yy_buffer_stack) = NULL;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001973 (yy_buffer_stack_top) = 0;
1974 (yy_buffer_stack_max) = 0;
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001975 (yy_c_buf_p) = NULL;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001976 (yy_init) = 0;
1977 (yy_start) = 0;
1978
1979/* Defined in main.c */
1980#ifdef YY_STDINIT
1981 yyin = stdin;
1982 yyout = stdout;
1983#else
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001984 yyin = NULL;
1985 yyout = NULL;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001986#endif
1987
1988 /* For future reference: Set errno on error, since we are called by
1989 * yylex_init()
1990 */
1991 return 0;
1992}
1993
1994/* yylex_destroy is for both reentrant and non-reentrant scanners. */
1995int yylex_destroy (void)
1996{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001997
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001998 /* Pop the buffer stack, destroying each element. */
1999 while(YY_CURRENT_BUFFER){
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00002000 yy_delete_buffer( YY_CURRENT_BUFFER );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002001 YY_CURRENT_BUFFER_LVALUE = NULL;
2002 yypop_buffer_state();
2003 }
2004
2005 /* Destroy the stack itself. */
2006 yyfree((yy_buffer_stack) );
2007 (yy_buffer_stack) = NULL;
2008
2009 /* Reset the globals. This is important in a non-reentrant scanner so the next time
2010 * yylex() is called, initialization will occur. */
2011 yy_init_globals( );
2012
2013 return 0;
2014}
2015
2016/*
2017 * Internal utility routines.
2018 */
2019
2020#ifndef yytext_ptr
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00002021static void yy_flex_strncpy (char* s1, const char * s2, int n )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002022{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06002023
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07002024 int i;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002025 for ( i = 0; i < n; ++i )
2026 s1[i] = s2[i];
2027}
2028#endif
2029
2030#ifdef YY_NEED_STRLEN
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00002031static int yy_flex_strlen (const char * s )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002032{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07002033 int n;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002034 for ( n = 0; s[n]; ++n )
2035 ;
2036
2037 return n;
2038}
2039#endif
2040
2041void *yyalloc (yy_size_t size )
2042{
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08002043 return malloc(size);
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002044}
2045
2046void *yyrealloc (void * ptr, yy_size_t size )
2047{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06002048
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002049 /* The cast to (char *) in the following accommodates both
2050 * implementations that use char* generic pointers, and those
2051 * that use void* generic pointers. It works with the latter
2052 * because both ANSI C and C++ allow castless assignment from
2053 * any pointer type to void*, and deal with argument conversions
2054 * as though doing an assignment.
2055 */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08002056 return realloc(ptr, size);
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002057}
2058
2059void yyfree (void * ptr )
2060{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07002061 free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002062}
2063
2064#define YYTABLES_NAME "yytables"
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07002065