#line 2 "ldlex.c" #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 6 #define YY_FLEX_SUBMINOR_VERSION 4 #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 #ifndef SIZE_MAX #define SIZE_MAX (~(size_t)0) #endif #endif /* ! C99 */ #endif /* ! FLEXINT_H */ /* begin standard C++ headers. */ /* TODO: this is always defined, so inline it */ #define yyconst const #if defined(__GNUC__) && __GNUC__ >= 3 #define yynoreturn __attribute__((__noreturn__)) #else #define yynoreturn #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an * integer in range [0..255] for use as an array index. */ #define YY_SC_TO_UI(c) ((YY_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 #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #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 #define YY_LESS_LINENO(n) #define YY_LINENO_REWIND_TO(ptr) /* 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_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. */ int 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 = NULL; /**< 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 = NULL; 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 ( const char *yy_str ); YY_BUFFER_STATE yy_scan_bytes ( const 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 */ #define yywrap() (/*CONSTCOND*/1) #define YY_SKIP_YYWRAP typedef flex_uint8_t YY_CHAR; FILE *yyin = NULL, *yyout = NULL; typedef int yy_state_type; extern int yylineno; int yylineno = 1; extern char *yytext; #ifdef yytext_ptr #undef yytext_ptr #endif #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 yynoreturn yy_fatal_error ( const 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 = (int) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 195 #define YY_END_OF_BUFFER 196 /* 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 const flex_int16_t yy_accept[1207] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 177, 0, 0, 0, 0, 0, 0, 196, 195, 193, 180, 179, 28, 193, 181, 172, 193, 40, 39, 193, 31, 24, 32, 172, 172, 4, 4, 41, 42, 193, 36, 23, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 118, 116, 38, 193, 37, 27, 180, 195, 172, 40, 39, 24, 195, 172, 195, 172, 194, 180, 28, 194, 181, 175, 34, 25, 40, 39, 30, 31, 24, 32, 175, 33, 4, 4, 41, 42, 35, 36, 23, 29, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 38, 26, 37, 27, 133, 28, 132, 171, 34, 25, 30, 171, 33, 4, 4, 42, 35, 36, 23, 29, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 6, 5, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 26, 27, 177, 25, 177, 177, 177, 177, 36, 193, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 6, 5, 193, 188, 187, 182, 189, 190, 186, 186, 186, 186, 191, 192, 180, 0, 178, 181, 172, 4, 20, 18, 16, 17, 1, 19, 4, 4, 0, 0, 0, 172, 172, 172, 172, 172, 123, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 21, 0, 173, 172, 11, 175, 2, 22, 19, 0, 4, 0, 3, 3, 3, 14, 13, 10, 12, 15, 175, 3, 3, 3, 175, 175, 123, 3, 175, 175, 3, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 9, 132, 132, 171, 2, 134, 18, 135, 171, 3, 3, 3, 171, 171, 171, 3, 171, 3, 3, 171, 171, 171, 171, 171, 171, 171, 171, 171, 3, 171, 171, 171, 3, 171, 3, 3, 171, 171, 171, 171, 171, 171, 171, 171, 177, 18, 16, 17, 19, 177, 123, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 187, 186, 0, 186, 186, 186, 4, 4, 7, 8, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 90, 172, 172, 172, 172, 172, 172, 172, 172, 68, 59, 172, 60, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 119, 117, 174, 173, 172, 4, 0, 175, 3, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 59, 60, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 4, 171, 171, 171, 171, 171, 136, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 153, 171, 171, 171, 171, 171, 171, 171, 171, 171, 171, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 186, 186, 186, 172, 55, 172, 172, 172, 172, 49, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 65, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 0, 175, 55, 175, 175, 49, 175, 175, 110, 175, 175, 175, 175, 175, 111, 175, 175, 175, 65, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 112, 171, 171, 171, 141, 149, 140, 171, 171, 171, 151, 144, 147, 171, 171, 152, 171, 171, 171, 171, 171, 158, 166, 157, 171, 171, 169, 161, 164, 171, 171, 170, 171, 171, 177, 97, 177, 177, 177, 86, 177, 177, 177, 129, 95, 177, 93, 177, 104, 177, 186, 186, 186, 172, 84, 51, 172, 172, 48, 172, 172, 172, 63, 172, 92, 172, 74, 172, 172, 172, 73, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 122, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 0, 175, 51, 175, 48, 175, 175, 175, 109, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 171, 142, 139, 171, 171, 171, 151, 151, 146, 171, 150, 171, 171, 159, 156, 171, 171, 169, 169, 163, 171, 168, 171, 177, 177, 177, 177, 177, 177, 177, 177, 96, 177, 94, 186, 186, 184, 172, 172, 172, 62, 85, 172, 172, 172, 64, 172, 126, 172, 172, 83, 172, 50, 172, 172, 43, 172, 172, 172, 46, 72, 172, 172, 172, 172, 172, 172, 69, 172, 172, 172, 91, 70, 172, 172, 0, 175, 175, 175, 62, 175, 175, 175, 126, 175, 50, 175, 175, 175, 107, 175, 46, 175, 175, 175, 175, 69, 175, 175, 171, 171, 64, 148, 171, 145, 171, 171, 171, 167, 165, 162, 171, 62, 177, 177, 177, 126, 177, 177, 177, 177, 177, 185, 183, 172, 57, 172, 172, 172, 76, 172, 172, 121, 172, 172, 172, 172, 172, 98, 172, 172, 101, 127, 172, 172, 172, 172, 172, 115, 87, 172, 47, 172, 0, 175, 57, 175, 175, 175, 76, 121, 175, 175, 175, 175, 101, 127, 175, 175, 175, 115, 175, 171, 171, 121, 171, 171, 171, 171, 177, 177, 177, 121, 177, 127, 177, 177, 58, 172, 131, 172, 172, 172, 172, 172, 56, 61, 172, 172, 172, 172, 172, 172, 172, 82, 172, 172, 125, 172, 0, 58, 175, 131, 175, 56, 61, 175, 175, 175, 108, 175, 175, 125, 137, 138, 143, 154, 155, 160, 177, 177, 177, 177, 177, 177, 177, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 75, 176, 175, 175, 175, 175, 175, 175, 175, 177, 177, 177, 177, 177, 177, 177, 177, 106, 172, 172, 172, 172, 172, 45, 172, 113, 114, 172, 172, 172, 172, 71, 172, 172, 175, 175, 175, 113, 114, 175, 175, 175, 177, 177, 177, 177, 177, 177, 177, 177, 172, 172, 172, 172, 172, 99, 89, 172, 172, 172, 172, 172, 175, 175, 99, 175, 175, 175, 177, 177, 177, 177, 177, 177, 177, 177, 172, 172, 172, 172, 172, 172, 172, 172, 44, 172, 172, 175, 175, 175, 175, 175, 175, 78, 177, 130, 177, 177, 177, 177, 102, 172, 172, 172, 172, 172, 172, 88, 172, 67, 172, 175, 175, 175, 175, 67, 175, 177, 177, 177, 177, 177, 172, 172, 172, 172, 172, 172, 172, 100, 128, 66, 175, 175, 175, 175, 100, 128, 66, 177, 177, 128, 177, 177, 172, 172, 172, 172, 172, 172, 172, 175, 175, 175, 175, 177, 177, 177, 177, 124, 172, 54, 172, 172, 172, 172, 124, 175, 54, 175, 177, 177, 177, 177, 172, 172, 172, 172, 172, 175, 175, 177, 177, 103, 177, 52, 172, 172, 172, 172, 52, 175, 177, 177, 177, 172, 172, 172, 172, 175, 177, 120, 177, 172, 172, 172, 172, 175, 177, 177, 172, 172, 172, 172, 175, 77, 105, 53, 172, 80, 172, 53, 79, 172, 172, 81, 0 } ; static const YY_CHAR yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 4, 5, 6, 7, 8, 9, 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 19, 19, 19, 19, 19, 19, 19, 21, 22, 23, 24, 25, 26, 1, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 1, 58, 59, 60, 61, 62, 63, 64, 65, 66, 16, 67, 68, 69, 70, 71, 72, 16, 73, 74, 75, 76, 16, 16, 77, 16, 16, 78, 79, 80, 81, 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 const YY_CHAR yy_meta[82] = { 0, 1, 1, 2, 3, 1, 1, 4, 1, 1, 1, 1, 3, 5, 6, 7, 8, 9, 10, 10, 10, 7, 1, 1, 6, 1, 3, 11, 11, 11, 11, 11, 11, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7, 4, 7, 3, 8, 11, 11, 11, 11, 11, 11, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 1, 9 } ; static const flex_int16_t yy_base[1231] = { 0, 0, 0, 0, 0, 81, 161, 241, 0, 322, 0, 403, 0, 111, 113, 484, 565, 646, 727, 2118, 2119, 2119, 2115, 2119, 2119, 2111, 0, 791, 2091, 2119, 2119, 2090, 2089, 2119, 2088, 0, 85, 654, 735, 2119, 2119, 2088, 2119, 2085, 93, 89, 2068, 91, 92, 88, 2064, 105, 2067, 114, 119, 110, 109, 114, 2075, 159, 2078, 2073, 2041, 2029, 2119, 2077, 2119, 0, 2098, 2094, 0, 2119, 2119, 2119, 2030, 2085, 0, 2051, 2119, 2093, 2070, 2088, 0, 837, 2119, 168, 2119, 2119, 2068, 2067, 2119, 2066, 0, 183, 883, 143, 2119, 2119, 87, 2065, 172, 2119, 943, 191, 483, 487, 506, 2053, 2047, 167, 176, 168, 183, 2042, 2054, 488, 2033, 2119, 123, 2119, 2119, 2119, 2059, 2079, 1003, 2119, 191, 2057, 0, 2056, 0, 450, 0, 201, 2055, 208, 2119, 1049, 515, 520, 184, 564, 518, 2038, 193, 2050, 2032, 2028, 485, 2030, 2119, 2119, 565, 567, 569, 612, 484, 164, 2015, 1999, 1995, 519, 1997, 517, 0, 0, 2045, 2044, 2043, 2042, 2041, 0, 2039, 504, 2012, 516, 2012, 2026, 2025, 2019, 2027, 2016, 2012, 2008, 565, 0, 0, 2042, 2119, 0, 2119, 2119, 2119, 2032, 91, 67, 540, 2119, 2119, 2050, 2046, 2119, 0, 0, 1109, 2119, 2119, 2119, 2119, 2119, 0, 745, 2119, 0, 2026, 2025, 2003, 2017, 2000, 2010, 1999, 0, 2011, 2002, 2000, 2000, 1993, 2006, 1991, 1990, 1994, 1990, 1992, 2002, 1993, 581, 1973, 1989, 493, 559, 1989, 1987, 1976, 584, 1987, 1989, 1977, 1991, 1991, 1979, 1986, 602, 1966, 1986, 1989, 1987, 1969, 1969, 1968, 1941, 1946, 2119, 0, 0, 1952, 2119, 0, 1161, 2119, 2119, 1973, 495, 748, 0, 2119, 0, 1983, 2119, 2119, 2119, 1982, 649, 660, 671, 0, 1970, 1959, 0, 731, 1963, 1961, 558, 796, 799, 1970, 1970, 607, 1959, 595, 1948, 1957, 1946, 603, 1957, 1959, 1962, 1951, 1964, 1957, 1937, 1957, 1959, 1944, 2119, 1982, 2119, 0, 1213, 0, 0, 0, 647, 658, 664, 0, 1949, 743, 745, 1948, 1952, 1935, 1936, 1950, 1933, 1950, 1937, 1945, 1946, 1944, 1945, 1924, 669, 1904, 684, 742, 1903, 1907, 1892, 1893, 1891, 1906, 1894, 1901, 1902, 1900, 1901, 1882, 0, 0, 0, 0, 0, 1912, 0, 1910, 1915, 1923, 1924, 1914, 1921, 588, 1919, 1909, 1907, 1920, 1905, 1901, 1897, 0, 1922, 1921, 640, 591, 616, 0, 644, 2119, 2119, 1900, 1896, 1908, 1905, 1906, 1895, 1905, 1905, 1888, 1905, 1896, 1886, 1898, 1901, 1898, 1879, 1895, 0, 1886, 1888, 1875, 1890, 1888, 1886, 1888, 1897, 0, 0, 1875, 0, 1869, 1870, 1875, 1861, 1878, 1868, 1865, 1864, 1859, 1871, 1861, 1858, 1864, 1871, 1872, 1856, 1872, 1860, 1864, 1851, 0, 0, 0, 0, 1855, 0, 1849, 1852, 802, 1859, 1860, 1860, 1860, 1843, 1836, 1859, 842, 1856, 1854, 1845, 1841, 1848, 1850, 1859, 0, 0, 1832, 1833, 1835, 1824, 1841, 1829, 1824, 1841, 1831, 1838, 1839, 1840, 1835, 0, 1824, 651, 1833, 1832, 1820, 0, 1830, 1821, 1821, 1812, 1827, 1825, 1824, 1816, 1807, 1808, 1811, 1779, 698, 1787, 1786, 1775, 0, 1784, 1776, 1769, 1782, 1780, 1779, 1772, 1764, 1765, 1767, 1805, 1804, 1789, 1806, 1794, 1793, 1800, 1791, 1772, 1766, 1764, 1738, 1734, 1717, 1714, 1728, 698, 621, 699, 1697, 0, 1680, 1677, 1655, 1654, 0, 1660, 1648, 1634, 1650, 1638, 1626, 1553, 1567, 1555, 1565, 1548, 1566, 1547, 1548, 1560, 1544, 1562, 1559, 1543, 0, 1545, 1544, 1527, 1548, 1535, 1543, 1535, 1544, 1536, 1547, 1540, 1543, 1532, 1537, 1525, 1532, 1534, 1537, 1532, 1535, 1536, 1526, 0, 1523, 1518, 0, 1524, 1514, 0, 1502, 1518, 1511, 1525, 1508, 0, 1508, 1526, 1523, 0, 1510, 1523, 1492, 1508, 1504, 1506, 1499, 1508, 1497, 1502, 1497, 0, 1491, 1480, 1479, 0, 0, 0, 1474, 1490, 1469, 1282, 0, 0, 1471, 1479, 0, 1467, 1483, 1443, 1436, 1439, 0, 0, 0, 1435, 1449, 1362, 0, 0, 1433, 1439, 0, 1429, 1443, 1458, 0, 1455, 1454, 1452, 0, 1466, 1449, 1449, 0, 0, 1459, 0, 1447, 1435, 1461, 131, 721, 632, 1443, 0, 677, 1443, 1457, 0, 1460, 1441, 1454, 0, 1444, 0, 1426, 0, 1442, 1451, 1445, 0, 1433, 1451, 1443, 1446, 1444, 1423, 1428, 1445, 1436, 1430, 1423, 1436, 0, 1432, 1421, 1426, 1418, 1418, 1425, 1428, 1402, 1410, 1411, 1392, 1396, 1405, 1408, 1387, 737, 1387, 0, 1405, 1386, 1399, 0, 1389, 1398, 1393, 1396, 1394, 1379, 1393, 1387, 1381, 1393, 1389, 1377, 1376, 1383, 1387, 1378, 1365, 0, 1372, 1370, 1363, 1378, 0, 1442, 0, 1378, 0, 1379, 1329, 0, 1335, 1333, 1327, 0, 1522, 0, 1341, 0, 1342, 1353, 1354, 1366, 1366, 1355, 1364, 1336, 1362, 0, 773, 0, 765, 771, 1370, 1344, 1357, 1334, 0, 0, 1342, 1350, 1350, 0, 764, 0, 1348, 1332, 0, 1331, 0, 1345, 1334, 0, 1320, 1313, 1326, 0, 1300, 1305, 1324, 1297, 1296, 1312, 1305, 1293, 95, 176, 205, 0, 0, 451, 608, 614, 693, 743, 747, 0, 759, 769, 773, 0, 797, 0, 803, 801, 793, 0, 811, 0, 807, 828, 822, 815, 805, 825, 838, 827, 833, 0, 0, 844, 0, 830, 803, 808, 0, 0, 0, 806, 0, 835, 826, 853, 0, 854, 841, 858, 839, 850, 871, 872, 863, 0, 869, 859, 873, 0, 866, 864, 0, 852, 869, 874, 881, 877, 0, 866, 898, 0, 869, 900, 898, 884, 874, 898, 0, 0, 894, 0, 904, 906, 906, 0, 903, 893, 907, 0, 0, 903, 911, 907, 896, 0, 898, 905, 900, 924, 0, 919, 933, 935, 0, 935, 905, 907, 907, 947, 937, 922, 0, 949, 925, 926, 945, 0, 940, 0, 948, 951, 950, 963, 950, 0, 0, 964, 952, 953, 957, 965, 962, 972, 0, 964, 979, 0, 981, 995, 0, 967, 0, 976, 0, 0, 985, 973, 984, 0, 974, 993, 0, 0, 0, 0, 0, 0, 0, 979, 998, 995, 999, 995, 1009, 1006, 1004, 1008, 1001, 994, 1001, 1012, 1013, 1005, 1018, 1004, 1015, 1016, 1008, 1007, 1028, 0, 2119, 1022, 1026, 1026, 1033, 1024, 1014, 1043, 1030, 1036, 1038, 1029, 1049, 1047, 1046, 1061, 0, 1032, 1051, 1051, 1051, 1055, 0, 1050, 0, 0, 1062, 1058, 1068, 1073, 0, 1074, 1072, 1046, 1064, 1060, 0, 0, 1076, 1086, 1085, 1072, 1086, 1080, 1084, 1091, 1087, 1088, 1085, 1090, 1084, 1091, 1075, 1094, 1077, 0, 1108, 1112, 1098, 1100, 1114, 1112, 1103, 1093, 1121, 1108, 1122, 1109, 1126, 1125, 1116, 1128, 1126, 1114, 1130, 1122, 1106, 1107, 1138, 1125, 1127, 1128, 1144, 0, 1131, 1138, 1143, 1127, 1139, 1155, 1141, 1150, 0, 1149, 0, 1156, 1166, 1159, 1144, 0, 1160, 1181, 1176, 1166, 1165, 1165, 0, 1167, 0, 1164, 1168, 1207, 1170, 1173, 0, 1169, 1158, 1159, 1177, 1179, 1184, 1180, 1191, 1195, 1205, 1199, 1201, 1189, 0, 0, 0, 1200, 1210, 1209, 1222, 0, 0, 0, 1209, 1223, 0, 1225, 1213, 1212, 1224, 1230, 1223, 1224, 1222, 1237, 1219, 1231, 1237, 1230, 1218, 1232, 1237, 1243, 0, 1246, 0, 1237, 1244, 1260, 1257, 0, 1264, 0, 1254, 1260, 1273, 1255, 1261, 1263, 1268, 1281, 1284, 1274, 1273, 1273, 1287, 1283, 0, 1273, 0, 1261, 1292, 1274, 1280, 0, 1265, 1282, 1279, 1290, 1295, 1281, 1293, 1300, 1299, 1293, 0, 1286, 1293, 1299, 1294, 1309, 1297, 1294, 1289, 1311, 1301, 1303, 1298, 1315, 0, 0, 0, 1306, 0, 1312, 0, 0, 1307, 1309, 0, 2119, 1602, 1613, 1624, 1635, 1646, 1657, 1668, 1676, 1684, 1692, 1703, 1711, 1722, 1733, 1742, 1746, 1755, 1757, 1765, 1773, 1784, 1795, 1806, 1817 } ; static const flex_int16_t yy_def[1231] = { 0, 1207, 1207, 1206, 3, 1208, 1208, 1206, 7, 1206, 9, 1206, 11, 1209, 1209, 1210, 1210, 1211, 1211, 1206, 1206, 1206, 1206, 1206, 1206, 1212, 1213, 1214, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1214, 1214, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1206, 1206, 1206, 1214, 1206, 1212, 1214, 1206, 1206, 1206, 1206, 1214, 1215, 1214, 1206, 1206, 1206, 1212, 1213, 1216, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1216, 1206, 1206, 94, 1206, 1206, 1206, 1206, 1206, 1206, 1216, 102, 102, 102, 102, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1206, 1206, 1206, 1206, 1206, 1206, 1217, 1218, 1206, 1206, 1219, 1218, 1218, 94, 94, 1220, 1206, 1206, 1206, 1206, 1218, 137, 137, 137, 137, 137, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1206, 1206, 137, 137, 137, 137, 137, 1218, 1218, 1218, 1218, 1218, 1218, 1206, 1218, 1221, 1206, 1221, 1221, 1221, 1221, 1221, 1206, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1206, 1206, 1222, 1206, 1206, 1206, 1223, 1223, 1223, 1223, 1206, 1206, 1206, 1212, 1206, 1213, 1214, 1214, 1206, 1206, 1206, 1206, 1206, 1214, 1206, 1206, 1224, 1206, 1206, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1206, 1225, 1226, 1214, 1206, 1216, 1216, 1206, 1206, 1206, 94, 94, 272, 1206, 1224, 1206, 1206, 1206, 1206, 1206, 102, 102, 102, 1216, 1216, 1216, 1216, 102, 1216, 1216, 1216, 102, 102, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1206, 1217, 1206, 1218, 1218, 1219, 1219, 1220, 137, 137, 137, 1218, 1218, 137, 137, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 137, 1218, 137, 137, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1222, 1223, 1206, 1223, 1223, 1223, 1214, 1224, 1206, 1206, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1225, 1226, 1214, 1216, 1206, 1216, 102, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 102, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1223, 1223, 1223, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1206, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1227, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1228, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1223, 1223, 1223, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1206, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1218, 1218, 1218, 1218, 1218, 1218, 1229, 1227, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1230, 1228, 1218, 1218, 1218, 1218, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1223, 1223, 1223, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1206, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1223, 1223, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1206, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1218, 1218, 1218, 1218, 1218, 1218, 1218, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1206, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1218, 1218, 1218, 1218, 1218, 1218, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1206, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1216, 1216, 1216, 1216, 1216, 1216, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1216, 1216, 1216, 1216, 1216, 1216, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1216, 1216, 1216, 1216, 1216, 1216, 1221, 1221, 1221, 1221, 1221, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1216, 1216, 1216, 1216, 1216, 1216, 1216, 1221, 1221, 1221, 1221, 1221, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1216, 1216, 1216, 1216, 1221, 1221, 1221, 1221, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1216, 1216, 1216, 1216, 1221, 1221, 1221, 1221, 1214, 1214, 1214, 1214, 1214, 1216, 1216, 1221, 1221, 1221, 1221, 1214, 1214, 1214, 1214, 1214, 1216, 1216, 1221, 1221, 1221, 1214, 1214, 1214, 1214, 1216, 1221, 1221, 1221, 1214, 1214, 1214, 1214, 1216, 1221, 1221, 1214, 1214, 1214, 1214, 1216, 1221, 1221, 1214, 1214, 1214, 1214, 1216, 1214, 1214, 1214, 1214, 0, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206 } ; static const flex_int16_t yy_nxt[2201] = { 0, 21, 22, 23, 24, 25, 26, 27, 21, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 38, 39, 40, 41, 42, 43, 21, 44, 45, 46, 47, 48, 49, 50, 51, 52, 35, 35, 53, 54, 55, 56, 57, 35, 58, 59, 60, 35, 61, 35, 35, 35, 35, 21, 35, 21, 21, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 35, 62, 35, 35, 63, 35, 35, 35, 35, 35, 35, 64, 65, 66, 67, 20, 68, 23, 20, 69, 20, 380, 20, 20, 71, 72, 20, 20, 73, 74, 209, 75, 20, 20, 20, 20, 20, 20, 76, 20, 20, 77, 210, 276, 277, 380, 22, 23, 22, 23, 26, 226, 26, 222, 216, 227, 217, 223, 218, 230, 224, 187, 231, 187, 219, 228, 877, 20, 382, 20, 20, 220, 221, 233, 242, 229, 234, 236, 237, 239, 261, 248, 244, 240, 243, 380, 245, 241, 238, 246, 247, 249, 20, 20, 20, 20, 68, 23, 20, 69, 20, 381, 20, 20, 71, 72, 20, 20, 73, 74, 268, 75, 20, 20, 20, 20, 20, 20, 76, 20, 20, 77, 188, 251, 188, 205, 274, 252, 209, 279, 280, 297, 301, 268, 253, 313, 299, 763, 254, 255, 269, 298, 302, 256, 300, 323, 270, 20, 205, 20, 20, 878, 288, 274, 288, 316, 303, 276, 277, 289, 304, 333, 290, 349, 305, 279, 280, 334, 350, 266, 266, 879, 20, 20, 20, 78, 79, 23, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 106, 92, 107, 108, 92, 92, 109, 110, 111, 112, 113, 92, 114, 115, 116, 92, 92, 92, 92, 92, 92, 78, 92, 78, 78, 92, 106, 106, 106, 106, 106, 106, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 92, 117, 118, 119, 120, 21, 22, 121, 122, 21, 123, 124, 125, 126, 29, 30, 127, 32, 33, 34, 128, 129, 130, 131, 131, 39, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 128, 128, 143, 128, 128, 144, 128, 145, 146, 147, 128, 128, 148, 149, 128, 128, 128, 128, 128, 128, 150, 128, 151, 21, 128, 152, 153, 154, 140, 155, 156, 128, 128, 128, 128, 157, 128, 158, 159, 160, 128, 161, 162, 128, 128, 64, 163, 66, 164, 21, 22, 23, 165, 25, 26, 165, 21, 166, 29, 30, 167, 168, 165, 169, 165, 170, 165, 165, 165, 165, 40, 41, 171, 172, 165, 173, 174, 175, 165, 176, 177, 165, 178, 179, 165, 180, 181, 165, 165, 165, 182, 183, 165, 184, 165, 165, 165, 165, 165, 165, 165, 185, 165, 186, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 165, 64, 65, 66, 165, 21, 22, 23, 21, 21, 26, 880, 21, 21, 21, 21, 21, 21, 190, 21, 274, 187, 21, 21, 21, 190, 190, 21, 21, 21, 21, 288, 323, 288, 292, 288, 338, 288, 293, 308, 412, 266, 316, 309, 291, 266, 413, 274, 266, 266, 310, 339, 294, 266, 288, 311, 288, 21, 21, 21, 21, 261, 326, 323, 266, 274, 323, 327, 323, 362, 363, 266, 266, 316, 328, 348, 316, 365, 316, 331, 366, 380, 191, 21, 192, 21, 21, 22, 23, 21, 21, 26, 274, 21, 21, 21, 21, 21, 21, 190, 21, 354, 187, 21, 21, 21, 190, 190, 21, 21, 21, 21, 323, 323, 355, 323, 313, 323, 451, 375, 452, 414, 316, 316, 329, 316, 376, 316, 377, 415, 406, 383, 380, 419, 330, 407, 420, 518, 21, 21, 21, 21, 460, 408, 341, 343, 409, 344, 461, 428, 519, 429, 465, 342, 345, 430, 457, 380, 881, 458, 323, 466, 380, 191, 21, 192, 21, 21, 22, 23, 316, 25, 26, 380, 21, 21, 21, 21, 882, 21, 190, 380, 528, 187, 21, 21, 21, 190, 190, 21, 21, 21, 211, 211, 211, 323, 529, 288, 609, 288, 658, 212, 346, 212, 610, 316, 323, 266, 288, 347, 288, 212, 323, 212, 266, 266, 316, 323, 266, 288, 765, 446, 316, 478, 213, 445, 266, 316, 194, 266, 195, 212, 323, 212, 196, 527, 266, 266, 767, 380, 380, 212, 316, 212, 197, 21, 198, 21, 21, 22, 23, 213, 25, 26, 768, 21, 21, 21, 21, 883, 21, 190, 380, 495, 187, 21, 21, 21, 190, 190, 21, 21, 21, 211, 211, 211, 626, 659, 497, 288, 657, 288, 627, 211, 211, 211, 272, 272, 272, 266, 323, 323, 212, 323, 212, 884, 266, 266, 806, 764, 316, 316, 212, 316, 212, 1206, 380, 1206, 480, 194, 481, 195, 380, 859, 807, 196, 885, 860, 274, 886, 887, 849, 212, 888, 212, 197, 21, 198, 21, 204, 204, 204, 212, 850, 212, 1206, 498, 1206, 204, 204, 204, 204, 204, 204, 288, 274, 288, 288, 889, 288, 288, 454, 288, 890, 266, 851, 891, 266, 892, 852, 266, 266, 453, 893, 266, 266, 579, 266, 266, 204, 204, 204, 204, 204, 204, 267, 267, 267, 894, 895, 896, 897, 898, 899, 267, 267, 267, 267, 267, 267, 288, 900, 288, 901, 902, 903, 904, 587, 905, 906, 266, 907, 908, 909, 910, 911, 912, 266, 266, 913, 914, 915, 380, 380, 916, 267, 267, 267, 267, 267, 267, 271, 271, 271, 917, 918, 919, 920, 921, 922, 272, 273, 272, 273, 272, 272, 923, 274, 924, 925, 212, 926, 212, 927, 274, 928, 930, 931, 932, 933, 929, 934, 935, 275, 936, 937, 938, 939, 940, 941, 942, 272, 273, 272, 273, 272, 272, 943, 274, 944, 212, 945, 212, 946, 274, 947, 948, 949, 950, 951, 275, 281, 281, 281, 952, 953, 954, 955, 956, 957, 281, 282, 281, 283, 281, 281, 958, 284, 959, 960, 961, 285, 962, 963, 284, 964, 965, 966, 286, 287, 967, 968, 969, 284, 970, 971, 972, 973, 974, 975, 976, 281, 288, 281, 288, 281, 281, 977, 284, 978, 979, 980, 981, 982, 284, 983, 984, 985, 986, 987, 284, 317, 317, 317, 988, 989, 990, 991, 992, 993, 317, 317, 317, 317, 317, 317, 994, 997, 998, 999, 1000, 1001, 1002, 1003, 995, 1004, 1005, 1007, 1008, 996, 1009, 1010, 1011, 1012, 1006, 1013, 1014, 1015, 1016, 1019, 1020, 317, 317, 317, 317, 317, 317, 321, 321, 321, 1021, 1022, 1023, 1024, 1017, 1025, 321, 322, 321, 323, 321, 321, 1018, 324, 1026, 1027, 1028, 325, 1029, 1030, 324, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 324, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 321, 323, 321, 323, 321, 321, 1046, 324, 1047, 1048, 1049, 1050, 1051, 324, 1052, 1053, 1054, 1055, 1056, 324, 204, 204, 204, 1057, 1058, 1059, 1060, 1061, 1062, 204, 204, 204, 204, 204, 204, 1063, 1064, 1065, 1066, 384, 1067, 384, 1068, 1069, 1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 204, 204, 204, 204, 204, 204, 1086, 1087, 1088, 384, 1089, 384, 267, 267, 267, 1090, 1091, 1092, 1093, 1094, 1095, 267, 267, 267, 267, 267, 267, 1096, 1097, 1098, 1099, 443, 1100, 443, 1101, 1102, 1106, 1107, 1108, 1109, 1110, 1103, 1111, 1112, 1116, 1104, 1117, 1118, 1119, 1120, 1121, 1122, 267, 267, 267, 267, 267, 267, 1105, 1123, 1124, 443, 1125, 443, 317, 317, 317, 1113, 1126, 1127, 1128, 1114, 1129, 317, 317, 317, 317, 317, 317, 1130, 1131, 1132, 1133, 477, 1115, 477, 1134, 1135, 1136, 1137, 1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1146, 1147, 1148, 1149, 1150, 1151, 317, 317, 317, 317, 317, 317, 1152, 1153, 1154, 477, 1155, 477, 735, 735, 1156, 735, 735, 735, 1157, 735, 735, 735, 735, 735, 1158, 735, 1159, 1160, 1161, 1162, 1163, 1164, 1165, 735, 735, 735, 735, 735, 1166, 1167, 1168, 1169, 1170, 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1178, 1179, 1180, 1181, 1182, 1183, 1184, 1185, 1186, 1187, 1188, 1189, 1190, 1191, 1192, 1193, 1194, 735, 1195, 1196, 1197, 1198, 1199, 1200, 1201, 1202, 1203, 1204, 1205, 876, 875, 874, 873, 872, 871, 870, 869, 868, 867, 735, 735, 735, 746, 746, 866, 746, 746, 746, 865, 746, 746, 746, 746, 746, 864, 746, 863, 862, 861, 858, 857, 856, 855, 746, 746, 746, 746, 746, 854, 853, 380, 848, 847, 846, 845, 844, 843, 842, 841, 840, 839, 838, 837, 836, 835, 834, 833, 832, 831, 830, 829, 828, 827, 826, 825, 824, 823, 746, 822, 821, 820, 819, 818, 817, 816, 815, 814, 813, 812, 811, 810, 809, 808, 805, 804, 803, 802, 801, 800, 746, 746, 746, 735, 735, 799, 735, 735, 735, 798, 735, 735, 735, 735, 735, 797, 735, 796, 795, 794, 793, 792, 791, 790, 735, 735, 735, 735, 735, 789, 788, 787, 786, 785, 784, 783, 782, 781, 780, 779, 778, 777, 776, 775, 774, 773, 772, 771, 770, 769, 766, 762, 761, 760, 759, 758, 757, 756, 735, 755, 754, 753, 752, 751, 750, 749, 748, 745, 744, 743, 742, 741, 740, 739, 738, 737, 734, 733, 732, 731, 735, 735, 735, 746, 746, 730, 746, 746, 746, 729, 746, 746, 746, 746, 746, 728, 746, 727, 726, 725, 724, 723, 722, 721, 746, 746, 746, 746, 746, 720, 719, 718, 717, 716, 715, 714, 713, 712, 711, 710, 709, 708, 707, 706, 705, 704, 703, 702, 701, 700, 699, 698, 697, 696, 695, 694, 693, 692, 746, 691, 690, 689, 688, 687, 686, 685, 684, 683, 682, 681, 680, 679, 678, 677, 676, 675, 674, 673, 672, 671, 746, 746, 746, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 202, 670, 202, 202, 202, 202, 202, 202, 202, 202, 202, 203, 203, 203, 203, 203, 203, 203, 203, 263, 669, 668, 667, 263, 263, 666, 263, 266, 665, 664, 663, 266, 266, 266, 266, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 314, 316, 316, 662, 316, 316, 316, 316, 316, 318, 661, 318, 318, 318, 318, 318, 318, 318, 318, 318, 320, 660, 320, 320, 320, 320, 320, 320, 320, 320, 320, 357, 357, 357, 357, 357, 357, 357, 357, 357, 378, 656, 378, 378, 379, 379, 655, 654, 379, 379, 653, 379, 379, 385, 385, 440, 440, 440, 440, 440, 440, 440, 440, 441, 441, 441, 441, 441, 441, 441, 441, 736, 652, 736, 736, 736, 736, 736, 736, 736, 736, 736, 747, 651, 747, 747, 747, 747, 747, 747, 747, 747, 747, 735, 650, 735, 735, 735, 735, 735, 735, 735, 735, 735, 746, 649, 746, 746, 746, 746, 746, 746, 746, 746, 746, 648, 647, 646, 645, 644, 643, 642, 641, 640, 639, 638, 637, 636, 635, 634, 633, 632, 631, 630, 629, 628, 625, 624, 623, 622, 621, 620, 619, 618, 617, 616, 615, 614, 613, 612, 611, 608, 607, 606, 605, 604, 603, 602, 601, 600, 599, 598, 597, 596, 595, 594, 593, 592, 591, 590, 589, 588, 586, 585, 584, 583, 582, 581, 580, 578, 577, 576, 575, 574, 573, 572, 571, 570, 569, 568, 567, 566, 565, 564, 563, 562, 561, 560, 559, 558, 557, 556, 555, 554, 553, 552, 551, 550, 549, 548, 547, 546, 545, 544, 543, 542, 541, 540, 539, 538, 537, 536, 535, 534, 533, 532, 531, 530, 379, 380, 526, 525, 524, 523, 522, 521, 520, 517, 516, 515, 514, 513, 512, 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501, 500, 499, 496, 494, 493, 492, 491, 490, 489, 488, 487, 486, 485, 484, 483, 482, 479, 315, 476, 475, 474, 473, 472, 471, 470, 469, 468, 467, 464, 463, 462, 459, 456, 455, 450, 449, 448, 447, 387, 386, 444, 442, 439, 438, 437, 436, 435, 434, 433, 432, 431, 427, 426, 425, 424, 423, 422, 421, 418, 417, 416, 411, 410, 405, 404, 403, 402, 401, 400, 399, 398, 397, 396, 395, 394, 393, 392, 391, 390, 389, 388, 387, 386, 201, 199, 380, 209, 374, 373, 372, 371, 370, 369, 368, 367, 364, 215, 361, 360, 359, 358, 205, 356, 353, 352, 351, 340, 337, 336, 335, 332, 278, 269, 319, 315, 265, 312, 307, 306, 296, 295, 278, 208, 207, 206, 201, 265, 199, 264, 209, 262, 201, 199, 261, 260, 259, 258, 257, 250, 235, 232, 225, 215, 214, 208, 207, 206, 205, 201, 199, 1206, 19, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206 } ; static const flex_int16_t yy_chk[2201] = { 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 5, 195, 5, 5, 5, 5, 5, 5, 5, 5, 36, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 36, 98, 98, 194, 13, 13, 14, 14, 13, 47, 14, 45, 44, 47, 44, 45, 44, 49, 45, 13, 49, 14, 44, 48, 797, 5, 195, 5, 5, 44, 44, 51, 55, 48, 51, 53, 53, 54, 118, 57, 56, 54, 55, 657, 56, 54, 53, 56, 56, 57, 5, 5, 5, 6, 6, 6, 6, 6, 6, 194, 6, 6, 6, 6, 6, 6, 6, 6, 85, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 13, 59, 14, 85, 95, 59, 93, 100, 100, 109, 111, 126, 59, 118, 110, 657, 59, 59, 93, 109, 111, 59, 110, 140, 93, 6, 126, 6, 6, 798, 103, 95, 103, 140, 112, 133, 133, 103, 112, 144, 103, 157, 112, 135, 135, 144, 157, 103, 103, 799, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 15, 15, 15, 15, 15, 15, 802, 15, 15, 15, 15, 15, 15, 15, 15, 131, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 104, 156, 104, 105, 105, 148, 105, 105, 115, 238, 104, 156, 115, 104, 105, 238, 131, 104, 104, 115, 148, 105, 105, 106, 115, 106, 15, 15, 15, 15, 163, 138, 138, 106, 271, 142, 139, 139, 173, 173, 106, 106, 138, 139, 156, 142, 175, 139, 142, 175, 196, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 271, 16, 16, 16, 16, 16, 16, 16, 16, 161, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 141, 152, 161, 153, 163, 154, 291, 184, 291, 239, 141, 152, 141, 153, 184, 154, 184, 239, 235, 196, 382, 243, 141, 235, 243, 370, 16, 16, 16, 16, 298, 235, 152, 153, 235, 154, 298, 251, 370, 251, 302, 152, 154, 251, 296, 383, 803, 296, 155, 302, 528, 16, 16, 16, 16, 17, 17, 17, 155, 17, 17, 659, 17, 17, 17, 17, 804, 17, 17, 381, 382, 17, 17, 17, 17, 17, 17, 17, 17, 17, 37, 37, 37, 321, 383, 281, 479, 281, 528, 385, 155, 385, 479, 321, 322, 281, 282, 155, 282, 37, 323, 37, 281, 281, 322, 341, 282, 283, 659, 283, 323, 322, 37, 282, 282, 341, 17, 283, 17, 385, 343, 385, 17, 381, 283, 283, 662, 527, 529, 37, 343, 37, 17, 17, 17, 17, 18, 18, 18, 37, 18, 18, 662, 18, 18, 18, 18, 805, 18, 18, 658, 341, 18, 18, 18, 18, 18, 18, 18, 18, 18, 38, 38, 38, 496, 529, 343, 288, 527, 288, 496, 211, 211, 211, 272, 272, 272, 288, 344, 326, 38, 327, 38, 806, 288, 288, 706, 658, 344, 326, 211, 327, 211, 272, 763, 272, 326, 18, 327, 18, 764, 775, 706, 18, 807, 775, 272, 809, 810, 761, 38, 811, 38, 18, 18, 18, 18, 27, 27, 27, 211, 761, 211, 272, 344, 272, 27, 27, 27, 27, 27, 27, 292, 272, 292, 293, 813, 293, 446, 293, 446, 815, 292, 763, 816, 293, 817, 764, 446, 292, 292, 819, 293, 293, 446, 446, 446, 27, 27, 27, 27, 27, 27, 83, 83, 83, 821, 822, 823, 824, 825, 826, 83, 83, 83, 83, 83, 83, 454, 827, 454, 828, 829, 832, 834, 454, 835, 836, 454, 840, 842, 843, 844, 846, 847, 454, 454, 848, 849, 850, 851, 852, 853, 83, 83, 83, 83, 83, 83, 94, 94, 94, 855, 856, 857, 859, 860, 862, 94, 94, 94, 94, 94, 94, 863, 94, 864, 865, 94, 866, 94, 868, 94, 869, 871, 872, 873, 874, 869, 875, 876, 94, 879, 881, 882, 883, 885, 886, 887, 94, 94, 94, 94, 94, 94, 890, 94, 891, 94, 892, 94, 893, 94, 895, 896, 897, 898, 900, 94, 102, 102, 102, 901, 902, 904, 905, 906, 907, 102, 102, 102, 102, 102, 102, 908, 102, 909, 910, 912, 102, 913, 914, 102, 915, 917, 919, 102, 102, 920, 921, 922, 102, 923, 926, 927, 928, 929, 930, 931, 102, 102, 102, 102, 102, 102, 932, 102, 934, 935, 937, 938, 940, 102, 942, 945, 946, 947, 949, 102, 124, 124, 124, 950, 958, 959, 960, 961, 962, 124, 124, 124, 124, 124, 124, 963, 964, 965, 966, 967, 968, 969, 970, 963, 971, 972, 973, 974, 963, 975, 976, 977, 978, 972, 979, 982, 983, 984, 986, 987, 124, 124, 124, 124, 124, 124, 137, 137, 137, 988, 989, 990, 991, 985, 992, 137, 137, 137, 137, 137, 137, 985, 137, 993, 994, 995, 137, 996, 998, 137, 999, 1000, 1001, 1002, 1004, 1007, 1008, 1009, 137, 1010, 1012, 1013, 1014, 1015, 1016, 1019, 137, 137, 137, 137, 137, 137, 1020, 137, 1021, 1022, 1023, 1024, 1025, 137, 1026, 1027, 1028, 1029, 1030, 137, 204, 204, 204, 1031, 1032, 1033, 1034, 1035, 1037, 204, 204, 204, 204, 204, 204, 1038, 1039, 1040, 1041, 204, 1042, 204, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 204, 204, 204, 204, 204, 204, 1061, 1062, 1063, 204, 1065, 204, 267, 267, 267, 1066, 1067, 1068, 1069, 1070, 1071, 267, 267, 267, 267, 267, 267, 1072, 1074, 1076, 1077, 267, 1078, 267, 1079, 1081, 1083, 1084, 1085, 1086, 1088, 1082, 1090, 1091, 1093, 1082, 1094, 1096, 1097, 1098, 1099, 1100, 267, 267, 267, 267, 267, 267, 1082, 1101, 1102, 267, 1103, 267, 317, 317, 317, 1092, 1104, 1105, 1106, 1092, 1107, 317, 317, 317, 317, 317, 317, 1108, 1112, 1113, 1114, 317, 1092, 317, 1115, 1119, 1120, 1122, 1123, 1124, 1125, 1126, 1127, 1128, 1129, 1130, 1131, 1132, 1133, 1134, 1135, 1136, 317, 317, 317, 317, 317, 317, 1137, 1138, 1140, 317, 1142, 317, 617, 617, 1143, 617, 617, 617, 1144, 617, 617, 617, 617, 617, 1145, 617, 1147, 1149, 1150, 1151, 1152, 1153, 1154, 617, 617, 617, 617, 617, 1155, 1156, 1157, 1158, 1159, 1160, 1161, 1162, 1164, 1166, 1167, 1168, 1169, 1171, 1172, 1173, 1174, 1175, 1176, 1177, 1178, 1179, 1180, 1182, 1183, 1184, 1185, 1186, 1187, 617, 1188, 1189, 1190, 1191, 1192, 1193, 1194, 1198, 1200, 1203, 1204, 796, 795, 794, 793, 792, 791, 790, 789, 787, 786, 617, 617, 617, 633, 633, 785, 633, 633, 633, 783, 633, 633, 633, 633, 633, 782, 633, 780, 778, 777, 773, 772, 771, 768, 633, 633, 633, 633, 633, 767, 766, 765, 759, 758, 757, 756, 755, 754, 753, 752, 751, 749, 745, 744, 743, 741, 740, 738, 734, 733, 732, 731, 729, 728, 727, 726, 725, 724, 633, 723, 722, 721, 720, 719, 718, 717, 716, 715, 714, 713, 711, 710, 709, 707, 705, 704, 703, 702, 701, 700, 633, 633, 633, 736, 736, 699, 736, 736, 736, 698, 736, 736, 736, 736, 736, 697, 736, 696, 695, 694, 693, 692, 691, 689, 736, 736, 736, 736, 736, 688, 687, 686, 685, 684, 683, 682, 681, 680, 679, 678, 676, 675, 674, 672, 670, 668, 667, 666, 664, 663, 660, 656, 655, 654, 652, 649, 648, 647, 736, 645, 644, 643, 641, 640, 639, 637, 636, 632, 631, 627, 626, 625, 624, 623, 621, 620, 616, 615, 614, 610, 736, 736, 736, 747, 747, 609, 747, 747, 747, 608, 747, 747, 747, 747, 747, 606, 747, 605, 604, 603, 602, 601, 600, 599, 747, 747, 747, 747, 747, 598, 597, 596, 594, 593, 592, 590, 589, 588, 587, 586, 584, 583, 581, 580, 578, 577, 576, 575, 574, 573, 572, 571, 570, 569, 568, 567, 566, 565, 747, 564, 563, 562, 561, 560, 559, 558, 557, 555, 554, 553, 552, 551, 550, 549, 548, 547, 546, 545, 544, 543, 747, 747, 747, 1207, 1207, 1207, 1207, 1207, 1207, 1207, 1207, 1207, 1207, 1207, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1208, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1209, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1210, 1211, 1211, 1211, 1211, 1211, 1211, 1211, 1211, 1211, 1211, 1211, 1212, 1212, 1212, 1212, 1212, 1212, 1212, 1212, 1212, 1212, 1212, 1213, 542, 1213, 1213, 1213, 1213, 1213, 1213, 1213, 1213, 1213, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1214, 1215, 541, 540, 539, 1215, 1215, 538, 1215, 1216, 537, 535, 534, 1216, 1216, 1216, 1216, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1217, 1218, 1218, 533, 1218, 1218, 1218, 1218, 1218, 1219, 532, 1219, 1219, 1219, 1219, 1219, 1219, 1219, 1219, 1219, 1220, 530, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1220, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1221, 1222, 526, 1222, 1222, 1223, 1223, 525, 524, 1223, 1223, 523, 1223, 1223, 1224, 1224, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1226, 1226, 1226, 1226, 1226, 1226, 1226, 1226, 1227, 522, 1227, 1227, 1227, 1227, 1227, 1227, 1227, 1227, 1227, 1228, 521, 1228, 1228, 1228, 1228, 1228, 1228, 1228, 1228, 1228, 1229, 520, 1229, 1229, 1229, 1229, 1229, 1229, 1229, 1229, 1229, 1230, 519, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 1230, 518, 517, 516, 515, 514, 513, 512, 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501, 499, 498, 497, 495, 494, 493, 492, 491, 490, 489, 488, 487, 486, 485, 484, 482, 481, 480, 478, 476, 475, 474, 473, 472, 471, 470, 469, 468, 467, 466, 465, 464, 461, 460, 459, 458, 457, 456, 455, 453, 452, 451, 450, 449, 448, 447, 445, 444, 442, 437, 436, 435, 434, 433, 432, 431, 430, 429, 428, 427, 426, 425, 424, 423, 422, 421, 420, 419, 418, 416, 413, 412, 411, 410, 409, 408, 407, 406, 404, 403, 402, 401, 400, 399, 398, 397, 396, 395, 394, 393, 392, 391, 390, 389, 388, 380, 379, 377, 376, 375, 374, 373, 372, 371, 369, 368, 367, 366, 365, 364, 362, 356, 355, 354, 353, 352, 351, 350, 349, 348, 347, 346, 345, 342, 340, 339, 338, 337, 336, 335, 334, 333, 332, 331, 330, 329, 328, 325, 314, 312, 311, 310, 309, 308, 307, 306, 305, 304, 303, 301, 300, 299, 297, 295, 294, 290, 289, 286, 285, 280, 276, 270, 264, 260, 259, 258, 257, 256, 255, 254, 253, 252, 250, 249, 248, 247, 246, 245, 244, 242, 241, 240, 237, 236, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 224, 223, 222, 220, 219, 218, 217, 216, 215, 214, 200, 199, 193, 187, 183, 182, 181, 180, 179, 178, 177, 176, 174, 172, 170, 169, 168, 167, 166, 162, 160, 159, 158, 149, 147, 146, 145, 143, 134, 129, 127, 123, 122, 116, 114, 113, 108, 107, 99, 91, 89, 88, 81, 80, 79, 77, 75, 74, 69, 68, 65, 63, 62, 61, 60, 58, 52, 50, 46, 43, 41, 34, 32, 31, 28, 25, 22, 19, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206, 1206 } ; 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 "ldlex.l" #line 4 "ldlex.l" /* Copyright (C) 1991-2023 Free Software Foundation, Inc. Written by Steve Chamberlain of Cygnus Support. This file is part of the GNU Binutils. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ #include "bfd.h" #include "safe-ctype.h" #include "bfdlink.h" #include "ctf-api.h" #include "ld.h" #include "ldmisc.h" #include "ldexp.h" #include "ldlang.h" #include #include "ldfile.h" #include "ldlex.h" #include "ldmain.h" #include "libiberty.h" /* The type of top-level parser input. yylex and yyparse (indirectly) both check this. */ input_type parser_input; /* Line number in the current input file. */ unsigned int lineno; /* The string we are currently lexing, or NULL if we are reading a file. */ const char *lex_string = NULL; /* Support for flex reading from more than one input file (stream). `include_stack' is flex's input state for each open file; `file_name_stack' is the file names. `lineno_stack' is the current line numbers. If `include_stack_ptr' is 0, we haven't started reading anything yet. Otherwise, stack elements 0 through `include_stack_ptr - 1' are valid. */ #undef YY_INPUT #define YY_INPUT(buf,result,max_size) result = yy_input (buf, max_size) #ifndef YY_NO_UNPUT #define YY_NO_UNPUT #endif #define MAX_INCLUDE_DEPTH 10 static YY_BUFFER_STATE include_stack[MAX_INCLUDE_DEPTH]; static const char *file_name_stack[MAX_INCLUDE_DEPTH]; static unsigned int lineno_stack[MAX_INCLUDE_DEPTH]; static unsigned int sysrooted_stack[MAX_INCLUDE_DEPTH]; static unsigned int include_stack_ptr = 0; static int vers_node_nesting = 0; static int yy_input (char *, int); static void comment (void); static void lex_warn_invalid (char *where, char *what); /* STATES EXPRESSION in an expression SCRIPT in a script INPUTLIST in a script, a filename-list MRI in an MRI script WILD inside the braces of an output section or overlay, for input section wildcards VERS_START starting a Sun style mapfile VERS_SCRIPT a Sun style mapfile VERS_NODE a node within a Sun style mapfile */ #define RTOKEN(x) { yylval.token = x; return x; } #line 1420 "ldlex.c" #line 1422 "ldlex.c" #define INITIAL 0 #define SCRIPT 1 #define INPUTLIST 2 #define EXPRESSION 3 #define MRI 4 #define WILD 5 #define VERS_START 6 #define VERS_SCRIPT 7 #define VERS_NODE 8 #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 YY_NO_UNPUT #endif #ifndef yytext_ptr static void yy_flex_strncpy ( char *, const char *, int ); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen ( const 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, (size_t) 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 = '*'; \ int 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 = (int) fread(buf, 1, (yy_size_t) 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 /*LINTED*/break; #endif #define YY_RULE_SETUP \ YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { yy_state_type yy_current_state; char *yy_cp, *yy_bp; int yy_act; 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( ); } { #line 114 "ldlex.l" #line 117 "ldlex.l" if (parser_input != input_selected) { /* The first token of the input determines the initial parser state. */ input_type t = parser_input; parser_input = input_selected; switch (t) { case input_script: return INPUT_SCRIPT; break; case input_mri_script: return INPUT_MRI_SCRIPT; break; case input_version_script: return INPUT_VERSION_SCRIPT; break; case input_dynamic_list: return INPUT_DYNAMIC_LIST; break; case input_defsym: return INPUT_DEFSYM; break; default: abort (); } } #line 1665 "ldlex.c" while ( /*CONSTCOND*/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_match: do { 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 >= 1207 ) yy_c = yy_meta[yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; ++yy_cp; } while ( yy_base[yy_current_state] != 2119 ); 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; 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: YY_RULE_SETUP #line 133 "ldlex.l" { comment (); } YY_BREAK case 2: YY_RULE_SETUP #line 136 "ldlex.l" { yylval.integer = bfd_scan_vma (yytext + 1, 0, 16); yylval.bigint.str = NULL; return INT; } YY_BREAK case 3: YY_RULE_SETUP #line 142 "ldlex.l" { int ibase ; switch (yytext[yyleng - 1]) { case 'X': case 'x': case 'H': case 'h': ibase = 16; break; case 'O': case 'o': ibase = 8; break; case 'B': case 'b': ibase = 2; break; default: ibase = 10; } yylval.integer = bfd_scan_vma (yytext, 0, ibase); yylval.bigint.str = NULL; return INT; } YY_BREAK case 4: YY_RULE_SETUP #line 167 "ldlex.l" { char *s = yytext; int ibase = 0; if (*s == '$') { ++s; ibase = 16; } yylval.integer = bfd_scan_vma (s, 0, ibase); yylval.bigint.str = NULL; if (yytext[yyleng - 1] == 'M' || yytext[yyleng - 1] == 'm') { yylval.integer *= 1024 * 1024; } else if (yytext[yyleng - 1] == 'K' || yytext[yyleng - 1]=='k') { yylval.integer *= 1024; } else if (yytext[0] == '0' && (yytext[1] == 'x' || yytext[1] == 'X')) { yylval.bigint.str = xstrdup (yytext + 2); } return INT; } YY_BREAK /* Some tokens that only appear in expressions must be enabled for states other than EXPRESSION, since parser lookahead means they must be recognised before the parser switches the lexer out of SCRIPT or WILD state into EXPRESSION state. This sort of thing happens for example with NAME in ldgram.y "section" rule, which is immediately followed by ldlex_expression. However, if you follow the grammar from "sec_or_group_p1" you see "assignment" appearing in "statement_anywhere". Now, "assignment" also has NAME as its first token, just like "section". So the parser can't know whether it is in the "section" or the "assignment" rule until it has scanned the next token to find an assignment operator. Thus the next token after NAME in the "section" rule may be lexed before the lexer is switched to EXPRESSION state, and there are quite a number of optional components. The first token in all those components must be able to be lexed in SCRIPT state, as well as the assignment operators. In fact, due to "opt_exp_with_type", anything that can appear on the left hand side of "exp" might need to be lexed in SCRIPT state. MRI mode tends to cover everything in MRI scripts. */ case 5: YY_RULE_SETUP #line 220 "ldlex.l" { RTOKEN(']'); } YY_BREAK case 6: YY_RULE_SETUP #line 221 "ldlex.l" { RTOKEN('['); } YY_BREAK case 7: YY_RULE_SETUP #line 222 "ldlex.l" { RTOKEN(LSHIFTEQ); } YY_BREAK case 8: YY_RULE_SETUP #line 223 "ldlex.l" { RTOKEN(RSHIFTEQ); } YY_BREAK case 9: YY_RULE_SETUP #line 224 "ldlex.l" { RTOKEN(OROR); } YY_BREAK case 10: YY_RULE_SETUP #line 225 "ldlex.l" { RTOKEN(EQ); } YY_BREAK case 11: YY_RULE_SETUP #line 226 "ldlex.l" { RTOKEN(NE); } YY_BREAK case 12: YY_RULE_SETUP #line 227 "ldlex.l" { RTOKEN(GE); } YY_BREAK case 13: YY_RULE_SETUP #line 228 "ldlex.l" { RTOKEN(LE); } YY_BREAK case 14: YY_RULE_SETUP #line 229 "ldlex.l" { RTOKEN(LSHIFT); } YY_BREAK case 15: YY_RULE_SETUP #line 230 "ldlex.l" { RTOKEN(RSHIFT); } YY_BREAK case 16: YY_RULE_SETUP #line 231 "ldlex.l" { RTOKEN(PLUSEQ); } YY_BREAK case 17: YY_RULE_SETUP #line 232 "ldlex.l" { RTOKEN(MINUSEQ); } YY_BREAK case 18: YY_RULE_SETUP #line 233 "ldlex.l" { RTOKEN(MULTEQ); } YY_BREAK case 19: YY_RULE_SETUP #line 234 "ldlex.l" { RTOKEN(DIVEQ); } YY_BREAK case 20: YY_RULE_SETUP #line 235 "ldlex.l" { RTOKEN(ANDEQ); } YY_BREAK case 21: YY_RULE_SETUP #line 236 "ldlex.l" { RTOKEN(OREQ); } YY_BREAK case 22: YY_RULE_SETUP #line 237 "ldlex.l" { RTOKEN(ANDAND); } YY_BREAK case 23: YY_RULE_SETUP #line 238 "ldlex.l" { RTOKEN('>'); } YY_BREAK case 24: YY_RULE_SETUP #line 239 "ldlex.l" { RTOKEN(','); } YY_BREAK case 25: YY_RULE_SETUP #line 240 "ldlex.l" { RTOKEN('&'); } YY_BREAK case 26: YY_RULE_SETUP #line 241 "ldlex.l" { RTOKEN('|'); } YY_BREAK case 27: YY_RULE_SETUP #line 242 "ldlex.l" { RTOKEN('~'); } YY_BREAK case 28: YY_RULE_SETUP #line 243 "ldlex.l" { RTOKEN('!'); } YY_BREAK case 29: YY_RULE_SETUP #line 244 "ldlex.l" { RTOKEN('?'); } YY_BREAK case 30: YY_RULE_SETUP #line 245 "ldlex.l" { RTOKEN('*'); } YY_BREAK case 31: YY_RULE_SETUP #line 246 "ldlex.l" { RTOKEN('+'); } YY_BREAK case 32: YY_RULE_SETUP #line 247 "ldlex.l" { RTOKEN('-'); } YY_BREAK case 33: YY_RULE_SETUP #line 248 "ldlex.l" { RTOKEN('/'); } YY_BREAK case 34: YY_RULE_SETUP #line 249 "ldlex.l" { RTOKEN('%'); } YY_BREAK case 35: YY_RULE_SETUP #line 250 "ldlex.l" { RTOKEN('<'); } YY_BREAK case 36: YY_RULE_SETUP #line 251 "ldlex.l" { RTOKEN('='); } YY_BREAK case 37: YY_RULE_SETUP #line 252 "ldlex.l" { RTOKEN('}'); } YY_BREAK case 38: YY_RULE_SETUP #line 253 "ldlex.l" { RTOKEN('{'); } YY_BREAK case 39: YY_RULE_SETUP #line 254 "ldlex.l" { RTOKEN(')'); } YY_BREAK case 40: YY_RULE_SETUP #line 255 "ldlex.l" { RTOKEN('('); } YY_BREAK case 41: YY_RULE_SETUP #line 256 "ldlex.l" { RTOKEN(':'); } YY_BREAK case 42: YY_RULE_SETUP #line 257 "ldlex.l" { RTOKEN(';'); } YY_BREAK case 43: YY_RULE_SETUP #line 258 "ldlex.l" { RTOKEN(MEMORY); } YY_BREAK case 44: YY_RULE_SETUP #line 259 "ldlex.l" { RTOKEN(REGION_ALIAS); } YY_BREAK case 45: YY_RULE_SETUP #line 260 "ldlex.l" { RTOKEN(LD_FEATURE); } YY_BREAK case 46: YY_RULE_SETUP #line 261 "ldlex.l" { RTOKEN(ORIGIN); } YY_BREAK case 47: YY_RULE_SETUP #line 262 "ldlex.l" { RTOKEN(VERSIONK); } YY_BREAK case 48: YY_RULE_SETUP #line 263 "ldlex.l" { RTOKEN(BLOCK); } YY_BREAK case 49: YY_RULE_SETUP #line 264 "ldlex.l" { RTOKEN(BIND); } YY_BREAK case 50: YY_RULE_SETUP #line 265 "ldlex.l" { RTOKEN(LENGTH); } YY_BREAK case 51: YY_RULE_SETUP #line 266 "ldlex.l" { RTOKEN(ALIGN_K); } YY_BREAK case 52: YY_RULE_SETUP #line 267 "ldlex.l" { RTOKEN(DATA_SEGMENT_ALIGN); } YY_BREAK case 53: YY_RULE_SETUP #line 268 "ldlex.l" { RTOKEN(DATA_SEGMENT_RELRO_END); } YY_BREAK case 54: YY_RULE_SETUP #line 269 "ldlex.l" { RTOKEN(DATA_SEGMENT_END); } YY_BREAK case 55: YY_RULE_SETUP #line 270 "ldlex.l" { RTOKEN(ADDR); } YY_BREAK case 56: YY_RULE_SETUP #line 271 "ldlex.l" { RTOKEN(LOADADDR); } YY_BREAK case 57: YY_RULE_SETUP #line 272 "ldlex.l" { RTOKEN(ALIGNOF); } YY_BREAK case 58: YY_RULE_SETUP #line 273 "ldlex.l" { RTOKEN(ABSOLUTE); } YY_BREAK case 59: YY_RULE_SETUP #line 274 "ldlex.l" { RTOKEN(MAX_K); } YY_BREAK case 60: YY_RULE_SETUP #line 275 "ldlex.l" { RTOKEN(MIN_K); } YY_BREAK case 61: YY_RULE_SETUP #line 276 "ldlex.l" { RTOKEN(LOG2CEIL); } YY_BREAK case 62: YY_RULE_SETUP #line 277 "ldlex.l" { RTOKEN(ASSERT_K); } YY_BREAK case 63: YY_RULE_SETUP #line 278 "ldlex.l" { RTOKEN(ENTRY); } YY_BREAK case 64: YY_RULE_SETUP #line 279 "ldlex.l" { RTOKEN(EXTERN); } YY_BREAK case 65: YY_RULE_SETUP #line 280 "ldlex.l" { RTOKEN(NEXT); } YY_BREAK case 66: YY_RULE_SETUP #line 281 "ldlex.l" { RTOKEN(SIZEOF_HEADERS); } YY_BREAK case 67: YY_RULE_SETUP #line 282 "ldlex.l" { RTOKEN(SEGMENT_START); } YY_BREAK case 68: YY_RULE_SETUP #line 283 "ldlex.l" { RTOKEN(MAP); } YY_BREAK case 69: YY_RULE_SETUP #line 284 "ldlex.l" { RTOKEN(SIZEOF); } YY_BREAK case 70: YY_RULE_SETUP #line 285 "ldlex.l" { RTOKEN(TARGET_K); } YY_BREAK case 71: YY_RULE_SETUP #line 286 "ldlex.l" { RTOKEN(SEARCH_DIR); } YY_BREAK case 72: YY_RULE_SETUP #line 287 "ldlex.l" { RTOKEN(OUTPUT); } YY_BREAK case 73: YY_RULE_SETUP #line 288 "ldlex.l" { RTOKEN(INPUT); } YY_BREAK case 74: YY_RULE_SETUP #line 289 "ldlex.l" { RTOKEN(GROUP); } YY_BREAK case 75: YY_RULE_SETUP #line 290 "ldlex.l" { RTOKEN(AS_NEEDED); } YY_BREAK case 76: YY_RULE_SETUP #line 291 "ldlex.l" { RTOKEN(DEFINED); } YY_BREAK case 77: YY_RULE_SETUP #line 292 "ldlex.l" { RTOKEN(CREATE_OBJECT_SYMBOLS); } YY_BREAK case 78: YY_RULE_SETUP #line 293 "ldlex.l" { RTOKEN(CONSTRUCTORS); } YY_BREAK case 79: YY_RULE_SETUP #line 294 "ldlex.l" { RTOKEN(FORCE_COMMON_ALLOCATION); } YY_BREAK case 80: YY_RULE_SETUP #line 295 "ldlex.l" { RTOKEN(FORCE_GROUP_ALLOCATION); } YY_BREAK case 81: YY_RULE_SETUP #line 296 "ldlex.l" { RTOKEN(INHIBIT_COMMON_ALLOCATION); } YY_BREAK case 82: YY_RULE_SETUP #line 297 "ldlex.l" { RTOKEN(SECTIONS); } YY_BREAK case 83: YY_RULE_SETUP #line 298 "ldlex.l" { RTOKEN(INSERT_K); } YY_BREAK case 84: YY_RULE_SETUP #line 299 "ldlex.l" { RTOKEN(AFTER); } YY_BREAK case 85: YY_RULE_SETUP #line 300 "ldlex.l" { RTOKEN(BEFORE); } YY_BREAK case 86: YY_RULE_SETUP #line 301 "ldlex.l" { RTOKEN(FILL); } YY_BREAK case 87: YY_RULE_SETUP #line 302 "ldlex.l" { RTOKEN(STARTUP); } YY_BREAK case 88: YY_RULE_SETUP #line 303 "ldlex.l" { RTOKEN(OUTPUT_FORMAT); } YY_BREAK case 89: YY_RULE_SETUP #line 304 "ldlex.l" { RTOKEN(OUTPUT_ARCH); } YY_BREAK case 90: YY_RULE_SETUP #line 305 "ldlex.l" { RTOKEN(HLL); } YY_BREAK case 91: YY_RULE_SETUP #line 306 "ldlex.l" { RTOKEN(SYSLIB); } YY_BREAK case 92: YY_RULE_SETUP #line 307 "ldlex.l" { RTOKEN(FLOAT); } YY_BREAK case 93: YY_RULE_SETUP #line 308 "ldlex.l" { RTOKEN(QUAD); } YY_BREAK case 94: YY_RULE_SETUP #line 309 "ldlex.l" { RTOKEN(SQUAD); } YY_BREAK case 95: YY_RULE_SETUP #line 310 "ldlex.l" { RTOKEN(LONG); } YY_BREAK case 96: YY_RULE_SETUP #line 311 "ldlex.l" { RTOKEN(SHORT); } YY_BREAK case 97: YY_RULE_SETUP #line 312 "ldlex.l" { RTOKEN(BYTE); } YY_BREAK case 98: YY_RULE_SETUP #line 313 "ldlex.l" { RTOKEN(NOFLOAT); } YY_BREAK case 99: YY_RULE_SETUP #line 314 "ldlex.l" { RTOKEN(NOCROSSREFS); } YY_BREAK case 100: YY_RULE_SETUP #line 315 "ldlex.l" { RTOKEN(NOCROSSREFS_TO); } YY_BREAK case 101: YY_RULE_SETUP #line 316 "ldlex.l" { RTOKEN(OVERLAY); } YY_BREAK case 102: YY_RULE_SETUP #line 317 "ldlex.l" { RTOKEN(SORT_BY_NAME); } YY_BREAK case 103: YY_RULE_SETUP #line 318 "ldlex.l" { RTOKEN(SORT_BY_ALIGNMENT); } YY_BREAK case 104: YY_RULE_SETUP #line 319 "ldlex.l" { RTOKEN(SORT_BY_NAME); } YY_BREAK case 105: YY_RULE_SETUP #line 320 "ldlex.l" { RTOKEN(SORT_BY_INIT_PRIORITY); } YY_BREAK case 106: YY_RULE_SETUP #line 321 "ldlex.l" { RTOKEN(SORT_NONE); } YY_BREAK case 107: YY_RULE_SETUP #line 322 "ldlex.l" { RTOKEN(NOLOAD); } YY_BREAK case 108: YY_RULE_SETUP #line 323 "ldlex.l" { RTOKEN(READONLY); } YY_BREAK case 109: YY_RULE_SETUP #line 324 "ldlex.l" { RTOKEN(DSECT); } YY_BREAK case 110: YY_RULE_SETUP #line 325 "ldlex.l" { RTOKEN(COPY); } YY_BREAK case 111: YY_RULE_SETUP #line 326 "ldlex.l" { RTOKEN(INFO); } YY_BREAK case 112: YY_RULE_SETUP #line 327 "ldlex.l" { RTOKEN(TYPE); } YY_BREAK case 113: YY_RULE_SETUP #line 328 "ldlex.l" { RTOKEN(ONLY_IF_RO); } YY_BREAK case 114: YY_RULE_SETUP #line 329 "ldlex.l" { RTOKEN(ONLY_IF_RW); } YY_BREAK case 115: YY_RULE_SETUP #line 330 "ldlex.l" { RTOKEN(SPECIAL); } YY_BREAK case 116: YY_RULE_SETUP #line 331 "ldlex.l" { RTOKEN(ORIGIN); } YY_BREAK case 117: YY_RULE_SETUP #line 332 "ldlex.l" { RTOKEN(ORIGIN); } YY_BREAK case 118: YY_RULE_SETUP #line 333 "ldlex.l" { RTOKEN(LENGTH); } YY_BREAK case 119: YY_RULE_SETUP #line 334 "ldlex.l" { RTOKEN(LENGTH); } YY_BREAK case 120: YY_RULE_SETUP #line 335 "ldlex.l" { RTOKEN(INPUT_SECTION_FLAGS); } YY_BREAK case 121: YY_RULE_SETUP #line 336 "ldlex.l" { RTOKEN(INCLUDE);} YY_BREAK case 122: YY_RULE_SETUP #line 337 "ldlex.l" { RTOKEN(PHDRS); } YY_BREAK case 123: YY_RULE_SETUP #line 338 "ldlex.l" { RTOKEN(AT);} YY_BREAK case 124: YY_RULE_SETUP #line 339 "ldlex.l" { RTOKEN(ALIGN_WITH_INPUT);} YY_BREAK case 125: YY_RULE_SETUP #line 340 "ldlex.l" { RTOKEN(SUBALIGN);} YY_BREAK case 126: YY_RULE_SETUP #line 341 "ldlex.l" { RTOKEN(HIDDEN); } YY_BREAK case 127: YY_RULE_SETUP #line 342 "ldlex.l" { RTOKEN(PROVIDE); } YY_BREAK case 128: YY_RULE_SETUP #line 343 "ldlex.l" { RTOKEN(PROVIDE_HIDDEN); } YY_BREAK case 129: YY_RULE_SETUP #line 344 "ldlex.l" { RTOKEN(KEEP); } YY_BREAK case 130: YY_RULE_SETUP #line 345 "ldlex.l" { RTOKEN(EXCLUDE_FILE); } YY_BREAK case 131: YY_RULE_SETUP #line 346 "ldlex.l" { RTOKEN(CONSTANT);} YY_BREAK case 132: /* rule 132 can match eol */ YY_RULE_SETUP #line 348 "ldlex.l" { ++ lineno; } YY_BREAK case 133: /* rule 133 can match eol */ YY_RULE_SETUP #line 349 "ldlex.l" { ++ lineno; RTOKEN(NEWLINE); } YY_BREAK case 134: YY_RULE_SETUP #line 350 "ldlex.l" { /* Mri comment line */ } YY_BREAK case 135: YY_RULE_SETUP #line 351 "ldlex.l" { /* Mri comment line */ } YY_BREAK case 136: YY_RULE_SETUP #line 352 "ldlex.l" { RTOKEN(ENDWORD); } YY_BREAK case 137: YY_RULE_SETUP #line 353 "ldlex.l" { RTOKEN(ABSOLUTE); } YY_BREAK case 138: YY_RULE_SETUP #line 354 "ldlex.l" { RTOKEN(ALIGNMOD);} YY_BREAK case 139: YY_RULE_SETUP #line 355 "ldlex.l" { RTOKEN(ALIGN_K);} YY_BREAK case 140: YY_RULE_SETUP #line 356 "ldlex.l" { RTOKEN(CHIP); } YY_BREAK case 141: YY_RULE_SETUP #line 357 "ldlex.l" { RTOKEN(BASE); } YY_BREAK case 142: YY_RULE_SETUP #line 358 "ldlex.l" { RTOKEN(ALIAS); } YY_BREAK case 143: YY_RULE_SETUP #line 359 "ldlex.l" { RTOKEN(TRUNCATE); } YY_BREAK case 144: YY_RULE_SETUP #line 360 "ldlex.l" { RTOKEN(LOAD); } YY_BREAK case 145: YY_RULE_SETUP #line 361 "ldlex.l" { RTOKEN(PUBLIC); } YY_BREAK case 146: YY_RULE_SETUP #line 362 "ldlex.l" { RTOKEN(ORDER); } YY_BREAK case 147: YY_RULE_SETUP #line 363 "ldlex.l" { RTOKEN(NAMEWORD); } YY_BREAK case 148: YY_RULE_SETUP #line 364 "ldlex.l" { RTOKEN(FORMAT); } YY_BREAK case 149: YY_RULE_SETUP #line 365 "ldlex.l" { RTOKEN(CASE); } YY_BREAK case 150: YY_RULE_SETUP #line 366 "ldlex.l" { RTOKEN(START); } YY_BREAK case 151: YY_RULE_SETUP #line 367 "ldlex.l" { RTOKEN(LIST); /* LIST and ignore to end of line */ } YY_BREAK case 152: YY_RULE_SETUP #line 368 "ldlex.l" { RTOKEN(SECT); } YY_BREAK case 153: YY_RULE_SETUP #line 369 "ldlex.l" { RTOKEN(ENDWORD); } YY_BREAK case 154: YY_RULE_SETUP #line 370 "ldlex.l" { RTOKEN(ABSOLUTE); } YY_BREAK case 155: YY_RULE_SETUP #line 371 "ldlex.l" { RTOKEN(ALIGNMOD);} YY_BREAK case 156: YY_RULE_SETUP #line 372 "ldlex.l" { RTOKEN(ALIGN_K);} YY_BREAK case 157: YY_RULE_SETUP #line 373 "ldlex.l" { RTOKEN(CHIP); } YY_BREAK case 158: YY_RULE_SETUP #line 374 "ldlex.l" { RTOKEN(BASE); } YY_BREAK case 159: YY_RULE_SETUP #line 375 "ldlex.l" { RTOKEN(ALIAS); } YY_BREAK case 160: YY_RULE_SETUP #line 376 "ldlex.l" { RTOKEN(TRUNCATE); } YY_BREAK case 161: YY_RULE_SETUP #line 377 "ldlex.l" { RTOKEN(LOAD); } YY_BREAK case 162: YY_RULE_SETUP #line 378 "ldlex.l" { RTOKEN(PUBLIC); } YY_BREAK case 163: YY_RULE_SETUP #line 379 "ldlex.l" { RTOKEN(ORDER); } YY_BREAK case 164: YY_RULE_SETUP #line 380 "ldlex.l" { RTOKEN(NAMEWORD); } YY_BREAK case 165: YY_RULE_SETUP #line 381 "ldlex.l" { RTOKEN(FORMAT); } YY_BREAK case 166: YY_RULE_SETUP #line 382 "ldlex.l" { RTOKEN(CASE); } YY_BREAK case 167: YY_RULE_SETUP #line 383 "ldlex.l" { RTOKEN(EXTERN); } YY_BREAK case 168: YY_RULE_SETUP #line 384 "ldlex.l" { RTOKEN(START); } YY_BREAK case 169: YY_RULE_SETUP #line 385 "ldlex.l" { RTOKEN(LIST); /* LIST and ignore to end of line */ } YY_BREAK case 170: YY_RULE_SETUP #line 386 "ldlex.l" { RTOKEN(SECT); } YY_BREAK case 171: YY_RULE_SETUP #line 388 "ldlex.l" { /* Filename without commas, needed to parse mri stuff */ yylval.name = xstrdup (yytext); return NAME; } YY_BREAK case 172: YY_RULE_SETUP #line 395 "ldlex.l" { yylval.name = xstrdup (yytext); return NAME; } YY_BREAK case 173: YY_RULE_SETUP #line 399 "ldlex.l" { /* Filename to be prefixed by --sysroot or when non-sysrooted, nothing. */ yylval.name = xstrdup (yytext); return NAME; } YY_BREAK case 174: YY_RULE_SETUP #line 404 "ldlex.l" { yylval.name = xstrdup (yytext + 2); return LNAME; } YY_BREAK case 175: YY_RULE_SETUP #line 408 "ldlex.l" { yylval.name = xstrdup (yytext); return NAME; } YY_BREAK /* The following rule is to prevent a fill expression on the output section before /DISCARD/ interpreting the '/' as a divide. */ case 176: YY_RULE_SETUP #line 414 "ldlex.l" { yylval.name = xstrdup (yytext); return NAME; } YY_BREAK case 177: YY_RULE_SETUP #line 418 "ldlex.l" { /* Annoyingly, this pattern can match comments, and we have longest match issues to consider. So if the first two characters are a comment opening, put the input back and try again. */ if (yytext[0] == '/' && yytext[1] == '*') { yyless (2); comment (); } else { yylval.name = xstrdup (yytext); return NAME; } } YY_BREAK case 178: /* rule 178 can match eol */ YY_RULE_SETUP #line 435 "ldlex.l" { /* No matter the state, quotes give what's inside. */ yylval.name = xmemdup (yytext + 1, yyleng - 2, yyleng - 1); return NAME; } YY_BREAK case 179: /* rule 179 can match eol */ YY_RULE_SETUP #line 441 "ldlex.l" { lineno++; } YY_BREAK case 180: YY_RULE_SETUP #line 443 "ldlex.l" { /* Eat up whitespace */ } YY_BREAK case 181: YY_RULE_SETUP #line 445 "ldlex.l" { /* Eat up comments */ } YY_BREAK case 182: YY_RULE_SETUP #line 448 "ldlex.l" { return *yytext; } YY_BREAK case 183: YY_RULE_SETUP #line 450 "ldlex.l" { RTOKEN(GLOBAL); } YY_BREAK case 184: YY_RULE_SETUP #line 452 "ldlex.l" { RTOKEN(LOCAL); } YY_BREAK case 185: YY_RULE_SETUP #line 454 "ldlex.l" { RTOKEN(EXTERN); } YY_BREAK case 186: YY_RULE_SETUP #line 456 "ldlex.l" { yylval.name = xstrdup (yytext); return VERS_IDENTIFIER; } YY_BREAK case 187: YY_RULE_SETUP #line 459 "ldlex.l" { yylval.name = xstrdup (yytext); return VERS_TAG; } YY_BREAK case 188: YY_RULE_SETUP #line 462 "ldlex.l" { BEGIN(VERS_SCRIPT); return *yytext; } YY_BREAK case 189: YY_RULE_SETUP #line 464 "ldlex.l" { BEGIN(VERS_NODE); vers_node_nesting = 0; return *yytext; } YY_BREAK case 190: YY_RULE_SETUP #line 468 "ldlex.l" { return *yytext; } YY_BREAK case 191: YY_RULE_SETUP #line 469 "ldlex.l" { vers_node_nesting++; return *yytext; } YY_BREAK case 192: YY_RULE_SETUP #line 470 "ldlex.l" { if (--vers_node_nesting < 0) BEGIN(VERS_SCRIPT); return *yytext; } YY_BREAK case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(SCRIPT): case YY_STATE_EOF(INPUTLIST): case YY_STATE_EOF(EXPRESSION): case YY_STATE_EOF(MRI): case YY_STATE_EOF(WILD): case YY_STATE_EOF(VERS_START): case YY_STATE_EOF(VERS_SCRIPT): case YY_STATE_EOF(VERS_NODE): #line 475 "ldlex.l" { include_stack_ptr--; if (include_stack_ptr == 0) { lineno = 0; yyterminate (); } else yy_switch_to_buffer (include_stack[include_stack_ptr]); lineno = lineno_stack[include_stack_ptr]; input_flags.sysrooted = sysrooted_stack[include_stack_ptr]; return END; } YY_BREAK case 193: YY_RULE_SETUP #line 491 "ldlex.l" lex_warn_invalid (" in script", yytext); YY_BREAK case 194: YY_RULE_SETUP #line 492 "ldlex.l" lex_warn_invalid (" in expression", yytext); YY_BREAK case 195: YY_RULE_SETUP #line 494 "ldlex.l" ECHO; YY_BREAK #line 2859 "ldlex.c" 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 user's declarations */ } /* 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) { char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; char *source = (yytext_ptr); 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_LVALUE; 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, (yy_size_t) (b->yy_buf_size + 2) ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = NULL; 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), 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_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ int 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, (yy_size_t) new_size ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); /* "- 2" to take care of EOB's */ YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2); } (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) { yy_state_type yy_current_state; char *yy_cp; yy_current_state = (yy_start); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { 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 >= 1207 ) yy_c = yy_meta[yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + 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 ) { int yy_is_jam; char *yy_cp = (yy_c_buf_p); 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 >= 1207 ) yy_c = yy_meta[yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; yy_is_jam = (yy_current_state == 1206); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_UNPUT #endif #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 = (int) ((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 0; 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); 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( (yy_size_t) (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 ); } /* 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) { yy_size_t 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; /* After all that talk, this was set to 1 anyways... */ (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. */ yy_size_t 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 NULL; 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 = (int) (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 = NULL; 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 (const char * yystr ) { return yy_scan_bytes( yystr, (int) 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 (const 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 = (yy_size_t) (_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 yynoreturn yy_fatal_error (const char* msg ) { 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 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. */ (yy_buffer_stack) = NULL; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; (yy_c_buf_p) = NULL; (yy_init) = 0; (yy_start) = 0; /* Defined in main.c */ #ifdef YY_STDINIT yyin = stdin; yyout = stdout; #else yyin = NULL; yyout = NULL; #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, const char * s2, int n ) { int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (const char * s ) { int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif void *yyalloc (yy_size_t size ) { return 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 realloc(ptr, size); } void yyfree (void * ptr ) { free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 494 "ldlex.l" /* Switch flex to reading script file NAME, open on FILE, saving the current input info on the include stack. */ void lex_push_file (FILE *file, const char *name, unsigned int sysrooted) { if (include_stack_ptr >= MAX_INCLUDE_DEPTH) { einfo (_("%F:includes nested too deeply\n")); } file_name_stack[include_stack_ptr] = name; lineno_stack[include_stack_ptr] = lineno; sysrooted_stack[include_stack_ptr] = input_flags.sysrooted; include_stack[include_stack_ptr] = YY_CURRENT_BUFFER; include_stack_ptr++; lineno = 1; input_flags.sysrooted = sysrooted; yyin = file; yy_switch_to_buffer (yy_create_buffer (yyin, YY_BUF_SIZE)); } /* Return a newly created flex input buffer containing STRING, which is SIZE bytes long. */ static YY_BUFFER_STATE yy_create_string_buffer (const char *string, size_t size) { YY_BUFFER_STATE b; b = xmalloc (sizeof (struct yy_buffer_state)); b->yy_input_file = 0; 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 = xmalloc ((size_t) b->yy_buf_size + 3); b->yy_ch_buf[0] = '\n'; strcpy (b->yy_ch_buf+1, string); b->yy_ch_buf[size+1] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[size+2] = YY_END_OF_BUFFER_CHAR; b->yy_n_chars = size+1; b->yy_buf_pos = &b->yy_ch_buf[1]; b->yy_is_our_buffer = 1; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; /* flex 2.4.7 changed the interface. FIXME: We should not be using a flex internal interface in the first place! */ #ifdef YY_BUFFER_NEW b->yy_buffer_status = YY_BUFFER_NEW; #else b->yy_eof_status = EOF_NOT_SEEN; #endif return b; } /* Switch flex to reading from STRING, saving the current input info on the include stack. */ void lex_redirect (const char *string, const char *fake_filename, unsigned int count) { YY_BUFFER_STATE tmp; yy_init = 0; if (include_stack_ptr >= MAX_INCLUDE_DEPTH) { einfo (_("%F: macros nested too deeply\n")); } file_name_stack[include_stack_ptr] = fake_filename; lineno_stack[include_stack_ptr] = lineno; include_stack[include_stack_ptr] = YY_CURRENT_BUFFER; include_stack_ptr++; lineno = count; tmp = yy_create_string_buffer (string, strlen (string)); yy_switch_to_buffer (tmp); } /* Functions to switch to a different flex start condition, saving the current start condition on `state_stack'. */ static int state_stack[MAX_INCLUDE_DEPTH * 2]; static int *state_stack_p = state_stack; void ldlex_script (void) { *(state_stack_p)++ = yy_start; BEGIN (SCRIPT); } void ldlex_inputlist (void) { *(state_stack_p)++ = yy_start; BEGIN (INPUTLIST); } void ldlex_mri_script (void) { *(state_stack_p)++ = yy_start; BEGIN (MRI); } void ldlex_version_script (void) { *(state_stack_p)++ = yy_start; BEGIN (VERS_START); } void ldlex_version_file (void) { *(state_stack_p)++ = yy_start; BEGIN (VERS_SCRIPT); } void ldlex_expression (void) { *(state_stack_p)++ = yy_start; BEGIN (EXPRESSION); } void ldlex_wild (void) { *(state_stack_p)++ = yy_start; BEGIN (WILD); } void ldlex_popstate (void) { yy_start = *(--state_stack_p); } /* In cases where the parser needs to look ahead and the context changes from expression to script or vice-versa, throw away a NAME. What constitutes a NAME depends on context. */ void ldlex_backup (void) { yyless (0); } /* Return the current file name, or the previous file if no file is current. */ const char* ldlex_filename (void) { return file_name_stack[include_stack_ptr - (include_stack_ptr != 0)]; } /* Place up to MAX_SIZE characters in BUF and return either the number of characters read, or 0 to indicate EOF. */ static int yy_input (char *buf, int max_size) { int result = 0; if (YY_CURRENT_BUFFER->yy_input_file) { if (yyin) { result = fread (buf, 1, max_size, yyin); if (result < max_size && ferror (yyin)) einfo (_("%F%P: read in flex scanner failed\n")); } } return result; } /* Eat the rest of a C-style comment. */ static void comment (void) { int c; while (1) { c = input(); while (c != '*' && c != 0) { if (c == '\n') lineno++; c = input(); } if (c == '*') { c = input(); while (c == '*') c = input(); if (c == '/') break; /* found the end */ } if (c == '\n') lineno++; if (c == 0) { einfo (_("%F%P: EOF in comment\n")); break; } } } /* Warn the user about a garbage character WHAT in the input in context WHERE. */ static void lex_warn_invalid (char *where, char *what) { char buf[5]; /* If we have found an input file whose format we do not recognize, and we are therefore treating it as a linker script, and we find an invalid character, then most likely this is a real object file of some different format. Treat it as such. */ if (ldfile_assumed_script) { bfd_set_error (bfd_error_file_not_recognized); einfo (_("%F%s: file not recognized: %E\n"), ldlex_filename ()); } if (! ISPRINT (*what)) { sprintf (buf, "\\%03o", *(unsigned char *) what); what = buf; } einfo (_("%P:%pS: ignoring invalid character `%s'%s\n"), NULL, what, where); }