Block-Structured AMR Software Framework
amrex_parser.lex.nolint.H
Go to the documentation of this file.
1 
2 #define YY_INT_ALIGNED short int
3 
4 /* A lexical scanner generated by flex */
5 
6 #define yy_create_buffer amrex_parser_create_buffer
7 #define yy_delete_buffer amrex_parser_delete_buffer
8 #define yy_scan_buffer amrex_parser_scan_buffer
9 #define yy_scan_string amrex_parser_scan_string
10 #define yy_scan_bytes amrex_parser_scan_bytes
11 #define yy_init_buffer amrex_parser_init_buffer
12 #define yy_flush_buffer amrex_parser_flush_buffer
13 #define yy_load_buffer_state amrex_parser_load_buffer_state
14 #define yy_switch_to_buffer amrex_parser_switch_to_buffer
15 #define yypush_buffer_state amrex_parserpush_buffer_state
16 #define yypop_buffer_state amrex_parserpop_buffer_state
17 #define yyensure_buffer_stack amrex_parserensure_buffer_stack
18 #define yy_flex_debug amrex_parser_flex_debug
19 #define yyin amrex_parserin
20 #define yyleng amrex_parserleng
21 #define yylex amrex_parserlex
22 #define yylineno amrex_parserlineno
23 #define yyout amrex_parserout
24 #define yyrestart amrex_parserrestart
25 #define yytext amrex_parsertext
26 #define yywrap amrex_parserwrap
27 #define yyalloc amrex_parseralloc
28 #define yyrealloc amrex_parserrealloc
29 #define yyfree amrex_parserfree
30 
31 #define FLEX_SCANNER
32 #define YY_FLEX_MAJOR_VERSION 2
33 #define YY_FLEX_MINOR_VERSION 6
34 #define YY_FLEX_SUBMINOR_VERSION 4
35 #if YY_FLEX_SUBMINOR_VERSION > 0
36 #define FLEX_BETA
37 #endif
38 
39 #ifdef yy_create_buffer
40 #define amrex_parser_create_buffer_ALREADY_DEFINED
41 #else
42 #define yy_create_buffer amrex_parser_create_buffer
43 #endif
44 
45 #ifdef yy_delete_buffer
46 #define amrex_parser_delete_buffer_ALREADY_DEFINED
47 #else
48 #define yy_delete_buffer amrex_parser_delete_buffer
49 #endif
50 
51 #ifdef yy_scan_buffer
52 #define amrex_parser_scan_buffer_ALREADY_DEFINED
53 #else
54 #define yy_scan_buffer amrex_parser_scan_buffer
55 #endif
56 
57 #ifdef yy_scan_string
58 #define amrex_parser_scan_string_ALREADY_DEFINED
59 #else
60 #define yy_scan_string amrex_parser_scan_string
61 #endif
62 
63 #ifdef yy_scan_bytes
64 #define amrex_parser_scan_bytes_ALREADY_DEFINED
65 #else
66 #define yy_scan_bytes amrex_parser_scan_bytes
67 #endif
68 
69 #ifdef yy_init_buffer
70 #define amrex_parser_init_buffer_ALREADY_DEFINED
71 #else
72 #define yy_init_buffer amrex_parser_init_buffer
73 #endif
74 
75 #ifdef yy_flush_buffer
76 #define amrex_parser_flush_buffer_ALREADY_DEFINED
77 #else
78 #define yy_flush_buffer amrex_parser_flush_buffer
79 #endif
80 
81 #ifdef yy_load_buffer_state
82 #define amrex_parser_load_buffer_state_ALREADY_DEFINED
83 #else
84 #define yy_load_buffer_state amrex_parser_load_buffer_state
85 #endif
86 
87 #ifdef yy_switch_to_buffer
88 #define amrex_parser_switch_to_buffer_ALREADY_DEFINED
89 #else
90 #define yy_switch_to_buffer amrex_parser_switch_to_buffer
91 #endif
92 
93 #ifdef yypush_buffer_state
94 #define amrex_parserpush_buffer_state_ALREADY_DEFINED
95 #else
96 #define yypush_buffer_state amrex_parserpush_buffer_state
97 #endif
98 
99 #ifdef yypop_buffer_state
100 #define amrex_parserpop_buffer_state_ALREADY_DEFINED
101 #else
102 #define yypop_buffer_state amrex_parserpop_buffer_state
103 #endif
104 
105 #ifdef yyensure_buffer_stack
106 #define amrex_parserensure_buffer_stack_ALREADY_DEFINED
107 #else
108 #define yyensure_buffer_stack amrex_parserensure_buffer_stack
109 #endif
110 
111 #ifdef yylex
112 #define amrex_parserlex_ALREADY_DEFINED
113 #else
114 #define yylex amrex_parserlex
115 #endif
116 
117 #ifdef yyrestart
118 #define amrex_parserrestart_ALREADY_DEFINED
119 #else
120 #define yyrestart amrex_parserrestart
121 #endif
122 
123 #ifdef yylex_init
124 #define amrex_parserlex_init_ALREADY_DEFINED
125 #else
126 #define yylex_init amrex_parserlex_init
127 #endif
128 
129 #ifdef yylex_init_extra
130 #define amrex_parserlex_init_extra_ALREADY_DEFINED
131 #else
132 #define yylex_init_extra amrex_parserlex_init_extra
133 #endif
134 
135 #ifdef yylex_destroy
136 #define amrex_parserlex_destroy_ALREADY_DEFINED
137 #else
138 #define yylex_destroy amrex_parserlex_destroy
139 #endif
140 
141 #ifdef yyget_debug
142 #define amrex_parserget_debug_ALREADY_DEFINED
143 #else
144 #define yyget_debug amrex_parserget_debug
145 #endif
146 
147 #ifdef yyset_debug
148 #define amrex_parserset_debug_ALREADY_DEFINED
149 #else
150 #define yyset_debug amrex_parserset_debug
151 #endif
152 
153 #ifdef yyget_extra
154 #define amrex_parserget_extra_ALREADY_DEFINED
155 #else
156 #define yyget_extra amrex_parserget_extra
157 #endif
158 
159 #ifdef yyset_extra
160 #define amrex_parserset_extra_ALREADY_DEFINED
161 #else
162 #define yyset_extra amrex_parserset_extra
163 #endif
164 
165 #ifdef yyget_in
166 #define amrex_parserget_in_ALREADY_DEFINED
167 #else
168 #define yyget_in amrex_parserget_in
169 #endif
170 
171 #ifdef yyset_in
172 #define amrex_parserset_in_ALREADY_DEFINED
173 #else
174 #define yyset_in amrex_parserset_in
175 #endif
176 
177 #ifdef yyget_out
178 #define amrex_parserget_out_ALREADY_DEFINED
179 #else
180 #define yyget_out amrex_parserget_out
181 #endif
182 
183 #ifdef yyset_out
184 #define amrex_parserset_out_ALREADY_DEFINED
185 #else
186 #define yyset_out amrex_parserset_out
187 #endif
188 
189 #ifdef yyget_leng
190 #define amrex_parserget_leng_ALREADY_DEFINED
191 #else
192 #define yyget_leng amrex_parserget_leng
193 #endif
194 
195 #ifdef yyget_text
196 #define amrex_parserget_text_ALREADY_DEFINED
197 #else
198 #define yyget_text amrex_parserget_text
199 #endif
200 
201 #ifdef yyget_lineno
202 #define amrex_parserget_lineno_ALREADY_DEFINED
203 #else
204 #define yyget_lineno amrex_parserget_lineno
205 #endif
206 
207 #ifdef yyset_lineno
208 #define amrex_parserset_lineno_ALREADY_DEFINED
209 #else
210 #define yyset_lineno amrex_parserset_lineno
211 #endif
212 
213 #ifdef yywrap
214 #define amrex_parserwrap_ALREADY_DEFINED
215 #else
216 #define yywrap amrex_parserwrap
217 #endif
218 
219 #ifdef yyalloc
220 #define amrex_parseralloc_ALREADY_DEFINED
221 #else
222 #define yyalloc amrex_parseralloc
223 #endif
224 
225 #ifdef yyrealloc
226 #define amrex_parserrealloc_ALREADY_DEFINED
227 #else
228 #define yyrealloc amrex_parserrealloc
229 #endif
230 
231 #ifdef yyfree
232 #define amrex_parserfree_ALREADY_DEFINED
233 #else
234 #define yyfree amrex_parserfree
235 #endif
236 
237 #ifdef yytext
238 #define amrex_parsertext_ALREADY_DEFINED
239 #else
240 #define yytext amrex_parsertext
241 #endif
242 
243 #ifdef yyleng
244 #define amrex_parserleng_ALREADY_DEFINED
245 #else
246 #define yyleng amrex_parserleng
247 #endif
248 
249 #ifdef yyin
250 #define amrex_parserin_ALREADY_DEFINED
251 #else
252 #define yyin amrex_parserin
253 #endif
254 
255 #ifdef yyout
256 #define amrex_parserout_ALREADY_DEFINED
257 #else
258 #define yyout amrex_parserout
259 #endif
260 
261 #ifdef yy_flex_debug
262 #define amrex_parser_flex_debug_ALREADY_DEFINED
263 #else
264 #define yy_flex_debug amrex_parser_flex_debug
265 #endif
266 
267 #ifdef yylineno
268 #define amrex_parserlineno_ALREADY_DEFINED
269 #else
270 #define yylineno amrex_parserlineno
271 #endif
272 
273 /* First, we deal with platform-specific or compiler-specific issues. */
274 
275 /* begin standard C headers. */
276 #include <stdio.h>
277 #include <string.h>
278 #include <errno.h>
279 #include <stdlib.h>
280 
281 /* end standard C headers. */
282 
283 /* flex integer type definitions */
284 
285 #ifndef FLEXINT_H
286 #define FLEXINT_H
287 
288 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
289 
290 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
291 
292 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
293  * if you want the limit (max/min) macros for int types.
294  */
295 #ifndef __STDC_LIMIT_MACROS
296 #define __STDC_LIMIT_MACROS 1
297 #endif
298 
299 #include <inttypes.h>
300 typedef int8_t flex_int8_t;
301 typedef uint8_t flex_uint8_t;
302 typedef int16_t flex_int16_t;
303 typedef uint16_t flex_uint16_t;
304 typedef int32_t flex_int32_t;
305 typedef uint32_t flex_uint32_t;
306 #else
307 typedef signed char flex_int8_t;
308 typedef short int flex_int16_t;
309 typedef int flex_int32_t;
310 typedef unsigned char flex_uint8_t;
311 typedef unsigned short int flex_uint16_t;
312 typedef unsigned int flex_uint32_t;
313 
314 /* Limits of integral types. */
315 #ifndef INT8_MIN
316 #define INT8_MIN (-128)
317 #endif
318 #ifndef INT16_MIN
319 #define INT16_MIN (-32767-1)
320 #endif
321 #ifndef INT32_MIN
322 #define INT32_MIN (-2147483647-1)
323 #endif
324 #ifndef INT8_MAX
325 #define INT8_MAX (127)
326 #endif
327 #ifndef INT16_MAX
328 #define INT16_MAX (32767)
329 #endif
330 #ifndef INT32_MAX
331 #define INT32_MAX (2147483647)
332 #endif
333 #ifndef UINT8_MAX
334 #define UINT8_MAX (255U)
335 #endif
336 #ifndef UINT16_MAX
337 #define UINT16_MAX (65535U)
338 #endif
339 #ifndef UINT32_MAX
340 #define UINT32_MAX (4294967295U)
341 #endif
342 
343 #ifndef SIZE_MAX
344 #define SIZE_MAX (~(size_t)0)
345 #endif
346 
347 #endif /* ! C99 */
348 
349 #endif /* ! FLEXINT_H */
350 
351 /* begin standard C++ headers. */
352 
353 /* TODO: this is always defined, so inline it */
354 #define yyconst const
355 
356 #if defined(__GNUC__) && __GNUC__ >= 3
357 #define yynoreturn __attribute__((__noreturn__))
358 #else
359 #define yynoreturn
360 #endif
361 
362 /* Returned upon end-of-file. */
363 #define YY_NULL 0
364 
365 /* Promotes a possibly negative, possibly signed char to an
366  * integer in range [0..255] for use as an array index.
367  */
368 #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
369 
370 /* Enter a start condition. This macro really ought to take a parameter,
371  * but we do it the disgusting crufty way forced on us by the ()-less
372  * definition of BEGIN.
373  */
374 #define BEGIN (yy_start) = 1 + 2 *
375 /* Translate the current start state into a value that can be later handed
376  * to BEGIN to return to the state. The YYSTATE alias is for lex
377  * compatibility.
378  */
379 #define YY_START (((yy_start) - 1) / 2)
380 #define YYSTATE YY_START
381 /* Action number for EOF rule of a given start state. */
382 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
383 /* Special action meaning "start processing a new file". */
384 #define YY_NEW_FILE yyrestart( yyin )
385 #define YY_END_OF_BUFFER_CHAR 0
386 
387 /* Size of default input buffer. */
388 #ifndef YY_BUF_SIZE
389 #ifdef __ia64__
390 /* On IA-64, the buffer size is 16k, not 8k.
391  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
392  * Ditto for the __ia64__ case accordingly.
393  */
394 #define YY_BUF_SIZE 32768
395 #else
396 #define YY_BUF_SIZE 16384
397 #endif /* __ia64__ */
398 #endif
399 
400 /* The state buf must be large enough to hold one state per character in the main buffer.
401  */
402 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
403 
404 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
405 #define YY_TYPEDEF_YY_BUFFER_STATE
407 #endif
408 
409 #ifndef YY_TYPEDEF_YY_SIZE_T
410 #define YY_TYPEDEF_YY_SIZE_T
411 typedef size_t yy_size_t;
412 #endif
413 
414 extern int yyleng;
415 
416 extern FILE *yyin, *yyout;
417 
418 #define EOB_ACT_CONTINUE_SCAN 0
419 #define EOB_ACT_END_OF_FILE 1
420 #define EOB_ACT_LAST_MATCH 2
421 
422  #define YY_LESS_LINENO(n)
423  #define YY_LINENO_REWIND_TO(ptr)
424 
425 /* Return all but the first "n" matched characters back to the input stream. */
426 #define yyless(n) \
427  do \
428  { \
429  /* Undo effects of setting up yytext. */ \
430  int yyless_macro_arg = (n); \
431  YY_LESS_LINENO(yyless_macro_arg);\
432  *yy_cp = (yy_hold_char); \
433  YY_RESTORE_YY_MORE_OFFSET \
434  (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
435  YY_DO_BEFORE_ACTION; /* set up yytext again */ \
436  } \
437  while ( 0 )
438 #define unput(c) yyunput( c, (yytext_ptr) )
439 
440 #ifndef YY_STRUCT_YY_BUFFER_STATE
441 #define YY_STRUCT_YY_BUFFER_STATE
442 struct yy_buffer_state
443  {
444  FILE *yy_input_file;
445 
446  char *yy_ch_buf; /* input buffer */
447  char *yy_buf_pos; /* current position in input buffer */
448 
449  /* Size of input buffer in bytes, not including room for EOB
450  * characters.
451  */
452  int yy_buf_size;
453 
454  /* Number of characters read into yy_ch_buf, not including EOB
455  * characters.
456  */
457  int yy_n_chars;
458 
459  /* Whether we "own" the buffer - i.e., we know we created it,
460  * and can realloc() it to grow it, and should free() it to
461  * delete it.
462  */
463  int yy_is_our_buffer;
464 
465  /* Whether this is an "interactive" input source; if so, and
466  * if we're using stdio for input, then we want to use getc()
467  * instead of fread(), to make sure we stop fetching input after
468  * each newline.
469  */
470  int yy_is_interactive;
471 
472  /* Whether we're considered to be at the beginning of a line.
473  * If so, '^' rules will be active on the next match, otherwise
474  * not.
475  */
476  int yy_at_bol;
477 
478  int yy_bs_lineno;
479  int yy_bs_column;
481  /* Whether to try to fill the input buffer when we reach the
482  * end of it.
483  */
484  int yy_fill_buffer;
485 
486  int yy_buffer_status;
487 
488 #define YY_BUFFER_NEW 0
489 #define YY_BUFFER_NORMAL 1
490  /* When an EOF's been seen but there's still some text to process
491  * then we mark the buffer as YY_EOF_PENDING, to indicate that we
492  * shouldn't try reading from the input source any more. We might
493  * still have a bunch of tokens to match, though, because of
494  * possible backing-up.
495  *
496  * When we actually see the EOF, we change the status to "new"
497  * (via yyrestart()), so that the user can continue scanning by
498  * just pointing yyin at a new input file.
499  */
500 #define YY_BUFFER_EOF_PENDING 2
501 
502  };
503 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
504 
505 /* Stack of input buffers. */
506 static size_t yy_buffer_stack_top = 0;
507 static size_t yy_buffer_stack_max = 0;
510 /* We provide macros for accessing buffer states in case in the
511  * future we want to put the buffer states in a more general
512  * "scanner state".
513  *
514  * Returns the top of the stack, or NULL.
515  */
516 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
517  ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
518  : NULL)
519 /* Same as previous macro, but useful when we know that the buffer stack is not
520  * NULL or when we need an lvalue. For internal use only.
521  */
522 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
523 
524 /* yy_hold_char holds the character lost when yytext is formed. */
525 static char yy_hold_char;
526 static int yy_n_chars; /* number of characters read into yy_ch_buf */
527 int yyleng;
528 
529 /* Points to current character in buffer. */
530 static char *yy_c_buf_p = NULL;
531 static int yy_init = 0; /* whether we need to initialize */
532 static int yy_start = 0; /* start state number */
533 
534 /* Flag which is used to allow yywrap()'s to do buffer switches
535  * instead of setting up a fresh yyin. A bit of a hack ...
536  */
538 
539 void yyrestart ( FILE *input_file );
545 void yypop_buffer_state ( void );
546 
547 static void yyensure_buffer_stack ( void );
548 static void yy_load_buffer_state ( void );
549 static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
550 #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
551 
553 YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
554 YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
555 
556 void *yyalloc ( yy_size_t );
557 void *yyrealloc ( void *, yy_size_t );
558 void yyfree ( void * );
559 
560 #define yy_new_buffer yy_create_buffer
561 #define yy_set_interactive(is_interactive) \
562  { \
563  if ( ! YY_CURRENT_BUFFER ){ \
564  yyensure_buffer_stack (); \
565  YY_CURRENT_BUFFER_LVALUE = \
566  yy_create_buffer( yyin, YY_BUF_SIZE ); \
567  } \
568  YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
569  }
570 #define yy_set_bol(at_bol) \
571  { \
572  if ( ! YY_CURRENT_BUFFER ){\
573  yyensure_buffer_stack (); \
574  YY_CURRENT_BUFFER_LVALUE = \
575  yy_create_buffer( yyin, YY_BUF_SIZE ); \
576  } \
577  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
578  }
579 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
580 
581 /* Begin user sect3 */
582 
583 #define amrex_parserwrap() (/*CONSTCOND*/1)
584 #define YY_SKIP_YYWRAP
586 
587 FILE *yyin = NULL, *yyout = NULL;
588 
589 typedef int yy_state_type;
590 
591 extern int yylineno;
592 int yylineno = 1;
593 
594 extern char *yytext;
595 #ifdef yytext_ptr
596 #undef yytext_ptr
597 #endif
598 #define yytext_ptr yytext
599 
602 static int yy_get_next_buffer ( void );
603 static void yynoreturn yy_fatal_error ( const char* msg );
604 
605 /* Done after the current pattern has been matched and before the
606  * corresponding action - sets up yytext.
607  */
608 #define YY_DO_BEFORE_ACTION \
609  (yytext_ptr) = yy_bp; \
610  yyleng = (int) (yy_cp - yy_bp); \
611  (yy_hold_char) = *yy_cp; \
612  *yy_cp = '\0'; \
613  (yy_c_buf_p) = yy_cp;
614 #define YY_NUM_RULES 59
615 #define YY_END_OF_BUFFER 60
616 /* This struct is not used in this scanner,
617  but its presence is necessary. */
618 struct yy_trans_info
619  {
622  };
623 static const flex_int16_t yy_accept[136] =
624  { 0,
625  0, 0, 60, 58, 55, 57, 58, 10, 11, 3,
626  1, 6, 2, 58, 4, 53, 9, 7, 5, 8,
627  51, 58, 36, 51, 51, 51, 51, 51, 51, 51,
628  51, 51, 51, 51, 51, 51, 41, 35, 53, 54,
629  52, 53, 0, 39, 40, 38, 51, 56, 51, 51,
630  51, 51, 51, 51, 51, 51, 51, 51, 51, 51,
631  51, 50, 46, 51, 51, 51, 43, 51, 51, 51,
632  51, 54, 52, 0, 0, 53, 28, 51, 42, 51,
633  51, 51, 51, 17, 34, 13, 51, 51, 51, 51,
634  14, 48, 47, 44, 16, 51, 18, 0, 52, 20,
635 
636  19, 21, 31, 51, 23, 29, 51, 49, 51, 51,
637  22, 12, 24, 26, 25, 37, 27, 51, 30, 51,
638  15, 51, 51, 51, 51, 51, 51, 51, 45, 51,
639  51, 51, 32, 33, 0
640  } ;
641 
642 static const YY_CHAR yy_ec[256] =
643  { 0,
644  1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
645  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
646  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
647  1, 2, 4, 1, 1, 1, 1, 1, 1, 5,
648  6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
649  16, 16, 16, 16, 16, 16, 16, 1, 17, 18,
650  19, 20, 1, 1, 21, 21, 21, 21, 22, 21,
651  21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
652  21, 21, 21, 21, 21, 21, 21, 21, 21, 21,
653  1, 23, 1, 24, 25, 1, 26, 27, 28, 29,
654 
655  30, 31, 32, 33, 34, 35, 21, 36, 37, 38,
656  39, 40, 41, 42, 43, 44, 21, 45, 46, 47,
657  21, 21, 1, 1, 1, 1, 1, 1, 1, 1,
658  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
659  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
660  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
661  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
662  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
663  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
664  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
665 
666  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
667  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
668  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
669  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
670  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
671  1, 1, 1, 1, 1
672  } ;
673 
674 static const YY_CHAR yy_meta[48] =
675  { 0,
676  1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
677  3, 1, 3, 3, 3, 3, 1, 1, 1, 1,
678  3, 3, 1, 1, 3, 3, 3, 3, 3, 3,
679  3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
680  3, 3, 3, 3, 3, 3, 3
681  } ;
682 
683 static const flex_int16_t yy_base[138] =
684  { 0,
685  0, 0, 201, 202, 202, 202, 181, 202, 202, 192,
686  202, 202, 202, 35, 186, 41, 202, 178, 177, 176,
687  0, 191, 202, 31, 23, 18, 40, 163, 161, 153,
688  151, 38, 147, 149, 27, 161, 202, 202, 65, 0,
689  69, 87, 97, 202, 202, 202, 0, 202, 143, 146,
690  155, 149, 156, 147, 30, 149, 139, 151, 138, 137,
691  149, 0, 0, 142, 126, 134, 0, 125, 132, 127,
692  130, 0, 105, 115, 123, 127, 0, 124, 0, 128,
693  127, 128, 123, 129, 0, 0, 118, 121, 130, 113,
694  143, 0, 0, 0, 123, 111, 120, 131, 135, 101,
695 
696  100, 55, 0, 107, 0, 0, 84, 0, 90, 109,
697  0, 0, 0, 0, 0, 0, 0, 86, 0, 72,
698  0, 78, 74, 70, 75, 63, 66, 56, 0, 49,
699  67, 75, 0, 0, 202, 83, 151
700  } ;
701 
702 static const flex_int16_t yy_def[138] =
703  { 0,
704  135, 1, 135, 135, 135, 135, 135, 135, 135, 135,
705  135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
706  136, 135, 135, 136, 136, 136, 136, 136, 136, 136,
707  136, 136, 136, 136, 136, 136, 135, 135, 135, 137,
708  135, 135, 135, 135, 135, 135, 136, 135, 136, 136,
709  136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
710  136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
711  136, 137, 135, 135, 135, 135, 136, 136, 136, 136,
712  136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
713  136, 136, 136, 136, 136, 136, 136, 135, 135, 136,
714 
715  136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
716  136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
717  136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
718  136, 136, 136, 136, 0, 135, 135
719  } ;
720 
721 static const flex_int16_t yy_nxt[250] =
722  { 0,
723  4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
724  14, 15, 16, 16, 16, 16, 17, 18, 19, 20,
725  21, 21, 22, 23, 21, 24, 21, 25, 21, 26,
726  27, 21, 28, 29, 30, 31, 32, 21, 33, 34,
727  21, 21, 35, 36, 21, 21, 21, 39, 39, 39,
728  39, 41, 54, 42, 42, 42, 42, 49, 50, 56,
729  69, 55, 43, 65, 57, 58, 83, 70, 51, 116,
730  43, 66, 84, 52, 53, 59, 60, 39, 39, 39,
731  39, 73, 73, 73, 73, 47, 43, 117, 133, 134,
732  74, 132, 131, 130, 43, 129, 128, 41, 74, 42,
733 
734  42, 42, 42, 127, 75, 126, 75, 125, 43, 76,
735  76, 76, 76, 124, 123, 122, 43, 73, 73, 73,
736  73, 121, 98, 120, 98, 119, 74, 99, 99, 99,
737  99, 118, 115, 114, 74, 76, 76, 76, 76, 76,
738  76, 76, 76, 99, 99, 99, 99, 99, 99, 99,
739  99, 72, 113, 72, 112, 111, 110, 109, 108, 107,
740  106, 105, 104, 103, 102, 101, 100, 97, 96, 95,
741  94, 93, 92, 91, 90, 89, 88, 87, 86, 85,
742  82, 81, 80, 79, 78, 77, 71, 68, 67, 64,
743  63, 62, 61, 48, 46, 45, 44, 40, 38, 37,
744 
745  135, 3, 135, 135, 135, 135, 135, 135, 135, 135,
746  135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
747  135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
748  135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
749  135, 135, 135, 135, 135, 135, 135, 135, 135
750  } ;
751 
752 static const flex_int16_t yy_chk[250] =
753  { 0,
754  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
755  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
756  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
757  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
758  1, 1, 1, 1, 1, 1, 1, 14, 14, 14,
759  14, 16, 25, 16, 16, 16, 16, 24, 24, 26,
760  35, 25, 16, 32, 26, 27, 55, 35, 24, 102,
761  16, 32, 55, 24, 24, 27, 27, 39, 39, 39,
762  39, 41, 41, 41, 41, 136, 39, 102, 132, 132,
763  41, 131, 130, 128, 39, 127, 126, 42, 41, 42,
764 
765  42, 42, 42, 125, 43, 124, 43, 123, 42, 43,
766  43, 43, 43, 122, 120, 118, 42, 73, 73, 73,
767  73, 110, 74, 109, 74, 107, 73, 74, 74, 74,
768  74, 104, 101, 100, 73, 75, 75, 75, 75, 76,
769  76, 76, 76, 98, 98, 98, 98, 99, 99, 99,
770  99, 137, 97, 137, 96, 95, 91, 90, 89, 88,
771  87, 84, 83, 82, 81, 80, 78, 71, 70, 69,
772  68, 66, 65, 64, 61, 60, 59, 58, 57, 56,
773  54, 53, 52, 51, 50, 49, 36, 34, 33, 31,
774  30, 29, 28, 22, 20, 19, 18, 15, 10, 7,
775 
776  3, 135, 135, 135, 135, 135, 135, 135, 135, 135,
777  135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
778  135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
779  135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
780  135, 135, 135, 135, 135, 135, 135, 135, 135
781  } ;
782 
785 
786 extern int yy_flex_debug;
788 
789 /* The intent behind this definition is that it'll catch
790  * any uses of REJECT which flex missed.
791  */
792 #define REJECT reject_used_but_not_detected
793 #define yymore() yymore_used_but_not_detected
794 #define YY_MORE_ADJ 0
795 #define YY_RESTORE_YY_MORE_OFFSET
796 char *yytext;
797 #include "AMReX_Parser_Y.H"
798 #include "amrex_parser.tab.h"
799 #ifdef _WIN32
800 #define YY_NO_UNISTD_H
801 #endif
802 #define YY_NO_INPUT 1
803  /* Tokens NUMBER, SYMBOL, F1, POW, F2, etc. are defined in amrex_parser.y. */
804  /* Types PARSER_SQRT, PARSER_EXP, etc. are defined in AMReX_Parser_y.H. */
805  /* Used later to define NUMBER */
806 
807 #define INITIAL 0
808 
809 #ifndef YY_NO_UNISTD_H
810 /* Special case for "unistd.h", since it is non-ANSI. We include it way
811  * down here because we want the user's section 1 to have been scanned first.
812  * The user has a chance to override it with an option.
813  */
814 #include <unistd.h>
815 #endif
816 
817 #ifndef YY_EXTRA_TYPE
818 #define YY_EXTRA_TYPE void *
819 #endif
820 
821 static int yy_init_globals ( void );
822 
823 /* Accessor methods to globals.
824  These are made visible to non-reentrant scanners for convenience. */
825 
826 int yylex_destroy ( void );
827 
828 int yyget_debug ( void );
829 
830 void yyset_debug ( int debug_flag );
831 
832 YY_EXTRA_TYPE yyget_extra ( void );
833 
834 void yyset_extra ( YY_EXTRA_TYPE user_defined );
835 
836 FILE *yyget_in ( void );
837 
838 void yyset_in ( FILE * _in_str );
839 
840 FILE *yyget_out ( void );
841 
842 void yyset_out ( FILE * _out_str );
843 
844  int yyget_leng ( void );
845 
846 char *yyget_text ( void );
847 
848 int yyget_lineno ( void );
849 
850 void yyset_lineno ( int _line_number );
851 
852 /* Macros after this point can all be overridden by user definitions in
853  * section 1.
854  */
855 
856 #ifndef YY_SKIP_YYWRAP
857 #ifdef __cplusplus
858 extern "C" int yywrap ( void );
859 #else
860 extern int yywrap ( void );
861 #endif
862 #endif
863 
864 #ifndef YY_NO_UNPUT
865 
866 #endif
867 
868 #ifndef yytext_ptr
869 static void yy_flex_strncpy ( char *, const char *, int );
870 #endif
871 
872 #ifdef YY_NEED_STRLEN
873 static int yy_flex_strlen ( const char * );
874 #endif
875 
876 #ifndef YY_NO_INPUT
877 #ifdef __cplusplus
878 static int yyinput ( void );
879 #else
880 static int input ( void );
881 #endif
882 
883 #endif
884 
885 /* Amount of stuff to slurp up with each read. */
886 #ifndef YY_READ_BUF_SIZE
887 #ifdef __ia64__
888 /* On IA-64, the buffer size is 16k, not 8k */
889 #define YY_READ_BUF_SIZE 16384
890 #else
891 #define YY_READ_BUF_SIZE 8192
892 #endif /* __ia64__ */
893 #endif
894 
895 /* Copy whatever the last rule matched to the standard output. */
896 #ifndef ECHO
897 /* This used to be an fputs(), but since the string might contain NUL's,
898  * we now use fwrite().
899  */
900 #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
901 #endif
902 
903 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
904  * is returned in "result".
905  */
906 #ifndef YY_INPUT
907 #define YY_INPUT(buf,result,max_size) \
908  if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
909  { \
910  int c = '*'; \
911  int n; \
912  for ( n = 0; n < max_size && \
913  (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
914  buf[n] = (char) c; \
915  if ( c == '\n' ) \
916  buf[n++] = (char) c; \
917  if ( c == EOF && ferror( yyin ) ) \
918  YY_FATAL_ERROR( "input in flex scanner failed" ); \
919  result = n; \
920  } \
921  else \
922  { \
923  errno=0; \
924  while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
925  { \
926  if( errno != EINTR) \
927  { \
928  YY_FATAL_ERROR( "input in flex scanner failed" ); \
929  break; \
930  } \
931  errno=0; \
932  clearerr(yyin); \
933  } \
934  }\
935 \
936 
937 #endif
938 
939 /* No semi-colon after return; correct usage is to write "yyterminate();" -
940  * we don't want an extra ';' after the "return" because that will cause
941  * some compilers to complain about unreachable statements.
942  */
943 #ifndef yyterminate
944 #define yyterminate() return YY_NULL
945 #endif
946 
947 /* Number of entries by which start-condition stack grows. */
948 #ifndef YY_START_STACK_INCR
949 #define YY_START_STACK_INCR 25
950 #endif
951 
952 /* Report a fatal error. */
953 #ifndef YY_FATAL_ERROR
954 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
955 #endif
956 
957 /* end tables serialization structures and prototypes */
958 
959 /* Default declaration of generated scanner - a define so the user can
960  * easily add parameters.
961  */
962 #ifndef YY_DECL
963 #define YY_DECL_IS_OURS 1
964 
965 extern int yylex (void);
966 
967 #define YY_DECL int yylex (void)
968 #endif /* !YY_DECL */
969 
970 /* Code executed at the beginning of each rule, after yytext and yyleng
971  * have been set up.
972  */
973 #ifndef YY_USER_ACTION
974 #define YY_USER_ACTION
975 #endif
976 
977 /* Code executed at the end of each rule. */
978 #ifndef YY_BREAK
979 #define YY_BREAK /*LINTED*/break;
980 #endif
981 
982 #define YY_RULE_SETUP \
983  YY_USER_ACTION
984 
988 {
989  yy_state_type yy_current_state;
990  char *yy_cp, *yy_bp;
991  int yy_act;
992 
993  if ( !(yy_init) )
994  {
995  (yy_init) = 1;
996 
997 #ifdef YY_USER_INIT
998  YY_USER_INIT;
999 #endif
1000 
1001  if ( ! (yy_start) )
1002  (yy_start) = 1; /* first start state */
1003 
1004  if ( ! yyin )
1005  yyin = stdin;
1006 
1007  if ( ! yyout )
1008  yyout = stdout;
1009 
1010  if ( ! YY_CURRENT_BUFFER ) {
1014  }
1015 
1017  }
1018 
1019  {
1020 
1021  while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
1022  {
1023  yy_cp = (yy_c_buf_p);
1024 
1025  /* Support of yytext. */
1026  *yy_cp = (yy_hold_char);
1027 
1028  /* yy_bp points to the position in yy_ch_buf of the start of
1029  * the current run.
1030  */
1031  yy_bp = yy_cp;
1032 
1033  yy_current_state = (yy_start);
1034 yy_match:
1035  do
1036  {
1037  YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
1038  if ( yy_accept[yy_current_state] )
1039  {
1040  (yy_last_accepting_state) = yy_current_state;
1042  }
1043  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1044  {
1045  yy_current_state = (int) yy_def[yy_current_state];
1046  if ( yy_current_state >= 136 )
1047  yy_c = yy_meta[yy_c];
1048  }
1049  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1050  ++yy_cp;
1051  }
1052  while ( yy_current_state != 135 );
1054  yy_current_state = (yy_last_accepting_state);
1055 
1056 yy_find_action:
1057  yy_act = yy_accept[yy_current_state];
1058 
1060 
1061 do_action: /* This label is used only to access EOF actions. */
1062 
1063  switch ( yy_act )
1064  { /* beginning of action switch */
1065  case 0: /* must back up */
1066  /* undo the effects of YY_DO_BEFORE_ACTION */
1067  *yy_cp = (yy_hold_char);
1069  yy_current_state = (yy_last_accepting_state);
1070  goto yy_find_action;
1071 
1072 case 1:
1073 case 2:
1074 case 3:
1075 case 4:
1076 case 5:
1077 case 6:
1078 case 7:
1079 case 8:
1080 case 9:
1081 case 10:
1082 case 11:
1084 { return amrex_parsertext[0]; } /* simply pass through */
1085  YY_BREAK
1086 /* amrex_parserlval is union type defined in amrex_parser.tab.h that is generated
1087  * by bison with amrex_parser.y */
1088 case 12:
1091  YY_BREAK
1092 case 13:
1094 { amrex_parserlval.f1 = amrex::PARSER_EXP; return F1; }
1095  YY_BREAK
1096 case 14:
1098 { amrex_parserlval.f1 = amrex::PARSER_LOG; return F1; }
1099  YY_BREAK
1100 case 15:
1103  YY_BREAK
1104 case 16:
1106 { amrex_parserlval.f1 = amrex::PARSER_SIN; return F1; }
1107  YY_BREAK
1108 case 17:
1110 { amrex_parserlval.f1 = amrex::PARSER_COS; return F1; }
1111  YY_BREAK
1112 case 18:
1114 { amrex_parserlval.f1 = amrex::PARSER_TAN; return F1; }
1115  YY_BREAK
1116 case 19:
1119  YY_BREAK
1120 case 20:
1123  YY_BREAK
1124 case 21:
1127  YY_BREAK
1128 case 22:
1131  YY_BREAK
1132 case 23:
1135  YY_BREAK
1136 case 24:
1139  YY_BREAK
1140 case 25:
1143  YY_BREAK
1144 case 26:
1147  YY_BREAK
1148 case 27:
1151  YY_BREAK
1152 case 28:
1154 { amrex_parserlval.f1 = amrex::PARSER_ABS; return F1; }
1155  YY_BREAK
1156 case 29:
1158 { amrex_parserlval.f1 = amrex::PARSER_ABS; return F1; }
1159  YY_BREAK
1160 case 30:
1163  YY_BREAK
1164 case 31:
1167  YY_BREAK
1168 case 32:
1171  YY_BREAK
1172 case 33:
1175  YY_BREAK
1176 case 34:
1178 { amrex_parserlval.f1 = amrex::PARSER_ERF; return F1; }
1179  YY_BREAK
1180 case 35:
1183  YY_BREAK
1184 case 36:
1187  YY_BREAK
1188 case 37:
1191  YY_BREAK
1192 case 38:
1195  YY_BREAK
1196 case 39:
1199  YY_BREAK
1200 case 40:
1202 { amrex_parserlval.f2 = amrex::PARSER_EQ; return EQ;}
1203  YY_BREAK
1204 case 41:
1207  YY_BREAK
1208 case 42:
1211  YY_BREAK
1212 case 43:
1214 { amrex_parserlval.f2 = amrex::PARSER_OR; return OR;}
1215  YY_BREAK
1216 case 44:
1218 { amrex_parserlval.f2 = amrex::PARSER_POW; return F2; }
1219  YY_BREAK
1220 case 45:
1223  YY_BREAK
1224 case 46:
1226 { amrex_parserlval.f2 = amrex::PARSER_JN; return F2; }
1227  YY_BREAK
1228 case 47:
1230 { amrex_parserlval.f2 = amrex::PARSER_MIN; return F2; }
1231  YY_BREAK
1232 case 48:
1234 { amrex_parserlval.f2 = amrex::PARSER_MAX; return F2; }
1235  YY_BREAK
1236 case 49:
1239  YY_BREAK
1240 case 50:
1242 { amrex_parserlval.f3 = amrex::PARSER_IF; return F3; }
1243  YY_BREAK
1244 /* We use SYMBOL to hold variables and constants */
1245 case 51:
1247 { amrex_parserlval.s = amrex::parser_makesymbol(amrex_parsertext); return SYMBOL; }
1248  YY_BREAK
1249 /* Number */
1250 case 52:
1251 case 53:
1253 { amrex_parserlval.d = std::atof(amrex_parsertext); return NUMBER; }
1254  YY_BREAK
1255 /* Special characters */
1256 case 54:
1258 
1259  YY_BREAK
1260 case 55:
1262 /* ignore white space */
1263  YY_BREAK
1264 case 56:
1265 /* rule 56 can match eol */
1267 /* ignore line continuation */
1268  YY_BREAK
1269 case 57:
1270 /* rule 57 can match eol */
1272 { return EOL; }
1273  YY_BREAK
1274 /* everything else */
1275 case 58:
1277 { amrex_parsererror("Unknown character %c", *amrex_parsertext); }
1278  YY_BREAK
1279 case 59:
1281 YY_FATAL_ERROR( "flex scanner jammed" );
1282  YY_BREAK
1283 case YY_STATE_EOF(INITIAL):
1284  yyterminate();
1285 
1286  case YY_END_OF_BUFFER:
1287  {
1288  /* Amount of text matched not including the EOB char. */
1289  int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1290 
1291  /* Undo the effects of YY_DO_BEFORE_ACTION. */
1292  *yy_cp = (yy_hold_char);
1294 
1295  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1296  {
1297  /* We're scanning a new file or input source. It's
1298  * possible that this happened because the user
1299  * just pointed yyin at a new source and called
1300  * yylex(). If so, then we have to assure
1301  * consistency between YY_CURRENT_BUFFER and our
1302  * globals. Here is the right place to do so, because
1303  * this is the first action (other than possibly a
1304  * back-up) that will match for the new input source.
1305  */
1306  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1307  YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1308  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1309  }
1310 
1311  /* Note that here we test for yy_c_buf_p "<=" to the position
1312  * of the first EOB in the buffer, since yy_c_buf_p will
1313  * already have been incremented past the NUL character
1314  * (since all states make transitions on EOB to the
1315  * end-of-buffer state). Contrast this with the test
1316  * in input().
1317  */
1318  if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1319  { /* This was really a NUL. */
1320  yy_state_type yy_next_state;
1321 
1322  (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1323 
1324  yy_current_state = yy_get_previous_state( );
1325 
1326  /* Okay, we're now positioned to make the NUL
1327  * transition. We couldn't have
1328  * yy_get_previous_state() go ahead and do it
1329  * for us because it doesn't know how to deal
1330  * with the possibility of jamming (and we don't
1331  * want to build jamming into it because then it
1332  * will run more slowly).
1333  */
1334 
1335  yy_next_state = yy_try_NUL_trans( yy_current_state );
1336 
1338 
1339  if ( yy_next_state )
1340  {
1341  /* Consume the NUL. */
1342  yy_cp = ++(yy_c_buf_p);
1343  yy_current_state = yy_next_state;
1344  goto yy_match;
1345  }
1346 
1347  else
1348  {
1350  yy_current_state = (yy_last_accepting_state);
1351  goto yy_find_action;
1352  }
1353  }
1354 
1355  else switch ( yy_get_next_buffer( ) )
1356  {
1357  case EOB_ACT_END_OF_FILE:
1358  {
1360 
1361  if ( yywrap( ) )
1362  {
1363  /* Note: because we've taken care in
1364  * yy_get_next_buffer() to have set up
1365  * yytext, we can now set up
1366  * yy_c_buf_p so that if some total
1367  * hoser (like flex itself) wants to
1368  * call the scanner after we return the
1369  * YY_NULL, it'll still work - another
1370  * YY_NULL will get returned.
1371  */
1373 
1375  goto do_action;
1376  }
1377 
1378  else
1379  {
1380  if ( ! (yy_did_buffer_switch_on_eof) )
1381  YY_NEW_FILE;
1382  }
1383  break;
1384  }
1385 
1386  case EOB_ACT_CONTINUE_SCAN:
1387  (yy_c_buf_p) =
1388  (yytext_ptr) + yy_amount_of_matched_text;
1389 
1390  yy_current_state = yy_get_previous_state( );
1391 
1392  yy_cp = (yy_c_buf_p);
1394  goto yy_match;
1395 
1396  case EOB_ACT_LAST_MATCH:
1397  (yy_c_buf_p) =
1398  &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1399 
1400  yy_current_state = yy_get_previous_state( );
1401 
1402  yy_cp = (yy_c_buf_p);
1404  goto yy_find_action;
1405  }
1406  break;
1407  }
1408 
1409  default:
1411  "fatal flex scanner internal error--no action found" );
1412  } /* end of action switch */
1413  } /* end of scanning one token */
1414  } /* end of user's declarations */
1415 } /* end of yylex */
1416 
1417 /* yy_get_next_buffer - try to read in a new buffer
1418  *
1419  * Returns a code representing an action:
1420  * EOB_ACT_LAST_MATCH -
1421  * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1422  * EOB_ACT_END_OF_FILE - end of file
1423  */
1424 static int yy_get_next_buffer (void)
1425 {
1426  char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1427  char *source = (yytext_ptr);
1428  int number_to_move, i;
1429  int ret_val;
1430 
1431  if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1433  "fatal flex scanner internal error--end of buffer missed" );
1434 
1435  if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1436  { /* Don't try to fill the buffer, so this is an EOF. */
1437  if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1438  {
1439  /* We matched a single character, the EOB, so
1440  * treat this as a final EOF.
1441  */
1442  return EOB_ACT_END_OF_FILE;
1443  }
1444 
1445  else
1446  {
1447  /* We matched some text prior to the EOB, first
1448  * process it.
1449  */
1450  return EOB_ACT_LAST_MATCH;
1451  }
1452  }
1453 
1454  /* Try to read more data. */
1455 
1456  /* First move last chars to start of buffer. */
1457  number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
1458 
1459  for ( i = 0; i < number_to_move; ++i )
1460  *(dest++) = *(source++);
1461 
1462  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1463  /* don't do the read, it's not guaranteed to return an EOF,
1464  * just force an EOF
1465  */
1466  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1467 
1468  else
1469  {
1470  int num_to_read =
1471  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1472 
1473  while ( num_to_read <= 0 )
1474  { /* Not enough room in the buffer - grow it. */
1475 
1476  /* just a shorter name for the current buffer */
1478 
1479  int yy_c_buf_p_offset =
1480  (int) ((yy_c_buf_p) - b->yy_ch_buf);
1481 
1482  if ( b->yy_is_our_buffer )
1483  {
1484  int new_size = b->yy_buf_size * 2;
1485 
1486  if ( new_size <= 0 )
1487  b->yy_buf_size += b->yy_buf_size / 8;
1488  else
1489  b->yy_buf_size *= 2;
1490 
1491  b->yy_ch_buf = (char *)
1492  /* Include room in for 2 EOB chars. */
1493  yyrealloc( (void *) b->yy_ch_buf,
1494  (yy_size_t) (b->yy_buf_size + 2) );
1495  }
1496  else
1497  /* Can't grow it, we don't own it. */
1498  b->yy_ch_buf = NULL;
1499 
1500  if ( ! b->yy_ch_buf )
1502  "fatal error - scanner input buffer overflow" );
1503 
1504  (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1505 
1506  num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1507  number_to_move - 1;
1508 
1509  }
1510 
1511  if ( num_to_read > YY_READ_BUF_SIZE )
1512  num_to_read = YY_READ_BUF_SIZE;
1513 
1514  /* Read in more data. */
1515  YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1516  (yy_n_chars), num_to_read );
1517 
1518  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1519  }
1520 
1521  if ( (yy_n_chars) == 0 )
1522  {
1523  if ( number_to_move == YY_MORE_ADJ )
1524  {
1525  ret_val = EOB_ACT_END_OF_FILE;
1526  yyrestart( yyin );
1527  }
1528 
1529  else
1530  {
1531  ret_val = EOB_ACT_LAST_MATCH;
1532  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1534  }
1535  }
1536 
1537  else
1538  ret_val = EOB_ACT_CONTINUE_SCAN;
1539 
1540  if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1541  /* Extend the array by 50%, plus the number we really need. */
1542  int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1543  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
1544  (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
1545  if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1546  YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1547  /* "- 2" to take care of EOB's */
1548  YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
1549  }
1550 
1551  (yy_n_chars) += number_to_move;
1554 
1555  (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1556 
1557  return ret_val;
1558 }
1559 
1560 /* yy_get_previous_state - get the state just before the EOB char was reached */
1561 
1562  static yy_state_type yy_get_previous_state (void)
1563 {
1564  yy_state_type yy_current_state;
1565  char *yy_cp;
1566 
1567  yy_current_state = (yy_start);
1568 
1569  for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1570  {
1571  YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1572  if ( yy_accept[yy_current_state] )
1573  {
1574  (yy_last_accepting_state) = yy_current_state;
1576  }
1577  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1578  {
1579  yy_current_state = (int) yy_def[yy_current_state];
1580  if ( yy_current_state >= 136 )
1581  yy_c = yy_meta[yy_c];
1582  }
1583  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1584  }
1585 
1586  return yy_current_state;
1587 }
1588 
1589 /* yy_try_NUL_trans - try to make a transition on the NUL character
1590  *
1591  * synopsis
1592  * next_state = yy_try_NUL_trans( current_state );
1593  */
1594  static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1595 {
1596  int yy_is_jam;
1597  char *yy_cp = (yy_c_buf_p);
1598 
1599  YY_CHAR yy_c = 1;
1600  if ( yy_accept[yy_current_state] )
1601  {
1602  (yy_last_accepting_state) = yy_current_state;
1604  }
1605  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1606  {
1607  yy_current_state = (int) yy_def[yy_current_state];
1608  if ( yy_current_state >= 136 )
1609  yy_c = yy_meta[yy_c];
1610  }
1611  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1612  yy_is_jam = (yy_current_state == 135);
1613 
1614  return yy_is_jam ? 0 : yy_current_state;
1615 }
1616 
1617 #ifndef YY_NO_UNPUT
1618 
1619 #endif
1620 
1621 #ifndef YY_NO_INPUT
1622 #ifdef __cplusplus
1623  static int yyinput (void)
1624 #else
1625  static int input (void)
1626 #endif
1627 
1628 {
1629  int c;
1630 
1631  *(yy_c_buf_p) = (yy_hold_char);
1632 
1633  if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
1634  {
1635  /* yy_c_buf_p now points to the character we want to return.
1636  * If this occurs *before* the EOB characters, then it's a
1637  * valid NUL; if not, then we've hit the end of the buffer.
1638  */
1639  if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1640  /* This was really a NUL. */
1641  *(yy_c_buf_p) = '\0';
1642 
1643  else
1644  { /* need more input */
1645  int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
1646  ++(yy_c_buf_p);
1647 
1648  switch ( yy_get_next_buffer( ) )
1649  {
1650  case EOB_ACT_LAST_MATCH:
1651  /* This happens because yy_g_n_b()
1652  * sees that we've accumulated a
1653  * token and flags that we need to
1654  * try matching the token before
1655  * proceeding. But for input(),
1656  * there's no matching to consider.
1657  * So convert the EOB_ACT_LAST_MATCH
1658  * to EOB_ACT_END_OF_FILE.
1659  */
1660 
1661  /* Reset buffer status. */
1662  yyrestart( yyin );
1663 
1664  /*FALLTHROUGH*/
1665 
1666  case EOB_ACT_END_OF_FILE:
1667  {
1668  if ( yywrap( ) )
1669  return 0;
1670 
1671  if ( ! (yy_did_buffer_switch_on_eof) )
1672  YY_NEW_FILE;
1673 #ifdef __cplusplus
1674  return yyinput();
1675 #else
1676  return input();
1677 #endif
1678  }
1679 
1680  case EOB_ACT_CONTINUE_SCAN:
1681  (yy_c_buf_p) = (yytext_ptr) + offset;
1682  break;
1683  }
1684  }
1685  }
1686 
1687  c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
1688  *(yy_c_buf_p) = '\0'; /* preserve yytext */
1689  (yy_hold_char) = *++(yy_c_buf_p);
1690 
1691  return c;
1692 }
1693 #endif /* ifndef YY_NO_INPUT */
1694 
1700  void yyrestart (FILE * input_file )
1701 {
1702 
1703  if ( ! YY_CURRENT_BUFFER ){
1707  }
1708 
1709  yy_init_buffer( YY_CURRENT_BUFFER, input_file );
1711 }
1712 
1717  void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
1718 {
1719 
1720  /* TODO. We should be able to replace this entire function body
1721  * with
1722  * yypop_buffer_state();
1723  * yypush_buffer_state(new_buffer);
1724  */
1726  if ( YY_CURRENT_BUFFER == new_buffer )
1727  return;
1728 
1729  if ( YY_CURRENT_BUFFER )
1730  {
1731  /* Flush out information for old buffer. */
1732  *(yy_c_buf_p) = (yy_hold_char);
1733  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1734  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1735  }
1736 
1737  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1739 
1740  /* We don't actually know whether we did this switch during
1741  * EOF (yywrap()) processing, but the only time this flag
1742  * is looked at is after yywrap() is called, so it's safe
1743  * to go ahead and always set it.
1744  */
1746 }
1747 
1748 static void yy_load_buffer_state (void)
1749 {
1750  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1751  (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1752  yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1753  (yy_hold_char) = *(yy_c_buf_p);
1754 }
1755 
1762  YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
1763 {
1765 
1766  b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
1767  if ( ! b )
1768  YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1769 
1770  b->yy_buf_size = size;
1771 
1772  /* yy_ch_buf has to be 2 characters longer than the size given because
1773  * we need to put in 2 end-of-buffer characters.
1774  */
1775  b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
1776  if ( ! b->yy_ch_buf )
1777  YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1778 
1779  b->yy_is_our_buffer = 1;
1780 
1781  yy_init_buffer( b, file );
1782 
1783  return b;
1784 }
1785 
1791 {
1792 
1793  if ( ! b )
1794  return;
1795 
1796  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1798 
1799  if ( b->yy_is_our_buffer )
1800  yyfree( (void *) b->yy_ch_buf );
1801 
1802  yyfree( (void *) b );
1803 }
1804 
1805 /* Initializes or reinitializes a buffer.
1806  * This function is sometimes called more than once on the same buffer,
1807  * such as during a yyrestart() or at EOF.
1808  */
1809  static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
1810 
1811 {
1812  int oerrno = errno;
1813 
1814  yy_flush_buffer( b );
1815 
1816  b->yy_input_file = file;
1817  b->yy_fill_buffer = 1;
1818 
1819  /* If b is the current buffer, then yy_init_buffer was _probably_
1820  * called from yyrestart() or through yy_get_next_buffer.
1821  * In that case, we don't want to reset the lineno or column.
1822  */
1823  if (b != YY_CURRENT_BUFFER){
1824  b->yy_bs_lineno = 1;
1825  b->yy_bs_column = 0;
1826  }
1827 
1828  b->yy_is_interactive = 0;
1829 
1830  errno = oerrno;
1831 }
1832 
1838 {
1839  if ( ! b )
1840  return;
1841 
1842  b->yy_n_chars = 0;
1843 
1844  /* We always need two end-of-buffer characters. The first causes
1845  * a transition to the end-of-buffer state. The second causes
1846  * a jam in that state.
1847  */
1848  b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1849  b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1850 
1851  b->yy_buf_pos = &b->yy_ch_buf[0];
1852 
1853  b->yy_at_bol = 1;
1854  b->yy_buffer_status = YY_BUFFER_NEW;
1855 
1856  if ( b == YY_CURRENT_BUFFER )
1858 }
1859 
1866 void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
1867 {
1868  if (new_buffer == NULL)
1869  return;
1870 
1872 
1873  /* This block is copied from yy_switch_to_buffer. */
1874  if ( YY_CURRENT_BUFFER )
1875  {
1876  /* Flush out information for old buffer. */
1877  *(yy_c_buf_p) = (yy_hold_char);
1878  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1879  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1880  }
1881 
1882  /* Only push if top exists. Otherwise, replace top. */
1883  if (YY_CURRENT_BUFFER)
1884  (yy_buffer_stack_top)++;
1885  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1886 
1887  /* copied from yy_switch_to_buffer. */
1890 }
1891 
1896 void yypop_buffer_state (void)
1897 {
1898  if (!YY_CURRENT_BUFFER)
1899  return;
1900 
1902  YY_CURRENT_BUFFER_LVALUE = NULL;
1903  if ((yy_buffer_stack_top) > 0)
1904  --(yy_buffer_stack_top);
1905 
1906  if (YY_CURRENT_BUFFER) {
1909  }
1910 }
1911 
1912 /* Allocates the stack if it does not exist.
1913  * Guarantees space for at least one push.
1914  */
1915 static void yyensure_buffer_stack (void)
1916 {
1917  yy_size_t num_to_alloc;
1918 
1919  if (!(yy_buffer_stack)) {
1920 
1921  /* First allocation is just for 2 elements, since we don't know if this
1922  * scanner will even need a stack. We use 2 instead of 1 to avoid an
1923  * immediate realloc on the next call.
1924  */
1925  num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
1927  (num_to_alloc * sizeof(struct yy_buffer_state*)
1928  );
1929  if ( ! (yy_buffer_stack) )
1930  YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1931 
1932  memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1933 
1934  (yy_buffer_stack_max) = num_to_alloc;
1935  (yy_buffer_stack_top) = 0;
1936  return;
1937  }
1938 
1939  if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1940 
1941  /* Increase the buffer to prepare for a possible push. */
1942  yy_size_t grow_size = 8 /* arbitrary grow size */;
1943 
1944  num_to_alloc = (yy_buffer_stack_max) + grow_size;
1946  ((yy_buffer_stack),
1947  num_to_alloc * sizeof(struct yy_buffer_state*)
1948  );
1949  if ( ! (yy_buffer_stack) )
1950  YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1951 
1952  /* zero only the new slots.*/
1953  memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1954  (yy_buffer_stack_max) = num_to_alloc;
1955  }
1956 }
1957 
1965 {
1967 
1968  if ( size < 2 ||
1969  base[size-2] != YY_END_OF_BUFFER_CHAR ||
1970  base[size-1] != YY_END_OF_BUFFER_CHAR )
1971  /* They forgot to leave room for the EOB's. */
1972  return NULL;
1973 
1974  b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
1975  if ( ! b )
1976  YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1977 
1978  b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
1979  b->yy_buf_pos = b->yy_ch_buf = base;
1980  b->yy_is_our_buffer = 0;
1981  b->yy_input_file = NULL;
1982  b->yy_n_chars = b->yy_buf_size;
1983  b->yy_is_interactive = 0;
1984  b->yy_at_bol = 1;
1985  b->yy_fill_buffer = 0;
1986  b->yy_buffer_status = YY_BUFFER_NEW;
1987 
1988  yy_switch_to_buffer( b );
1989 
1990  return b;
1991 }
1992 
2001 YY_BUFFER_STATE yy_scan_string (const char * yystr )
2002 {
2003 
2004  return yy_scan_bytes( yystr, (int) strlen(yystr) );
2005 }
2006 
2014 YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
2015 {
2017  char *buf;
2018  yy_size_t n;
2019  int i;
2020 
2021  /* Get memory for full buffer, including space for trailing EOB's. */
2022  n = (yy_size_t) (_yybytes_len + 2);
2023  buf = (char *) yyalloc( n );
2024  if ( ! buf )
2025  YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2026 
2027  for ( i = 0; i < _yybytes_len; ++i )
2028  buf[i] = yybytes[i];
2029 
2030  buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2031 
2032  b = yy_scan_buffer( buf, n );
2033  if ( ! b )
2034  YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2035 
2036  /* It's okay to grow etc. this buffer, and we should throw it
2037  * away when we're done.
2038  */
2039  b->yy_is_our_buffer = 1;
2040 
2041  return b;
2042 }
2043 
2044 #ifndef YY_EXIT_FAILURE
2045 #define YY_EXIT_FAILURE 2
2046 #endif
2047 
2048 static void yynoreturn yy_fatal_error (const char* msg )
2049 {
2050  fprintf( stderr, "%s\n", msg );
2051  exit( YY_EXIT_FAILURE );
2052 }
2053 
2054 /* Redefine yyless() so it works in section 3 code. */
2055 
2056 #undef yyless
2057 #define yyless(n) \
2058  do \
2059  { \
2060  /* Undo effects of setting up yytext. */ \
2061  int yyless_macro_arg = (n); \
2062  YY_LESS_LINENO(yyless_macro_arg);\
2063  yytext[yyleng] = (yy_hold_char); \
2064  (yy_c_buf_p) = yytext + yyless_macro_arg; \
2065  (yy_hold_char) = *(yy_c_buf_p); \
2066  *(yy_c_buf_p) = '\0'; \
2067  yyleng = yyless_macro_arg; \
2068  } \
2069  while ( 0 )
2070 
2071 /* Accessor methods (get/set functions) to struct members. */
2072 
2076 int yyget_lineno (void)
2077 {
2078 
2079  return yylineno;
2080 }
2081 
2085 FILE *yyget_in (void)
2086 {
2087  return yyin;
2088 }
2089 
2093 FILE *yyget_out (void)
2094 {
2095  return yyout;
2096 }
2097 
2101 int yyget_leng (void)
2102 {
2103  return yyleng;
2104 }
2105 
2110 char *yyget_text (void)
2111 {
2112  return yytext;
2113 }
2114 
2119 void yyset_lineno (int _line_number )
2120 {
2121 
2122  yylineno = _line_number;
2123 }
2124 
2131 void yyset_in (FILE * _in_str )
2132 {
2133  yyin = _in_str ;
2134 }
2135 
2136 void yyset_out (FILE * _out_str )
2137 {
2138  yyout = _out_str ;
2139 }
2140 
2141 int yyget_debug (void)
2142 {
2143  return yy_flex_debug;
2144 }
2145 
2146 void yyset_debug (int _bdebug )
2147 {
2148  yy_flex_debug = _bdebug ;
2149 }
2150 
2151 static int yy_init_globals (void)
2152 {
2153  /* Initialization is the same as for the non-reentrant scanner.
2154  * This function is called from yylex_destroy(), so don't allocate here.
2155  */
2156 
2157  (yy_buffer_stack) = NULL;
2158  (yy_buffer_stack_top) = 0;
2159  (yy_buffer_stack_max) = 0;
2160  (yy_c_buf_p) = NULL;
2161  (yy_init) = 0;
2162  (yy_start) = 0;
2163 
2164 /* Defined in main.c */
2165 #ifdef YY_STDINIT
2166  yyin = stdin;
2167  yyout = stdout;
2168 #else
2169  yyin = NULL;
2170  yyout = NULL;
2171 #endif
2172 
2173  /* For future reference: Set errno on error, since we are called by
2174  * yylex_init()
2175  */
2176  return 0;
2177 }
2178 
2179 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
2180 int yylex_destroy (void)
2181 {
2182 
2183  /* Pop the buffer stack, destroying each element. */
2184  while(YY_CURRENT_BUFFER){
2186  YY_CURRENT_BUFFER_LVALUE = NULL;
2188  }
2189 
2190  /* Destroy the stack itself. */
2191  yyfree((yy_buffer_stack) );
2192  (yy_buffer_stack) = NULL;
2193 
2194  /* Reset the globals. This is important in a non-reentrant scanner so the next time
2195  * yylex() is called, initialization will occur. */
2196  yy_init_globals( );
2197 
2198  return 0;
2199 }
2200 
2201 /*
2202  * Internal utility routines.
2203  */
2204 
2205 #ifndef yytext_ptr
2206 static void yy_flex_strncpy (char* s1, const char * s2, int n )
2207 {
2208 
2209  int i;
2210  for ( i = 0; i < n; ++i )
2211  s1[i] = s2[i];
2212 }
2213 #endif
2214 
2215 #ifdef YY_NEED_STRLEN
2216 static int yy_flex_strlen (const char * s )
2217 {
2218  int n;
2219  for ( n = 0; s[n]; ++n )
2220  ;
2221 
2222  return n;
2223 }
2224 #endif
2225 
2226 void *yyalloc (yy_size_t size )
2227 {
2228  return malloc(size);
2229 }
2230 
2231 void *yyrealloc (void * ptr, yy_size_t size )
2232 {
2233 
2234  /* The cast to (char *) in the following accommodates both
2235  * implementations that use char* generic pointers, and those
2236  * that use void* generic pointers. It works with the latter
2237  * because both ANSI C and C++ allow castless assignment from
2238  * any pointer type to void*, and deal with argument conversions
2239  * as though doing an assignment.
2240  */
2241  return realloc(ptr, size);
2242 }
2243 
2244 void yyfree (void * ptr )
2245 {
2246  free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
2247 }
2248 
2249 #define YYTABLES_NAME "yytables"
2250 
Array4< int const > offset
Definition: AMReX_HypreMLABecLap.cpp:1089
void amrex_parsererror(char const *s,...)
Definition: AMReX_Parser_Y.cpp:10
unsigned char flex_uint8_t
Definition: amrex_iparser.lex.h:288
short int flex_int16_t
Definition: amrex_iparser.lex.h:286
int flex_int32_t
Definition: amrex_iparser.lex.h:287
size_t yy_size_t
Definition: amrex_iparser.lex.h:360
int yy_state_type
Definition: amrex_iparser.lex.nolint.H:589
flex_uint8_t YY_CHAR
Definition: amrex_iparser.lex.nolint.H:585
@ F3
Definition: amrex_iparser.tab.h:70
@ NUMBER
Definition: amrex_iparser.tab.h:66
@ POW
Definition: amrex_iparser.tab.h:73
@ EOL
Definition: amrex_iparser.tab.h:71
@ F1
Definition: amrex_iparser.tab.h:68
@ LEQ
Definition: amrex_iparser.tab.h:75
@ AND
Definition: amrex_iparser.tab.h:78
@ OR
Definition: amrex_iparser.tab.h:79
@ GEQ
Definition: amrex_iparser.tab.h:74
@ EQ
Definition: amrex_iparser.tab.h:76
@ F2
Definition: amrex_iparser.tab.h:69
@ NEQ
Definition: amrex_iparser.tab.h:77
@ SYMBOL
Definition: amrex_iparser.tab.h:67
void * malloc(YYSIZE_T)
void free(void *)
#define yy_load_buffer_state
Definition: amrex_parser.lex.nolint.H:13
#define YY_NEW_FILE
Definition: amrex_parser.lex.nolint.H:384
#define yyset_extra
Definition: amrex_parser.lex.nolint.H:162
#define yytext
Definition: amrex_parser.lex.nolint.H:25
static const flex_int16_t yy_accept[136]
Definition: amrex_parser.lex.nolint.H:623
unsigned char flex_uint8_t
Definition: amrex_parser.lex.nolint.H:310
#define yyset_lineno
Definition: amrex_parser.lex.nolint.H:210
static char yy_hold_char
Definition: amrex_parser.lex.nolint.H:525
static yy_state_type yy_last_accepting_state
Definition: amrex_parser.lex.nolint.H:783
#define yyrestart
Definition: amrex_parser.lex.nolint.H:24
#define yyset_debug
Definition: amrex_parser.lex.nolint.H:150
static void yynoreturn yy_fatal_error(const char *msg)
#define YY_EXTRA_TYPE
Definition: amrex_parser.lex.nolint.H:818
static int yy_start
Definition: amrex_parser.lex.nolint.H:532
short int flex_int16_t
Definition: amrex_parser.lex.nolint.H:308
#define yy_flex_debug
Definition: amrex_parser.lex.nolint.H:18
#define yyget_out
Definition: amrex_parser.lex.nolint.H:180
static YY_BUFFER_STATE * yy_buffer_stack
Definition: amrex_parser.lex.nolint.H:508
unsigned int flex_uint32_t
Definition: amrex_parser.lex.nolint.H:312
static int yy_get_next_buffer(void)
#define yy_scan_bytes
Definition: amrex_parser.lex.nolint.H:10
#define YY_BREAK
Definition: amrex_parser.lex.nolint.H:979
static size_t yy_buffer_stack_max
Definition: amrex_parser.lex.nolint.H:507
#define yynoreturn
Definition: amrex_parser.lex.nolint.H:359
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
#define yyget_debug
Definition: amrex_parser.lex.nolint.H:144
int yy_act
Definition: amrex_parser.lex.nolint.H:991
#define yypush_buffer_state
Definition: amrex_parser.lex.nolint.H:15
static const flex_int16_t yy_nxt[250]
Definition: amrex_parser.lex.nolint.H:721
struct yy_buffer_state * YY_BUFFER_STATE
Definition: amrex_parser.lex.nolint.H:406
#define yyfree
Definition: amrex_parser.lex.nolint.H:29
#define yyout
Definition: amrex_parser.lex.nolint.H:23
#define YY_BUFFER_NEW
Definition: amrex_parser.lex.nolint.H:488
#define yyget_lineno
Definition: amrex_parser.lex.nolint.H:204
#define yylex
Definition: amrex_parser.lex.nolint.H:21
#define YY_RESTORE_YY_MORE_OFFSET
Definition: amrex_parser.lex.nolint.H:795
static int yy_did_buffer_switch_on_eof
Definition: amrex_parser.lex.nolint.H:537
static int yy_init_globals(void)
#define yywrap
Definition: amrex_parser.lex.nolint.H:26
#define yyget_text
Definition: amrex_parser.lex.nolint.H:198
#define YY_BUFFER_NORMAL
Definition: amrex_parser.lex.nolint.H:489
char * yy_cp
Definition: amrex_parser.lex.nolint.H:990
#define yyensure_buffer_stack
Definition: amrex_parser.lex.nolint.H:17
#define yy_scan_buffer
Definition: amrex_parser.lex.nolint.H:8
#define YY_MORE_ADJ
Definition: amrex_parser.lex.nolint.H:794
#define YY_RULE_SETUP
Definition: amrex_parser.lex.nolint.H:982
#define yy_scan_string
Definition: amrex_parser.lex.nolint.H:9
#define yytext_ptr
Definition: amrex_parser.lex.nolint.H:598
signed char flex_int8_t
Definition: amrex_parser.lex.nolint.H:307
#define yyget_leng
Definition: amrex_parser.lex.nolint.H:192
#define EOB_ACT_END_OF_FILE
Definition: amrex_parser.lex.nolint.H:419
#define yyalloc
Definition: amrex_parser.lex.nolint.H:27
#define yypop_buffer_state
Definition: amrex_parser.lex.nolint.H:16
#define YY_CURRENT_BUFFER_LVALUE
Definition: amrex_parser.lex.nolint.H:522
int flex_int32_t
Definition: amrex_parser.lex.nolint.H:309
#define yylex_destroy
Definition: amrex_parser.lex.nolint.H:138
#define YY_START
Definition: amrex_parser.lex.nolint.H:379
#define yy_switch_to_buffer
Definition: amrex_parser.lex.nolint.H:14
int yy_state_type
Definition: amrex_parser.lex.nolint.H:589
static const flex_int16_t yy_base[138]
Definition: amrex_parser.lex.nolint.H:683
#define YY_CURRENT_BUFFER
Definition: amrex_parser.lex.nolint.H:516
#define yy_init_buffer
Definition: amrex_parser.lex.nolint.H:11
#define INITIAL
Definition: amrex_parser.lex.nolint.H:807
#define yyget_extra
Definition: amrex_parser.lex.nolint.H:156
char * yy_bp
Definition: amrex_parser.lex.nolint.H:990
#define yyin
Definition: amrex_parser.lex.nolint.H:19
static int yy_n_chars
Definition: amrex_parser.lex.nolint.H:526
#define YY_READ_BUF_SIZE
Definition: amrex_parser.lex.nolint.H:891
#define YY_INPUT(buf, result, max_size)
Definition: amrex_parser.lex.nolint.H:907
#define yy_flush_buffer
Definition: amrex_parser.lex.nolint.H:12
#define yyrealloc
Definition: amrex_parser.lex.nolint.H:28
#define YY_END_OF_BUFFER
Definition: amrex_parser.lex.nolint.H:615
#define YY_STATE_EOF(state)
Definition: amrex_parser.lex.nolint.H:382
#define YY_END_OF_BUFFER_CHAR
Definition: amrex_parser.lex.nolint.H:385
#define YY_FATAL_ERROR(msg)
Definition: amrex_parser.lex.nolint.H:954
#define yyterminate()
Definition: amrex_parser.lex.nolint.H:944
unsigned short int flex_uint16_t
Definition: amrex_parser.lex.nolint.H:311
#define yy_create_buffer
Definition: amrex_parser.lex.nolint.H:6
flex_uint8_t YY_CHAR
Definition: amrex_parser.lex.nolint.H:585
#define YY_DO_BEFORE_ACTION
Definition: amrex_parser.lex.nolint.H:608
#define yy_delete_buffer
Definition: amrex_parser.lex.nolint.H:7
#define EOB_ACT_LAST_MATCH
Definition: amrex_parser.lex.nolint.H:420
#define yyget_in
Definition: amrex_parser.lex.nolint.H:168
size_t yy_size_t
Definition: amrex_parser.lex.nolint.H:411
#define YY_BUFFER_EOF_PENDING
Definition: amrex_parser.lex.nolint.H:500
#define yylineno
Definition: amrex_parser.lex.nolint.H:22
static yy_state_type yy_get_previous_state(void)
static const YY_CHAR yy_ec[256]
Definition: amrex_parser.lex.nolint.H:642
#define yyset_out
Definition: amrex_parser.lex.nolint.H:186
static char * yy_c_buf_p
Definition: amrex_parser.lex.nolint.H:530
#define EOB_ACT_CONTINUE_SCAN
Definition: amrex_parser.lex.nolint.H:418
static size_t yy_buffer_stack_top
Definition: amrex_parser.lex.nolint.H:506
#define YY_DECL
Definition: amrex_parser.lex.nolint.H:967
#define YY_BUF_SIZE
Definition: amrex_parser.lex.nolint.H:396
static const YY_CHAR yy_meta[48]
Definition: amrex_parser.lex.nolint.H:674
#define YY_EXIT_FAILURE
static int yy_init
Definition: amrex_parser.lex.nolint.H:531
static const flex_int16_t yy_def[138]
Definition: amrex_parser.lex.nolint.H:702
#define YY_SC_TO_UI(c)
Definition: amrex_parser.lex.nolint.H:368
static const flex_int16_t yy_chk[250]
Definition: amrex_parser.lex.nolint.H:752
#define yyleng
Definition: amrex_parser.lex.nolint.H:20
static char * yy_last_accepting_cpos
Definition: amrex_parser.lex.nolint.H:784
#define yyset_in
Definition: amrex_parser.lex.nolint.H:174
AMREX_PARSERSTYPE amrex_parserlval
AMREX_GPU_HOST_DEVICE Long size(T const &b) noexcept
integer version
Definition: AMReX_GpuRange.H:26
@ PARSER_AND
Definition: AMReX_Parser_Y.H:90
@ PARSER_NEQ
Definition: AMReX_Parser_Y.H:89
@ PARSER_OR
Definition: AMReX_Parser_Y.H:91
@ PARSER_ATAN2
Definition: AMReX_Parser_Y.H:83
@ PARSER_LEQ
Definition: AMReX_Parser_Y.H:87
@ PARSER_GEQ
Definition: AMReX_Parser_Y.H:86
@ PARSER_POW
Definition: AMReX_Parser_Y.H:82
@ PARSER_JN
Definition: AMReX_Parser_Y.H:93
@ PARSER_MIN
Definition: AMReX_Parser_Y.H:94
@ PARSER_MAX
Definition: AMReX_Parser_Y.H:95
@ PARSER_FMOD
Definition: AMReX_Parser_Y.H:96
@ PARSER_HEAVISIDE
Definition: AMReX_Parser_Y.H:92
@ PARSER_EQ
Definition: AMReX_Parser_Y.H:88
@ PARSER_IF
Definition: AMReX_Parser_Y.H:125
@ PARSER_ASINH
Definition: AMReX_Parser_Y.H:38
@ PARSER_TANH
Definition: AMReX_Parser_Y.H:37
@ PARSER_COS
Definition: AMReX_Parser_Y.H:30
@ PARSER_COSH
Definition: AMReX_Parser_Y.H:36
@ PARSER_COMP_ELLINT_1
Definition: AMReX_Parser_Y.H:44
@ PARSER_SQRT
Definition: AMReX_Parser_Y.H:25
@ PARSER_COMP_ELLINT_2
Definition: AMReX_Parser_Y.H:45
@ PARSER_TAN
Definition: AMReX_Parser_Y.H:31
@ PARSER_ACOS
Definition: AMReX_Parser_Y.H:33
@ PARSER_ATANH
Definition: AMReX_Parser_Y.H:40
@ PARSER_EXP
Definition: AMReX_Parser_Y.H:26
@ PARSER_LOG
Definition: AMReX_Parser_Y.H:27
@ PARSER_SIN
Definition: AMReX_Parser_Y.H:29
@ PARSER_ERF
Definition: AMReX_Parser_Y.H:46
@ PARSER_ASIN
Definition: AMReX_Parser_Y.H:32
@ PARSER_CEIL
Definition: AMReX_Parser_Y.H:43
@ PARSER_ATAN
Definition: AMReX_Parser_Y.H:34
@ PARSER_ABS
Definition: AMReX_Parser_Y.H:41
@ PARSER_ACOSH
Definition: AMReX_Parser_Y.H:39
@ PARSER_LOG10
Definition: AMReX_Parser_Y.H:28
@ PARSER_FLOOR
Definition: AMReX_Parser_Y.H:42
@ PARSER_SINH
Definition: AMReX_Parser_Y.H:35
const int[]
Definition: AMReX_BLProfiler.cpp:1664
struct parser_symbol * parser_makesymbol(char *name)
Definition: AMReX_Parser_Y.cpp:34
Definition: amrex_iparser.lex.h:370
int yy_n_chars
Definition: amrex_iparser.lex.h:384
char * yy_ch_buf
Definition: amrex_iparser.lex.h:373
int yy_bs_column
Definition: amrex_iparser.lex.h:406
FILE * yy_input_file
Definition: amrex_iparser.lex.h:371
int yy_buf_size
Definition: amrex_iparser.lex.h:379
int yy_fill_buffer
Definition: amrex_iparser.lex.h:411
int yy_buffer_status
Definition: amrex_iparser.lex.h:413
int yy_is_our_buffer
Definition: amrex_iparser.lex.h:390
int yy_bs_lineno
Definition: amrex_iparser.lex.h:405
char * yy_buf_pos
Definition: amrex_iparser.lex.h:374
int yy_at_bol
Definition: amrex_iparser.lex.h:403
int yy_is_interactive
Definition: amrex_iparser.lex.h:397
Definition: amrex_iparser.lex.nolint.H:619
flex_int32_t yy_verify
Definition: amrex_iparser.lex.nolint.H:620
flex_int32_t yy_nxt
Definition: amrex_iparser.lex.nolint.H:621
struct amrex::parser_symbol * s
Definition: amrex_parser.tab.h:92
enum amrex::parser_f3_t f3
Definition: amrex_parser.tab.h:95
double d
Definition: amrex_parser.tab.h:91
enum amrex::parser_f2_t f2
Definition: amrex_parser.tab.h:94
enum amrex::parser_f1_t f1
Definition: amrex_parser.tab.h:93