blob: 647ec3d796176fa8d83cb34a219038dbeb7cdbf5 [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;
Angel Pons437da712021-09-03 16:51:40 +0200352#define YY_NUM_RULES 50
353#define YY_END_OF_BUFFER 51
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 };
Angel Pons437da712021-09-03 16:51:40 +0200361static const flex_int16_t yy_accept[210] =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000362 { 0,
Angel Pons437da712021-09-03 16:51:40 +0200363 0, 0, 51, 49, 1, 3, 49, 49, 49, 44,
364 44, 41, 45, 49, 45, 45, 45, 45, 45, 49,
365 49, 49, 49, 49, 49, 49, 49, 49, 49, 42,
366 49, 1, 3, 49, 0, 49, 49, 0, 2, 44,
367 45, 49, 49, 49, 9, 49, 49, 45, 49, 49,
368 49, 49, 49, 49, 49, 49, 49, 49, 34, 49,
369 49, 49, 49, 49, 15, 49, 49, 49, 49, 49,
370 49, 49, 49, 49, 48, 48, 49, 0, 43, 49,
371 49, 49, 25, 49, 49, 33, 38, 49, 49, 49,
372 49, 49, 22, 49, 49, 32, 49, 49, 49, 16,
Sven Schnelle750edfd2011-03-01 21:43:57 +0000373
Angel Pons437da712021-09-03 16:51:40 +0200374 49, 19, 21, 49, 8, 49, 49, 29, 49, 30,
375 7, 49, 0, 46, 49, 4, 49, 49, 49, 49,
376 49, 49, 31, 49, 49, 49, 49, 49, 28, 49,
377 49, 49, 49, 49, 47, 47, 6, 49, 49, 49,
378 12, 49, 49, 49, 49, 49, 23, 49, 49, 14,
379 49, 49, 49, 49, 5, 26, 49, 49, 17, 49,
380 20, 49, 13, 49, 49, 49, 49, 49, 27, 36,
381 49, 49, 49, 49, 49, 49, 49, 49, 49, 10,
382 49, 49, 49, 49, 11, 49, 18, 49, 49, 49,
383 49, 35, 49, 49, 49, 24, 49, 49, 37, 49,
Duncan Laurie47b7b342020-05-15 15:39:08 -0700384
Angel Pons437da712021-09-03 16:51:40 +0200385 49, 49, 49, 49, 49, 40, 49, 39, 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
Angel Pons437da712021-09-03 16:51:40 +0200428static const flex_int16_t yy_base[217] =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000429 { 0,
Angel Pons437da712021-09-03 16:51:40 +0200430 0, 0, 282, 0, 279, 283, 277, 39, 43, 40,
431 241, 0, 46, 264, 56, 60, 64, 67, 72, 56,
432 252, 74, 259, 39, 70, 59, 254, 77, 241, 0,
433 0, 271, 283, 108, 267, 112, 116, 268, 283, 0,
434 113, 116, 255, 244, 0, 243, 232, 122, 239, 234,
435 244, 242, 246, 233, 235, 239, 239, 233, 239, 224,
436 224, 225, 227, 229, 0, 216, 224, 218, 218, 117,
437 228, 220, 226, 87, 0, 283, 139, 238, 0, 231,
438 224, 210, 223, 213, 220, 0, 0, 210, 216, 213,
439 204, 212, 0, 210, 200, 0, 204, 208, 198, 0,
Patrick Georgi8d313682010-05-05 13:12:42 +0000440
Angel Pons437da712021-09-03 16:51:40 +0200441 201, 0, 0, 207, 0, 199, 198, 0, 189, 0,
442 0, 216, 215, 0, 186, 0, 199, 198, 191, 195,
443 185, 181, 0, 191, 179, 185, 190, 191, 0, 178,
444 185, 172, 175, 164, 0, 283, 0, 176, 180, 172,
445 0, 171, 173, 169, 171, 176, 0, 160, 165, 0,
446 158, 158, 157, 154, 0, 0, 166, 168, 0, 152,
447 169, 155, 0, 162, 166, 147, 147, 154, 0, 0,
448 153, 145, 144, 68, 154, 140, 150, 140, 132, 0,
449 136, 130, 128, 133, 0, 122, 0, 116, 122, 125,
450 117, 0, 132, 113, 126, 0, 120, 127, 0, 104,
Duncan Laurie47b7b342020-05-15 15:39:08 -0700451
Angel Pons437da712021-09-03 16:51:40 +0200452 106, 94, 78, 65, 37, 0, 31, 0, 283, 42,
453 158, 160, 162, 164, 166, 168
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000454 } ;
455
Angel Pons437da712021-09-03 16:51:40 +0200456static const flex_int16_t yy_def[217] =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000457 { 0,
Angel Pons437da712021-09-03 16:51:40 +0200458 209, 1, 209, 210, 209, 209, 210, 211, 212, 210,
459 10, 210, 10, 210, 10, 10, 10, 10, 10, 210,
460 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
461 210, 209, 209, 211, 213, 214, 212, 215, 209, 10,
462 10, 10, 210, 210, 210, 210, 210, 10, 210, 210,
463 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
464 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
465 210, 210, 210, 210, 210, 209, 214, 216, 42, 210,
466 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
467 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
Patrick Georgi8d313682010-05-05 13:12:42 +0000468
Angel Pons437da712021-09-03 16:51:40 +0200469 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
470 210, 210, 209, 210, 210, 210, 210, 210, 210, 210,
471 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
472 210, 210, 210, 210, 210, 209, 210, 210, 210, 210,
473 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
474 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
475 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
476 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
477 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
478 210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
Duncan Laurie47b7b342020-05-15 15:39:08 -0700479
Angel Pons437da712021-09-03 16:51:40 +0200480 210, 210, 210, 210, 210, 210, 210, 210, 0, 209,
481 209, 209, 209, 209, 209, 209
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000482 } ;
483
Angel Pons437da712021-09-03 16:51:40 +0200484static const flex_int16_t yy_nxt[324] =
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,
Angel Pons437da712021-09-03 16:51:40 +0200490 35, 35, 31, 36, 38, 39, 40, 40, 40, 208,
Martin Roth29955882021-07-10 16:37:39 -0600491 41, 41, 41, 41, 41, 62, 41, 41, 41, 41,
Angel Pons437da712021-09-03 16:51:40 +0200492 41, 41, 41, 41, 41, 63, 41, 41, 41, 207,
Martin Roth29955882021-07-10 16:37:39 -0600493 41, 41, 41, 41, 41, 41, 54, 67, 41, 41,
Angel Pons437da712021-09-03 16:51:40 +0200494 41, 44, 57, 46, 48, 55, 68, 181, 45, 47,
495 69, 64, 49, 206, 51, 50, 52, 65, 205, 66,
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000496
Angel Pons437da712021-09-03 16:51:40 +0200497 182, 58, 59, 71, 110, 60, 72, 111, 53, 35,
498 35, 73, 75, 78, 78, 204, 31, 38, 39, 41,
499 41, 41, 79, 79, 79, 203, 79, 79, 41, 41,
500 41, 202, 79, 79, 79, 79, 79, 79, 105, 106,
501 78, 78, 201, 112, 200, 199, 198, 197, 196, 195,
502 194, 193, 192, 191, 190, 189, 188, 84, 34, 34,
Martin Roth29955882021-07-10 16:37:39 -0600503 37, 37, 35, 35, 77, 77, 38, 38, 78, 78,
Angel Pons437da712021-09-03 16:51:40 +0200504 187, 186, 185, 184, 183, 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
Angel Pons437da712021-09-03 16:51:40 +0200508 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, 116,
512 115, 114, 113, 109, 108, 107, 104, 103, 102, 101,
513 100, 99, 98, 97, 96, 95, 94, 93, 92, 91,
514 90, 89, 88, 87, 86, 85, 83, 82, 81, 80,
515 39, 76, 32, 74, 70, 61, 56, 43, 42, 33,
516 32, 209, 3, 209, 209, 209, 209, 209, 209, 209,
517 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
Duncan Laurie47b7b342020-05-15 15:39:08 -0700518
Angel Pons437da712021-09-03 16:51:40 +0200519 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
520 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
521 209, 209, 209
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000522 } ;
523
Angel Pons437da712021-09-03 16:51:40 +0200524static const flex_int16_t yy_chk[324] =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000525 { 0,
526 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
527 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
528 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600529 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
Angel Pons437da712021-09-03 16:51:40 +0200530 8, 8, 210, 8, 9, 9, 10, 10, 10, 207,
Martin Roth29955882021-07-10 16:37:39 -0600531 10, 10, 13, 13, 13, 24, 10, 10, 10, 10,
Angel Pons437da712021-09-03 16:51:40 +0200532 10, 10, 15, 15, 15, 24, 16, 16, 16, 205,
Martin Roth29955882021-07-10 16:37:39 -0600533 17, 17, 17, 18, 18, 18, 20, 26, 19, 19,
Angel Pons437da712021-09-03 16:51:40 +0200534 19, 15, 22, 16, 17, 20, 26, 174, 15, 16,
535 26, 25, 17, 204, 18, 17, 19, 25, 203, 25,
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000536
Angel Pons437da712021-09-03 16:51:40 +0200537 174, 22, 22, 28, 74, 22, 28, 74, 19, 34,
538 34, 28, 34, 36, 36, 202, 36, 37, 37, 41,
539 41, 41, 42, 42, 42, 201, 42, 42, 48, 48,
540 48, 200, 42, 42, 42, 42, 42, 42, 70, 70,
541 77, 77, 198, 77, 197, 195, 194, 193, 191, 190,
542 189, 188, 186, 184, 183, 182, 181, 48, 211, 211,
543 212, 212, 213, 213, 214, 214, 215, 215, 216, 216,
544 179, 178, 177, 176, 175, 173, 172, 171, 168, 167,
545 166, 165, 164, 162, 161, 160, 158, 157, 154, 153,
546 152, 151, 149, 148, 146, 145, 144, 143, 142, 140,
Sven Schnelle750edfd2011-03-01 21:43:57 +0000547
Angel Pons437da712021-09-03 16:51:40 +0200548 139, 138, 134, 133, 132, 131, 130, 128, 127, 126,
549 125, 124, 122, 121, 120, 119, 118, 117, 115, 113,
550 112, 109, 107, 106, 104, 101, 99, 98, 97, 95,
551 94, 92, 91, 90, 89, 88, 85, 84, 83, 82,
552 81, 80, 78, 73, 72, 71, 69, 68, 67, 66,
553 64, 63, 62, 61, 60, 59, 58, 57, 56, 55,
554 54, 53, 52, 51, 50, 49, 47, 46, 44, 43,
555 38, 35, 32, 29, 27, 23, 21, 14, 11, 7,
556 5, 3, 209, 209, 209, 209, 209, 209, 209, 209,
557 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
Duncan Laurie47b7b342020-05-15 15:39:08 -0700558
Angel Pons437da712021-09-03 16:51:40 +0200559 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
560 209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
561 209, 209, 209
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000562 } ;
563
564static yy_state_type yy_last_accepting_state;
565static char *yy_last_accepting_cpos;
566
567extern int yy_flex_debug;
568int yy_flex_debug = 0;
569
570/* The intent behind this definition is that it'll catch
571 * any uses of REJECT which flex missed.
572 */
573#define REJECT reject_used_but_not_detected
574#define yymore() yymore_used_but_not_detected
575#define YY_MORE_ADJ 0
576#define YY_RESTORE_YY_MORE_OFFSET
577char *yytext;
Duncan Laurie47b7b342020-05-15 15:39:08 -0700578/* sconfig, coreboot device tree compiler */
579/* SPDX-License-Identifier: GPL-2.0-only */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000580
581#include "sconfig.tab.h"
582
583int linenum = 0;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000584
585#define INITIAL 0
586
587#ifndef YY_NO_UNISTD_H
588/* Special case for "unistd.h", since it is non-ANSI. We include it way
589 * down here because we want the user's section 1 to have been scanned first.
590 * The user has a chance to override it with an option.
591 */
592#include <unistd.h>
593#endif
594
595#ifndef YY_EXTRA_TYPE
596#define YY_EXTRA_TYPE void *
597#endif
598
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000599static int yy_init_globals ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000600
601/* Accessor methods to globals.
602 These are made visible to non-reentrant scanners for convenience. */
603
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000604int yylex_destroy ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000605
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000606int yyget_debug ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000607
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000608void yyset_debug ( int debug_flag );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000609
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000610YY_EXTRA_TYPE yyget_extra ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000611
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000612void yyset_extra ( YY_EXTRA_TYPE user_defined );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000613
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000614FILE *yyget_in ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000615
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000616void yyset_in ( FILE * _in_str );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000617
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000618FILE *yyget_out ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000619
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000620void yyset_out ( FILE * _out_str );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000621
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000622 int yyget_leng ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000623
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000624char *yyget_text ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000625
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000626int yyget_lineno ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000627
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000628void yyset_lineno ( int _line_number );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000629
630/* Macros after this point can all be overridden by user definitions in
631 * section 1.
632 */
633
634#ifndef YY_SKIP_YYWRAP
635#ifdef __cplusplus
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000636extern "C" int yywrap ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000637#else
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000638extern int yywrap ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000639#endif
640#endif
641
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700642#ifndef YY_NO_UNPUT
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600643
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000644 static void yyunput ( int c, char *buf_ptr );
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600645
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700646#endif
647
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000648#ifndef yytext_ptr
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000649static void yy_flex_strncpy ( char *, const char *, int );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000650#endif
651
652#ifdef YY_NEED_STRLEN
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000653static int yy_flex_strlen ( const char * );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000654#endif
655
656#ifndef YY_NO_INPUT
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000657#ifdef __cplusplus
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000658static int yyinput ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000659#else
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000660static int input ( void );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000661#endif
662
663#endif
664
665/* Amount of stuff to slurp up with each read. */
666#ifndef YY_READ_BUF_SIZE
Patrick Georgi8d313682010-05-05 13:12:42 +0000667#ifdef __ia64__
668/* On IA-64, the buffer size is 16k, not 8k */
669#define YY_READ_BUF_SIZE 16384
670#else
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000671#define YY_READ_BUF_SIZE 8192
Patrick Georgi8d313682010-05-05 13:12:42 +0000672#endif /* __ia64__ */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000673#endif
674
675/* Copy whatever the last rule matched to the standard output. */
676#ifndef ECHO
677/* This used to be an fputs(), but since the string might contain NUL's,
678 * we now use fwrite().
679 */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800680#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000681#endif
682
683/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
684 * is returned in "result".
685 */
686#ifndef YY_INPUT
687#define YY_INPUT(buf,result,max_size) \
688 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
689 { \
690 int c = '*'; \
Patrick Rudolphac24d3c2019-04-12 14:42:17 +0200691 int n; \
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000692 for ( n = 0; n < max_size && \
693 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
694 buf[n] = (char) c; \
695 if ( c == '\n' ) \
696 buf[n++] = (char) c; \
697 if ( c == EOF && ferror( yyin ) ) \
698 YY_FATAL_ERROR( "input in flex scanner failed" ); \
699 result = n; \
700 } \
701 else \
702 { \
703 errno=0; \
Patrick Rudolphac24d3c2019-04-12 14:42:17 +0200704 while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000705 { \
706 if( errno != EINTR) \
707 { \
708 YY_FATAL_ERROR( "input in flex scanner failed" ); \
709 break; \
710 } \
711 errno=0; \
712 clearerr(yyin); \
713 } \
714 }\
715\
716
717#endif
718
719/* No semi-colon after return; correct usage is to write "yyterminate();" -
720 * we don't want an extra ';' after the "return" because that will cause
721 * some compilers to complain about unreachable statements.
722 */
723#ifndef yyterminate
724#define yyterminate() return YY_NULL
725#endif
726
727/* Number of entries by which start-condition stack grows. */
728#ifndef YY_START_STACK_INCR
729#define YY_START_STACK_INCR 25
730#endif
731
732/* Report a fatal error. */
733#ifndef YY_FATAL_ERROR
734#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
735#endif
736
737/* end tables serialization structures and prototypes */
738
739/* Default declaration of generated scanner - a define so the user can
740 * easily add parameters.
741 */
742#ifndef YY_DECL
743#define YY_DECL_IS_OURS 1
744
745extern int yylex (void);
746
747#define YY_DECL int yylex (void)
748#endif /* !YY_DECL */
749
750/* Code executed at the beginning of each rule, after yytext and yyleng
751 * have been set up.
752 */
753#ifndef YY_USER_ACTION
754#define YY_USER_ACTION
755#endif
756
757/* Code executed at the end of each rule. */
758#ifndef YY_BREAK
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700759#define YY_BREAK /*LINTED*/break;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000760#endif
761
762#define YY_RULE_SETUP \
763 YY_USER_ACTION
764
765/** The main scanner function which does all the work.
766 */
767YY_DECL
768{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700769 yy_state_type yy_current_state;
770 char *yy_cp, *yy_bp;
771 int yy_act;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -0600772
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000773 if ( !(yy_init) )
774 {
775 (yy_init) = 1;
776
777#ifdef YY_USER_INIT
778 YY_USER_INIT;
779#endif
780
781 if ( ! (yy_start) )
782 (yy_start) = 1; /* first start state */
783
784 if ( ! yyin )
785 yyin = stdin;
786
787 if ( ! yyout )
788 yyout = stdout;
789
790 if ( ! YY_CURRENT_BUFFER ) {
791 yyensure_buffer_stack ();
792 YY_CURRENT_BUFFER_LVALUE =
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000793 yy_create_buffer( yyin, YY_BUF_SIZE );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000794 }
795
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000796 yy_load_buffer_state( );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000797 }
798
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700799 {
800
801 while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000802 {
803 yy_cp = (yy_c_buf_p);
804
805 /* Support of yytext. */
806 *yy_cp = (yy_hold_char);
807
808 /* yy_bp points to the position in yy_ch_buf of the start of
809 * the current run.
810 */
811 yy_bp = yy_cp;
812
813 yy_current_state = (yy_start);
814yy_match:
815 do
816 {
Stefan Reinauer2e78aa52016-05-07 01:11:14 -0700817 YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000818 if ( yy_accept[yy_current_state] )
819 {
820 (yy_last_accepting_state) = yy_current_state;
821 (yy_last_accepting_cpos) = yy_cp;
822 }
823 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
824 {
825 yy_current_state = (int) yy_def[yy_current_state];
Angel Pons437da712021-09-03 16:51:40 +0200826 if ( yy_current_state >= 210 )
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000827 yy_c = yy_meta[yy_c];
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000828 }
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +0000829 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000830 ++yy_cp;
831 }
Angel Pons437da712021-09-03 16:51:40 +0200832 while ( yy_base[yy_current_state] != 283 );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000833
834yy_find_action:
835 yy_act = yy_accept[yy_current_state];
836 if ( yy_act == 0 )
837 { /* have to back up */
838 yy_cp = (yy_last_accepting_cpos);
839 yy_current_state = (yy_last_accepting_state);
840 yy_act = yy_accept[yy_current_state];
841 }
842
843 YY_DO_BEFORE_ACTION;
844
845do_action: /* This label is used only to access EOF actions. */
846
847 switch ( yy_act )
848 { /* beginning of action switch */
849 case 0: /* must back up */
850 /* undo the effects of YY_DO_BEFORE_ACTION */
851 *yy_cp = (yy_hold_char);
852 yy_cp = (yy_last_accepting_cpos);
853 yy_current_state = (yy_last_accepting_state);
854 goto yy_find_action;
855
856case 1:
857YY_RULE_SETUP
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000858{}
859 YY_BREAK
860case 2:
861/* rule 2 can match eol */
862YY_RULE_SETUP
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000863{linenum++;}
864 YY_BREAK
865case 3:
866/* rule 3 can match eol */
867YY_RULE_SETUP
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000868{linenum++;}
869 YY_BREAK
870case 4:
871YY_RULE_SETUP
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000872{return(CHIP);}
873 YY_BREAK
874case 5:
875YY_RULE_SETUP
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000876{return(DEVICE);}
877 YY_BREAK
878case 6:
879YY_RULE_SETUP
Nico Huber8e1ea522020-06-03 10:20:07 -0700880{return(ALIAS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000881 YY_BREAK
882case 7:
883YY_RULE_SETUP
Nico Huber8e1ea522020-06-03 10:20:07 -0700884{return(REFERENCE);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000885 YY_BREAK
886case 8:
887YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700888{return(REFERENCE);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000889 YY_BREAK
890case 9:
891YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700892{return(ASSOCIATION);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000893 YY_BREAK
894case 10:
895YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700896{return(REGISTER);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000897 YY_BREAK
898case 11:
899YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700900{return(FW_CONFIG_TABLE);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000901 YY_BREAK
902case 12:
903YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700904{return(FW_CONFIG_FIELD);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000905 YY_BREAK
906case 13:
907YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700908{return(FW_CONFIG_OPTION);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000909 YY_BREAK
910case 14:
911YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700912{return(FW_CONFIG_PROBE);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000913 YY_BREAK
914case 15:
915YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700916{yylval.number=1; return(BOOL);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000917 YY_BREAK
918case 16:
919YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700920{yylval.number=0; return(BOOL);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000921 YY_BREAK
922case 17:
923YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700924{yylval.number=3; return(STATUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000925 YY_BREAK
926case 18:
927YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700928{yylval.number=5; return(STATUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000929 YY_BREAK
930case 19:
931YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700932{yylval.number=PCI; return(BUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000933 YY_BREAK
934case 20:
935YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700936{yylval.number=IOAPIC; return(BUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000937 YY_BREAK
938case 21:
939YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700940{yylval.number=PNP; return(BUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000941 YY_BREAK
942case 22:
943YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700944{yylval.number=I2C; return(BUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000945 YY_BREAK
946case 23:
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000947YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700948{yylval.number=APIC; return(BUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000949 YY_BREAK
950case 24:
951YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700952{yylval.number=CPU_CLUSTER; return(BUS);}
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +0000953 YY_BREAK
954case 25:
Sven Schnelle750edfd2011-03-01 21:43:57 +0000955YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700956{yylval.number=CPU; return(BUS);}
Sven Schnelle750edfd2011-03-01 21:43:57 +0000957 YY_BREAK
958case 26:
959YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700960{yylval.number=DOMAIN; return(BUS);}
Sven Schnelle750edfd2011-03-01 21:43:57 +0000961 YY_BREAK
962case 27:
Patrick Georgi2b108a42012-07-13 12:02:44 +0200963YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700964{yylval.number=GENERIC; return(BUS);}
Patrick Georgi2b108a42012-07-13 12:02:44 +0200965 YY_BREAK
966case 28:
Aaron Durbinffda804b2014-09-03 12:40:15 -0500967YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700968{yylval.number=MMIO; return(BUS);}
Aaron Durbinffda804b2014-09-03 12:40:15 -0500969 YY_BREAK
970case 29:
Duncan Laurie4650f5b2016-05-07 20:01:34 -0700971YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700972{yylval.number=SPI; return(BUS);}
Duncan Laurie4650f5b2016-05-07 20:01:34 -0700973 YY_BREAK
974case 30:
Sven Schnelle0fa50a12012-06-21 22:19:48 +0200975YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -0700976{yylval.number=USB; return(BUS);}
Sven Schnelle0fa50a12012-06-21 22:19:48 +0200977 YY_BREAK
Duncan Laurie4650f5b2016-05-07 20:01:34 -0700978case 31:
Duncan Laurie4650f5b2016-05-07 20:01:34 -0700979YY_RULE_SETUP
Martin Roth29955882021-07-10 16:37:39 -0600980{yylval.number=GPIO; return(BUS);}
Duncan Laurie4650f5b2016-05-07 20:01:34 -0700981 YY_BREAK
982case 32:
Furquan Shaikhe6700292017-02-11 00:50:38 -0800983YY_RULE_SETUP
Martin Roth29955882021-07-10 16:37:39 -0600984{yylval.number=IRQ; return(RESOURCE);}
Furquan Shaikhe6700292017-02-11 00:50:38 -0800985 YY_BREAK
986case 33:
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800987YY_RULE_SETUP
Martin Roth29955882021-07-10 16:37:39 -0600988{yylval.number=DRQ; return(RESOURCE);}
Justin TerAvestca2ed9f2018-01-17 16:36:30 -0800989 YY_BREAK
990case 34:
Duncan Lauriebae9f852018-05-07 14:18:13 -0700991YY_RULE_SETUP
Martin Roth29955882021-07-10 16:37:39 -0600992{yylval.number=IO; return(RESOURCE);}
Duncan Lauriebae9f852018-05-07 14:18:13 -0700993 YY_BREAK
994case 35:
Hung-Te Lin936dbe12018-09-10 10:51:26 +0800995YY_RULE_SETUP
Martin Roth29955882021-07-10 16:37:39 -0600996{return(IOAPIC_IRQ);}
Hung-Te Lin936dbe12018-09-10 10:51:26 +0800997 YY_BREAK
998case 36:
Patrick Rudolphac24d3c2019-04-12 14:42:17 +0200999YY_RULE_SETUP
Martin Roth29955882021-07-10 16:37:39 -06001000{return(INHERIT);}
Patrick Rudolphac24d3c2019-04-12 14:42:17 +02001001 YY_BREAK
1002case 37:
Raul E Rangel3f3f53c2020-05-06 11:47:04 -06001003YY_RULE_SETUP
Martin Roth29955882021-07-10 16:37:39 -06001004{return(SUBSYSTEMID);}
Raul E Rangel3f3f53c2020-05-06 11:47:04 -06001005 YY_BREAK
1006case 38:
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001007YY_RULE_SETUP
Martin Roth29955882021-07-10 16:37:39 -06001008{return(END);}
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001009 YY_BREAK
Raul E Rangel3f3f53c2020-05-06 11:47:04 -06001010case 39:
Raul E Rangel3f3f53c2020-05-06 11:47:04 -06001011YY_RULE_SETUP
Martin Roth29955882021-07-10 16:37:39 -06001012{return(SLOT_DESC);}
Raul E Rangel3f3f53c2020-05-06 11:47:04 -06001013 YY_BREAK
1014case 40:
Sven Schnelle0fa50a12012-06-21 22:19:48 +02001015YY_RULE_SETUP
Angel Pons437da712021-09-03 16:51:40 +02001016{return(SMBIOS_DEV_INFO);}
Sven Schnelle0fa50a12012-06-21 22:19:48 +02001017 YY_BREAK
Raul E Rangel3f3f53c2020-05-06 11:47:04 -06001018case 41:
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001019YY_RULE_SETUP
Angel Pons437da712021-09-03 16:51:40 +02001020{return(EQUALS);}
Duncan Laurie47b7b342020-05-15 15:39:08 -07001021 YY_BREAK
1022case 42:
Duncan Laurie47b7b342020-05-15 15:39:08 -07001023YY_RULE_SETUP
Angel Pons437da712021-09-03 16:51:40 +02001024{return(PIPE);}
Duncan Laurie47b7b342020-05-15 15:39:08 -07001025 YY_BREAK
1026case 43:
Duncan Laurie47b7b342020-05-15 15:39:08 -07001027YY_RULE_SETUP
Martin Roth29955882021-07-10 16:37:39 -06001028{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(NUMBER);}
Duncan Laurie47b7b342020-05-15 15:39:08 -07001029 YY_BREAK
1030case 44:
1031YY_RULE_SETUP
Duncan Lauriee335c2e2020-07-29 16:28:43 -07001032{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(NUMBER);}
Duncan Laurie47b7b342020-05-15 15:39:08 -07001033 YY_BREAK
1034case 45:
Nico Huber8e1ea522020-06-03 10:20:07 -07001035YY_RULE_SETUP
Angel Pons437da712021-09-03 16:51:40 +02001036{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(NUMBER);}
Duncan Lauriee335c2e2020-07-29 16:28:43 -07001037 YY_BREAK
Martin Roth29955882021-07-10 16:37:39 -06001038case 46:
Martin Roth29955882021-07-10 16:37:39 -06001039YY_RULE_SETUP
Angel Pons437da712021-09-03 16:51:40 +02001040{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(PCIINT);}
Martin Roth29955882021-07-10 16:37:39 -06001041 YY_BREAK
1042case 47:
1043/* rule 47 can match eol */
1044YY_RULE_SETUP
1045{yylval.string = malloc(yyleng-1); strncpy(yylval.string, yytext+1, yyleng-2); yylval.string[yyleng-2]='\0'; return(STRING);}
1046 YY_BREAK
Duncan Lauriee335c2e2020-07-29 16:28:43 -07001047case 48:
Angel Pons437da712021-09-03 16:51:40 +02001048/* rule 48 can match eol */
1049YY_RULE_SETUP
1050{yylval.string = malloc(yyleng-1); strncpy(yylval.string, yytext+1, yyleng-2); yylval.string[yyleng-2]='\0'; return(STRING);}
1051 YY_BREAK
1052case 49:
Nico Huber8e1ea522020-06-03 10:20:07 -07001053YY_RULE_SETUP
1054{yylval.string = malloc(yyleng+1); strncpy(yylval.string, yytext, yyleng); yylval.string[yyleng]='\0'; return(STRING);}
1055 YY_BREAK
Angel Pons437da712021-09-03 16:51:40 +02001056case 50:
Duncan Laurie47b7b342020-05-15 15:39:08 -07001057YY_RULE_SETUP
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001058ECHO;
1059 YY_BREAK
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001060case YY_STATE_EOF(INITIAL):
1061 yyterminate();
1062
1063 case YY_END_OF_BUFFER:
1064 {
1065 /* Amount of text matched not including the EOB char. */
1066 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1067
1068 /* Undo the effects of YY_DO_BEFORE_ACTION. */
1069 *yy_cp = (yy_hold_char);
1070 YY_RESTORE_YY_MORE_OFFSET
1071
1072 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1073 {
1074 /* We're scanning a new file or input source. It's
1075 * possible that this happened because the user
1076 * just pointed yyin at a new source and called
1077 * yylex(). If so, then we have to assure
1078 * consistency between YY_CURRENT_BUFFER and our
1079 * globals. Here is the right place to do so, because
1080 * this is the first action (other than possibly a
1081 * back-up) that will match for the new input source.
1082 */
1083 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1084 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1085 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1086 }
1087
1088 /* Note that here we test for yy_c_buf_p "<=" to the position
1089 * of the first EOB in the buffer, since yy_c_buf_p will
1090 * already have been incremented past the NUL character
1091 * (since all states make transitions on EOB to the
1092 * end-of-buffer state). Contrast this with the test
1093 * in input().
1094 */
1095 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1096 { /* This was really a NUL. */
1097 yy_state_type yy_next_state;
1098
1099 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1100
1101 yy_current_state = yy_get_previous_state( );
1102
1103 /* Okay, we're now positioned to make the NUL
1104 * transition. We couldn't have
1105 * yy_get_previous_state() go ahead and do it
1106 * for us because it doesn't know how to deal
1107 * with the possibility of jamming (and we don't
1108 * want to build jamming into it because then it
1109 * will run more slowly).
1110 */
1111
1112 yy_next_state = yy_try_NUL_trans( yy_current_state );
1113
1114 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1115
1116 if ( yy_next_state )
1117 {
1118 /* Consume the NUL. */
1119 yy_cp = ++(yy_c_buf_p);
1120 yy_current_state = yy_next_state;
1121 goto yy_match;
1122 }
1123
1124 else
1125 {
1126 yy_cp = (yy_c_buf_p);
1127 goto yy_find_action;
1128 }
1129 }
1130
1131 else switch ( yy_get_next_buffer( ) )
1132 {
1133 case EOB_ACT_END_OF_FILE:
1134 {
1135 (yy_did_buffer_switch_on_eof) = 0;
1136
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001137 if ( yywrap( ) )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001138 {
1139 /* Note: because we've taken care in
1140 * yy_get_next_buffer() to have set up
1141 * yytext, we can now set up
1142 * yy_c_buf_p so that if some total
1143 * hoser (like flex itself) wants to
1144 * call the scanner after we return the
1145 * YY_NULL, it'll still work - another
1146 * YY_NULL will get returned.
1147 */
1148 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
1149
1150 yy_act = YY_STATE_EOF(YY_START);
1151 goto do_action;
1152 }
1153
1154 else
1155 {
1156 if ( ! (yy_did_buffer_switch_on_eof) )
1157 YY_NEW_FILE;
1158 }
1159 break;
1160 }
1161
1162 case EOB_ACT_CONTINUE_SCAN:
1163 (yy_c_buf_p) =
1164 (yytext_ptr) + yy_amount_of_matched_text;
1165
1166 yy_current_state = yy_get_previous_state( );
1167
1168 yy_cp = (yy_c_buf_p);
1169 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1170 goto yy_match;
1171
1172 case EOB_ACT_LAST_MATCH:
1173 (yy_c_buf_p) =
1174 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1175
1176 yy_current_state = yy_get_previous_state( );
1177
1178 yy_cp = (yy_c_buf_p);
1179 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
1180 goto yy_find_action;
1181 }
1182 break;
1183 }
1184
1185 default:
1186 YY_FATAL_ERROR(
1187 "fatal flex scanner internal error--no action found" );
1188 } /* end of action switch */
1189 } /* end of scanning one token */
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001190 } /* end of user's declarations */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001191} /* end of yylex */
1192
1193/* yy_get_next_buffer - try to read in a new buffer
1194 *
1195 * Returns a code representing an action:
1196 * EOB_ACT_LAST_MATCH -
1197 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1198 * EOB_ACT_END_OF_FILE - end of file
1199 */
1200static int yy_get_next_buffer (void)
1201{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001202 char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1203 char *source = (yytext_ptr);
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001204 int number_to_move, i;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001205 int ret_val;
1206
1207 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1208 YY_FATAL_ERROR(
1209 "fatal flex scanner internal error--end of buffer missed" );
1210
1211 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1212 { /* Don't try to fill the buffer, so this is an EOF. */
1213 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1214 {
1215 /* We matched a single character, the EOB, so
1216 * treat this as a final EOF.
1217 */
1218 return EOB_ACT_END_OF_FILE;
1219 }
1220
1221 else
1222 {
1223 /* We matched some text prior to the EOB, first
1224 * process it.
1225 */
1226 return EOB_ACT_LAST_MATCH;
1227 }
1228 }
1229
1230 /* Try to read more data. */
1231
1232 /* First move last chars to start of buffer. */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001233 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001234
1235 for ( i = 0; i < number_to_move; ++i )
1236 *(dest++) = *(source++);
1237
1238 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1239 /* don't do the read, it's not guaranteed to return an EOF,
1240 * just force an EOF
1241 */
1242 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1243
1244 else
1245 {
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001246 int num_to_read =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001247 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1248
1249 while ( num_to_read <= 0 )
1250 { /* Not enough room in the buffer - grow it. */
1251
1252 /* just a shorter name for the current buffer */
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001253 YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001254
1255 int yy_c_buf_p_offset =
1256 (int) ((yy_c_buf_p) - b->yy_ch_buf);
1257
1258 if ( b->yy_is_our_buffer )
1259 {
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001260 int new_size = b->yy_buf_size * 2;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001261
1262 if ( new_size <= 0 )
1263 b->yy_buf_size += b->yy_buf_size / 8;
1264 else
1265 b->yy_buf_size *= 2;
1266
1267 b->yy_ch_buf = (char *)
1268 /* Include room in for 2 EOB chars. */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001269 yyrealloc( (void *) b->yy_ch_buf,
1270 (yy_size_t) (b->yy_buf_size + 2) );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001271 }
1272 else
1273 /* Can't grow it, we don't own it. */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001274 b->yy_ch_buf = NULL;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001275
1276 if ( ! b->yy_ch_buf )
1277 YY_FATAL_ERROR(
1278 "fatal error - scanner input buffer overflow" );
1279
1280 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1281
1282 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1283 number_to_move - 1;
1284
1285 }
1286
1287 if ( num_to_read > YY_READ_BUF_SIZE )
1288 num_to_read = YY_READ_BUF_SIZE;
1289
1290 /* Read in more data. */
1291 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001292 (yy_n_chars), num_to_read );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001293
1294 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1295 }
1296
1297 if ( (yy_n_chars) == 0 )
1298 {
1299 if ( number_to_move == YY_MORE_ADJ )
1300 {
1301 ret_val = EOB_ACT_END_OF_FILE;
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001302 yyrestart( yyin );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001303 }
1304
1305 else
1306 {
1307 ret_val = EOB_ACT_LAST_MATCH;
1308 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1309 YY_BUFFER_EOF_PENDING;
1310 }
1311 }
1312
1313 else
1314 ret_val = EOB_ACT_CONTINUE_SCAN;
1315
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001316 if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001317 /* Extend the array by 50%, plus the number we really need. */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001318 int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001319 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
1320 (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001321 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1322 YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001323 /* "- 2" to take care of EOB's */
1324 YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001325 }
1326
1327 (yy_n_chars) += number_to_move;
1328 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
1329 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
1330
1331 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1332
1333 return ret_val;
1334}
1335
1336/* yy_get_previous_state - get the state just before the EOB char was reached */
1337
1338 static yy_state_type yy_get_previous_state (void)
1339{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001340 yy_state_type yy_current_state;
1341 char *yy_cp;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001342
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001343 yy_current_state = (yy_start);
1344
1345 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1346 {
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001347 YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001348 if ( yy_accept[yy_current_state] )
1349 {
1350 (yy_last_accepting_state) = yy_current_state;
1351 (yy_last_accepting_cpos) = yy_cp;
1352 }
1353 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1354 {
1355 yy_current_state = (int) yy_def[yy_current_state];
Angel Pons437da712021-09-03 16:51:40 +02001356 if ( yy_current_state >= 210 )
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001357 yy_c = yy_meta[yy_c];
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001358 }
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001359 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001360 }
1361
1362 return yy_current_state;
1363}
1364
1365/* yy_try_NUL_trans - try to make a transition on the NUL character
1366 *
1367 * synopsis
1368 * next_state = yy_try_NUL_trans( current_state );
1369 */
1370 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1371{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001372 int yy_is_jam;
1373 char *yy_cp = (yy_c_buf_p);
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001374
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001375 YY_CHAR yy_c = 1;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001376 if ( yy_accept[yy_current_state] )
1377 {
1378 (yy_last_accepting_state) = yy_current_state;
1379 (yy_last_accepting_cpos) = yy_cp;
1380 }
1381 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1382 {
1383 yy_current_state = (int) yy_def[yy_current_state];
Angel Pons437da712021-09-03 16:51:40 +02001384 if ( yy_current_state >= 210 )
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001385 yy_c = yy_meta[yy_c];
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001386 }
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001387 yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
Angel Pons437da712021-09-03 16:51:40 +02001388 yy_is_jam = (yy_current_state == 209);
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001389
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001390 return yy_is_jam ? 0 : yy_current_state;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001391}
1392
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001393#ifndef YY_NO_UNPUT
1394
1395 static void yyunput (int c, char * yy_bp )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001396{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001397 char *yy_cp;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001398
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001399 yy_cp = (yy_c_buf_p);
1400
1401 /* undo effects of setting up yytext */
1402 *yy_cp = (yy_hold_char);
1403
1404 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1405 { /* need to shift things up to make room */
1406 /* +2 for EOB chars. */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001407 int number_to_move = (yy_n_chars) + 2;
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001408 char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001409 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001410 char *source =
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001411 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
1412
1413 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1414 *--dest = *--source;
1415
1416 yy_cp += (int) (dest - source);
1417 yy_bp += (int) (dest - source);
1418 YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001419 (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001420
1421 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1422 YY_FATAL_ERROR( "flex scanner push-back overflow" );
1423 }
1424
1425 *--yy_cp = (char) c;
1426
1427 (yytext_ptr) = yy_bp;
1428 (yy_hold_char) = *yy_cp;
1429 (yy_c_buf_p) = yy_cp;
1430}
1431
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001432#endif
1433
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001434#ifndef YY_NO_INPUT
1435#ifdef __cplusplus
1436 static int yyinput (void)
1437#else
1438 static int input (void)
1439#endif
1440
1441{
1442 int c;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001443
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001444 *(yy_c_buf_p) = (yy_hold_char);
1445
1446 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
1447 {
1448 /* yy_c_buf_p now points to the character we want to return.
1449 * If this occurs *before* the EOB characters, then it's a
1450 * valid NUL; if not, then we've hit the end of the buffer.
1451 */
1452 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1453 /* This was really a NUL. */
1454 *(yy_c_buf_p) = '\0';
1455
1456 else
1457 { /* need more input */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001458 int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001459 ++(yy_c_buf_p);
1460
1461 switch ( yy_get_next_buffer( ) )
1462 {
1463 case EOB_ACT_LAST_MATCH:
1464 /* This happens because yy_g_n_b()
1465 * sees that we've accumulated a
1466 * token and flags that we need to
1467 * try matching the token before
1468 * proceeding. But for input(),
1469 * there's no matching to consider.
1470 * So convert the EOB_ACT_LAST_MATCH
1471 * to EOB_ACT_END_OF_FILE.
1472 */
1473
1474 /* Reset buffer status. */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001475 yyrestart( yyin );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001476
1477 /*FALLTHROUGH*/
1478
1479 case EOB_ACT_END_OF_FILE:
1480 {
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001481 if ( yywrap( ) )
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001482 return 0;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001483
1484 if ( ! (yy_did_buffer_switch_on_eof) )
1485 YY_NEW_FILE;
1486#ifdef __cplusplus
1487 return yyinput();
1488#else
1489 return input();
1490#endif
1491 }
1492
1493 case EOB_ACT_CONTINUE_SCAN:
1494 (yy_c_buf_p) = (yytext_ptr) + offset;
1495 break;
1496 }
1497 }
1498 }
1499
1500 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
1501 *(yy_c_buf_p) = '\0'; /* preserve yytext */
1502 (yy_hold_char) = *++(yy_c_buf_p);
1503
1504 return c;
1505}
1506#endif /* ifndef YY_NO_INPUT */
1507
1508/** Immediately switch to a different input stream.
1509 * @param input_file A readable stream.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001510 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001511 * @note This function does not reset the start condition to @c INITIAL .
1512 */
1513 void yyrestart (FILE * input_file )
1514{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001515
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001516 if ( ! YY_CURRENT_BUFFER ){
1517 yyensure_buffer_stack ();
1518 YY_CURRENT_BUFFER_LVALUE =
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001519 yy_create_buffer( yyin, YY_BUF_SIZE );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001520 }
1521
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001522 yy_init_buffer( YY_CURRENT_BUFFER, input_file );
1523 yy_load_buffer_state( );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001524}
1525
1526/** Switch to a different input buffer.
1527 * @param new_buffer The new input buffer.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001528 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001529 */
1530 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
1531{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001532
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001533 /* TODO. We should be able to replace this entire function body
1534 * with
1535 * yypop_buffer_state();
1536 * yypush_buffer_state(new_buffer);
1537 */
1538 yyensure_buffer_stack ();
1539 if ( YY_CURRENT_BUFFER == new_buffer )
1540 return;
1541
1542 if ( YY_CURRENT_BUFFER )
1543 {
1544 /* Flush out information for old buffer. */
1545 *(yy_c_buf_p) = (yy_hold_char);
1546 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1547 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1548 }
1549
1550 YY_CURRENT_BUFFER_LVALUE = new_buffer;
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001551 yy_load_buffer_state( );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001552
1553 /* We don't actually know whether we did this switch during
1554 * EOF (yywrap()) processing, but the only time this flag
1555 * is looked at is after yywrap() is called, so it's safe
1556 * to go ahead and always set it.
1557 */
1558 (yy_did_buffer_switch_on_eof) = 1;
1559}
1560
1561static void yy_load_buffer_state (void)
1562{
1563 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1564 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1565 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1566 (yy_hold_char) = *(yy_c_buf_p);
1567}
1568
1569/** Allocate and initialize an input buffer state.
1570 * @param file A readable stream.
1571 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001572 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001573 * @return the allocated buffer state.
1574 */
1575 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
1576{
1577 YY_BUFFER_STATE b;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001578
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001579 b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001580 if ( ! b )
1581 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1582
Patrick Rudolphac24d3c2019-04-12 14:42:17 +02001583 b->yy_buf_size = size;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001584
1585 /* yy_ch_buf has to be 2 characters longer than the size given because
1586 * we need to put in 2 end-of-buffer characters.
1587 */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001588 b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001589 if ( ! b->yy_ch_buf )
1590 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1591
1592 b->yy_is_our_buffer = 1;
1593
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001594 yy_init_buffer( b, file );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001595
1596 return b;
1597}
1598
1599/** Destroy the buffer.
1600 * @param b a buffer created with yy_create_buffer()
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001601 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001602 */
1603 void yy_delete_buffer (YY_BUFFER_STATE b )
1604{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001605
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001606 if ( ! b )
1607 return;
1608
1609 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1610 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
1611
1612 if ( b->yy_is_our_buffer )
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001613 yyfree( (void *) b->yy_ch_buf );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001614
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001615 yyfree( (void *) b );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001616}
1617
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001618/* Initializes or reinitializes a buffer.
1619 * This function is sometimes called more than once on the same buffer,
1620 * such as during a yyrestart() or at EOF.
1621 */
1622 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
1623
1624{
1625 int oerrno = errno;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001626
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001627 yy_flush_buffer( b );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001628
1629 b->yy_input_file = file;
1630 b->yy_fill_buffer = 1;
1631
1632 /* If b is the current buffer, then yy_init_buffer was _probably_
1633 * called from yyrestart() or through yy_get_next_buffer.
1634 * In that case, we don't want to reset the lineno or column.
1635 */
1636 if (b != YY_CURRENT_BUFFER){
1637 b->yy_bs_lineno = 1;
1638 b->yy_bs_column = 0;
1639 }
1640
1641 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001642
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001643 errno = oerrno;
1644}
1645
1646/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
1647 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001648 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001649 */
1650 void yy_flush_buffer (YY_BUFFER_STATE b )
1651{
1652 if ( ! b )
1653 return;
1654
1655 b->yy_n_chars = 0;
1656
1657 /* We always need two end-of-buffer characters. The first causes
1658 * a transition to the end-of-buffer state. The second causes
1659 * a jam in that state.
1660 */
1661 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1662 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1663
1664 b->yy_buf_pos = &b->yy_ch_buf[0];
1665
1666 b->yy_at_bol = 1;
1667 b->yy_buffer_status = YY_BUFFER_NEW;
1668
1669 if ( b == YY_CURRENT_BUFFER )
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001670 yy_load_buffer_state( );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001671}
1672
1673/** Pushes the new state onto the stack. The new state becomes
1674 * the current state. This function will allocate the stack
1675 * if necessary.
1676 * @param new_buffer The new state.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001677 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001678 */
1679void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
1680{
1681 if (new_buffer == NULL)
1682 return;
1683
1684 yyensure_buffer_stack();
1685
1686 /* This block is copied from yy_switch_to_buffer. */
1687 if ( YY_CURRENT_BUFFER )
1688 {
1689 /* Flush out information for old buffer. */
1690 *(yy_c_buf_p) = (yy_hold_char);
1691 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1692 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1693 }
1694
1695 /* Only push if top exists. Otherwise, replace top. */
1696 if (YY_CURRENT_BUFFER)
1697 (yy_buffer_stack_top)++;
1698 YY_CURRENT_BUFFER_LVALUE = new_buffer;
1699
1700 /* copied from yy_switch_to_buffer. */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001701 yy_load_buffer_state( );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001702 (yy_did_buffer_switch_on_eof) = 1;
1703}
1704
1705/** Removes and deletes the top of the stack, if present.
1706 * The next element becomes the new top.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001707 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001708 */
1709void yypop_buffer_state (void)
1710{
1711 if (!YY_CURRENT_BUFFER)
1712 return;
1713
1714 yy_delete_buffer(YY_CURRENT_BUFFER );
1715 YY_CURRENT_BUFFER_LVALUE = NULL;
1716 if ((yy_buffer_stack_top) > 0)
1717 --(yy_buffer_stack_top);
1718
1719 if (YY_CURRENT_BUFFER) {
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001720 yy_load_buffer_state( );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001721 (yy_did_buffer_switch_on_eof) = 1;
1722 }
1723}
1724
1725/* Allocates the stack if it does not exist.
1726 * Guarantees space for at least one push.
1727 */
1728static void yyensure_buffer_stack (void)
1729{
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001730 yy_size_t num_to_alloc;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001731
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001732 if (!(yy_buffer_stack)) {
1733
1734 /* First allocation is just for 2 elements, since we don't know if this
1735 * scanner will even need a stack. We use 2 instead of 1 to avoid an
1736 * immediate realloc on the next call.
1737 */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001738 num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001739 (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
1740 (num_to_alloc * sizeof(struct yy_buffer_state*)
1741 );
1742 if ( ! (yy_buffer_stack) )
1743 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001744
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001745 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001746
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001747 (yy_buffer_stack_max) = num_to_alloc;
1748 (yy_buffer_stack_top) = 0;
1749 return;
1750 }
1751
1752 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1753
1754 /* Increase the buffer to prepare for a possible push. */
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001755 yy_size_t grow_size = 8 /* arbitrary grow size */;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001756
1757 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1758 (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
1759 ((yy_buffer_stack),
1760 num_to_alloc * sizeof(struct yy_buffer_state*)
1761 );
1762 if ( ! (yy_buffer_stack) )
1763 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1764
1765 /* zero only the new slots.*/
1766 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1767 (yy_buffer_stack_max) = num_to_alloc;
1768 }
1769}
1770
1771/** Setup the input buffer state to scan directly from a user-specified character buffer.
1772 * @param base the character buffer
1773 * @param size the size in bytes of the character buffer
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001774 *
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001775 * @return the newly allocated buffer state object.
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001776 */
1777YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
1778{
1779 YY_BUFFER_STATE b;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001780
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001781 if ( size < 2 ||
1782 base[size-2] != YY_END_OF_BUFFER_CHAR ||
1783 base[size-1] != YY_END_OF_BUFFER_CHAR )
1784 /* They forgot to leave room for the EOB's. */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001785 return NULL;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001786
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001787 b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001788 if ( ! b )
1789 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1790
Patrick Rudolphac24d3c2019-04-12 14:42:17 +02001791 b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001792 b->yy_buf_pos = b->yy_ch_buf = base;
1793 b->yy_is_our_buffer = 0;
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001794 b->yy_input_file = NULL;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001795 b->yy_n_chars = b->yy_buf_size;
1796 b->yy_is_interactive = 0;
1797 b->yy_at_bol = 1;
1798 b->yy_fill_buffer = 0;
1799 b->yy_buffer_status = YY_BUFFER_NEW;
1800
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001801 yy_switch_to_buffer( b );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001802
1803 return b;
1804}
1805
1806/** Setup the input buffer state to scan a string. The next call to yylex() will
1807 * scan from a @e copy of @a str.
1808 * @param yystr a NUL-terminated string to scan
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001809 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001810 * @return the newly allocated buffer state object.
1811 * @note If you want to scan bytes that may contain NUL values, then use
1812 * yy_scan_bytes() instead.
1813 */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001814YY_BUFFER_STATE yy_scan_string (const char * yystr )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001815{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001816
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001817 return yy_scan_bytes( yystr, (int) strlen(yystr) );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001818}
1819
1820/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
1821 * scan from a @e copy of @a bytes.
Patrick Georgi8d313682010-05-05 13:12:42 +00001822 * @param yybytes the byte buffer to scan
1823 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001824 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001825 * @return the newly allocated buffer state object.
1826 */
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001827YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001828{
1829 YY_BUFFER_STATE b;
1830 char *buf;
1831 yy_size_t n;
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001832 int i;
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001833
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001834 /* Get memory for full buffer, including space for trailing EOB's. */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001835 n = (yy_size_t) (_yybytes_len + 2);
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001836 buf = (char *) yyalloc( n );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001837 if ( ! buf )
1838 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
1839
1840 for ( i = 0; i < _yybytes_len; ++i )
1841 buf[i] = yybytes[i];
1842
1843 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1844
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001845 b = yy_scan_buffer( buf, n );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001846 if ( ! b )
1847 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
1848
1849 /* It's okay to grow etc. this buffer, and we should throw it
1850 * away when we're done.
1851 */
1852 b->yy_is_our_buffer = 1;
1853
1854 return b;
1855}
1856
1857#ifndef YY_EXIT_FAILURE
1858#define YY_EXIT_FAILURE 2
1859#endif
1860
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001861static void yynoreturn yy_fatal_error (const char* msg )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001862{
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001863 fprintf( stderr, "%s\n", msg );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001864 exit( YY_EXIT_FAILURE );
1865}
1866
1867/* Redefine yyless() so it works in section 3 code. */
1868
1869#undef yyless
1870#define yyless(n) \
1871 do \
1872 { \
1873 /* Undo effects of setting up yytext. */ \
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001874 int yyless_macro_arg = (n); \
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001875 YY_LESS_LINENO(yyless_macro_arg);\
1876 yytext[yyleng] = (yy_hold_char); \
1877 (yy_c_buf_p) = yytext + yyless_macro_arg; \
1878 (yy_hold_char) = *(yy_c_buf_p); \
1879 *(yy_c_buf_p) = '\0'; \
1880 yyleng = yyless_macro_arg; \
1881 } \
1882 while ( 0 )
1883
1884/* Accessor methods (get/set functions) to struct members. */
1885
1886/** Get the current line number.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001887 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001888 */
1889int yyget_lineno (void)
1890{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001891
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001892 return yylineno;
1893}
1894
1895/** Get the input stream.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001896 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001897 */
1898FILE *yyget_in (void)
1899{
1900 return yyin;
1901}
1902
1903/** Get the output stream.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001904 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001905 */
1906FILE *yyget_out (void)
1907{
1908 return yyout;
1909}
1910
1911/** Get the length of the current token.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001912 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001913 */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001914int yyget_leng (void)
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001915{
1916 return yyleng;
1917}
1918
1919/** Get the current token.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001920 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001921 */
1922
1923char *yyget_text (void)
1924{
1925 return yytext;
1926}
1927
1928/** Set the current line number.
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001929 * @param _line_number line number
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001930 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001931 */
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001932void yyset_lineno (int _line_number )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001933{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001934
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001935 yylineno = _line_number;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001936}
1937
1938/** Set the input stream. This does not discard the current
1939 * input buffer.
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001940 * @param _in_str A readable stream.
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001941 *
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001942 * @see yy_switch_to_buffer
1943 */
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001944void yyset_in (FILE * _in_str )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001945{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001946 yyin = _in_str ;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001947}
1948
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001949void yyset_out (FILE * _out_str )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001950{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001951 yyout = _out_str ;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001952}
1953
1954int yyget_debug (void)
1955{
1956 return yy_flex_debug;
1957}
1958
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001959void yyset_debug (int _bdebug )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001960{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07001961 yy_flex_debug = _bdebug ;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001962}
1963
1964static int yy_init_globals (void)
1965{
1966 /* Initialization is the same as for the non-reentrant scanner.
1967 * This function is called from yylex_destroy(), so don't allocate here.
1968 */
1969
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001970 (yy_buffer_stack) = NULL;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001971 (yy_buffer_stack_top) = 0;
1972 (yy_buffer_stack_max) = 0;
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001973 (yy_c_buf_p) = NULL;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001974 (yy_init) = 0;
1975 (yy_start) = 0;
1976
1977/* Defined in main.c */
1978#ifdef YY_STDINIT
1979 yyin = stdin;
1980 yyout = stdout;
1981#else
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08001982 yyin = NULL;
1983 yyout = NULL;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001984#endif
1985
1986 /* For future reference: Set errno on error, since we are called by
1987 * yylex_init()
1988 */
1989 return 0;
1990}
1991
1992/* yylex_destroy is for both reentrant and non-reentrant scanners. */
1993int yylex_destroy (void)
1994{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06001995
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001996 /* Pop the buffer stack, destroying each element. */
1997 while(YY_CURRENT_BUFFER){
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00001998 yy_delete_buffer( YY_CURRENT_BUFFER );
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00001999 YY_CURRENT_BUFFER_LVALUE = NULL;
2000 yypop_buffer_state();
2001 }
2002
2003 /* Destroy the stack itself. */
2004 yyfree((yy_buffer_stack) );
2005 (yy_buffer_stack) = NULL;
2006
2007 /* Reset the globals. This is important in a non-reentrant scanner so the next time
2008 * yylex() is called, initialization will occur. */
2009 yy_init_globals( );
2010
2011 return 0;
2012}
2013
2014/*
2015 * Internal utility routines.
2016 */
2017
2018#ifndef yytext_ptr
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00002019static void yy_flex_strncpy (char* s1, const char * s2, int n )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002020{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06002021
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07002022 int i;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002023 for ( i = 0; i < n; ++i )
2024 s1[i] = s2[i];
2025}
2026#endif
2027
2028#ifdef YY_NEED_STRLEN
Ronald G. Minnich466ca2c2019-10-22 02:02:24 +00002029static int yy_flex_strlen (const char * s )
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002030{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07002031 int n;
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002032 for ( n = 0; s[n]; ++n )
2033 ;
2034
2035 return n;
2036}
2037#endif
2038
2039void *yyalloc (yy_size_t size )
2040{
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08002041 return malloc(size);
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002042}
2043
2044void *yyrealloc (void * ptr, yy_size_t size )
2045{
Tim Wawrzynczak13e240c2021-04-28 14:03:07 -06002046
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002047 /* The cast to (char *) in the following accommodates both
2048 * implementations that use char* generic pointers, and those
2049 * that use void* generic pointers. It works with the latter
2050 * because both ANSI C and C++ allow castless assignment from
2051 * any pointer type to void*, and deal with argument conversions
2052 * as though doing an assignment.
2053 */
Justin TerAvestca2ed9f2018-01-17 16:36:30 -08002054 return realloc(ptr, size);
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002055}
2056
2057void yyfree (void * ptr )
2058{
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07002059 free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
Patrick Georgi7e8c9aa2010-04-08 11:37:43 +00002060}
2061
2062#define YYTABLES_NAME "yytables"
Stefan Reinauer2e78aa52016-05-07 01:11:14 -07002063