#line 3 "Parser/lex.cc" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #define YY_FLEX_SUBMINOR_VERSION 35 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ #include #include #include #include /* end standard C headers. */ /* flex integer type definitions */ #ifndef FLEXINT_H #define FLEXINT_H /* C99 systems have . Non-C99 systems may or may not. */ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. */ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 #endif #include typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; #else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* Limits of integral types. */ #ifndef INT8_MIN #define INT8_MIN (-128) #endif #ifndef INT16_MIN #define INT16_MIN (-32767-1) #endif #ifndef INT32_MIN #define INT32_MIN (-2147483647-1) #endif #ifndef INT8_MAX #define INT8_MAX (127) #endif #ifndef INT16_MAX #define INT16_MAX (32767) #endif #ifndef INT32_MAX #define INT32_MAX (2147483647) #endif #ifndef UINT8_MAX #define UINT8_MAX (255U) #endif #ifndef UINT16_MAX #define UINT16_MAX (65535U) #endif #ifndef UINT32_MAX #define UINT32_MAX (4294967295U) #endif #endif /* ! C99 */ #endif /* ! FLEXINT_H */ #ifdef __cplusplus /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ /* C99 requires __STDC__ to be defined as 1. */ #if defined (__STDC__) #define YY_USE_CONST #endif /* defined (__STDC__) */ #endif /* ! __cplusplus */ #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN (yy_start) = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START (((yy_start) - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE yyrestart(yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE #ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k. * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. * Ditto for the __ia64__ case accordingly. */ #define YY_BUF_SIZE 32768 #else #define YY_BUF_SIZE 16384 #endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. */ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE #define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif extern int yyleng; extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires * access to the local variable yy_act. Since yyless() is a macro, it would break * existing scanners that call yyless() from OUTSIDE yylex. * One obvious solution it to make yy_act a global. I tried that, and saw * a 5% performance hit in a non-yylineno scanner, because yy_act is * normally declared as a register variable-- so it is not worth it. */ #define YY_LESS_LINENO(n) \ do { \ int yyl;\ for ( yyl = n; yyl < yyleng; ++yyl )\ if ( yytext[yyl] == '\n' )\ --yylineno;\ }while(0) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via yyrestart()), so that the user can continue scanning by * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* Stack of input buffers. */ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". * * Returns the top of the stack, or NULL. */ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ int yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void yyrestart (FILE *input_file ); void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); void yy_delete_buffer (YY_BUFFER_STATE b ); void yy_flush_buffer (YY_BUFFER_STATE b ); void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); void yypop_buffer_state (void ); static void yyensure_buffer_stack (void ); static void yy_load_buffer_state (void ); static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); void *yyalloc (yy_size_t ); void *yyrealloc (void *,yy_size_t ); void yyfree (void * ); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer(yyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ yy_create_buffer(yyin,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ typedef unsigned char YY_CHAR; FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern int yylineno; int yylineno = 1; extern char *yytext; #define yytext_ptr yytext static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); static int yy_get_next_buffer (void ); static void yy_fatal_error (yyconst char msg[] ); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ yyleng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 177 #define YY_END_OF_BUFFER 178 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info { flex_int32_t yy_verify; flex_int32_t yy_nxt; }; static yyconst flex_int16_t yy_accept[851] = { 0, 0, 0, 0, 0, 0, 0, 113, 113, 116, 116, 178, 176, 7, 9, 8, 136, 115, 100, 141, 144, 112, 123, 124, 139, 137, 127, 138, 130, 140, 105, 106, 107, 128, 129, 146, 148, 147, 149, 176, 100, 121, 176, 122, 142, 100, 102, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 125, 145, 126, 143, 7, 176, 4, 4, 177, 103, 177, 104, 113, 114, 120, 116, 117, 7, 9, 0, 8, 153, 171, 100, 0, 165, 135, 158, 166, 163, 150, 161, 151, 162, 160, 0, 110, 3, 0, 164, 110, 108, 0, 0, 108, 108, 0, 0, 108, 107, 107, 107, 0, 107, 133, 134, 132, 154, 156, 152, 157, 155, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 115, 112, 100, 0, 0, 168, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 39, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 57, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 167, 159, 7, 0, 0, 0, 2, 0, 5, 103, 0, 0, 0, 113, 0, 119, 118, 118, 0, 0, 0, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 131, 110, 0, 110, 0, 0, 6, 0, 108, 0, 0, 0, 110, 0, 108, 108, 108, 108, 0, 109, 0, 0, 107, 107, 107, 107, 0, 169, 170, 0, 174, 172, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 100, 17, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 14, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 51, 100, 100, 100, 64, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 87, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 118, 0, 0, 0, 0, 0, 118, 0, 0, 175, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, 0, 0, 110, 0, 108, 108, 0, 0, 109, 109, 0, 109, 0, 109, 107, 107, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 21, 100, 24, 100, 27, 100, 100, 100, 100, 100, 100, 100, 42, 100, 44, 100, 100, 100, 100, 100, 100, 100, 56, 100, 67, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 88, 100, 100, 95, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 118, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 109, 109, 0, 111, 0, 109, 109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 22, 100, 100, 100, 100, 100, 100, 100, 15, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 23, 25, 100, 32, 100, 100, 100, 100, 100, 41, 100, 100, 100, 100, 49, 100, 100, 54, 100, 100, 100, 100, 100, 75, 100, 100, 100, 100, 100, 85, 100, 100, 93, 100, 100, 99, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 0, 0, 109, 111, 111, 0, 109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 59, 100, 100, 100, 100, 100, 100, 100, 100, 28, 100, 100, 100, 100, 40, 43, 46, 100, 100, 52, 100, 61, 68, 100, 100, 74, 76, 79, 80, 82, 83, 100, 100, 90, 100, 100, 0, 1, 0, 0, 0, 0, 0, 0, 103, 0, 0, 0, 118, 0, 0, 0, 0, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 18, 100, 100, 100, 100, 100, 100, 100, 16, 100, 100, 33, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 35, 100, 37, 38, 100, 48, 53, 100, 100, 100, 89, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 29, 55, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 60, 62, 65, 100, 100, 77, 91, 100, 100, 36, 47, 70, 71, 100, 94, 96, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 69, 100, 100, 12, 100, 30, 34, 100, 100, 100, 66, 100, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 100, 100, 100, 100, 100, 100, 50, 63, 72, 78, 92, 97, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 13, 19, 31, 100, 100, 100, 26, 86, 0, 0, 100, 100, 100, 100, 73, 98, 100, 84, 20, 45, 81, 0 } ; static yyconst flex_int32_t yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 26, 26, 26, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 11, 43, 11, 11, 44, 11, 45, 11, 46, 11, 47, 48, 49, 50, 11, 11, 51, 11, 11, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 11, 67, 68, 69, 70, 71, 72, 11, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst flex_int32_t yy_meta[86] = { 0, 1, 1, 2, 1, 1, 1, 1, 1, 3, 1, 4, 1, 1, 5, 1, 1, 1, 1, 1, 1, 6, 1, 7, 7, 7, 7, 7, 7, 1, 1, 1, 1, 1, 1, 1, 8, 8, 8, 8, 8, 8, 4, 4, 9, 4, 10, 4, 4, 4, 9, 4, 1, 11, 1, 1, 12, 1, 8, 8, 8, 8, 8, 8, 4, 4, 4, 4, 9, 4, 4, 4, 10, 4, 4, 4, 9, 4, 4, 4, 4, 4, 1, 1, 1, 1 } ; static yyconst flex_int16_t yy_base[1024] = { 0, 0, 84, 2338, 2332, 94, 0, 177, 178, 179, 180, 2348, 2604, 191, 2604, 197, 55, 2604, 2294, 60, 173, 2604, 2604, 2604, 56, 188, 2604, 191, 189, 204, 216, 275, 0, 2310, 2604, 216, 2310, 152, 344, 2288, 220, 2604, 159, 2604, 217, 226, 2604, 185, 134, 212, 251, 237, 270, 137, 257, 235, 165, 305, 314, 333, 238, 193, 2604, 225, 2604, 2301, 402, 390, 2604, 2312, 2604, 2280, 204, 2604, 0, 2604, 426, 0, 2604, 417, 2604, 439, 451, 2604, 498, 2274, 205, 2604, 2604, 2604, 2604, 2604, 2292, 2604, 2291, 2604, 2604, 2298, 559, 2604, 2315, 2604, 605, 413, 498, 516, 274, 243, 229, 293, 305, 0, 289, 253, 273, 334, 2604, 2604, 2604, 2285, 2604, 2604, 2604, 2279, 2278, 298, 314, 2293, 356, 429, 439, 366, 400, 433, 448, 2269, 434, 2218, 438, 2248, 319, 2604, 2604, 484, 2239, 2238, 2604, 2211, 310, 282, 377, 329, 409, 424, 422, 421, 503, 438, 434, 451, 474, 475, 430, 348, 461, 441, 479, 494, 499, 437, 502, 492, 520, 281, 514, 521, 2234, 536, 535, 537, 544, 539, 545, 567, 498, 540, 526, 563, 598, 570, 571, 548, 2604, 2604, 653, 662, 2283, 668, 2604, 674, 2604, 2232, 562, 2223, 2222, 0, 640, 2604, 2604, 680, 2221, 2200, 2199, 0, 2218, 616, 640, 646, 689, 688, 650, 678, 679, 682, 2215, 685, 692, 2192, 2186, 2604, 714, 707, 2604, 2185, 2237, 2604, 703, 0, 596, 760, 725, 767, 778, 603, 2604, 2190, 2165, 0, 768, 2211, 822, 696, 2604, 2182, 2157, 828, 2604, 2604, 2190, 2604, 2604, 725, 728, 2164, 2164, 723, 2160, 2154, 2153, 0, 2152, 0, 2120, 703, 708, 744, 676, 711, 722, 754, 767, 756, 764, 757, 778, 766, 773, 805, 806, 807, 784, 808, 2150, 809, 812, 813, 233, 760, 814, 816, 818, 819, 315, 821, 830, 715, 828, 833, 834, 836, 843, 845, 835, 829, 846, 2149, 714, 851, 852, 853, 855, 768, 856, 860, 857, 858, 861, 862, 2145, 863, 549, 864, 871, 868, 885, 874, 937, 938, 2140, 2134, 2133, 0, 2132, 0, 925, 929, 2126, 0, 2125, 0, 2124, 0, 2142, 2604, 924, 925, 2121, 2118, 0, 2112, 0, 937, 943, 965, 949, 989, 995, 1003, 2604, 2604, 952, 992, 1011, 957, 1050, 934, 1044, 984, 2604, 2604, 2111, 2110, 2104, 0, 2103, 0, 2102, 0, 2096, 0, 2604, 933, 926, 877, 982, 941, 989, 947, 929, 984, 990, 927, 987, 1016, 997, 1027, 1031, 1028, 1038, 588, 1029, 1039, 957, 2098, 1042, 2097, 1048, 2091, 1049, 1046, 1052, 1051, 1066, 1054, 1055, 2090, 1062, 2089, 1071, 1057, 1073, 1075, 1078, 1076, 1080, 2083, 1081, 2082, 1082, 1083, 1086, 1087, 1090, 1085, 1084, 1095, 1092, 1103, 1100, 1101, 1111, 1113, 2081, 1114, 1117, 1165, 2072, 0, 2071, 0, 2070, 0, 2049, 0, 1159, 2048, 0, 2043, 0, 2042, 2041, 2035, 0, 2034, 0, 1167, 1173, 1219, 1130, 1230, 1159, 1134, 1137, 2604, 1236, 1243, 1254, 2045, 2015, 2026, 2025, 0, 2019, 0, 2018, 0, 2017, 0, 2013, 0, 2012, 0, 1118, 1150, 2014, 1151, 1154, 1156, 1157, 1159, 1168, 1175, 1181, 1165, 1180, 1220, 1187, 1230, 1212, 1232, 1265, 1238, 1237, 1239, 1240, 1243, 2010, 1122, 1242, 2009, 1244, 1250, 1254, 1257, 1252, 2008, 1255, 1260, 1262, 1263, 2004, 1266, 1268, 1997, 1271, 1275, 1276, 1279, 1282, 1995, 988, 665, 1283, 1285, 1288, 1293, 1286, 1291, 1991, 1289, 1296, 1989, 2033, 1979, 0, 1978, 0, 1972, 0, 1971, 0, 1970, 0, 1964, 0, 1963, 0, 1962, 0, 1340, 1346, 1353, 1364, 1956, 2604, 1376, 2604, 1387, 2604, 1955, 0, 1954, 0, 1948, 0, 1947, 0, 0, 0, 1949, 0, 1365, 1297, 1294, 1332, 1305, 1330, 1333, 1366, 1352, 1373, 1342, 1372, 1371, 1377, 1381, 1382, 1384, 1408, 1389, 1392, 1396, 1388, 1395, 1398, 1943, 1399, 1400, 1409, 1410, 1942, 1941, 1935, 1413, 1171, 1934, 1411, 1933, 1929, 1415, 1418, 1928, 1927, 1923, 1922, 1921, 1888, 1420, 1416, 1887, 1427, 1422, 1932, 2604, 1878, 0, 1877, 0, 0, 0, 1874, 0, 0, 0, 2604, 0, 0, 0, 0, 1468, 1474, 1520, 1870, 0, 1869, 0, 0, 0, 0, 1865, 1414, 1450, 1867, 1432, 1454, 1452, 1453, 1463, 1464, 1451, 1866, 1302, 1470, 1472, 1434, 1497, 1482, 1487, 1500, 1498, 1486, 1480, 1502, 1503, 1504, 1862, 1505, 1861, 1860, 1506, 1853, 1832, 1507, 1508, 1510, 1831, 1509, 1511, 0, 0, 1827, 1823, 1822, 1821, 1562, 0, 1817, 1816, 1815, 1811, 1810, 1812, 1808, 1807, 1806, 1518, 1522, 1476, 1513, 1540, 1519, 1515, 1521, 1543, 1554, 1802, 1544, 1801, 1545, 1546, 1549, 1555, 1551, 1557, 1800, 1796, 1795, 1794, 1559, 1790, 1789, 1785, 1781, 1780, 1779, 1770, 1769, 1766, 1765, 1764, 1747, 1739, 1738, 1560, 1738, 1562, 1561, 1564, 1563, 1568, 1732, 1570, 1595, 1572, 1729, 1574, 1573, 1578, 1577, 1584, 1589, 1718, 1717, 1698, 1697, 1696, 1688, 1687, 1648, 1647, 1646, 1645, 1644, 1643, 1645, 1590, 1591, 1594, 1592, 1599, 1593, 1644, 1643, 1603, 1642, 1640, 1604, 1608, 1609, 1636, 1635, 1634, 1633, 1631, 1630, 1427, 1351, 1612, 1614, 1167, 1613, 1120, 1620, 1622, 1624, 870, 613, 578, 452, 1615, 1626, 1628, 1629, 372, 287, 1630, 236, 200, 199, 166, 2604, 1705, 1717, 1729, 1738, 1747, 1759, 1768, 1780, 1792, 1804, 1811, 1820, 1826, 1832, 1838, 1844, 1850, 1856, 1862, 1868, 1874, 1886, 1892, 1895, 1902, 1904, 1910, 1916, 1922, 1924, 1930, 1935, 1947, 1959, 1965, 1971, 1977, 1983, 1985, 1991, 1993, 1999, 2001, 2007, 2009, 2015, 2017, 2023, 2025, 2031, 2033, 2039, 2046, 2052, 2058, 2064, 2070, 2072, 2078, 2080, 2086, 2088, 2094, 2099, 2111, 2117, 2123, 2125, 2131, 2133, 2139, 2141, 2147, 2149, 2155, 2157, 2163, 2165, 2171, 2177, 2179, 2185, 2187, 2193, 2199, 2205, 2207, 2213, 2215, 2221, 2223, 2229, 2231, 2237, 2239, 2245, 2250, 2262, 2268, 2274, 2276, 2282, 2284, 2290, 2292, 2298, 2300, 2306, 2308, 2314, 2316, 2322, 2324, 2330, 2332, 2338, 2344, 2346, 2352, 2354, 2360, 2362, 2368, 2370, 2372, 2377, 2383, 2391, 2397, 2403, 2405, 2411, 2413, 2415, 2420, 2426, 2428, 2430, 2432, 2434, 2436, 2438, 2440, 2446, 2448, 2454, 2456, 2458, 2460, 2462, 2471, 2477, 2479, 2481, 2487, 2493, 2499, 2501, 2507, 2513, 2519, 2525, 2531, 2537, 2543, 2549, 2555, 2561, 2567, 2573, 2579, 2585, 2591 } ; static yyconst flex_int16_t yy_def[1024] = { 0, 850, 1, 851, 851, 850, 5, 852, 852, 853, 853, 850, 850, 850, 850, 850, 850, 850, 854, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 31, 850, 850, 850, 850, 850, 850, 855, 854, 850, 850, 850, 850, 854, 850, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 850, 850, 850, 850, 850, 856, 850, 850, 850, 857, 850, 850, 858, 850, 850, 859, 850, 850, 850, 850, 850, 850, 850, 854, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 860, 850, 850, 30, 850, 850, 850, 850, 861, 30, 850, 31, 850, 850, 31, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 862, 850, 850, 850, 854, 863, 864, 850, 850, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 854, 850, 850, 850, 856, 856, 856, 850, 856, 850, 857, 850, 865, 866, 858, 850, 850, 850, 850, 867, 868, 869, 859, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 870, 871, 850, 850, 850, 850, 230, 872, 850, 850, 103, 103, 850, 850, 850, 850, 850, 850, 850, 850, 873, 874, 875, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 862, 850, 876, 877, 878, 879, 880, 881, 850, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 882, 883, 884, 885, 886, 887, 888, 889, 890, 850, 850, 891, 892, 893, 894, 895, 896, 850, 850, 850, 850, 850, 897, 898, 899, 900, 850, 850, 850, 850, 850, 850, 850, 850, 850, 901, 902, 903, 850, 850, 850, 903, 850, 850, 850, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 850, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 850, 924, 925, 926, 927, 928, 928, 929, 930, 931, 932, 850, 850, 850, 933, 850, 933, 850, 850, 850, 850, 850, 850, 850, 850, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 850, 850, 850, 850, 965, 850, 850, 850, 850, 850, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 976, 978, 850, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 850, 989, 990, 991, 992, 850, 850, 850, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1002, 1003, 981, 1004, 1005, 1006, 850, 1007, 993, 995, 1008, 1009, 1000, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1010, 1011, 1004, 1012, 1005, 1013, 1006, 1014, 1015, 1008, 1016, 1009, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1017, 1010, 1018, 1011, 1019, 1012, 1020, 1013, 1021, 1014, 1022, 1015, 1016, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1023, 1017, 1018, 1019, 1020, 995, 1021, 1022, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1023, 995, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 0, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850 } ; static yyconst flex_int16_t yy_nxt[2690] = { 0, 12, 13, 14, 15, 15, 15, 13, 16, 17, 12, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 32, 32, 32, 33, 34, 35, 36, 37, 38, 39, 18, 18, 18, 18, 18, 18, 18, 18, 40, 18, 18, 18, 18, 18, 40, 18, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 18, 54, 18, 55, 18, 18, 18, 18, 56, 57, 58, 59, 60, 61, 18, 18, 18, 62, 63, 64, 65, 66, 83, 91, 84, 84, 66, 87, 88, 67, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 70, 72, 70, 70, 71, 73, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 70, 70, 70, 70, 75, 75, 78, 78, 122, 123, 89, 86, 78, 78, 86, 75, 75, 79, 80, 81, 81, 81, 79, 81, 80, 82, 82, 82, 81, 90, 92, 159, 175, 144, 97, 94, 98, 98, 98, 98, 98, 98, 86, 86, 93, 99, 84, 95, 96, 84, 100, 180, 117, 141, 76, 76, 76, 76, 142, 145, 101, 102, 86, 103, 103, 103, 103, 104, 104, 118, 86, 119, 120, 146, 247, 147, 86, 86, 203, 227, 105, 192, 191, 157, 106, 158, 148, 149, 150, 86, 107, 108, 151, 152, 160, 153, 109, 86, 154, 155, 143, 161, 105, 86, 204, 228, 156, 162, 110, 249, 86, 245, 86, 86, 86, 86, 107, 416, 850, 108, 102, 253, 111, 111, 111, 111, 111, 111, 86, 167, 178, 168, 193, 190, 86, 246, 179, 163, 850, 105, 169, 164, 243, 112, 176, 254, 165, 86, 244, 113, 166, 177, 170, 255, 258, 114, 259, 251, 86, 86, 171, 105, 172, 252, 86, 173, 141, 115, 850, 174, 258, 142, 259, 250, 244, 113, 124, 275, 311, 244, 125, 126, 86, 127, 188, 128, 129, 86, 130, 252, 131, 86, 86, 266, 181, 182, 850, 243, 423, 132, 133, 134, 273, 185, 183, 244, 86, 184, 252, 274, 86, 186, 258, 143, 259, 277, 197, 198, 187, 267, 135, 197, 258, 136, 259, 86, 251, 189, 194, 80, 81, 81, 81, 194, 252, 300, 195, 199, 199, 199, 199, 199, 199, 79, 80, 81, 81, 81, 79, 86, 137, 138, 206, 207, 86, 261, 258, 206, 259, 208, 237, 237, 237, 237, 208, 81, 80, 81, 81, 81, 81, 260, 276, 209, 209, 209, 209, 81, 80, 82, 82, 82, 81, 260, 208, 258, 86, 259, 850, 258, 258, 259, 259, 238, 258, 258, 259, 259, 86, 86, 210, 86, 278, 208, 258, 262, 259, 86, 208, 208, 281, 86, 208, 208, 86, 86, 850, 141, 86, 279, 208, 280, 142, 208, 299, 208, 211, 208, 86, 212, 214, 292, 850, 293, 215, 216, 307, 294, 86, 217, 218, 302, 219, 102, 220, 104, 104, 104, 104, 104, 104, 86, 86, 221, 222, 223, 86, 297, 240, 301, 240, 86, 105, 241, 241, 241, 241, 241, 241, 86, 298, 86, 295, 296, 224, 86, 86, 225, 239, 86, 86, 305, 141, 303, 105, 282, 309, 283, 326, 284, 285, 86, 304, 286, 308, 287, 242, 86, 86, 306, 288, 289, 290, 86, 291, 226, 230, 230, 230, 230, 230, 230, 86, 86, 86, 310, 86, 86, 312, 317, 313, 86, 86, 231, 232, 86, 86, 232, 314, 316, 328, 141, 318, 322, 321, 315, 338, 327, 335, 233, 86, 850, 319, 320, 86, 231, 232, 86, 86, 324, 323, 232, 98, 98, 98, 98, 98, 98, 850, 329, 331, 333, 339, 334, 325, 86, 206, 207, 332, 231, 232, 206, 352, 232, 353, 86, 365, 368, 330, 194, 80, 81, 81, 81, 194, 236, 522, 195, 197, 198, 86, 231, 232, 197, 197, 198, 352, 232, 353, 197, 336, 198, 352, 368, 353, 336, 352, 337, 353, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 344, 344, 344, 344, 353, 353, 354, 352, 352, 353, 353, 352, 355, 353, 352, 86, 353, 352, 352, 353, 353, 352, 361, 353, 361, 643, 86, 362, 362, 362, 362, 362, 362, 345, 230, 230, 230, 230, 230, 230, 231, 232, 394, 378, 232, 241, 241, 241, 241, 241, 241, 231, 232, 86, 258, 232, 259, 258, 86, 259, 363, 86, 231, 232, 86, 86, 391, 233, 232, 378, 380, 426, 86, 231, 232, 437, 392, 396, 395, 232, 104, 104, 104, 104, 104, 104, 371, 366, 366, 366, 366, 366, 366, 240, 86, 240, 381, 105, 241, 241, 241, 241, 241, 241, 86, 232, 86, 86, 232, 373, 86, 374, 393, 250, 86, 375, 86, 86, 86, 105, 367, 376, 398, 86, 397, 403, 399, 232, 86, 400, 417, 405, 232, 377, 86, 401, 402, 374, 442, 406, 407, 375, 104, 104, 104, 104, 104, 104, 111, 111, 111, 111, 111, 111, 404, 86, 86, 86, 86, 86, 408, 411, 86, 86, 86, 409, 86, 414, 86, 86, 410, 86, 415, 421, 422, 250, 412, 413, 86, 86, 86, 255, 418, 86, 86, 86, 86, 419, 420, 425, 424, 430, 428, 86, 427, 86, 86, 435, 431, 429, 432, 86, 86, 86, 434, 86, 86, 86, 86, 436, 86, 86, 86, 86, 86, 439, 438, 433, 86, 444, 86, 86, 449, 443, 86, 440, 452, 86, 441, 445, 448, 446, 450, 447, 451, 86, 336, 198, 198, 454, 453, 336, 504, 337, 196, 208, 208, 208, 208, 344, 344, 344, 344, 352, 352, 353, 353, 362, 362, 362, 362, 362, 362, 475, 475, 475, 475, 475, 475, 230, 230, 230, 230, 230, 230, 487, 86, 86, 464, 86, 361, 232, 361, 86, 232, 362, 362, 362, 362, 362, 362, 86, 503, 512, 502, 479, 476, 86, 482, 488, 506, 509, 364, 232, 483, 480, 508, 86, 232, 237, 237, 237, 237, 104, 104, 366, 366, 366, 366, 366, 366, 479, 525, 366, 366, 366, 366, 366, 366, 371, 483, 483, 86, 232, 86, 479, 232, 86, 86, 86, 86, 232, 365, 510, 232, 481, 642, 86, 367, 482, 507, 505, 373, 511, 374, 232, 477, 483, 375, 513, 232, 479, 850, 232, 376, 484, 86, 484, 232, 516, 485, 485, 485, 485, 485, 485, 377, 86, 86, 86, 374, 86, 514, 515, 375, 373, 518, 374, 86, 86, 523, 375, 86, 519, 521, 517, 86, 489, 86, 86, 520, 86, 86, 486, 86, 86, 526, 86, 524, 377, 527, 530, 86, 374, 535, 531, 86, 375, 529, 534, 528, 86, 533, 86, 532, 86, 86, 536, 86, 538, 86, 86, 86, 86, 86, 86, 86, 86, 539, 543, 86, 537, 86, 541, 550, 86, 542, 540, 544, 553, 86, 86, 551, 86, 546, 545, 547, 548, 552, 556, 554, 86, 549, 86, 86, 198, 624, 86, 86, 557, 86, 562, 86, 479, 559, 555, 561, 479, 558, 208, 208, 208, 208, 480, 584, 601, 560, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 475, 479, 86, 86, 479, 479, 86, 232, 86, 86, 232, 86, 584, 232, 583, 602, 232, 86, 603, 86, 86, 605, 476, 86, 607, 608, 604, 86, 579, 232, 479, 606, 86, 86, 232, 232, 610, 611, 609, 86, 232, 366, 366, 366, 366, 366, 366, 580, 614, 580, 710, 612, 581, 581, 581, 581, 581, 581, 485, 485, 485, 485, 485, 485, 86, 585, 585, 585, 585, 585, 585, 484, 86, 484, 477, 616, 485, 485, 485, 485, 485, 485, 86, 586, 86, 582, 586, 615, 618, 86, 86, 86, 86, 613, 86, 86, 86, 617, 587, 619, 623, 622, 86, 625, 86, 586, 86, 86, 621, 86, 586, 620, 86, 630, 86, 86, 631, 86, 86, 627, 86, 628, 626, 86, 629, 636, 633, 86, 86, 632, 634, 86, 637, 635, 86, 86, 638, 86, 86, 647, 86, 86, 644, 86, 640, 86, 86, 648, 86, 86, 639, 641, 646, 649, 86, 683, 682, 86, 650, 645, 740, 651, 475, 475, 475, 475, 475, 475, 581, 581, 581, 581, 581, 581, 685, 669, 669, 669, 669, 669, 669, 580, 86, 580, 86, 86, 581, 581, 581, 581, 581, 581, 687, 586, 86, 579, 586, 684, 585, 585, 585, 585, 585, 585, 86, 686, 850, 691, 670, 585, 585, 585, 585, 585, 585, 586, 586, 86, 86, 586, 586, 689, 680, 86, 86, 86, 688, 586, 690, 86, 586, 587, 698, 86, 86, 681, 86, 696, 586, 692, 86, 86, 671, 586, 86, 693, 694, 86, 86, 586, 86, 86, 86, 697, 586, 695, 699, 701, 702, 704, 86, 86, 86, 86, 700, 86, 86, 86, 86, 703, 86, 708, 86, 705, 86, 706, 712, 713, 715, 86, 711, 714, 850, 707, 86, 709, 86, 731, 716, 717, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, 86, 86, 86, 86, 86, 743, 586, 735, 733, 586, 732, 734, 586, 86, 86, 586, 737, 738, 744, 739, 86, 670, 86, 736, 747, 742, 86, 724, 586, 741, 86, 775, 86, 586, 586, 745, 86, 86, 750, 586, 585, 585, 585, 585, 585, 585, 746, 86, 86, 749, 86, 748, 86, 86, 86, 86, 86, 86, 86, 86, 86, 86, 751, 86, 754, 86, 752, 759, 86, 86, 760, 86, 86, 671, 780, 753, 782, 756, 776, 755, 757, 758, 669, 669, 669, 669, 669, 669, 773, 774, 86, 779, 778, 86, 86, 86, 86, 783, 784, 86, 777, 86, 786, 785, 86, 86, 781, 86, 787, 86, 86, 86, 86, 86, 86, 724, 788, 807, 86, 811, 86, 809, 86, 86, 86, 812, 814, 86, 86, 806, 789, 815, 790, 805, 86, 808, 816, 804, 810, 86, 86, 86, 86, 86, 86, 86, 813, 829, 828, 86, 817, 830, 831, 86, 86, 818, 833, 834, 86, 86, 832, 827, 86, 86, 86, 86, 841, 835, 836, 840, 86, 839, 86, 842, 86, 843, 86, 844, 86, 86, 86, 847, 848, 838, 850, 845, 850, 850, 850, 837, 86, 846, 86, 86, 86, 86, 850, 850, 826, 850, 825, 850, 849, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 85, 823, 850, 85, 85, 85, 85, 85, 85, 139, 822, 850, 821, 139, 139, 139, 139, 139, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 201, 850, 820, 201, 201, 201, 201, 201, 201, 205, 86, 205, 205, 86, 205, 205, 205, 205, 205, 86, 205, 213, 850, 803, 213, 213, 213, 213, 213, 213, 213, 850, 213, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 248, 248, 248, 802, 800, 850, 248, 264, 798, 850, 264, 264, 264, 264, 264, 264, 268, 268, 796, 850, 794, 268, 270, 270, 792, 86, 86, 270, 340, 340, 86, 86, 86, 340, 342, 342, 86, 86, 86, 342, 346, 346, 86, 86, 86, 346, 348, 348, 86, 850, 772, 348, 350, 350, 770, 850, 850, 350, 357, 357, 767, 765, 763, 357, 359, 359, 850, 86, 86, 359, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 370, 370, 372, 372, 372, 372, 372, 86, 372, 248, 248, 248, 382, 382, 86, 86, 86, 382, 384, 384, 86, 86, 730, 384, 386, 386, 727, 726, 202, 386, 268, 268, 388, 388, 720, 719, 653, 388, 270, 270, 85, 86, 86, 85, 85, 85, 85, 85, 85, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 456, 456, 86, 86, 86, 456, 458, 458, 86, 86, 86, 458, 460, 460, 86, 86, 86, 460, 340, 340, 462, 462, 86, 86, 86, 462, 342, 342, 465, 465, 86, 678, 677, 465, 346, 346, 467, 467, 675, 673, 583, 467, 348, 348, 469, 469, 668, 667, 665, 469, 350, 350, 471, 471, 663, 661, 659, 471, 357, 357, 473, 473, 657, 655, 653, 473, 359, 359, 478, 478, 86, 478, 86, 478, 370, 370, 86, 370, 86, 370, 372, 372, 372, 372, 372, 86, 372, 490, 490, 86, 86, 86, 490, 492, 492, 86, 600, 598, 492, 494, 494, 596, 594, 592, 494, 382, 382, 496, 496, 590, 489, 588, 496, 384, 384, 498, 498, 588, 578, 576, 498, 386, 386, 500, 500, 470, 470, 574, 500, 388, 388, 85, 572, 570, 85, 85, 85, 85, 85, 85, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 455, 563, 563, 568, 566, 564, 563, 456, 456, 565, 565, 86, 86, 86, 565, 458, 458, 567, 567, 86, 86, 86, 567, 460, 460, 569, 569, 86, 86, 501, 569, 462, 462, 571, 571, 499, 497, 495, 571, 465, 465, 573, 573, 493, 491, 474, 573, 467, 467, 469, 469, 472, 353, 353, 469, 575, 575, 470, 468, 466, 575, 471, 471, 577, 577, 463, 461, 459, 577, 473, 473, 478, 478, 457, 478, 86, 478, 372, 372, 86, 86, 390, 372, 589, 589, 389, 387, 385, 589, 490, 490, 591, 591, 383, 265, 260, 591, 492, 492, 593, 593, 259, 379, 379, 593, 494, 494, 595, 595, 247, 369, 369, 595, 496, 496, 597, 597, 235, 364, 360, 597, 498, 498, 599, 599, 358, 356, 352, 599, 500, 500, 85, 351, 349, 85, 85, 85, 85, 85, 85, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 654, 654, 347, 343, 341, 654, 563, 563, 656, 656, 202, 198, 86, 656, 565, 565, 658, 658, 272, 271, 269, 658, 567, 567, 660, 660, 265, 260, 263, 660, 569, 569, 662, 662, 260, 258, 257, 662, 571, 571, 664, 664, 256, 235, 229, 664, 573, 573, 666, 666, 84, 84, 86, 666, 575, 575, 85, 85, 202, 200, 84, 85, 577, 577, 478, 478, 140, 121, 116, 478, 672, 672, 86, 850, 69, 672, 589, 589, 674, 674, 69, 850, 850, 674, 591, 591, 676, 676, 850, 850, 850, 676, 593, 593, 139, 139, 850, 850, 850, 139, 595, 595, 679, 679, 597, 597, 85, 850, 850, 85, 85, 85, 85, 85, 85, 599, 599, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 718, 718, 850, 850, 850, 718, 654, 654, 201, 201, 850, 850, 850, 201, 656, 656, 721, 721, 658, 658, 201, 850, 850, 201, 201, 201, 201, 201, 201, 660, 660, 722, 722, 662, 662, 664, 664, 723, 723, 666, 666, 85, 85, 725, 725, 850, 850, 850, 725, 672, 672, 264, 264, 850, 850, 850, 264, 674, 674, 728, 728, 676, 676, 139, 139, 729, 729, 850, 850, 850, 729, 85, 850, 850, 85, 85, 85, 85, 85, 85, 761, 761, 718, 718, 762, 762, 850, 850, 850, 762, 764, 764, 850, 850, 850, 764, 766, 766, 850, 850, 850, 766, 768, 768, 769, 769, 850, 850, 850, 769, 771, 771, 850, 850, 850, 771, 791, 791, 850, 850, 850, 791, 793, 793, 850, 850, 850, 793, 795, 795, 850, 850, 850, 795, 797, 797, 850, 850, 850, 797, 799, 799, 850, 850, 850, 799, 801, 801, 850, 850, 850, 801, 599, 599, 850, 850, 850, 599, 819, 819, 850, 850, 850, 819, 660, 660, 850, 850, 850, 660, 664, 664, 850, 850, 850, 664, 85, 85, 850, 850, 850, 85, 824, 824, 850, 850, 850, 824, 139, 139, 850, 850, 850, 139, 201, 201, 850, 850, 850, 201, 11, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850 } ; static yyconst flex_int16_t yy_chk[2690] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 16, 24, 16, 24, 2, 19, 19, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 8, 9, 10, 37, 37, 20, 48, 9, 10, 53, 7, 8, 13, 13, 13, 13, 13, 13, 15, 15, 15, 15, 15, 15, 20, 25, 48, 53, 42, 28, 27, 28, 28, 28, 28, 28, 28, 56, 849, 25, 29, 25, 27, 27, 27, 29, 56, 35, 40, 7, 8, 9, 10, 40, 42, 29, 30, 47, 30, 30, 30, 30, 30, 30, 35, 61, 35, 35, 44, 108, 44, 848, 847, 72, 86, 30, 63, 61, 47, 30, 47, 45, 45, 45, 49, 30, 30, 45, 45, 49, 45, 30, 40, 45, 45, 40, 49, 30, 45, 72, 86, 45, 49, 30, 108, 296, 107, 55, 846, 51, 60, 30, 296, 114, 30, 31, 113, 31, 31, 31, 31, 31, 31, 50, 51, 55, 51, 63, 60, 54, 107, 55, 50, 109, 31, 51, 50, 106, 31, 54, 113, 50, 52, 106, 31, 50, 54, 52, 114, 125, 31, 125, 112, 173, 149, 52, 31, 52, 112, 844, 52, 59, 31, 109, 52, 126, 59, 126, 109, 106, 31, 38, 149, 173, 110, 38, 38, 57, 38, 59, 38, 38, 148, 38, 112, 38, 58, 302, 140, 57, 57, 109, 110, 302, 38, 38, 38, 148, 58, 57, 110, 151, 57, 115, 148, 59, 58, 128, 59, 128, 151, 67, 67, 58, 140, 38, 67, 131, 38, 131, 163, 115, 59, 66, 66, 66, 66, 66, 66, 115, 163, 66, 67, 67, 67, 67, 67, 67, 79, 79, 79, 79, 79, 79, 843, 38, 38, 76, 76, 150, 132, 132, 76, 132, 76, 103, 103, 103, 103, 76, 81, 81, 81, 81, 81, 81, 129, 150, 76, 76, 76, 76, 82, 82, 82, 82, 82, 82, 130, 76, 129, 152, 129, 103, 133, 136, 133, 136, 103, 138, 130, 138, 130, 155, 154, 76, 153, 152, 76, 134, 134, 134, 162, 76, 76, 155, 158, 76, 76, 169, 157, 103, 143, 165, 153, 76, 154, 143, 76, 162, 76, 76, 76, 159, 76, 84, 157, 838, 158, 84, 84, 169, 159, 164, 84, 84, 165, 84, 104, 84, 104, 104, 104, 104, 104, 104, 160, 161, 84, 84, 84, 166, 161, 105, 164, 105, 143, 104, 105, 105, 105, 105, 105, 105, 171, 161, 167, 160, 160, 84, 184, 168, 84, 104, 170, 156, 168, 330, 166, 104, 156, 171, 156, 184, 156, 156, 174, 167, 156, 170, 156, 105, 172, 175, 168, 156, 156, 156, 186, 156, 84, 98, 98, 98, 98, 98, 98, 178, 177, 179, 172, 181, 185, 174, 179, 175, 180, 182, 98, 98, 191, 330, 98, 177, 178, 186, 188, 180, 182, 181, 177, 202, 185, 191, 98, 187, 238, 180, 180, 183, 98, 98, 189, 190, 183, 182, 98, 102, 102, 102, 102, 102, 102, 837, 187, 189, 190, 202, 190, 183, 409, 206, 206, 189, 102, 102, 206, 215, 102, 215, 188, 238, 243, 188, 194, 194, 194, 194, 194, 194, 102, 409, 194, 195, 195, 836, 102, 102, 195, 197, 197, 216, 102, 216, 197, 199, 199, 217, 243, 217, 199, 220, 199, 220, 195, 195, 195, 195, 195, 195, 197, 197, 197, 197, 197, 197, 199, 199, 199, 199, 199, 199, 209, 209, 209, 209, 218, 219, 221, 221, 222, 221, 222, 223, 223, 223, 225, 551, 225, 219, 218, 219, 218, 226, 231, 226, 231, 551, 276, 231, 231, 231, 231, 231, 231, 209, 230, 230, 230, 230, 230, 230, 236, 236, 276, 251, 236, 240, 240, 240, 240, 240, 240, 230, 230, 273, 261, 230, 261, 262, 274, 262, 231, 277, 236, 236, 316, 305, 273, 230, 236, 251, 265, 305, 278, 230, 230, 316, 274, 278, 277, 230, 239, 239, 239, 239, 239, 239, 248, 241, 241, 241, 241, 241, 241, 242, 275, 242, 265, 239, 242, 242, 242, 242, 242, 242, 279, 241, 281, 283, 241, 248, 297, 248, 275, 239, 282, 248, 285, 280, 321, 239, 241, 248, 280, 286, 279, 283, 281, 241, 284, 282, 297, 285, 241, 248, 290, 282, 282, 248, 321, 286, 286, 248, 250, 250, 250, 250, 250, 250, 255, 255, 255, 255, 255, 255, 284, 287, 288, 289, 291, 293, 287, 290, 294, 295, 298, 288, 299, 294, 300, 301, 289, 303, 295, 300, 301, 250, 291, 293, 306, 313, 304, 255, 298, 307, 308, 312, 309, 299, 299, 304, 303, 309, 307, 310, 306, 311, 314, 313, 310, 308, 311, 317, 318, 319, 312, 320, 322, 324, 325, 314, 323, 326, 327, 329, 331, 318, 317, 311, 333, 323, 835, 332, 329, 322, 335, 319, 333, 393, 320, 324, 327, 325, 331, 326, 332, 334, 336, 336, 337, 335, 334, 336, 393, 336, 337, 344, 344, 344, 344, 345, 345, 345, 345, 354, 355, 354, 355, 361, 361, 361, 361, 361, 361, 362, 362, 362, 362, 362, 362, 364, 364, 364, 364, 364, 364, 375, 392, 401, 344, 398, 363, 362, 363, 391, 362, 363, 363, 363, 363, 363, 363, 395, 392, 401, 391, 370, 362, 397, 373, 375, 395, 398, 364, 362, 373, 370, 397, 412, 362, 365, 365, 365, 365, 365, 365, 366, 366, 366, 366, 366, 366, 370, 412, 367, 367, 367, 367, 367, 367, 372, 373, 377, 394, 366, 399, 371, 366, 402, 550, 396, 400, 367, 365, 399, 367, 371, 550, 404, 366, 377, 396, 394, 372, 400, 372, 366, 367, 377, 372, 402, 366, 371, 376, 367, 372, 374, 403, 374, 367, 404, 374, 374, 374, 374, 374, 374, 372, 405, 407, 410, 372, 406, 403, 403, 372, 376, 406, 376, 408, 411, 410, 376, 414, 407, 408, 405, 419, 376, 416, 418, 407, 421, 420, 374, 423, 424, 414, 429, 411, 376, 416, 420, 426, 376, 424, 420, 422, 376, 419, 423, 418, 428, 422, 430, 421, 431, 433, 426, 432, 429, 434, 436, 438, 439, 444, 443, 440, 441, 430, 434, 442, 428, 446, 432, 443, 445, 433, 431, 436, 446, 448, 449, 444, 447, 439, 438, 440, 441, 445, 449, 447, 450, 442, 451, 453, 455, 527, 454, 502, 449, 831, 455, 527, 478, 451, 448, 454, 481, 450, 464, 464, 464, 464, 478, 482, 502, 453, 475, 475, 475, 475, 475, 475, 476, 476, 476, 476, 476, 476, 478, 503, 505, 480, 481, 506, 475, 507, 508, 475, 509, 482, 476, 480, 503, 476, 513, 505, 829, 510, 507, 475, 634, 509, 510, 506, 511, 476, 475, 480, 508, 514, 512, 475, 476, 512, 513, 511, 516, 476, 477, 477, 477, 477, 477, 477, 479, 516, 479, 634, 514, 479, 479, 479, 479, 479, 479, 484, 484, 484, 484, 484, 484, 518, 485, 485, 485, 485, 485, 485, 486, 515, 486, 477, 518, 486, 486, 486, 486, 486, 486, 517, 485, 519, 479, 485, 517, 520, 522, 521, 523, 524, 515, 528, 525, 530, 519, 485, 521, 525, 524, 531, 528, 534, 485, 532, 536, 523, 533, 485, 522, 537, 534, 538, 539, 536, 520, 541, 531, 542, 532, 530, 544, 533, 542, 538, 545, 546, 537, 539, 547, 544, 541, 548, 552, 545, 553, 556, 555, 554, 559, 552, 557, 547, 555, 603, 556, 560, 602, 546, 548, 554, 557, 691, 603, 602, 605, 559, 553, 691, 560, 579, 579, 579, 579, 579, 579, 580, 580, 580, 580, 580, 580, 605, 581, 581, 581, 581, 581, 581, 582, 606, 582, 604, 607, 582, 582, 582, 582, 582, 582, 607, 581, 611, 579, 581, 604, 585, 585, 585, 585, 585, 585, 609, 606, 826, 611, 581, 587, 587, 587, 587, 587, 587, 581, 585, 601, 608, 585, 581, 609, 601, 613, 612, 610, 608, 587, 610, 614, 587, 585, 618, 615, 616, 601, 617, 616, 585, 612, 622, 619, 587, 585, 620, 613, 614, 623, 621, 587, 624, 626, 627, 617, 587, 615, 619, 621, 622, 624, 618, 628, 629, 636, 620, 633, 680, 639, 648, 623, 640, 629, 647, 626, 651, 627, 639, 640, 648, 650, 636, 647, 825, 628, 683, 633, 694, 680, 650, 651, 669, 669, 669, 669, 669, 669, 670, 670, 670, 670, 670, 670, 681, 689, 685, 686, 684, 694, 669, 685, 683, 669, 681, 684, 670, 687, 688, 670, 687, 688, 695, 689, 692, 669, 693, 686, 698, 693, 737, 670, 669, 692, 701, 737, 696, 669, 670, 696, 700, 697, 701, 670, 671, 671, 671, 671, 671, 671, 697, 695, 699, 700, 698, 699, 702, 703, 704, 706, 709, 712, 713, 716, 714, 717, 702, 738, 706, 741, 703, 716, 735, 740, 717, 742, 736, 671, 742, 704, 744, 712, 738, 709, 713, 714, 724, 724, 724, 724, 724, 724, 735, 736, 739, 741, 740, 743, 746, 748, 749, 746, 748, 750, 739, 752, 750, 749, 744, 751, 743, 753, 751, 758, 773, 776, 775, 778, 777, 724, 752, 777, 779, 782, 781, 779, 783, 786, 785, 783, 786, 788, 787, 776, 753, 787, 758, 775, 789, 778, 788, 773, 781, 790, 805, 806, 808, 810, 807, 782, 785, 807, 806, 809, 789, 808, 809, 813, 816, 790, 813, 816, 817, 818, 810, 805, 827, 830, 828, 839, 830, 817, 818, 828, 832, 827, 833, 832, 834, 833, 840, 834, 841, 842, 845, 841, 842, 824, 823, 839, 822, 821, 820, 819, 815, 840, 814, 812, 811, 804, 803, 802, 801, 800, 799, 798, 845, 851, 851, 851, 851, 851, 851, 851, 851, 851, 851, 851, 851, 852, 852, 852, 852, 852, 852, 852, 852, 852, 852, 852, 852, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 853, 854, 797, 796, 854, 854, 854, 854, 854, 854, 855, 795, 794, 793, 855, 855, 855, 855, 855, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 856, 857, 792, 791, 857, 857, 857, 857, 857, 857, 858, 784, 858, 858, 780, 858, 858, 858, 858, 858, 774, 858, 859, 772, 771, 859, 859, 859, 859, 859, 859, 859, 770, 859, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 860, 861, 861, 861, 769, 768, 767, 861, 862, 766, 765, 862, 862, 862, 862, 862, 862, 863, 863, 764, 763, 762, 863, 864, 864, 761, 760, 759, 864, 865, 865, 757, 756, 755, 865, 866, 866, 754, 747, 745, 866, 867, 867, 734, 733, 732, 867, 868, 868, 731, 730, 729, 868, 869, 869, 728, 727, 726, 869, 870, 870, 723, 722, 721, 870, 871, 871, 720, 715, 711, 871, 872, 872, 872, 872, 872, 872, 872, 872, 872, 872, 872, 872, 873, 873, 874, 874, 874, 874, 874, 710, 874, 875, 875, 875, 876, 876, 708, 707, 705, 876, 877, 877, 690, 682, 679, 877, 878, 878, 674, 672, 660, 878, 879, 879, 880, 880, 656, 654, 652, 880, 881, 881, 882, 649, 646, 882, 882, 882, 882, 882, 882, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 883, 884, 884, 884, 884, 884, 884, 884, 884, 884, 884, 884, 884, 885, 885, 645, 644, 643, 885, 886, 886, 642, 641, 638, 886, 887, 887, 637, 635, 632, 887, 888, 888, 889, 889, 631, 630, 625, 889, 890, 890, 891, 891, 599, 595, 593, 891, 892, 892, 893, 893, 591, 589, 583, 893, 894, 894, 895, 895, 577, 575, 573, 895, 896, 896, 897, 897, 571, 569, 567, 897, 898, 898, 899, 899, 565, 563, 562, 899, 900, 900, 901, 901, 561, 901, 558, 901, 902, 902, 549, 902, 543, 902, 903, 903, 903, 903, 903, 540, 903, 904, 904, 535, 529, 526, 904, 905, 905, 504, 500, 498, 905, 906, 906, 496, 494, 492, 906, 907, 907, 908, 908, 490, 489, 488, 908, 909, 909, 910, 910, 487, 473, 471, 910, 911, 911, 912, 912, 470, 469, 467, 912, 913, 913, 914, 465, 462, 914, 914, 914, 914, 914, 914, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 915, 916, 916, 460, 458, 456, 916, 917, 917, 918, 918, 452, 437, 435, 918, 919, 919, 920, 920, 427, 425, 417, 920, 921, 921, 922, 922, 415, 413, 388, 922, 923, 923, 924, 924, 386, 384, 382, 924, 925, 925, 926, 926, 381, 380, 359, 926, 927, 927, 928, 928, 357, 356, 352, 928, 929, 929, 350, 348, 346, 929, 930, 930, 931, 931, 342, 340, 339, 931, 932, 932, 933, 933, 338, 933, 328, 933, 934, 934, 315, 292, 272, 934, 935, 935, 270, 268, 267, 935, 936, 936, 937, 937, 266, 264, 263, 937, 938, 938, 939, 939, 258, 254, 253, 939, 940, 940, 941, 941, 249, 246, 245, 941, 942, 942, 943, 943, 234, 233, 228, 943, 944, 944, 945, 945, 227, 224, 214, 945, 946, 946, 947, 212, 211, 947, 947, 947, 947, 947, 947, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 948, 949, 949, 210, 204, 203, 949, 950, 950, 951, 951, 201, 196, 176, 951, 952, 952, 953, 953, 147, 145, 144, 953, 954, 954, 955, 955, 139, 137, 135, 955, 956, 956, 957, 957, 127, 124, 123, 957, 958, 958, 959, 959, 119, 100, 97, 959, 960, 960, 961, 961, 94, 92, 85, 961, 962, 962, 963, 963, 71, 69, 65, 963, 964, 964, 965, 965, 39, 36, 33, 965, 966, 966, 18, 11, 4, 966, 967, 967, 968, 968, 3, 0, 0, 968, 969, 969, 970, 970, 0, 0, 0, 970, 971, 971, 972, 972, 0, 0, 0, 972, 973, 973, 974, 974, 975, 975, 976, 0, 0, 976, 976, 976, 976, 976, 976, 977, 977, 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, 979, 979, 0, 0, 0, 979, 980, 980, 981, 981, 0, 0, 0, 981, 982, 982, 983, 983, 984, 984, 985, 0, 0, 985, 985, 985, 985, 985, 985, 986, 986, 987, 987, 988, 988, 989, 989, 990, 990, 991, 991, 992, 992, 993, 993, 0, 0, 0, 993, 994, 994, 995, 995, 0, 0, 0, 995, 996, 996, 997, 997, 998, 998, 999, 999, 1000, 1000, 0, 0, 0, 1000, 1001, 0, 0, 1001, 1001, 1001, 1001, 1001, 1001, 1002, 1002, 1003, 1003, 1004, 1004, 0, 0, 0, 1004, 1005, 1005, 0, 0, 0, 1005, 1006, 1006, 0, 0, 0, 1006, 1007, 1007, 1008, 1008, 0, 0, 0, 1008, 1009, 1009, 0, 0, 0, 1009, 1010, 1010, 0, 0, 0, 1010, 1011, 1011, 0, 0, 0, 1011, 1012, 1012, 0, 0, 0, 1012, 1013, 1013, 0, 0, 0, 1013, 1014, 1014, 0, 0, 0, 1014, 1015, 1015, 0, 0, 0, 1015, 1016, 1016, 0, 0, 0, 1016, 1017, 1017, 0, 0, 0, 1017, 1018, 1018, 0, 0, 0, 1018, 1019, 1019, 0, 0, 0, 1019, 1020, 1020, 0, 0, 0, 1020, 1021, 1021, 0, 0, 0, 1021, 1022, 1022, 0, 0, 0, 1022, 1023, 1023, 0, 0, 0, 1023, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850, 850 } ; /* Table of booleans, true if rule could match eol. */ static yyconst flex_int32_t yy_rule_can_match_eol[178] = { 0, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; extern int yy_flex_debug; int yy_flex_debug = 0; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; #line 1 "lex.ll" /* * Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo * * The contents of this file are covered under the licence agreement in the * file "LICENCE" distributed with Cforall. * * lex.l -- * * Author : Peter A. Buhr * Created On : Sat Sep 22 08:58:10 2001 * Last Modified By : Peter A. Buhr * Last Modified On : Mon Sep 28 17:07:48 2015 * Update Count : 402 */ #line 20 "lex.ll" // This lexer assumes the program has been preprocessed by cpp. Hence, all user level preprocessor directive have been // performed and removed from the source. The only exceptions are preprocessor directives passed to the compiler (e.g., // line-number directives) and C/C++ style comments, which are ignored. //**************************** Includes and Defines **************************** #include #include "lex.h" #include "ParseNode.h" #include "parser.h" // YACC generated definitions based on C++ grammar char *yyfilename; std::string *strtext; // accumulate parts of character and string constant value #define RETURN_LOCN(x) yylval.tok.loc.file = yyfilename; yylval.tok.loc.line = yylineno; return( x ) #define RETURN_VAL(x) yylval.tok.str = new std::string( yytext ); RETURN_LOCN( x ) #define RETURN_CHAR(x) yylval.tok.str = NULL; RETURN_LOCN( x ) #define RETURN_STR(x) yylval.tok.str = strtext; RETURN_LOCN( x ) #define WHITE_RETURN(x) // do nothing #define NEWLINE_RETURN() WHITE_RETURN( '\n' ) #define ASCIIOP_RETURN() RETURN_CHAR( (int)yytext[0] ) // single character operator #define NAMEDOP_RETURN(x) RETURN_VAL( x ) // multichar operator, with a name #define NUMERIC_RETURN(x) rm_underscore(); RETURN_VAL( x ) // numeric constant #define KEYWORD_RETURN(x) RETURN_CHAR( x ) // keyword #define IDENTIFIER_RETURN() RETURN_VAL( (typedefTable.isIdentifier( yytext ) ? IDENTIFIER : typedefTable.isTypedef( yytext ) ? TYPEDEFname : TYPEGENname ) ) #define ATTRIBUTE_RETURN() RETURN_VAL( ATTR_IDENTIFIER ) void rm_underscore() { // remove underscores in numeric constant int j = 0; for ( int i = 0; yytext[i] != '\0'; i += 1 ) { if ( yytext[i] != '_' ) { yytext[j] = yytext[i]; j += 1; } // if } // for yyleng = j; yytext[yyleng] = '\0'; } // identifier, GCC: $ in identifier // quoted identifier // attribute identifier, GCC: $ in identifier // numeric constants, CFA: '_' in constant // character escape sequence, GCC: \e => esc character // ' stop highlighting // display/white-space characters // operators #line 1465 "Parser/lex.cc" #define INITIAL 0 #define COMMENT 1 #define BKQUOTE 2 #define QUOTE 3 #define STRING 4 #ifndef YY_NO_UNISTD_H /* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */ #include #endif #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif static int yy_init_globals (void ); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ int yylex_destroy (void ); int yyget_debug (void ); void yyset_debug (int debug_flag ); YY_EXTRA_TYPE yyget_extra (void ); void yyset_extra (YY_EXTRA_TYPE user_defined ); FILE *yyget_in (void ); void yyset_in (FILE * in_str ); FILE *yyget_out (void ); void yyset_out (FILE * out_str ); int yyget_leng (void ); char *yyget_text (void ); int yyget_lineno (void ); void yyset_lineno (int line_number ); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int yywrap (void ); #else extern int yywrap (void ); #endif #endif #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * ); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void ); #else static int input (void ); #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k */ #define YY_READ_BUF_SIZE 16384 #else #define YY_READ_BUF_SIZE 8192 #endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ size_t n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(yyin); \ } \ }\ \ #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* end tables serialization structures and prototypes */ /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL_IS_OURS 1 extern int yylex (void); #define YY_DECL int yylex (void) #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ if ( yyleng > 0 ) \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; #line 136 "lex.ll" /* line directives */ #line 1660 "Parser/lex.cc" if ( !(yy_init) ) { (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! YY_CURRENT_BUFFER ) { yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin,YY_BUF_SIZE ); } yy_load_buffer_state( ); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); /* Support of yytext. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); yy_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 851 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } while ( yy_base[yy_current_state] != 2604 ); yy_find_action: yy_act = yy_accept[yy_current_state]; if ( yy_act == 0 ) { /* have to back up */ yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); yy_act = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] ) { int yyl; for ( yyl = 0; yyl < yyleng; ++yyl ) if ( yytext[yyl] == '\n' ) yylineno++; ; } do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = (yy_hold_char); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; case 1: /* rule 1 can match eol */ YY_RULE_SETUP #line 138 "lex.ll" { /* " stop highlighting */ char *end_num; char *begin_string, *end_string; char *filename; long lineno, length; lineno = strtol( yytext + 1, &end_num, 0 ); begin_string = strchr( end_num, '"' ); if ( begin_string ) { end_string = strchr( begin_string + 1, '"' ); if ( end_string ) { length = end_string - begin_string - 1; filename = new char[ length + 1 ]; memcpy( filename, begin_string + 1, length ); filename[ length ] = '\0'; //std::cout << "file " << filename << " line " << lineno << std::endl; yylineno = lineno; yyfilename = filename; } // if } // if } YY_BREAK /* ignore preprocessor directives (for now) */ case 2: /* rule 2 can match eol */ YY_RULE_SETUP #line 161 "lex.ll" ; YY_BREAK /* ignore C style comments (ALSO HANDLED BY CPP) */ case 3: YY_RULE_SETUP #line 164 "lex.ll" { BEGIN COMMENT; } YY_BREAK case 4: /* rule 4 can match eol */ YY_RULE_SETUP #line 165 "lex.ll" ; YY_BREAK case 5: YY_RULE_SETUP #line 166 "lex.ll" { BEGIN 0; } YY_BREAK /* ignore C++ style comments (ALSO HANDLED BY CPP) */ case 6: /* rule 6 can match eol */ YY_RULE_SETUP #line 169 "lex.ll" ; YY_BREAK /* ignore whitespace */ case 7: YY_RULE_SETUP #line 172 "lex.ll" { WHITE_RETURN(' '); } YY_BREAK case 8: YY_RULE_SETUP #line 173 "lex.ll" { WHITE_RETURN(' '); } YY_BREAK case 9: /* rule 9 can match eol */ YY_RULE_SETUP #line 174 "lex.ll" { NEWLINE_RETURN(); } YY_BREAK /* keywords */ case 10: YY_RULE_SETUP #line 177 "lex.ll" { KEYWORD_RETURN(ALIGNAS); } // C11 YY_BREAK case 11: YY_RULE_SETUP #line 178 "lex.ll" { KEYWORD_RETURN(ALIGNOF); } // C11 YY_BREAK case 12: YY_RULE_SETUP #line 179 "lex.ll" { KEYWORD_RETURN(ALIGNOF); } // GCC YY_BREAK case 13: YY_RULE_SETUP #line 180 "lex.ll" { KEYWORD_RETURN(ALIGNOF); } // GCC YY_BREAK case 14: YY_RULE_SETUP #line 181 "lex.ll" { KEYWORD_RETURN(ASM); } YY_BREAK case 15: YY_RULE_SETUP #line 182 "lex.ll" { KEYWORD_RETURN(ASM); } // GCC YY_BREAK case 16: YY_RULE_SETUP #line 183 "lex.ll" { KEYWORD_RETURN(ASM); } // GCC YY_BREAK case 17: YY_RULE_SETUP #line 184 "lex.ll" { KEYWORD_RETURN(AT); } // CFA YY_BREAK case 18: YY_RULE_SETUP #line 185 "lex.ll" { KEYWORD_RETURN(ATOMIC); } // C11 YY_BREAK case 19: YY_RULE_SETUP #line 186 "lex.ll" { KEYWORD_RETURN(ATTRIBUTE); } // GCC YY_BREAK case 20: YY_RULE_SETUP #line 187 "lex.ll" { KEYWORD_RETURN(ATTRIBUTE); } // GCC YY_BREAK case 21: YY_RULE_SETUP #line 188 "lex.ll" { KEYWORD_RETURN(AUTO); } YY_BREAK case 22: YY_RULE_SETUP #line 189 "lex.ll" { KEYWORD_RETURN(BOOL); } // C99 YY_BREAK case 23: YY_RULE_SETUP #line 190 "lex.ll" { KEYWORD_RETURN(BREAK); } YY_BREAK case 24: YY_RULE_SETUP #line 191 "lex.ll" { KEYWORD_RETURN(CASE); } YY_BREAK case 25: YY_RULE_SETUP #line 192 "lex.ll" { KEYWORD_RETURN(CATCH); } // CFA YY_BREAK case 26: YY_RULE_SETUP #line 193 "lex.ll" { KEYWORD_RETURN(CATCHRESUME); } // CFA YY_BREAK case 27: YY_RULE_SETUP #line 194 "lex.ll" { KEYWORD_RETURN(CHAR); } YY_BREAK case 28: YY_RULE_SETUP #line 195 "lex.ll" { KEYWORD_RETURN(CHOOSE); } // CFA YY_BREAK case 29: YY_RULE_SETUP #line 196 "lex.ll" { KEYWORD_RETURN(COMPLEX); } // C99 YY_BREAK case 30: YY_RULE_SETUP #line 197 "lex.ll" { KEYWORD_RETURN(COMPLEX); } // GCC YY_BREAK case 31: YY_RULE_SETUP #line 198 "lex.ll" { KEYWORD_RETURN(COMPLEX); } // GCC YY_BREAK case 32: YY_RULE_SETUP #line 199 "lex.ll" { KEYWORD_RETURN(CONST); } YY_BREAK case 33: YY_RULE_SETUP #line 200 "lex.ll" { KEYWORD_RETURN(CONST); } // GCC YY_BREAK case 34: YY_RULE_SETUP #line 201 "lex.ll" { KEYWORD_RETURN(CONST); } // GCC YY_BREAK case 35: YY_RULE_SETUP #line 202 "lex.ll" { KEYWORD_RETURN(CONTEXT); } // CFA YY_BREAK case 36: YY_RULE_SETUP #line 203 "lex.ll" { KEYWORD_RETURN(CONTINUE); } YY_BREAK case 37: YY_RULE_SETUP #line 204 "lex.ll" { KEYWORD_RETURN(DEFAULT); } YY_BREAK case 38: YY_RULE_SETUP #line 205 "lex.ll" { KEYWORD_RETURN(DISABLE); } // CFA YY_BREAK case 39: YY_RULE_SETUP #line 206 "lex.ll" { KEYWORD_RETURN(DO); } YY_BREAK case 40: YY_RULE_SETUP #line 207 "lex.ll" { KEYWORD_RETURN(DOUBLE); } YY_BREAK case 41: YY_RULE_SETUP #line 208 "lex.ll" { KEYWORD_RETURN(DTYPE); } // CFA YY_BREAK case 42: YY_RULE_SETUP #line 209 "lex.ll" { KEYWORD_RETURN(ELSE); } YY_BREAK case 43: YY_RULE_SETUP #line 210 "lex.ll" { KEYWORD_RETURN(ENABLE); } // CFA YY_BREAK case 44: YY_RULE_SETUP #line 211 "lex.ll" { KEYWORD_RETURN(ENUM); } YY_BREAK case 45: YY_RULE_SETUP #line 212 "lex.ll" { KEYWORD_RETURN(EXTENSION); } // GCC YY_BREAK case 46: YY_RULE_SETUP #line 213 "lex.ll" { KEYWORD_RETURN(EXTERN); } YY_BREAK case 47: YY_RULE_SETUP #line 214 "lex.ll" { KEYWORD_RETURN(FALLTHRU); } // CFA YY_BREAK case 48: YY_RULE_SETUP #line 215 "lex.ll" { KEYWORD_RETURN(FINALLY); } // CFA YY_BREAK case 49: YY_RULE_SETUP #line 216 "lex.ll" { KEYWORD_RETURN(FLOAT); } YY_BREAK case 50: YY_RULE_SETUP #line 217 "lex.ll" { KEYWORD_RETURN(FLOAT); } // GCC YY_BREAK case 51: YY_RULE_SETUP #line 218 "lex.ll" { KEYWORD_RETURN(FOR); } YY_BREAK case 52: YY_RULE_SETUP #line 219 "lex.ll" { KEYWORD_RETURN(FORALL); } // CFA YY_BREAK case 53: YY_RULE_SETUP #line 220 "lex.ll" { KEYWORD_RETURN(FORTRAN); } YY_BREAK case 54: YY_RULE_SETUP #line 221 "lex.ll" { KEYWORD_RETURN(FTYPE); } // CFA YY_BREAK case 55: YY_RULE_SETUP #line 222 "lex.ll" { KEYWORD_RETURN(GENERIC); } // C11 YY_BREAK case 56: YY_RULE_SETUP #line 223 "lex.ll" { KEYWORD_RETURN(GOTO); } YY_BREAK case 57: YY_RULE_SETUP #line 224 "lex.ll" { KEYWORD_RETURN(IF); } YY_BREAK case 58: YY_RULE_SETUP #line 225 "lex.ll" { KEYWORD_RETURN(IMAGINARY); } // C99 YY_BREAK case 59: YY_RULE_SETUP #line 226 "lex.ll" { KEYWORD_RETURN(IMAGINARY); } // GCC YY_BREAK case 60: YY_RULE_SETUP #line 227 "lex.ll" { KEYWORD_RETURN(IMAGINARY); } // GCC YY_BREAK case 61: YY_RULE_SETUP #line 228 "lex.ll" { KEYWORD_RETURN(INLINE); } // C99 YY_BREAK case 62: YY_RULE_SETUP #line 229 "lex.ll" { KEYWORD_RETURN(INLINE); } // GCC YY_BREAK case 63: YY_RULE_SETUP #line 230 "lex.ll" { KEYWORD_RETURN(INLINE); } // GCC YY_BREAK case 64: YY_RULE_SETUP #line 231 "lex.ll" { KEYWORD_RETURN(INT); } YY_BREAK case 65: YY_RULE_SETUP #line 232 "lex.ll" { KEYWORD_RETURN(INT); } // GCC YY_BREAK case 66: YY_RULE_SETUP #line 233 "lex.ll" { KEYWORD_RETURN(LABEL); } // GCC YY_BREAK case 67: YY_RULE_SETUP #line 234 "lex.ll" { KEYWORD_RETURN(LONG); } YY_BREAK case 68: YY_RULE_SETUP #line 235 "lex.ll" { KEYWORD_RETURN(LVALUE); } // CFA YY_BREAK case 69: YY_RULE_SETUP #line 236 "lex.ll" { KEYWORD_RETURN(NORETURN); } // C11 YY_BREAK case 70: YY_RULE_SETUP #line 237 "lex.ll" { KEYWORD_RETURN(REGISTER); } YY_BREAK case 71: YY_RULE_SETUP #line 238 "lex.ll" { KEYWORD_RETURN(RESTRICT); } // C99 YY_BREAK case 72: YY_RULE_SETUP #line 239 "lex.ll" { KEYWORD_RETURN(RESTRICT); } // GCC YY_BREAK case 73: YY_RULE_SETUP #line 240 "lex.ll" { KEYWORD_RETURN(RESTRICT); } // GCC YY_BREAK case 74: YY_RULE_SETUP #line 241 "lex.ll" { KEYWORD_RETURN(RETURN); } YY_BREAK case 75: YY_RULE_SETUP #line 242 "lex.ll" { KEYWORD_RETURN(SHORT); } YY_BREAK case 76: YY_RULE_SETUP #line 243 "lex.ll" { KEYWORD_RETURN(SIGNED); } YY_BREAK case 77: YY_RULE_SETUP #line 244 "lex.ll" { KEYWORD_RETURN(SIGNED); } // GCC YY_BREAK case 78: YY_RULE_SETUP #line 245 "lex.ll" { KEYWORD_RETURN(SIGNED); } // GCC YY_BREAK case 79: YY_RULE_SETUP #line 246 "lex.ll" { KEYWORD_RETURN(SIZEOF); } YY_BREAK case 80: YY_RULE_SETUP #line 247 "lex.ll" { KEYWORD_RETURN(STATIC); } YY_BREAK case 81: YY_RULE_SETUP #line 248 "lex.ll" { KEYWORD_RETURN(STATICASSERT); } // C11 YY_BREAK case 82: YY_RULE_SETUP #line 249 "lex.ll" { KEYWORD_RETURN(STRUCT); } YY_BREAK case 83: YY_RULE_SETUP #line 250 "lex.ll" { KEYWORD_RETURN(SWITCH); } YY_BREAK case 84: YY_RULE_SETUP #line 251 "lex.ll" { KEYWORD_RETURN(THREADLOCAL); } // C11 YY_BREAK case 85: YY_RULE_SETUP #line 252 "lex.ll" { KEYWORD_RETURN(THROW); } // CFA YY_BREAK case 86: YY_RULE_SETUP #line 253 "lex.ll" { KEYWORD_RETURN(THROWRESUME); } // CFA YY_BREAK case 87: YY_RULE_SETUP #line 254 "lex.ll" { KEYWORD_RETURN(TRY); } // CFA YY_BREAK case 88: YY_RULE_SETUP #line 255 "lex.ll" { KEYWORD_RETURN(TYPE); } // CFA YY_BREAK case 89: YY_RULE_SETUP #line 256 "lex.ll" { KEYWORD_RETURN(TYPEDEF); } YY_BREAK case 90: YY_RULE_SETUP #line 257 "lex.ll" { KEYWORD_RETURN(TYPEOF); } // GCC YY_BREAK case 91: YY_RULE_SETUP #line 258 "lex.ll" { KEYWORD_RETURN(TYPEOF); } // GCC YY_BREAK case 92: YY_RULE_SETUP #line 259 "lex.ll" { KEYWORD_RETURN(TYPEOF); } // GCC YY_BREAK case 93: YY_RULE_SETUP #line 260 "lex.ll" { KEYWORD_RETURN(UNION); } YY_BREAK case 94: YY_RULE_SETUP #line 261 "lex.ll" { KEYWORD_RETURN(UNSIGNED); } YY_BREAK case 95: YY_RULE_SETUP #line 262 "lex.ll" { KEYWORD_RETURN(VOID); } YY_BREAK case 96: YY_RULE_SETUP #line 263 "lex.ll" { KEYWORD_RETURN(VOLATILE); } YY_BREAK case 97: YY_RULE_SETUP #line 264 "lex.ll" { KEYWORD_RETURN(VOLATILE); } // GCC YY_BREAK case 98: YY_RULE_SETUP #line 265 "lex.ll" { KEYWORD_RETURN(VOLATILE); } // GCC YY_BREAK case 99: YY_RULE_SETUP #line 266 "lex.ll" { KEYWORD_RETURN(WHILE); } YY_BREAK /* identifier */ case 100: YY_RULE_SETUP #line 269 "lex.ll" { IDENTIFIER_RETURN(); } YY_BREAK case 101: YY_RULE_SETUP #line 270 "lex.ll" { ATTRIBUTE_RETURN(); } YY_BREAK case 102: YY_RULE_SETUP #line 271 "lex.ll" { BEGIN BKQUOTE; } YY_BREAK case 103: YY_RULE_SETUP #line 272 "lex.ll" { IDENTIFIER_RETURN(); } YY_BREAK case 104: YY_RULE_SETUP #line 273 "lex.ll" { BEGIN 0; } YY_BREAK /* numeric constants */ case 105: YY_RULE_SETUP #line 276 "lex.ll" { NUMERIC_RETURN(ZERO); } // CFA YY_BREAK case 106: YY_RULE_SETUP #line 277 "lex.ll" { NUMERIC_RETURN(ONE); } // CFA YY_BREAK case 107: YY_RULE_SETUP #line 278 "lex.ll" { NUMERIC_RETURN(INTEGERconstant); } YY_BREAK case 108: YY_RULE_SETUP #line 279 "lex.ll" { NUMERIC_RETURN(INTEGERconstant); } YY_BREAK case 109: YY_RULE_SETUP #line 280 "lex.ll" { NUMERIC_RETURN(INTEGERconstant); } YY_BREAK case 110: YY_RULE_SETUP #line 281 "lex.ll" { NUMERIC_RETURN(FLOATINGconstant); } YY_BREAK case 111: YY_RULE_SETUP #line 282 "lex.ll" { NUMERIC_RETURN(FLOATINGconstant); } YY_BREAK /* character constant, allows empty value */ case 112: YY_RULE_SETUP #line 285 "lex.ll" { BEGIN QUOTE; rm_underscore(); strtext = new std::string; *strtext += std::string( yytext ); } YY_BREAK case 113: YY_RULE_SETUP #line 286 "lex.ll" { *strtext += std::string( yytext ); } YY_BREAK case 114: /* rule 114 can match eol */ YY_RULE_SETUP #line 287 "lex.ll" { BEGIN 0; *strtext += std::string( yytext); RETURN_STR(CHARACTERconstant); } YY_BREAK /* ' stop highlighting */ /* string constant */ case 115: YY_RULE_SETUP #line 291 "lex.ll" { BEGIN STRING; rm_underscore(); strtext = new std::string; *strtext += std::string( yytext ); } YY_BREAK case 116: YY_RULE_SETUP #line 292 "lex.ll" { *strtext += std::string( yytext ); } YY_BREAK case 117: /* rule 117 can match eol */ YY_RULE_SETUP #line 293 "lex.ll" { BEGIN 0; *strtext += std::string( yytext ); RETURN_STR(STRINGliteral); } YY_BREAK /* " stop highlighting */ /* common character/string constant */ case 118: YY_RULE_SETUP #line 297 "lex.ll" { rm_underscore(); *strtext += std::string( yytext ); } YY_BREAK case 119: /* rule 119 can match eol */ YY_RULE_SETUP #line 298 "lex.ll" {} // continuation (ALSO HANDLED BY CPP) YY_BREAK case 120: YY_RULE_SETUP #line 299 "lex.ll" { *strtext += std::string( yytext ); } // unknown escape character YY_BREAK /* punctuation */ case 121: YY_RULE_SETUP #line 302 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 122: YY_RULE_SETUP #line 303 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 123: YY_RULE_SETUP #line 304 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 124: YY_RULE_SETUP #line 305 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 125: YY_RULE_SETUP #line 306 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 126: YY_RULE_SETUP #line 307 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 127: YY_RULE_SETUP #line 308 "lex.ll" { ASCIIOP_RETURN(); } // also operator YY_BREAK case 128: YY_RULE_SETUP #line 309 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 129: YY_RULE_SETUP #line 310 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 130: YY_RULE_SETUP #line 311 "lex.ll" { ASCIIOP_RETURN(); } // also operator YY_BREAK case 131: YY_RULE_SETUP #line 312 "lex.ll" { NAMEDOP_RETURN(ELLIPSIS); } YY_BREAK /* alternative C99 brackets, "<:" & "<:<:" handled by preprocessor */ case 132: YY_RULE_SETUP #line 315 "lex.ll" { RETURN_VAL('['); } YY_BREAK case 133: YY_RULE_SETUP #line 316 "lex.ll" { RETURN_VAL(']'); } YY_BREAK case 134: YY_RULE_SETUP #line 317 "lex.ll" { RETURN_VAL('{'); } YY_BREAK case 135: YY_RULE_SETUP #line 318 "lex.ll" { RETURN_VAL('}'); } YY_BREAK /* operators */ case 136: YY_RULE_SETUP #line 321 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 137: YY_RULE_SETUP #line 322 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 138: YY_RULE_SETUP #line 323 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 139: YY_RULE_SETUP #line 324 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 140: YY_RULE_SETUP #line 325 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 141: YY_RULE_SETUP #line 326 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 142: YY_RULE_SETUP #line 327 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 143: YY_RULE_SETUP #line 328 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 144: YY_RULE_SETUP #line 329 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 145: YY_RULE_SETUP #line 330 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 146: YY_RULE_SETUP #line 331 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 147: YY_RULE_SETUP #line 332 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 148: YY_RULE_SETUP #line 333 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 149: YY_RULE_SETUP #line 334 "lex.ll" { ASCIIOP_RETURN(); } YY_BREAK case 150: YY_RULE_SETUP #line 336 "lex.ll" { NAMEDOP_RETURN(ICR); } YY_BREAK case 151: YY_RULE_SETUP #line 337 "lex.ll" { NAMEDOP_RETURN(DECR); } YY_BREAK case 152: YY_RULE_SETUP #line 338 "lex.ll" { NAMEDOP_RETURN(EQ); } YY_BREAK case 153: YY_RULE_SETUP #line 339 "lex.ll" { NAMEDOP_RETURN(NE); } YY_BREAK case 154: YY_RULE_SETUP #line 340 "lex.ll" { NAMEDOP_RETURN(LS); } YY_BREAK case 155: YY_RULE_SETUP #line 341 "lex.ll" { NAMEDOP_RETURN(RS); } YY_BREAK case 156: YY_RULE_SETUP #line 342 "lex.ll" { NAMEDOP_RETURN(LE); } YY_BREAK case 157: YY_RULE_SETUP #line 343 "lex.ll" { NAMEDOP_RETURN(GE); } YY_BREAK case 158: YY_RULE_SETUP #line 344 "lex.ll" { NAMEDOP_RETURN(ANDAND); } YY_BREAK case 159: YY_RULE_SETUP #line 345 "lex.ll" { NAMEDOP_RETURN(OROR); } YY_BREAK case 160: YY_RULE_SETUP #line 346 "lex.ll" { NAMEDOP_RETURN(ARROW); } YY_BREAK case 161: YY_RULE_SETUP #line 347 "lex.ll" { NAMEDOP_RETURN(PLUSassign); } YY_BREAK case 162: YY_RULE_SETUP #line 348 "lex.ll" { NAMEDOP_RETURN(MINUSassign); } YY_BREAK case 163: YY_RULE_SETUP #line 349 "lex.ll" { NAMEDOP_RETURN(MULTassign); } YY_BREAK case 164: YY_RULE_SETUP #line 350 "lex.ll" { NAMEDOP_RETURN(DIVassign); } YY_BREAK case 165: YY_RULE_SETUP #line 351 "lex.ll" { NAMEDOP_RETURN(MODassign); } YY_BREAK case 166: YY_RULE_SETUP #line 352 "lex.ll" { NAMEDOP_RETURN(ANDassign); } YY_BREAK case 167: YY_RULE_SETUP #line 353 "lex.ll" { NAMEDOP_RETURN(ORassign); } YY_BREAK case 168: YY_RULE_SETUP #line 354 "lex.ll" { NAMEDOP_RETURN(ERassign); } YY_BREAK case 169: YY_RULE_SETUP #line 355 "lex.ll" { NAMEDOP_RETURN(LSassign); } YY_BREAK case 170: YY_RULE_SETUP #line 356 "lex.ll" { NAMEDOP_RETURN(RSassign); } YY_BREAK /* CFA, operator identifier */ case 171: YY_RULE_SETUP #line 359 "lex.ll" { IDENTIFIER_RETURN(); } // unary YY_BREAK case 172: YY_RULE_SETUP #line 360 "lex.ll" { IDENTIFIER_RETURN(); } YY_BREAK case 173: YY_RULE_SETUP #line 361 "lex.ll" { IDENTIFIER_RETURN(); } YY_BREAK case 174: YY_RULE_SETUP #line 362 "lex.ll" { IDENTIFIER_RETURN(); } // binary YY_BREAK /* This rule handles ambiguous cases with operator identifiers, e.g., "int *?*?()", where the string "*?*?" can be lexed as "*"/"?*?" or "*?"/"*?". Since it is common practise to put a unary operator juxtaposed to an identifier, e.g., "*i", users will be annoyed if they cannot do this with respect to operator identifiers. Even with this special hack, there are 5 general cases that cannot be handled. The first case is for the function-call identifier "?()": int * ?()(); // declaration: space required after '*' * ?()(); // expression: space required after '*' Without the space, the string "*?()" is ambiguous without N character look ahead; it requires scanning ahead to determine if there is a '(', which is the start of an argument/parameter list. The 4 remaining cases occur in expressions: i++?i:0; // space required before '?' i--?i:0; // space required before '?' i?++i:0; // space required after '?' i?--i:0; // space required after '?' In the first two cases, the string "i++?" is ambiguous, where this string can be lexed as "i"/"++?" or "i++"/"?"; it requires scanning ahead to determine if there is a '(', which is the start of an argument list. In the second two cases, the string "?++x" is ambiguous, where this string can be lexed as "?++"/"x" or "?"/"++x"; it requires scanning ahead to determine if there is a '(', which is the start of an argument list. */ case 175: YY_RULE_SETUP #line 389 "lex.ll" { // 1 or 2 character unary operator ? int i = yytext[1] == '?' ? 1 : 2; yyless( i ); // put back characters up to first '?' if ( i > 1 ) { NAMEDOP_RETURN( yytext[0] == '+' ? ICR : DECR ); } else { ASCIIOP_RETURN(); } // if } YY_BREAK /* unknown characters */ case 176: YY_RULE_SETUP #line 401 "lex.ll" { printf("unknown character(s):\"%s\" on line %d\n", yytext, yylineno); } YY_BREAK case 177: YY_RULE_SETUP #line 403 "lex.ll" ECHO; YY_BREAK #line 2719 "Parser/lex.cc" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(COMMENT): case YY_STATE_EOF(BKQUOTE): case YY_STATE_EOF(QUOTE): case YY_STATE_EOF(STRING): yyterminate(); case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = (yy_hold_char); YY_RESTORE_YY_MORE_OFFSET if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) { /* This was really a NUL. */ yy_state_type yy_next_state; (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = (yytext_ptr) + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++(yy_c_buf_p); yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = (yy_c_buf_p); goto yy_find_action; } } else switch ( yy_get_next_buffer( ) ) { case EOB_ACT_END_OF_FILE: { (yy_did_buffer_switch_on_eof) = 0; if ( yywrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer (void) { register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; register char *source = (yytext_ptr); register int number_to_move, i; int ret_val; if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; else { int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = YY_CURRENT_BUFFER; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { int new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), (yy_n_chars), (size_t) num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; yyrestart(yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); } (yy_n_chars) += number_to_move; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state (void) { register yy_state_type yy_current_state; register char *yy_cp; yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 851 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { register int yy_is_jam; register char *yy_cp = (yy_c_buf_p); register YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 851 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 850); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void) #else static int input (void) #endif { int c; *(yy_c_buf_p) = (yy_hold_char); if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) /* This was really a NUL. */ *(yy_c_buf_p) = '\0'; else { /* need more input */ int offset = (yy_c_buf_p) - (yytext_ptr); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ yyrestart(yyin ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( yywrap( ) ) return EOF; if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + offset; break; } } } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ *(yy_c_buf_p) = '\0'; /* preserve yytext */ (yy_hold_char) = *++(yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); if ( YY_CURRENT_BUFFER_LVALUE->yy_at_bol ) yylineno++; ; return c; } #endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. * * @note This function does not reset the start condition to @c INITIAL . */ void yyrestart (FILE * input_file ) { if ( ! YY_CURRENT_BUFFER ){ yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin,YY_BUF_SIZE ); } yy_init_buffer(YY_CURRENT_BUFFER,input_file ); yy_load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with * yypop_buffer_state(); * yypush_buffer_state(new_buffer); */ yyensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } YY_CURRENT_BUFFER_LVALUE = new_buffer; yy_load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } static void yy_load_buffer_state (void) { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. * * @return the allocated buffer state. */ YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer(b,file ); return b; } /** Destroy the buffer. * @param b a buffer created with yy_create_buffer() * */ void yy_delete_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) yyfree((void *) b->yy_ch_buf ); yyfree((void *) b ); } #ifndef __cplusplus extern int isatty (int ); #endif /* __cplusplus */ /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. */ static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) { int oerrno = errno; yy_flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; /* If b is the current buffer, then yy_init_buffer was _probably_ * called from yyrestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ if (b != YY_CURRENT_BUFFER){ b->yy_bs_lineno = 1; b->yy_bs_column = 0; } b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * */ void yy_flush_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) yy_load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. * */ void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) { if (new_buffer == NULL) return; yyensure_buffer_stack(); /* This block is copied from yy_switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } /* Only push if top exists. Otherwise, replace top. */ if (YY_CURRENT_BUFFER) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; /* copied from yy_switch_to_buffer. */ yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * */ void yypop_buffer_state (void) { if (!YY_CURRENT_BUFFER) return; yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ static void yyensure_buffer_stack (void) { int num_to_alloc; if (!(yy_buffer_stack)) { /* First allocation is just for 2 elements, since we don't know if this * scanner will even need a stack. We use 2 instead of 1 to avoid an * immediate realloc on the next call. */ num_to_alloc = 1; (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; } if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ /* Increase the buffer to prepare for a possible push. */ int grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); /* zero only the new slots.*/ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; } } /** Setup the input buffer state to scan directly from a user-specified character buffer. * @param base the character buffer * @param size the size in bytes of the character buffer * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; yy_switch_to_buffer(b ); return b; } /** Setup the input buffer state to scan a string. The next call to yylex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * yy_scan_bytes() instead. */ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) { return yy_scan_bytes(yystr,strlen(yystr) ); } /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. * @param yybytes the byte buffer to scan * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) { YY_BUFFER_STATE b; char *buf; yy_size_t n; int i; /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; buf = (char *) yyalloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); for ( i = 0; i < _yybytes_len; ++i ) buf[i] = yybytes[i]; buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; b = yy_scan_buffer(buf,n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif static void yy_fatal_error (yyconst char* msg ) { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ yytext[yyleng] = (yy_hold_char); \ (yy_c_buf_p) = yytext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ yyleng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. * */ int yyget_lineno (void) { return yylineno; } /** Get the input stream. * */ FILE *yyget_in (void) { return yyin; } /** Get the output stream. * */ FILE *yyget_out (void) { return yyout; } /** Get the length of the current token. * */ int yyget_leng (void) { return yyleng; } /** Get the current token. * */ char *yyget_text (void) { return yytext; } /** Set the current line number. * @param line_number * */ void yyset_lineno (int line_number ) { yylineno = line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. * * @see yy_switch_to_buffer */ void yyset_in (FILE * in_str ) { yyin = in_str ; } void yyset_out (FILE * out_str ) { yyout = out_str ; } int yyget_debug (void) { return yy_flex_debug; } void yyset_debug (int bdebug ) { yy_flex_debug = bdebug ; } static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. * This function is called from yylex_destroy(), so don't allocate here. */ /* We do not touch yylineno unless the option is enabled. */ yylineno = 1; (yy_buffer_stack) = 0; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; (yy_c_buf_p) = (char *) 0; (yy_init) = 0; (yy_start) = 0; /* Defined in main.c */ #ifdef YY_STDINIT yyin = stdin; yyout = stdout; #else yyin = (FILE *) 0; yyout = (FILE *) 0; #endif /* For future reference: Set errno on error, since we are called by * yylex_init() */ return 0; } /* yylex_destroy is for both reentrant and non-reentrant scanners. */ int yylex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; yypop_buffer_state(); } /* Destroy the stack itself. */ yyfree((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * yylex() is called, initialization will occur. */ yy_init_globals( ); return 0; } /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { register int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * s ) { register int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif void *yyalloc (yy_size_t size ) { return (void *) malloc( size ); } void *yyrealloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } void yyfree (void * ptr ) { free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 403 "lex.ll" // Local Variables: // // mode: c++ // // tab-width: 4 // // compile-command: "make install" // // End: //