| /* A lexical scanner generated by flex */ |
| |
| /* Scanner skeleton version: |
| * $Header$ |
| */ |
| |
| #define FLEX_SCANNER |
| #define YY_FLEX_MAJOR_VERSION 2 |
| #define YY_FLEX_MINOR_VERSION 5 |
| |
| #include <stdio.h> |
| |
| |
| /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ |
| #ifdef c_plusplus |
| #ifndef __cplusplus |
| #define __cplusplus |
| #endif |
| #endif |
| |
| |
| #ifdef __cplusplus |
| |
| #include <stdlib.h> |
| #include <unistd.h> |
| |
| /* Use prototypes in function declarations. */ |
| #define YY_USE_PROTOS |
| |
| /* The "const" storage-class-modifier is valid. */ |
| #define YY_USE_CONST |
| |
| #else /* ! __cplusplus */ |
| |
| #if __STDC__ |
| |
| #define YY_USE_PROTOS |
| #define YY_USE_CONST |
| |
| #endif /* __STDC__ */ |
| #endif /* ! __cplusplus */ |
| |
| #ifdef __TURBOC__ |
| #pragma warn -rch |
| #pragma warn -use |
| #include <io.h> |
| #include <stdlib.h> |
| #define YY_USE_CONST |
| #define YY_USE_PROTOS |
| #endif |
| |
| #ifdef YY_USE_CONST |
| #define yyconst const |
| #else |
| #define yyconst |
| #endif |
| |
| |
| #ifdef YY_USE_PROTOS |
| #define YY_PROTO(proto) proto |
| #else |
| #define YY_PROTO(proto) () |
| #endif |
| |
| /* Returned upon end-of-file. */ |
| #define YY_NULL 0 |
| |
| /* Promotes a possibly negative, possibly signed char to an unsigned |
| * integer for use as an array index. If the signed char is negative, |
| * we want to instead treat it as an 8-bit unsigned char, hence the |
| * double cast. |
| */ |
| #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
| |
| /* Enter a start condition. This macro really ought to take a parameter, |
| * but we do it the disgusting crufty way forced on us by the ()-less |
| * definition of BEGIN. |
| */ |
| #define BEGIN yy_start = 1 + 2 * |
| |
| /* Translate the current start state into a value that can be later handed |
| * to BEGIN to return to the state. The YYSTATE alias is for lex |
| * compatibility. |
| */ |
| #define YY_START ((yy_start - 1) / 2) |
| #define YYSTATE YY_START |
| |
| /* Action number for EOF rule of a given start state. */ |
| #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) |
| |
| /* Special action meaning "start processing a new file". */ |
| #define YY_NEW_FILE yyrestart( yyin ) |
| |
| #define YY_END_OF_BUFFER_CHAR 0 |
| |
| /* Size of default input buffer. */ |
| #define YY_BUF_SIZE 16384 |
| |
| typedef struct yy_buffer_state *YY_BUFFER_STATE; |
| |
| 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 |
| |
| /* The funky do-while in the following #define is used to turn the definition |
| * int a single C statement (which needs a semi-colon terminator). This |
| * avoids problems with code like: |
| * |
| * if ( condition_holds ) |
| * yyless( 5 ); |
| * else |
| * do_something_else(); |
| * |
| * Prior to using the do-while the compiler would get upset at the |
| * "else" because it interpreted the "if" statement as being all |
| * done when it reached the ';' after the yyless() call. |
| */ |
| |
| /* Return all but the first 'n' matched characters back to the input stream. */ |
| |
| #define yyless(n) \ |
| do \ |
| { \ |
| /* Undo effects of setting up yytext. */ \ |
| *yy_cp = yy_hold_char; \ |
| YY_RESTORE_YY_MORE_OFFSET \ |
| yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ |
| YY_DO_BEFORE_ACTION; /* set up yytext again */ \ |
| } \ |
| while ( 0 ) |
| |
| #define unput(c) yyunput( c, yytext_ptr ) |
| |
| /* The following is because we cannot portably get our hands on size_t |
| * (without autoconf's help, which isn't available because we want |
| * flex-generated scanners to compile on their own). |
| */ |
| typedef unsigned int yy_size_t; |
| |
| |
| struct yy_buffer_state |
| { |
| FILE *yy_input_file; |
| |
| char *yy_ch_buf; /* input buffer */ |
| char *yy_buf_pos; /* current position in input buffer */ |
| |
| /* Size of input buffer in bytes, not including room for EOB |
| * characters. |
| */ |
| yy_size_t yy_buf_size; |
| |
| /* Number of characters read into yy_ch_buf, not including EOB |
| * characters. |
| */ |
| int yy_n_chars; |
| |
| /* Whether we "own" the buffer - i.e., we know we created it, |
| * and can realloc() it to grow it, and should free() it to |
| * delete it. |
| */ |
| int yy_is_our_buffer; |
| |
| /* Whether this is an "interactive" input source; if so, and |
| * if we're using stdio for input, then we want to use getc() |
| * instead of fread(), to make sure we stop fetching input after |
| * each newline. |
| */ |
| int yy_is_interactive; |
| |
| /* Whether we're considered to be at the beginning of a line. |
| * If so, '^' rules will be active on the next match, otherwise |
| * not. |
| */ |
| int yy_at_bol; |
| |
| /* 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 |
| }; |
| |
| static YY_BUFFER_STATE yy_current_buffer = 0; |
| |
| /* 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". |
| */ |
| #define YY_CURRENT_BUFFER yy_current_buffer |
| |
| |
| /* yy_hold_char holds the character lost when yytext is formed. */ |
| static char yy_hold_char; |
| |
| static int yy_n_chars; /* number of characters read into yy_ch_buf */ |
| |
| |
| int yyleng; |
| |
| /* Points to current character in buffer. */ |
| static char *yy_c_buf_p = (char *) 0; |
| static int yy_init = 1; /* 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 YY_PROTO(( FILE *input_file )); |
| |
| void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); |
| void yy_load_buffer_state YY_PROTO(( void )); |
| YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); |
| void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); |
| void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); |
| void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); |
| #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) |
| |
| YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); |
| YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); |
| YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); |
| |
| static void *yy_flex_alloc YY_PROTO(( yy_size_t )); |
| static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); |
| static void yy_flex_free YY_PROTO(( void * )); |
| |
| #define yy_new_buffer yy_create_buffer |
| |
| #define yy_set_interactive(is_interactive) \ |
| { \ |
| if ( ! yy_current_buffer ) \ |
| yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ |
| yy_current_buffer->yy_is_interactive = is_interactive; \ |
| } |
| |
| #define yy_set_bol(at_bol) \ |
| { \ |
| if ( ! yy_current_buffer ) \ |
| yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ |
| yy_current_buffer->yy_at_bol = at_bol; \ |
| } |
| |
| #define YY_AT_BOL() (yy_current_buffer->yy_at_bol) |
| |
| typedef unsigned char YY_CHAR; |
| FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; |
| typedef int yy_state_type; |
| extern char *yytext; |
| #define yytext_ptr yytext |
| |
| static yy_state_type yy_get_previous_state YY_PROTO(( void )); |
| static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); |
| static int yy_get_next_buffer YY_PROTO(( void )); |
| static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); |
| |
| /* Done after the current pattern has been matched and before the |
| * corresponding action - sets up yytext. |
| */ |
| #define YY_DO_BEFORE_ACTION \ |
| yytext_ptr = yy_bp; \ |
| yyleng = (int) (yy_cp - yy_bp); \ |
| yy_hold_char = *yy_cp; \ |
| *yy_cp = '\0'; \ |
| yy_c_buf_p = yy_cp; |
| |
| #define YY_NUM_RULES 169 |
| #define YY_END_OF_BUFFER 170 |
| static yyconst short int yy_accept[1062] = |
| { 0, |
| 0, 0, 149, 149, 0, 0, 0, 0, 0, 0, |
| 0, 0, 0, 0, 0, 0, 0, 0, 170, 169, |
| 167, 152, 151, 32, 167, 149, 38, 29, 44, 43, |
| 34, 35, 28, 36, 149, 37, 8, 8, 45, 46, |
| 39, 40, 27, 33, 149, 149, 149, 149, 149, 149, |
| 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, |
| 149, 149, 149, 10, 9, 149, 99, 97, 149, 42, |
| 30, 41, 31, 168, 152, 32, 168, 147, 38, 29, |
| 44, 43, 34, 35, 28, 36, 147, 37, 8, 8, |
| 45, 46, 39, 40, 27, 33, 147, 147, 147, 147, |
| |
| 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, |
| 147, 10, 9, 147, 147, 42, 30, 41, 31, 147, |
| 8, 8, 147, 147, 147, 147, 147, 147, 147, 147, |
| 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, |
| 99, 97, 4, 3, 2, 4, 5, 108, 107, 146, |
| 34, 35, 28, 36, 146, 37, 8, 8, 45, 46, |
| 40, 33, 146, 146, 146, 146, 146, 146, 146, 146, |
| 146, 146, 146, 146, 10, 9, 146, 146, 146, 146, |
| 146, 146, 146, 146, 146, 146, 146, 31, 166, 164, |
| 165, 159, 158, 153, 160, 161, 157, 157, 157, 157, |
| |
| 162, 163, 152, 15, 0, 150, 149, 8, 26, 24, |
| 22, 20, 21, 1, 23, 8, 8, 149, 18, 17, |
| 14, 16, 19, 149, 149, 149, 103, 149, 149, 149, |
| 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, |
| 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, |
| 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, |
| 149, 149, 149, 149, 149, 149, 149, 149, 25, 13, |
| 147, 6, 22, 20, 21, 0, 1, 23, 8, 0, |
| 7, 7, 8, 7, 14, 147, 7, 7, 7, 147, |
| 147, 103, 7, 147, 147, 7, 147, 147, 7, 147, |
| |
| 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, |
| 7, 147, 8, 8, 0, 147, 147, 147, 147, 147, |
| 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, |
| 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, |
| 147, 147, 147, 147, 147, 147, 147, 147, 147, 4, |
| 4, 107, 107, 146, 6, 109, 22, 23, 110, 146, |
| 7, 7, 7, 146, 146, 146, 7, 146, 7, 7, |
| 146, 146, 146, 146, 146, 146, 146, 146, 7, 146, |
| 146, 146, 7, 146, 7, 7, 146, 146, 146, 146, |
| 146, 146, 146, 146, 166, 165, 158, 157, 157, 157, |
| |
| 157, 11, 12, 149, 149, 149, 149, 149, 149, 149, |
| 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, |
| 149, 80, 149, 149, 149, 149, 149, 149, 149, 64, |
| 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, |
| 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, |
| 149, 149, 100, 98, 149, 8, 148, 8, 147, 7, |
| 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, |
| 147, 147, 56, 57, 147, 147, 147, 147, 147, 147, |
| 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, |
| 147, 147, 80, 147, 147, 147, 147, 64, 147, 147, |
| |
| 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, |
| 147, 147, 147, 147, 100, 98, 4, 8, 146, 146, |
| 146, 146, 146, 111, 146, 146, 146, 146, 146, 146, |
| 146, 146, 146, 146, 146, 146, 146, 146, 146, 128, |
| 146, 146, 146, 146, 146, 146, 146, 146, 146, 146, |
| 157, 157, 157, 149, 54, 149, 51, 149, 87, 149, |
| 94, 149, 149, 149, 149, 149, 149, 76, 149, 149, |
| 149, 149, 95, 149, 105, 149, 149, 85, 149, 61, |
| 149, 149, 149, 149, 149, 149, 149, 149, 83, 149, |
| 149, 149, 149, 91, 149, 149, 149, 149, 149, 149, |
| |
| 149, 147, 54, 147, 147, 51, 147, 94, 147, 147, |
| 147, 147, 95, 105, 147, 61, 147, 147, 147, 147, |
| 147, 147, 147, 87, 147, 147, 147, 147, 76, 147, |
| 147, 147, 147, 147, 85, 147, 147, 147, 147, 147, |
| 147, 83, 147, 147, 147, 91, 147, 147, 147, 147, |
| 147, 146, 146, 146, 115, 123, 114, 146, 146, 125, |
| 118, 121, 146, 146, 126, 146, 146, 146, 146, 146, |
| 132, 140, 131, 146, 146, 143, 135, 138, 146, 146, |
| 144, 146, 146, 157, 157, 157, 149, 53, 50, 149, |
| 149, 149, 93, 59, 149, 149, 82, 149, 70, 149, |
| |
| 69, 149, 149, 149, 149, 149, 149, 149, 149, 149, |
| 102, 149, 149, 149, 86, 149, 84, 149, 149, 149, |
| 149, 149, 149, 147, 53, 147, 50, 147, 93, 147, |
| 70, 147, 147, 147, 147, 147, 147, 147, 147, 147, |
| 147, 59, 147, 82, 147, 147, 69, 147, 147, 147, |
| 147, 147, 147, 102, 147, 147, 86, 84, 147, 147, |
| 147, 147, 146, 116, 113, 146, 146, 125, 125, 120, |
| 146, 124, 146, 146, 133, 130, 146, 146, 143, 143, |
| 137, 146, 142, 146, 157, 157, 155, 149, 149, 149, |
| 149, 149, 60, 149, 149, 52, 149, 47, 149, 149, |
| |
| 92, 48, 68, 149, 149, 149, 149, 65, 149, 81, |
| 66, 149, 149, 149, 147, 58, 147, 147, 147, 147, |
| 92, 147, 147, 65, 147, 147, 147, 147, 60, 147, |
| 147, 52, 47, 147, 48, 68, 147, 147, 147, 147, |
| 81, 66, 147, 146, 146, 60, 122, 119, 146, 146, |
| 146, 141, 139, 136, 146, 156, 154, 149, 149, 149, |
| 71, 149, 149, 101, 149, 149, 88, 149, 90, 104, |
| 149, 149, 149, 77, 49, 149, 149, 147, 71, 147, |
| 147, 147, 96, 104, 147, 147, 147, 147, 147, 147, |
| 101, 88, 147, 90, 147, 147, 77, 49, 146, 146, |
| |
| 146, 146, 146, 146, 127, 149, 149, 149, 149, 55, |
| 149, 149, 149, 149, 75, 149, 145, 149, 127, 147, |
| 55, 147, 147, 145, 147, 147, 147, 147, 147, 147, |
| 147, 75, 127, 112, 117, 145, 129, 134, 149, 149, |
| 149, 149, 149, 149, 149, 149, 149, 149, 147, 147, |
| 147, 147, 147, 147, 147, 147, 147, 147, 149, 149, |
| 149, 149, 149, 149, 149, 67, 149, 149, 147, 147, |
| 147, 147, 147, 147, 147, 147, 147, 67, 149, 149, |
| 149, 149, 89, 79, 149, 149, 149, 147, 89, 147, |
| 147, 147, 147, 147, 79, 147, 73, 149, 106, 149, |
| |
| 149, 149, 149, 106, 147, 147, 73, 147, 147, 147, |
| 149, 149, 78, 149, 149, 147, 147, 147, 147, 78, |
| 149, 149, 63, 62, 63, 62, 147, 147, 149, 149, |
| 147, 147, 149, 149, 147, 147, 149, 149, 147, 147, |
| 149, 149, 147, 147, 149, 149, 147, 147, 149, 149, |
| 147, 147, 72, 149, 72, 147, 149, 147, 74, 74, |
| 0 |
| } ; |
| |
| static yyconst int 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, 19, |
| 19, 19, 19, 19, 19, 19, 19, 20, 21, 22, |
| 23, 24, 25, 1, 26, 27, 28, 29, 30, 31, |
| 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, |
| 42, 43, 44, 45, 46, 47, 16, 48, 49, 50, |
| 51, 52, 53, 1, 54, 1, 55, 56, 57, 58, |
| |
| 59, 60, 61, 62, 63, 16, 64, 65, 66, 67, |
| 68, 69, 16, 70, 71, 72, 73, 16, 16, 74, |
| 16, 75, 76, 77, 78, 79, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1 |
| } ; |
| |
| static yyconst int yy_meta[80] = |
| { 0, |
| 1, 1, 2, 1, 1, 1, 3, 1, 1, 1, |
| 1, 4, 5, 6, 5, 7, 8, 9, 9, 5, |
| 1, 1, 6, 1, 4, 9, 9, 9, 9, 9, |
| 9, 7, 7, 7, 7, 7, 7, 7, 7, 7, |
| 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, |
| 5, 8, 5, 7, 9, 9, 9, 9, 9, 9, |
| 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, |
| 7, 7, 7, 7, 7, 1, 1, 1, 8 |
| } ; |
| |
| static yyconst short int yy_base[1084] = |
| { 0, |
| 0, 0, 0, 0, 79, 0, 152, 0, 220, 298, |
| 376, 0, 160, 170, 455, 534, 613, 692, 1902, 1903, |
| 1903, 1899, 1903, 1877, 1894, 754, 1903, 151, 1903, 1903, |
| 1875, 1874, 0, 1873, 0, 152, 296, 229, 0, 1903, |
| 145, 1872, 164, 0, 223, 164, 160, 172, 156, 217, |
| 1851, 1856, 1853, 1861, 175, 135, 219, 215, 220, 1844, |
| 236, 1863, 1858, 0, 0, 1831, 1827, 1815, 1821, 1903, |
| 195, 1903, 0, 1903, 1881, 1859, 1876, 797, 1903, 265, |
| 1903, 1903, 1857, 1856, 1903, 154, 0, 252, 840, 1804, |
| 1903, 1903, 233, 1854, 256, 1903, 897, 299, 302, 308, |
| |
| 321, 327, 1833, 1836, 1844, 1833, 180, 247, 1825, 1828, |
| 1836, 1903, 1903, 454, 1806, 1903, 214, 1903, 0, 954, |
| 700, 542, 457, 448, 243, 297, 320, 453, 1831, 1828, |
| 252, 462, 254, 457, 297, 1820, 479, 1839, 1834, 1807, |
| 1803, 1791, 997, 1903, 1903, 0, 1903, 1903, 1857, 1040, |
| 1836, 1835, 1903, 1834, 0, 1833, 0, 1781, 1903, 0, |
| 1831, 1903, 1083, 488, 490, 330, 535, 536, 321, 1827, |
| 1809, 1805, 139, 1807, 1903, 1903, 538, 540, 542, 572, |
| 561, 503, 1794, 1778, 1774, 446, 1776, 0, 1843, 1903, |
| 0, 1903, 0, 1903, 1903, 1903, 0, 1770, 1778, 1774, |
| |
| 1903, 1903, 1839, 1903, 1835, 1903, 0, 1140, 1903, 1903, |
| 0, 0, 0, 0, 0, 622, 0, 607, 1816, 1903, |
| 0, 1903, 1815, 1793, 1800, 1786, 0, 1772, 1762, 1750, |
| 481, 1762, 1759, 1759, 1740, 536, 1739, 1727, 1715, 1713, |
| 1714, 561, 1707, 1697, 581, 1694, 1690, 1614, 616, 1627, |
| 1615, 1629, 1629, 1617, 1630, 542, 1615, 1604, 1610, 1606, |
| 1625, 1606, 1606, 1605, 1576, 1579, 1584, 1569, 1903, 1903, |
| 0, 1189, 1903, 1903, 1903, 0, 1903, 0, 1569, 712, |
| 0, 1903, 1903, 0, 1903, 625, 695, 750, 0, 1608, |
| 1597, 0, 761, 1601, 1599, 1597, 802, 1607, 1608, 1595, |
| |
| 1603, 1603, 1606, 1583, 1591, 1581, 434, 1598, 1587, 1576, |
| 793, 1550, 613, 825, 0, 1580, 1594, 1577, 543, 1591, |
| 1589, 1574, 597, 1581, 1577, 1573, 1578, 692, 1575, 622, |
| 552, 1575, 697, 1573, 1561, 1575, 1575, 1577, 629, 1562, |
| 1557, 1548, 1564, 1540, 1540, 1539, 1510, 1513, 1518, 0, |
| 1238, 1575, 1903, 0, 1287, 0, 0, 1903, 0, 336, |
| 710, 564, 0, 1543, 715, 719, 1542, 1546, 1529, 1530, |
| 1528, 1545, 1532, 1540, 1541, 1539, 1540, 1519, 690, 1501, |
| 728, 764, 1500, 1504, 1489, 1490, 1488, 1503, 1491, 1498, |
| 1499, 1497, 1498, 1479, 1549, 0, 0, 0, 1478, 1481, |
| |
| 1491, 1903, 1903, 1507, 1503, 1513, 1515, 1515, 1512, 1497, |
| 1491, 1513, 1504, 1509, 1493, 1498, 1499, 1491, 1501, 1498, |
| 1479, 0, 1487, 1482, 1470, 1471, 1474, 1476, 1472, 0, |
| 1463, 1457, 1458, 1463, 1459, 1466, 1456, 1453, 1452, 1447, |
| 1464, 1449, 1446, 1447, 1459, 1443, 1461, 1443, 1448, 1452, |
| 1439, 1414, 0, 0, 1422, 0, 0, 796, 1440, 874, |
| 1447, 1448, 1448, 1448, 1426, 848, 1446, 1436, 1426, 1431, |
| 1429, 1440, 0, 0, 1423, 1424, 1426, 1422, 1417, 1433, |
| 1394, 1402, 1417, 1429, 1414, 1431, 1417, 1407, 1419, 1411, |
| 1421, 1418, 0, 1407, 1392, 1402, 1396, 0, 1387, 1389, |
| |
| 1393, 1383, 1380, 1379, 1392, 1377, 1374, 1375, 1372, 1390, |
| 1372, 1377, 1381, 1368, 0, 0, 0, 0, 1371, 463, |
| 1380, 1379, 1367, 0, 1377, 1368, 1360, 1375, 1373, 1372, |
| 1364, 1355, 1356, 1359, 1329, 535, 1337, 1336, 1325, 0, |
| 1334, 1326, 1319, 1332, 1330, 1329, 1322, 1314, 1315, 1317, |
| 1324, 1326, 1326, 1343, 0, 1340, 0, 1337, 0, 1327, |
| 0, 1326, 1331, 1324, 1319, 1320, 1317, 0, 1311, 1322, |
| 1309, 1303, 0, 1303, 0, 1296, 1314, 0, 1296, 0, |
| 1298, 1297, 1310, 1301, 1288, 1296, 1288, 1297, 0, 1302, |
| 1295, 1283, 1287, 0, 1297, 1279, 1288, 1291, 1286, 1254, |
| |
| 1244, 1274, 0, 1271, 1266, 0, 1272, 0, 1268, 1258, |
| 1255, 1259, 0, 0, 1273, 0, 1252, 1265, 1253, 1255, |
| 1248, 1222, 1218, 0, 1240, 1239, 1234, 1239, 0, 1236, |
| 1250, 1233, 1233, 1232, 0, 1232, 1233, 1238, 1225, 1233, |
| 1219, 0, 1234, 1227, 1215, 0, 1230, 1213, 1220, 1222, |
| 1217, 1213, 1199, 1203, 0, 0, 0, 1198, 1214, 1353, |
| 0, 0, 1196, 1204, 0, 1192, 1208, 1170, 1163, 1166, |
| 0, 0, 0, 1162, 1176, 1431, 0, 0, 1160, 1166, |
| 0, 1156, 1169, 1154, 1168, 1157, 1175, 0, 0, 1171, |
| 1183, 1182, 0, 0, 1182, 1171, 0, 1155, 0, 1176, |
| |
| 0, 1170, 1173, 1152, 1150, 1167, 1163, 1152, 1145, 1163, |
| 0, 1159, 1154, 1146, 0, 1154, 0, 1138, 1156, 1137, |
| 1141, 1107, 1119, 1131, 0, 1130, 0, 1144, 0, 1144, |
| 0, 1143, 1121, 1135, 1137, 1133, 1130, 1087, 1096, 1112, |
| 1124, 0, 1114, 0, 1098, 1121, 0, 1116, 1099, 1121, |
| 1107, 1099, 1111, 0, 1103, 1095, 0, 0, 1088, 1106, |
| 1087, 1090, 1083, 0, 1090, 1088, 1081, 0, 1509, 0, |
| 1097, 0, 1098, 1049, 0, 1055, 1052, 1046, 0, 1587, |
| 0, 1060, 0, 1060, 1041, 1042, 0, 1061, 1059, 1050, |
| 1074, 1064, 0, 1065, 1062, 0, 1062, 0, 1046, 1044, |
| |
| 0, 0, 1034, 1038, 1056, 1031, 1045, 1029, 1041, 0, |
| 0, 1042, 1008, 1025, 1033, 0, 1048, 1046, 260, 246, |
| 0, 275, 295, 457, 454, 475, 484, 487, 0, 522, |
| 575, 0, 0, 593, 0, 596, 607, 605, 624, 626, |
| 0, 0, 629, 630, 636, 0, 0, 0, 635, 609, |
| 614, 0, 0, 0, 611, 0, 0, 654, 657, 647, |
| 0, 645, 664, 0, 665, 678, 0, 736, 0, 0, |
| 697, 685, 702, 0, 0, 682, 687, 728, 0, 706, |
| 732, 746, 0, 0, 759, 734, 734, 769, 760, 762, |
| 0, 0, 777, 0, 775, 763, 0, 0, 787, 789, |
| |
| 789, 762, 778, 781, 0, 796, 815, 814, 810, 0, |
| 819, 807, 811, 831, 0, 842, 0, 815, 0, 848, |
| 0, 851, 853, 0, 825, 841, 860, 852, 851, 865, |
| 873, 0, 0, 0, 0, 0, 0, 0, 869, 875, |
| 878, 875, 889, 893, 879, 886, 905, 877, 899, 904, |
| 910, 883, 899, 905, 905, 916, 903, 904, 905, 919, |
| 913, 911, 914, 927, 923, 0, 933, 905, 927, 922, |
| 938, 910, 926, 940, 934, 942, 938, 0, 933, 950, |
| 949, 947, 0, 0, 961, 958, 930, 960, 0, 961, |
| 933, 949, 966, 956, 0, 970, 0, 952, 0, 944, |
| |
| 954, 957, 931, 0, 959, 933, 0, 959, 951, 961, |
| 953, 982, 0, 973, 947, 975, 949, 967, 996, 0, |
| 985, 993, 0, 0, 0, 0, 987, 995, 984, 997, |
| 986, 999, 999, 998, 1001, 1000, 1014, 1014, 1016, 1016, |
| 1005, 1020, 1007, 1022, 1012, 1005, 1014, 1015, 1017, 1028, |
| 1019, 1030, 0, 1025, 0, 1032, 1034, 1035, 0, 0, |
| 1903, 1665, 1674, 1683, 1692, 1701, 1710, 1717, 1724, 1731, |
| 1740, 1747, 1756, 1765, 1774, 1777, 1784, 1791, 1066, 1800, |
| 1809, 1818, 1827 |
| } ; |
| |
| static yyconst short int yy_def[1084] = |
| { 0, |
| 1062, 1062, 1061, 3, 1061, 5, 5, 7, 1063, 1063, |
| 1061, 11, 1064, 1064, 1065, 1065, 1066, 1066, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1067, 1068, 1061, 1061, 1061, 1061, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1061, |
| 1061, 1068, 1061, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1061, |
| 1061, 1061, 1068, 1061, 1061, 1061, 1067, 1069, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1069, 1069, 1061, 89, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1069, 97, 97, 97, |
| |
| 97, 97, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1061, 1061, 97, 1069, 1061, 1061, 1061, 1069, 1069, |
| 1061, 1061, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1070, 1061, 1061, 1070, 1061, 1061, 1071, 1072, |
| 1073, 1061, 1061, 1061, 1072, 1072, 89, 89, 1061, 1074, |
| 1061, 1061, 1072, 163, 163, 163, 163, 163, 1072, 1072, |
| 1072, 1072, 1072, 1072, 1061, 1061, 163, 163, 163, 163, |
| 163, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1061, 1061, |
| 1075, 1061, 1076, 1061, 1061, 1061, 1077, 1077, 1077, 1077, |
| |
| 1061, 1061, 1061, 1061, 1067, 1061, 1068, 1068, 1061, 1061, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 208, 1061, 1061, |
| 1068, 1061, 1061, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1061, 1061, |
| 1069, 1069, 1061, 1061, 1061, 1078, 1061, 1069, 89, 89, |
| 280, 1061, 1061, 1079, 1061, 97, 97, 97, 1069, 1069, |
| 1069, 1069, 97, 1069, 1069, 1069, 97, 1069, 1069, 1069, |
| |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 97, 1069, 120, 1061, 1079, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1070, |
| 1070, 1071, 1061, 1072, 1072, 1073, 1073, 1061, 1074, 163, |
| 163, 163, 1072, 1072, 163, 163, 1072, 1072, 1072, 1072, |
| 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 163, 1072, |
| 163, 163, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, |
| 1072, 1072, 1072, 1072, 1061, 1075, 1076, 1077, 1077, 1077, |
| |
| 1077, 1061, 1061, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1069, 1078, 1079, 1069, 97, |
| 1069, 1069, 1069, 1069, 1069, 97, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1070, 1072, 1072, 1072, |
| 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, |
| 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, |
| 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, |
| 1077, 1077, 1077, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| |
| 1068, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1080, |
| 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, |
| 1072, 1072, 1072, 1072, 1072, 1081, 1072, 1072, 1072, 1072, |
| 1072, 1072, 1072, 1077, 1077, 1077, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1072, 1072, 1072, 1072, 1072, 1082, 1080, 1072, |
| 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1083, 1081, |
| 1072, 1072, 1072, 1072, 1077, 1077, 1077, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1072, 1072, 1072, 1072, 1072, 1072, 1072, |
| 1072, 1072, 1072, 1072, 1072, 1077, 1077, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1072, 1072, |
| |
| 1072, 1072, 1072, 1072, 1068, 1068, 1068, 1068, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1069, 1069, 1072, 1072, 1072, 1072, 1072, 1072, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1068, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1069, 1069, 1069, |
| 1069, 1069, 1069, 1069, 1069, 1069, 1068, 1068, 1068, 1068, |
| |
| 1068, 1068, 1068, 1069, 1069, 1069, 1069, 1069, 1069, 1069, |
| 1068, 1068, 1068, 1068, 1068, 1069, 1069, 1069, 1069, 1069, |
| 1068, 1068, 1068, 1068, 1069, 1069, 1069, 1069, 1068, 1068, |
| 1069, 1069, 1068, 1068, 1069, 1069, 1068, 1068, 1069, 1069, |
| 1068, 1068, 1069, 1069, 1068, 1068, 1069, 1069, 1068, 1068, |
| 1069, 1069, 1068, 1068, 1069, 1069, 1068, 1069, 1068, 1069, |
| 0, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061 |
| } ; |
| |
| static yyconst short int yy_nxt[1983] = |
| { 0, |
| 21, 22, 23, 24, 25, 21, 26, 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, 35, 54, 55, 56, 57, 58, |
| 59, 60, 35, 61, 62, 35, 63, 35, 35, 35, |
| 64, 35, 65, 35, 66, 35, 35, 35, 35, 35, |
| 35, 35, 35, 35, 67, 35, 35, 68, 35, 35, |
| 69, 35, 35, 35, 35, 70, 71, 72, 73, 74, |
| 75, 23, 76, 77, 74, 78, 79, 80, 81, 82, |
| 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, |
| |
| 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, |
| 103, 87, 104, 87, 105, 106, 107, 108, 109, 110, |
| 87, 87, 111, 87, 87, 87, 87, 87, 87, 112, |
| 87, 113, 87, 114, 102, 102, 102, 102, 102, 87, |
| 87, 87, 87, 87, 87, 87, 87, 87, 87, 115, |
| 87, 87, 87, 87, 116, 117, 118, 119, 120, 209, |
| 246, 189, 190, 214, 247, 191, 219, 220, 376, 121, |
| 122, 189, 190, 210, 215, 191, 275, 123, 124, 125, |
| 126, 127, 128, 377, 129, 130, 222, 223, 131, 132, |
| 133, 134, 135, 136, 235, 137, 138, 228, 139, 231, |
| |
| 229, 233, 232, 236, 244, 304, 140, 87, 87, 87, |
| 87, 87, 230, 305, 245, 234, 141, 269, 276, 142, |
| 74, 74, 20, 74, 74, 74, 143, 74, 74, 74, |
| 74, 74, 144, 74, 145, 192, 269, 121, 122, 74, |
| 74, 74, 147, 74, 74, 192, 216, 216, 248, 224, |
| 237, 225, 253, 238, 219, 220, 239, 250, 249, 226, |
| 251, 252, 254, 277, 217, 256, 217, 227, 257, 258, |
| 74, 270, 74, 209, 278, 259, 306, 260, 222, 223, |
| 261, 329, 319, 306, 262, 320, 307, 210, 881, 882, |
| 270, 330, 217, 333, 217, 74, 74, 74, 74, 74, |
| |
| 20, 74, 74, 74, 143, 74, 74, 74, 74, 74, |
| 144, 74, 145, 216, 216, 121, 122, 74, 74, 74, |
| 147, 74, 74, 883, 884, 293, 321, 293, 293, 337, |
| 293, 217, 294, 217, 293, 295, 293, 297, 271, 309, |
| 298, 296, 271, 271, 271, 271, 271, 293, 74, 293, |
| 74, 298, 271, 293, 371, 293, 362, 271, 322, 217, |
| 372, 217, 362, 271, 271, 271, 354, 323, 299, 218, |
| 271, 271, 354, 74, 74, 74, 21, 22, 148, 24, |
| 21, 149, 150, 27, 28, 29, 30, 151, 152, 153, |
| 154, 155, 156, 157, 158, 159, 160, 41, 161, 43, |
| |
| 162, 163, 164, 165, 166, 167, 168, 155, 155, 155, |
| 155, 155, 169, 155, 170, 171, 172, 155, 155, 173, |
| 174, 155, 155, 155, 155, 155, 175, 155, 176, 155, |
| 177, 178, 179, 166, 180, 181, 155, 155, 155, 155, |
| 182, 155, 183, 184, 185, 155, 186, 187, 155, 155, |
| 155, 70, 71, 72, 188, 21, 189, 190, 21, 21, |
| 191, 476, 21, 21, 21, 21, 21, 21, 194, 21, |
| 477, 21, 21, 21, 194, 194, 21, 21, 21, 21, |
| 293, 294, 293, 316, 295, 317, 324, 331, 653, 325, |
| 271, 332, 326, 290, 654, 305, 318, 271, 271, 334, |
| |
| 291, 292, 335, 336, 392, 21, 21, 21, 339, 311, |
| 885, 340, 310, 365, 362, 366, 362, 393, 341, 410, |
| 342, 411, 367, 343, 354, 886, 354, 344, 887, 888, |
| 195, 21, 196, 21, 21, 189, 190, 21, 21, 191, |
| 889, 21, 21, 21, 21, 21, 21, 194, 21, 890, |
| 21, 21, 21, 194, 194, 21, 21, 21, 21, 314, |
| 314, 362, 362, 416, 362, 387, 362, 442, 362, 443, |
| 388, 354, 354, 368, 354, 370, 354, 283, 354, 283, |
| 417, 485, 369, 465, 21, 21, 21, 362, 423, 669, |
| 362, 424, 498, 379, 381, 670, 382, 354, 362, 473, |
| |
| 354, 425, 380, 383, 891, 283, 428, 283, 354, 195, |
| 21, 196, 21, 21, 189, 190, 21, 25, 191, 429, |
| 21, 21, 21, 21, 468, 21, 194, 21, 386, 21, |
| 21, 21, 194, 194, 21, 21, 21, 892, 384, 216, |
| 216, 489, 207, 433, 207, 385, 434, 472, 456, 893, |
| 456, 293, 435, 293, 506, 894, 507, 217, 895, 217, |
| 497, 271, 896, 21, 21, 21, 897, 898, 271, 271, |
| 207, 198, 207, 199, 899, 900, 456, 200, 456, 901, |
| 902, 903, 904, 905, 906, 217, 907, 217, 201, 21, |
| 202, 21, 21, 189, 190, 21, 25, 191, 908, 21, |
| |
| 21, 21, 21, 909, 21, 194, 21, 910, 21, 21, |
| 21, 194, 194, 21, 21, 21, 362, 314, 314, 494, |
| 911, 293, 470, 293, 476, 914, 354, 500, 915, 280, |
| 280, 271, 495, 477, 916, 283, 362, 283, 459, 271, |
| 917, 362, 21, 21, 21, 362, 354, 1061, 918, 1061, |
| 198, 354, 199, 519, 362, 354, 200, 919, 521, 920, |
| 535, 912, 522, 283, 354, 283, 913, 201, 21, 202, |
| 21, 208, 208, 315, 921, 1061, 293, 1061, 460, 208, |
| 208, 208, 208, 208, 208, 282, 271, 293, 922, 293, |
| 362, 923, 924, 271, 271, 925, 926, 271, 537, 927, |
| |
| 354, 928, 929, 931, 271, 271, 932, 930, 208, 208, |
| 208, 208, 208, 208, 272, 272, 933, 934, 935, 293, |
| 936, 293, 272, 272, 272, 272, 272, 272, 293, 271, |
| 293, 283, 466, 283, 538, 937, 271, 271, 271, 938, |
| 939, 940, 314, 314, 941, 271, 271, 942, 943, 944, |
| 945, 272, 272, 272, 272, 272, 272, 279, 279, 283, |
| 283, 283, 283, 481, 946, 280, 281, 280, 281, 280, |
| 280, 947, 282, 948, 293, 283, 293, 283, 949, 282, |
| 950, 609, 951, 952, 271, 953, 954, 282, 283, 955, |
| 283, 271, 271, 956, 280, 281, 280, 281, 280, 280, |
| |
| 293, 282, 293, 283, 957, 283, 958, 282, 959, 960, |
| 271, 961, 962, 284, 286, 286, 603, 271, 271, 963, |
| 964, 965, 286, 287, 286, 288, 286, 286, 966, 289, |
| 967, 968, 969, 290, 970, 971, 289, 972, 973, 974, |
| 291, 292, 975, 976, 289, 977, 978, 979, 980, 981, |
| 982, 286, 293, 286, 293, 286, 286, 983, 289, 984, |
| 985, 986, 987, 988, 289, 989, 990, 991, 992, 993, |
| 289, 313, 313, 994, 995, 996, 997, 998, 999, 313, |
| 313, 313, 313, 313, 313, 1000, 1001, 1002, 1003, 1004, |
| 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, |
| |
| 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 313, 313, |
| 313, 313, 313, 313, 351, 351, 1023, 1024, 1025, 1026, |
| 1027, 1028, 351, 351, 351, 351, 351, 351, 1029, 1030, |
| 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, |
| 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1050, |
| 1051, 351, 351, 351, 351, 351, 351, 355, 355, 1052, |
| 1053, 1054, 1055, 1056, 1057, 355, 355, 355, 355, 355, |
| 355, 1058, 1059, 1060, 458, 880, 879, 878, 877, 876, |
| 875, 874, 873, 872, 871, 870, 869, 868, 867, 866, |
| 865, 864, 863, 862, 355, 355, 355, 355, 355, 355, |
| |
| 360, 360, 861, 860, 859, 858, 857, 856, 360, 361, |
| 360, 362, 360, 360, 855, 363, 854, 853, 852, 364, |
| 851, 850, 363, 849, 848, 847, 846, 845, 844, 843, |
| 363, 842, 841, 840, 839, 838, 837, 360, 362, 360, |
| 362, 360, 360, 836, 363, 835, 834, 833, 832, 831, |
| 363, 830, 829, 828, 827, 826, 363, 208, 208, 825, |
| 824, 823, 822, 821, 820, 208, 208, 208, 208, 208, |
| 208, 819, 818, 817, 816, 217, 815, 217, 814, 813, |
| 812, 811, 810, 809, 808, 807, 806, 805, 804, 803, |
| 802, 801, 800, 799, 208, 208, 208, 208, 208, 208, |
| |
| 798, 797, 796, 217, 795, 217, 272, 272, 794, 793, |
| 792, 791, 790, 789, 272, 272, 272, 272, 272, 272, |
| 788, 787, 786, 785, 456, 784, 456, 783, 782, 781, |
| 778, 777, 776, 775, 774, 773, 772, 771, 770, 767, |
| 766, 765, 764, 272, 272, 272, 272, 272, 272, 763, |
| 762, 761, 456, 760, 456, 351, 351, 759, 758, 757, |
| 756, 755, 754, 351, 351, 351, 351, 351, 351, 753, |
| 752, 751, 750, 517, 749, 517, 748, 747, 746, 745, |
| 744, 743, 742, 741, 740, 739, 738, 737, 736, 735, |
| 734, 733, 351, 351, 351, 351, 351, 351, 732, 731, |
| |
| 730, 517, 729, 517, 355, 355, 728, 727, 726, 725, |
| 724, 723, 355, 355, 355, 355, 355, 355, 722, 721, |
| 720, 719, 518, 718, 518, 717, 716, 715, 714, 713, |
| 712, 711, 710, 709, 708, 707, 706, 705, 704, 703, |
| 702, 355, 355, 355, 355, 355, 355, 701, 700, 699, |
| 518, 698, 518, 768, 768, 697, 768, 768, 768, 696, |
| 768, 768, 768, 768, 768, 695, 768, 694, 693, 692, |
| 691, 690, 689, 768, 768, 768, 768, 768, 688, 687, |
| 686, 685, 684, 683, 682, 681, 680, 679, 678, 677, |
| 676, 675, 674, 673, 672, 671, 668, 667, 666, 665, |
| |
| 664, 663, 662, 661, 660, 659, 658, 657, 656, 655, |
| 652, 651, 650, 649, 648, 647, 646, 645, 644, 643, |
| 642, 641, 640, 639, 638, 637, 636, 635, 768, 768, |
| 768, 779, 779, 634, 779, 779, 779, 633, 779, 779, |
| 779, 779, 779, 632, 779, 631, 630, 629, 628, 627, |
| 609, 779, 779, 779, 779, 779, 626, 625, 624, 603, |
| 623, 622, 621, 620, 619, 618, 617, 616, 615, 614, |
| 613, 612, 611, 610, 608, 607, 606, 605, 604, 602, |
| 601, 600, 599, 598, 597, 596, 595, 594, 593, 592, |
| 591, 590, 589, 588, 587, 586, 585, 584, 583, 582, |
| |
| 581, 580, 579, 578, 577, 576, 779, 779, 779, 768, |
| 768, 575, 768, 768, 768, 574, 768, 768, 768, 768, |
| 768, 573, 768, 572, 571, 570, 569, 568, 567, 768, |
| 768, 768, 768, 768, 566, 565, 564, 563, 562, 561, |
| 560, 559, 558, 557, 556, 555, 554, 553, 552, 551, |
| 395, 550, 549, 548, 547, 546, 545, 544, 543, 542, |
| 541, 540, 539, 536, 534, 533, 532, 531, 530, 529, |
| 528, 527, 526, 525, 524, 523, 520, 353, 516, 515, |
| 481, 514, 513, 512, 768, 768, 768, 779, 779, 511, |
| 779, 779, 779, 510, 779, 779, 779, 779, 779, 509, |
| |
| 779, 508, 505, 504, 503, 502, 501, 779, 779, 779, |
| 779, 779, 499, 496, 493, 492, 491, 490, 488, 487, |
| 486, 484, 483, 459, 482, 480, 479, 478, 475, 474, |
| 473, 472, 471, 470, 469, 468, 467, 465, 464, 463, |
| 462, 461, 282, 455, 454, 453, 452, 451, 450, 449, |
| 448, 447, 446, 445, 444, 441, 440, 439, 438, 437, |
| 436, 432, 779, 779, 779, 20, 20, 20, 20, 20, |
| 20, 20, 20, 20, 146, 146, 146, 146, 146, 146, |
| 146, 146, 146, 21, 21, 21, 21, 21, 21, 21, |
| 21, 21, 193, 193, 193, 193, 193, 193, 193, 193, |
| |
| 193, 197, 197, 197, 197, 197, 197, 197, 197, 197, |
| 205, 205, 205, 205, 205, 205, 205, 205, 205, 207, |
| 207, 207, 207, 207, 207, 207, 271, 431, 271, 271, |
| 271, 271, 271, 350, 430, 427, 426, 350, 350, 350, |
| 352, 352, 352, 352, 352, 352, 352, 352, 352, 354, |
| 422, 354, 421, 354, 354, 354, 356, 420, 356, 356, |
| 356, 356, 356, 356, 356, 359, 419, 359, 359, 359, |
| 359, 359, 359, 359, 396, 418, 396, 396, 396, 396, |
| 396, 396, 396, 397, 415, 397, 398, 398, 414, 413, |
| 398, 412, 398, 457, 409, 457, 457, 457, 457, 457, |
| |
| 769, 408, 769, 769, 769, 769, 769, 769, 769, 780, |
| 407, 780, 780, 780, 780, 780, 780, 780, 768, 406, |
| 768, 768, 768, 768, 768, 768, 768, 779, 405, 779, |
| 779, 779, 779, 779, 779, 779, 404, 403, 402, 206, |
| 203, 401, 400, 399, 395, 394, 391, 390, 389, 378, |
| 375, 374, 373, 285, 282, 358, 275, 274, 357, 353, |
| 349, 348, 347, 346, 345, 338, 328, 327, 312, 310, |
| 309, 308, 303, 302, 301, 300, 285, 282, 274, 273, |
| 206, 204, 203, 268, 267, 266, 265, 264, 263, 255, |
| 243, 242, 241, 240, 221, 213, 212, 211, 206, 204, |
| |
| 203, 1061, 19, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061 |
| } ; |
| |
| static yyconst short int yy_chk[1983] = |
| { 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, 5, |
| 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
| 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
| |
| 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
| 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
| 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
| 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
| 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, |
| 5, 5, 5, 5, 5, 5, 5, 5, 7, 28, |
| 56, 13, 13, 36, 56, 13, 41, 41, 173, 7, |
| 7, 14, 14, 28, 36, 14, 86, 7, 7, 7, |
| 7, 7, 7, 173, 7, 7, 43, 43, 7, 7, |
| 7, 7, 7, 7, 49, 7, 7, 46, 7, 47, |
| |
| 46, 48, 47, 49, 55, 107, 7, 7, 7, 7, |
| 7, 7, 46, 107, 55, 48, 7, 71, 86, 7, |
| 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, |
| 9, 9, 9, 9, 9, 13, 117, 9, 9, 9, |
| 9, 9, 9, 9, 9, 14, 38, 38, 57, 45, |
| 50, 45, 59, 50, 93, 93, 50, 58, 57, 45, |
| 58, 58, 59, 88, 38, 61, 38, 45, 61, 61, |
| 9, 71, 9, 80, 88, 61, 108, 61, 95, 95, |
| 61, 131, 125, 133, 61, 125, 108, 80, 819, 820, |
| 117, 131, 38, 133, 38, 9, 9, 9, 10, 10, |
| |
| 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, |
| 10, 10, 10, 37, 37, 10, 10, 10, 10, 10, |
| 10, 10, 10, 822, 823, 98, 126, 98, 99, 135, |
| 99, 37, 98, 37, 100, 98, 100, 100, 99, 135, |
| 126, 99, 98, 98, 100, 99, 99, 101, 10, 101, |
| 10, 100, 100, 102, 169, 102, 166, 101, 127, 37, |
| 169, 37, 360, 102, 101, 101, 166, 127, 101, 37, |
| 102, 102, 360, 10, 10, 10, 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, 307, 15, 15, 15, 15, 15, 15, 15, 15, |
| 307, 15, 15, 15, 15, 15, 15, 15, 15, 15, |
| 114, 124, 114, 123, 124, 123, 128, 132, 520, 128, |
| 114, 132, 128, 123, 520, 132, 124, 114, 114, 134, |
| |
| 123, 123, 134, 134, 186, 15, 15, 15, 137, 114, |
| 824, 137, 137, 164, 164, 165, 165, 186, 137, 231, |
| 137, 231, 165, 137, 164, 825, 165, 137, 826, 827, |
| 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, |
| 828, 16, 16, 16, 16, 16, 16, 16, 16, 830, |
| 16, 16, 16, 16, 16, 16, 16, 16, 16, 122, |
| 122, 167, 168, 236, 177, 182, 178, 256, 179, 256, |
| 182, 167, 168, 167, 177, 168, 178, 122, 179, 122, |
| 236, 319, 167, 319, 16, 16, 16, 181, 242, 536, |
| 362, 242, 331, 177, 178, 536, 179, 181, 180, 331, |
| |
| 362, 242, 177, 179, 831, 122, 245, 122, 180, 16, |
| 16, 16, 16, 17, 17, 17, 17, 17, 17, 245, |
| 17, 17, 17, 17, 323, 17, 17, 17, 181, 17, |
| 17, 17, 17, 17, 17, 17, 17, 834, 180, 216, |
| 216, 323, 218, 249, 218, 180, 249, 330, 313, 836, |
| 313, 286, 249, 286, 339, 837, 339, 216, 838, 216, |
| 330, 286, 839, 17, 17, 17, 840, 843, 286, 286, |
| 218, 17, 218, 17, 844, 845, 313, 17, 313, 849, |
| 850, 851, 855, 858, 859, 216, 860, 216, 17, 17, |
| 17, 17, 18, 18, 18, 18, 18, 18, 862, 18, |
| |
| 18, 18, 18, 863, 18, 18, 18, 865, 18, 18, |
| 18, 18, 18, 18, 18, 18, 379, 121, 121, 328, |
| 866, 287, 328, 287, 333, 871, 379, 333, 872, 280, |
| 280, 287, 328, 333, 873, 121, 361, 121, 287, 287, |
| 876, 365, 18, 18, 18, 366, 361, 280, 877, 280, |
| 18, 365, 18, 361, 381, 366, 18, 878, 365, 880, |
| 379, 868, 366, 121, 381, 121, 868, 18, 18, 18, |
| 18, 26, 26, 121, 881, 280, 288, 280, 288, 26, |
| 26, 26, 26, 26, 26, 280, 288, 293, 882, 293, |
| 382, 885, 886, 288, 288, 887, 888, 293, 381, 889, |
| |
| 382, 890, 893, 895, 293, 293, 896, 893, 26, 26, |
| 26, 26, 26, 26, 78, 78, 899, 900, 901, 311, |
| 902, 311, 78, 78, 78, 78, 78, 78, 297, 311, |
| 297, 458, 297, 458, 382, 903, 311, 311, 297, 904, |
| 906, 907, 314, 314, 908, 297, 297, 909, 911, 912, |
| 913, 78, 78, 78, 78, 78, 78, 89, 89, 458, |
| 314, 458, 314, 311, 914, 89, 89, 89, 89, 89, |
| 89, 916, 89, 918, 466, 89, 466, 89, 920, 89, |
| 922, 466, 923, 925, 466, 926, 927, 89, 314, 928, |
| 314, 466, 466, 929, 89, 89, 89, 89, 89, 89, |
| |
| 460, 89, 460, 89, 930, 89, 931, 89, 939, 940, |
| 460, 941, 942, 89, 97, 97, 460, 460, 460, 943, |
| 944, 945, 97, 97, 97, 97, 97, 97, 946, 97, |
| 947, 948, 949, 97, 950, 951, 97, 952, 953, 954, |
| 97, 97, 955, 956, 97, 957, 958, 959, 960, 961, |
| 962, 97, 97, 97, 97, 97, 97, 963, 97, 964, |
| 965, 967, 968, 969, 97, 970, 971, 972, 973, 974, |
| 97, 120, 120, 975, 976, 977, 979, 980, 981, 120, |
| 120, 120, 120, 120, 120, 982, 985, 986, 987, 988, |
| 990, 991, 992, 993, 994, 996, 998, 1000, 1001, 1002, |
| |
| 1003, 1005, 1006, 1008, 1009, 1010, 1011, 1012, 120, 120, |
| 120, 120, 120, 120, 143, 143, 1014, 1015, 1016, 1017, |
| 1018, 1019, 143, 143, 143, 143, 143, 143, 1021, 1022, |
| 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, |
| 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, |
| 1047, 143, 143, 143, 143, 143, 143, 150, 150, 1048, |
| 1049, 1050, 1051, 1052, 1054, 150, 150, 150, 150, 150, |
| 150, 1056, 1057, 1058, 1079, 818, 817, 815, 814, 813, |
| 812, 809, 808, 807, 806, 805, 804, 803, 800, 799, |
| 797, 795, 794, 792, 150, 150, 150, 150, 150, 150, |
| |
| 163, 163, 791, 790, 789, 788, 786, 785, 163, 163, |
| 163, 163, 163, 163, 784, 163, 782, 778, 777, 163, |
| 776, 774, 163, 773, 771, 767, 766, 765, 763, 762, |
| 163, 761, 760, 759, 756, 755, 753, 163, 163, 163, |
| 163, 163, 163, 752, 163, 751, 750, 749, 748, 746, |
| 163, 745, 743, 741, 740, 739, 163, 208, 208, 738, |
| 737, 736, 735, 734, 733, 208, 208, 208, 208, 208, |
| 208, 732, 730, 728, 726, 208, 724, 208, 723, 722, |
| 721, 720, 719, 718, 716, 714, 713, 712, 710, 709, |
| 708, 707, 706, 705, 208, 208, 208, 208, 208, 208, |
| |
| 704, 703, 702, 208, 700, 208, 272, 272, 698, 696, |
| 695, 692, 691, 690, 272, 272, 272, 272, 272, 272, |
| 687, 686, 685, 684, 272, 683, 272, 682, 680, 679, |
| 675, 674, 670, 669, 668, 667, 666, 664, 663, 659, |
| 658, 654, 653, 272, 272, 272, 272, 272, 272, 652, |
| 651, 650, 272, 649, 272, 351, 351, 648, 647, 645, |
| 644, 643, 641, 351, 351, 351, 351, 351, 351, 640, |
| 639, 638, 637, 351, 636, 351, 634, 633, 632, 631, |
| 630, 628, 627, 626, 625, 623, 622, 621, 620, 619, |
| 618, 617, 351, 351, 351, 351, 351, 351, 615, 612, |
| |
| 611, 351, 610, 351, 355, 355, 609, 607, 605, 604, |
| 602, 601, 355, 355, 355, 355, 355, 355, 600, 599, |
| 598, 597, 355, 596, 355, 595, 593, 592, 591, 590, |
| 588, 587, 586, 585, 584, 583, 582, 581, 579, 577, |
| 576, 355, 355, 355, 355, 355, 355, 574, 572, 571, |
| 355, 570, 355, 660, 660, 569, 660, 660, 660, 567, |
| 660, 660, 660, 660, 660, 566, 660, 565, 564, 563, |
| 562, 560, 558, 660, 660, 660, 660, 660, 556, 554, |
| 553, 552, 551, 550, 549, 548, 547, 546, 545, 544, |
| 543, 542, 541, 539, 538, 537, 535, 534, 533, 532, |
| |
| 531, 530, 529, 528, 527, 526, 525, 523, 522, 521, |
| 519, 514, 513, 512, 511, 510, 509, 508, 507, 506, |
| 505, 504, 503, 502, 501, 500, 499, 497, 660, 660, |
| 660, 676, 676, 496, 676, 676, 676, 495, 676, 676, |
| 676, 676, 676, 494, 676, 492, 491, 490, 489, 488, |
| 487, 676, 676, 676, 676, 676, 486, 485, 484, 483, |
| 482, 481, 480, 479, 478, 477, 476, 475, 472, 471, |
| 470, 469, 468, 467, 465, 464, 463, 462, 461, 459, |
| 455, 452, 451, 450, 449, 448, 447, 446, 445, 444, |
| 443, 442, 441, 440, 439, 438, 437, 436, 435, 434, |
| |
| 433, 432, 431, 429, 428, 427, 676, 676, 676, 769, |
| 769, 426, 769, 769, 769, 425, 769, 769, 769, 769, |
| 769, 424, 769, 423, 421, 420, 419, 418, 417, 769, |
| 769, 769, 769, 769, 416, 415, 414, 413, 412, 411, |
| 410, 409, 408, 407, 406, 405, 404, 401, 400, 399, |
| 395, 394, 393, 392, 391, 390, 389, 388, 387, 386, |
| 385, 384, 383, 380, 378, 377, 376, 375, 374, 373, |
| 372, 371, 370, 369, 368, 367, 364, 352, 349, 348, |
| 347, 346, 345, 344, 769, 769, 769, 780, 780, 343, |
| 780, 780, 780, 342, 780, 780, 780, 780, 780, 341, |
| |
| 780, 340, 338, 337, 336, 335, 334, 780, 780, 780, |
| 780, 780, 332, 329, 327, 326, 325, 324, 322, 321, |
| 320, 318, 317, 316, 312, 310, 309, 308, 306, 305, |
| 304, 303, 302, 301, 300, 299, 298, 296, 295, 294, |
| 291, 290, 279, 268, 267, 266, 265, 264, 263, 262, |
| 261, 260, 259, 258, 257, 255, 254, 253, 252, 251, |
| 250, 248, 780, 780, 780, 1062, 1062, 1062, 1062, 1062, |
| 1062, 1062, 1062, 1062, 1063, 1063, 1063, 1063, 1063, 1063, |
| 1063, 1063, 1063, 1064, 1064, 1064, 1064, 1064, 1064, 1064, |
| 1064, 1064, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, |
| |
| 1065, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, |
| 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1068, |
| 1068, 1068, 1068, 1068, 1068, 1068, 1069, 247, 1069, 1069, |
| 1069, 1069, 1069, 1070, 246, 244, 243, 1070, 1070, 1070, |
| 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1072, |
| 241, 1072, 240, 1072, 1072, 1072, 1073, 239, 1073, 1073, |
| 1073, 1073, 1073, 1073, 1073, 1074, 238, 1074, 1074, 1074, |
| 1074, 1074, 1074, 1074, 1075, 237, 1075, 1075, 1075, 1075, |
| 1075, 1075, 1075, 1076, 235, 1076, 1077, 1077, 234, 233, |
| 1077, 232, 1077, 1078, 230, 1078, 1078, 1078, 1078, 1078, |
| |
| 1080, 229, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1081, |
| 228, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1082, 226, |
| 1082, 1082, 1082, 1082, 1082, 1082, 1082, 1083, 225, 1083, |
| 1083, 1083, 1083, 1083, 1083, 1083, 224, 223, 219, 205, |
| 203, 200, 199, 198, 189, 187, 185, 184, 183, 174, |
| 172, 171, 170, 161, 158, 156, 154, 152, 151, 149, |
| 142, 141, 140, 139, 138, 136, 130, 129, 115, 111, |
| 110, 109, 106, 105, 104, 103, 94, 90, 84, 83, |
| 77, 76, 75, 69, 68, 67, 66, 63, 62, 60, |
| 54, 53, 52, 51, 42, 34, 32, 31, 25, 24, |
| |
| 22, 19, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, |
| 1061, 1061 |
| } ; |
| |
| static yy_state_type yy_last_accepting_state; |
| static char *yy_last_accepting_cpos; |
| |
| /* 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" |
| #define INITIAL 0 |
| #line 2 "ldlex.l" |
| |
| /* Copyright (C) 1991, 92, 93, 94, 95, 96, 97, 98, 1999 |
| Free Software Foundation, Inc. |
| |
| This file is part of GLD, the Gnu Linker. |
| |
| GLD 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 2, or (at your option) |
| any later version. |
| |
| GLD 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 GLD; see the file COPYING. If not, write to the Free |
| Software Foundation, 59 Temple Place - Suite 330, Boston, MA |
| 02111-1307, USA. */ |
| |
| /* |
| This was written by steve chamberlain |
| sac@cygnus.com |
| */ |
| |
| |
| #include <ansidecl.h> |
| #include <stdio.h> |
| #include <ctype.h> |
| |
| #ifdef MPW |
| /* Prevent enum redefinition problems. */ |
| #define TRUE_FALSE_ALREADY_DEFINED |
| #endif /* MPW */ |
| |
| #include "bfd.h" |
| #include "sysdep.h" |
| #include "ld.h" |
| #include "ldgram.h" |
| #include "ldmisc.h" |
| #include "ldexp.h" |
| #include "ldlang.h" |
| #include "ldfile.h" |
| #include "ldlex.h" |
| #include "ldmain.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. |
| (FIXME Actually, it doesn't appear to get reset for each file?) */ |
| unsigned int lineno = 1; |
| |
| /* 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) yy_input(buf, &result, max_size) |
| |
| #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 include_stack_ptr = 0; |
| static int vers_node_nesting = 0; |
| |
| static YY_BUFFER_STATE yy_create_string_buffer PARAMS ((const char *string, |
| size_t size)); |
| static void yy_input PARAMS ((char *, int *result, int max_size)); |
| |
| static void comment PARAMS ((void)); |
| static void lex_warn_invalid PARAMS ((char *where, char *what)); |
| |
| /* STATES |
| EXPRESSION definitely in an expression |
| SCRIPT definitely in a script |
| BOTH either EXPRESSION or SCRIPT |
| DEFSYMEXP in an argument to -defsym |
| MRI in an MRI script |
| 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; } |
| |
| /* Some versions of flex want this. */ |
| #ifndef yywrap |
| int yywrap () { return 1; } |
| #endif |
| #define SCRIPT 1 |
| |
| #define EXPRESSION 2 |
| |
| #define BOTH 3 |
| |
| #define DEFSYMEXP 4 |
| |
| #define MRI 5 |
| |
| #define VERS_START 6 |
| |
| #define VERS_SCRIPT 7 |
| |
| #define VERS_NODE 8 |
| |
| #line 1273 "lex.yy.c" |
| |
| /* Macros after this point can all be overridden by user definitions in |
| * section 1. |
| */ |
| |
| #ifndef YY_SKIP_YYWRAP |
| #ifdef __cplusplus |
| extern "C" int yywrap YY_PROTO(( void )); |
| #else |
| extern int yywrap YY_PROTO(( void )); |
| #endif |
| #endif |
| |
| #ifndef YY_NO_UNPUT |
| static void yyunput YY_PROTO(( int c, char *buf_ptr )); |
| #endif |
| |
| #ifndef yytext_ptr |
| static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); |
| #endif |
| |
| #ifdef YY_NEED_STRLEN |
| static int yy_flex_strlen YY_PROTO(( yyconst char * )); |
| #endif |
| |
| #ifndef YY_NO_INPUT |
| #ifdef __cplusplus |
| static int yyinput YY_PROTO(( void )); |
| #else |
| static int input YY_PROTO(( void )); |
| #endif |
| #endif |
| |
| #if YY_STACK_USED |
| static int yy_start_stack_ptr = 0; |
| static int yy_start_stack_depth = 0; |
| static int *yy_start_stack = 0; |
| #ifndef YY_NO_PUSH_STATE |
| static void yy_push_state YY_PROTO(( int new_state )); |
| #endif |
| #ifndef YY_NO_POP_STATE |
| static void yy_pop_state YY_PROTO(( void )); |
| #endif |
| #ifndef YY_NO_TOP_STATE |
| static int yy_top_state YY_PROTO(( void )); |
| #endif |
| |
| #else |
| #define YY_NO_PUSH_STATE 1 |
| #define YY_NO_POP_STATE 1 |
| #define YY_NO_TOP_STATE 1 |
| #endif |
| |
| #ifdef YY_MALLOC_DECL |
| YY_MALLOC_DECL |
| #else |
| #if __STDC__ |
| #ifndef __cplusplus |
| #include <stdlib.h> |
| #endif |
| #else |
| /* Just try to get by without declaring the routines. This will fail |
| * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) |
| * or sizeof(void*) != sizeof(int). |
| */ |
| #endif |
| #endif |
| |
| /* Amount of stuff to slurp up with each read. */ |
| #ifndef YY_READ_BUF_SIZE |
| #define YY_READ_BUF_SIZE 8192 |
| #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 (void) fwrite( yytext, yyleng, 1, yyout ) |
| #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->yy_is_interactive ) \ |
| { \ |
| int c = '*', 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 if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ |
| && ferror( yyin ) ) \ |
| YY_FATAL_ERROR( "input in flex scanner failed" ); |
| #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 |
| |
| /* Default declaration of generated scanner - a define so the user can |
| * easily add parameters. |
| */ |
| #ifndef YY_DECL |
| #define YY_DECL int yylex YY_PROTO(( void )) |
| #endif |
| |
| /* Code executed at the beginning of each rule, after yytext and yyleng |
| * have been set up. |
| */ |
| #ifndef YY_USER_ACTION |
| #define YY_USER_ACTION |
| #endif |
| |
| /* Code executed at the end of each rule. */ |
| #ifndef YY_BREAK |
| #define YY_BREAK break; |
| #endif |
| |
| #define YY_RULE_SETUP \ |
| YY_USER_ACTION |
| |
| YY_DECL |
| { |
| register yy_state_type yy_current_state; |
| register char *yy_cp, *yy_bp; |
| register int yy_act; |
| |
| #line 128 "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_defsym: return INPUT_DEFSYM; break; |
| default: abort (); |
| } |
| } |
| |
| #line 1442 "lex.yy.c" |
| |
| if ( yy_init ) |
| { |
| yy_init = 0; |
| |
| #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 ) |
| yy_current_buffer = |
| yy_create_buffer( yyin, YY_BUF_SIZE ); |
| |
| yy_load_buffer_state(); |
| } |
| |
| while ( 1 ) /* loops until end-of-file is reached */ |
| { |
| yy_cp = yy_c_buf_p; |
| |
| /* Support of yytext. */ |
| *yy_cp = yy_hold_char; |
| |
| /* yy_bp points to the position in yy_ch_buf of the start of |
| * the current run. |
| */ |
| yy_bp = yy_cp; |
| |
| yy_current_state = yy_start; |
| yy_match: |
| do |
| { |
| register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; |
| if ( yy_accept[yy_current_state] ) |
| { |
| yy_last_accepting_state = yy_current_state; |
| yy_last_accepting_cpos = yy_cp; |
| } |
| while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
| { |
| yy_current_state = (int) yy_def[yy_current_state]; |
| if ( yy_current_state >= 1062 ) |
| yy_c = yy_meta[(unsigned int) yy_c]; |
| } |
| yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
| ++yy_cp; |
| } |
| while ( yy_base[yy_current_state] != 1903 ); |
| |
| 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 145 "ldlex.l" |
| { comment(); } |
| YY_BREAK |
| case 2: |
| YY_RULE_SETUP |
| #line 148 "ldlex.l" |
| { RTOKEN('-');} |
| YY_BREAK |
| case 3: |
| YY_RULE_SETUP |
| #line 149 "ldlex.l" |
| { RTOKEN('+');} |
| YY_BREAK |
| case 4: |
| YY_RULE_SETUP |
| #line 150 "ldlex.l" |
| { yylval.name = buystring(yytext); return NAME; } |
| YY_BREAK |
| case 5: |
| YY_RULE_SETUP |
| #line 151 "ldlex.l" |
| { RTOKEN('='); } |
| YY_BREAK |
| case 6: |
| YY_RULE_SETUP |
| #line 153 "ldlex.l" |
| { |
| yylval.integer = bfd_scan_vma (yytext+1, 0,16); |
| return INT; |
| } |
| YY_BREAK |
| case 7: |
| YY_RULE_SETUP |
| #line 158 "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); |
| return INT; |
| } |
| YY_BREAK |
| case 8: |
| YY_RULE_SETUP |
| #line 182 "ldlex.l" |
| { |
| char *s = yytext; |
| |
| if (*s == '$') |
| ++s; |
| yylval.integer = bfd_scan_vma (s, 0, 0); |
| if (yytext[yyleng-1] == 'M' |
| || yytext[yyleng-1] == 'm') |
| yylval.integer *= 1024 * 1024; |
| if (yytext[yyleng-1] == 'K' |
| || yytext[yyleng-1]=='k') |
| yylval.integer *= 1024; |
| return INT; |
| } |
| YY_BREAK |
| case 9: |
| YY_RULE_SETUP |
| #line 196 "ldlex.l" |
| { RTOKEN(']');} |
| YY_BREAK |
| case 10: |
| YY_RULE_SETUP |
| #line 197 "ldlex.l" |
| { RTOKEN('[');} |
| YY_BREAK |
| case 11: |
| YY_RULE_SETUP |
| #line 198 "ldlex.l" |
| { RTOKEN(LSHIFTEQ);} |
| YY_BREAK |
| case 12: |
| YY_RULE_SETUP |
| #line 199 "ldlex.l" |
| { RTOKEN(RSHIFTEQ);} |
| YY_BREAK |
| case 13: |
| YY_RULE_SETUP |
| #line 200 "ldlex.l" |
| { RTOKEN(OROR);} |
| YY_BREAK |
| case 14: |
| YY_RULE_SETUP |
| #line 201 "ldlex.l" |
| { RTOKEN(EQ);} |
| YY_BREAK |
| case 15: |
| YY_RULE_SETUP |
| #line 202 "ldlex.l" |
| { RTOKEN(NE);} |
| YY_BREAK |
| case 16: |
| YY_RULE_SETUP |
| #line 203 "ldlex.l" |
| { RTOKEN(GE);} |
| YY_BREAK |
| case 17: |
| YY_RULE_SETUP |
| #line 204 "ldlex.l" |
| { RTOKEN(LE);} |
| YY_BREAK |
| case 18: |
| YY_RULE_SETUP |
| #line 205 "ldlex.l" |
| { RTOKEN(LSHIFT);} |
| YY_BREAK |
| case 19: |
| YY_RULE_SETUP |
| #line 206 "ldlex.l" |
| { RTOKEN(RSHIFT);} |
| YY_BREAK |
| case 20: |
| YY_RULE_SETUP |
| #line 207 "ldlex.l" |
| { RTOKEN(PLUSEQ);} |
| YY_BREAK |
| case 21: |
| YY_RULE_SETUP |
| #line 208 "ldlex.l" |
| { RTOKEN(MINUSEQ);} |
| YY_BREAK |
| case 22: |
| YY_RULE_SETUP |
| #line 209 "ldlex.l" |
| { RTOKEN(MULTEQ);} |
| YY_BREAK |
| case 23: |
| YY_RULE_SETUP |
| #line 210 "ldlex.l" |
| { RTOKEN(DIVEQ);} |
| YY_BREAK |
| case 24: |
| YY_RULE_SETUP |
| #line 211 "ldlex.l" |
| { RTOKEN(ANDEQ);} |
| YY_BREAK |
| case 25: |
| YY_RULE_SETUP |
| #line 212 "ldlex.l" |
| { RTOKEN(OREQ);} |
| YY_BREAK |
| case 26: |
| YY_RULE_SETUP |
| #line 213 "ldlex.l" |
| { RTOKEN(ANDAND);} |
| YY_BREAK |
| case 27: |
| YY_RULE_SETUP |
| #line 214 "ldlex.l" |
| { RTOKEN('>');} |
| YY_BREAK |
| case 28: |
| YY_RULE_SETUP |
| #line 215 "ldlex.l" |
| { RTOKEN(',');} |
| YY_BREAK |
| case 29: |
| YY_RULE_SETUP |
| #line 216 "ldlex.l" |
| { RTOKEN('&');} |
| YY_BREAK |
| case 30: |
| YY_RULE_SETUP |
| #line 217 "ldlex.l" |
| { RTOKEN('|');} |
| YY_BREAK |
| case 31: |
| YY_RULE_SETUP |
| #line 218 "ldlex.l" |
| { RTOKEN('~');} |
| YY_BREAK |
| case 32: |
| YY_RULE_SETUP |
| #line 219 "ldlex.l" |
| { RTOKEN('!');} |
| YY_BREAK |
| case 33: |
| YY_RULE_SETUP |
| #line 220 "ldlex.l" |
| { RTOKEN('?');} |
| YY_BREAK |
| case 34: |
| YY_RULE_SETUP |
| #line 221 "ldlex.l" |
| { RTOKEN('*');} |
| YY_BREAK |
| case 35: |
| YY_RULE_SETUP |
| #line 222 "ldlex.l" |
| { RTOKEN('+');} |
| YY_BREAK |
| case 36: |
| YY_RULE_SETUP |
| #line 223 "ldlex.l" |
| { RTOKEN('-');} |
| YY_BREAK |
| case 37: |
| YY_RULE_SETUP |
| #line 224 "ldlex.l" |
| { RTOKEN('/');} |
| YY_BREAK |
| case 38: |
| YY_RULE_SETUP |
| #line 225 "ldlex.l" |
| { RTOKEN('%');} |
| YY_BREAK |
| case 39: |
| YY_RULE_SETUP |
| #line 226 "ldlex.l" |
| { RTOKEN('<');} |
| YY_BREAK |
| case 40: |
| YY_RULE_SETUP |
| #line 227 "ldlex.l" |
| { RTOKEN('=');} |
| YY_BREAK |
| case 41: |
| YY_RULE_SETUP |
| #line 228 "ldlex.l" |
| { RTOKEN('}') ; } |
| YY_BREAK |
| case 42: |
| YY_RULE_SETUP |
| #line 229 "ldlex.l" |
| { RTOKEN('{'); } |
| YY_BREAK |
| case 43: |
| YY_RULE_SETUP |
| #line 230 "ldlex.l" |
| { RTOKEN(')');} |
| YY_BREAK |
| case 44: |
| YY_RULE_SETUP |
| #line 231 "ldlex.l" |
| { RTOKEN('(');} |
| YY_BREAK |
| case 45: |
| YY_RULE_SETUP |
| #line 232 "ldlex.l" |
| { RTOKEN(':'); } |
| YY_BREAK |
| case 46: |
| YY_RULE_SETUP |
| #line 233 "ldlex.l" |
| { RTOKEN(';');} |
| YY_BREAK |
| case 47: |
| YY_RULE_SETUP |
| #line 234 "ldlex.l" |
| { RTOKEN(MEMORY);} |
| YY_BREAK |
| case 48: |
| YY_RULE_SETUP |
| #line 235 "ldlex.l" |
| { RTOKEN(ORIGIN);} |
| YY_BREAK |
| case 49: |
| YY_RULE_SETUP |
| #line 236 "ldlex.l" |
| { RTOKEN(VERSIONK);} |
| YY_BREAK |
| case 50: |
| YY_RULE_SETUP |
| #line 237 "ldlex.l" |
| { RTOKEN(BLOCK);} |
| YY_BREAK |
| case 51: |
| YY_RULE_SETUP |
| #line 238 "ldlex.l" |
| { RTOKEN(BIND);} |
| YY_BREAK |
| case 52: |
| YY_RULE_SETUP |
| #line 239 "ldlex.l" |
| { RTOKEN(LENGTH);} |
| YY_BREAK |
| case 53: |
| YY_RULE_SETUP |
| #line 240 "ldlex.l" |
| { RTOKEN(ALIGN_K);} |
| YY_BREAK |
| case 54: |
| YY_RULE_SETUP |
| #line 241 "ldlex.l" |
| { RTOKEN(ADDR);} |
| YY_BREAK |
| case 55: |
| YY_RULE_SETUP |
| #line 242 "ldlex.l" |
| { RTOKEN(LOADADDR);} |
| YY_BREAK |
| case 56: |
| YY_RULE_SETUP |
| #line 243 "ldlex.l" |
| { RTOKEN(MAX_K); } |
| YY_BREAK |
| case 57: |
| YY_RULE_SETUP |
| #line 244 "ldlex.l" |
| { RTOKEN(MIN_K); } |
| YY_BREAK |
| case 58: |
| YY_RULE_SETUP |
| #line 245 "ldlex.l" |
| { RTOKEN(ASSERT_K); } |
| YY_BREAK |
| case 59: |
| YY_RULE_SETUP |
| #line 246 "ldlex.l" |
| { RTOKEN(ENTRY);} |
| YY_BREAK |
| case 60: |
| YY_RULE_SETUP |
| #line 247 "ldlex.l" |
| { RTOKEN(EXTERN);} |
| YY_BREAK |
| case 61: |
| YY_RULE_SETUP |
| #line 248 "ldlex.l" |
| { RTOKEN(NEXT);} |
| YY_BREAK |
| case 62: |
| YY_RULE_SETUP |
| #line 249 "ldlex.l" |
| { RTOKEN(SIZEOF_HEADERS);} |
| YY_BREAK |
| case 63: |
| YY_RULE_SETUP |
| #line 250 "ldlex.l" |
| { RTOKEN(SIZEOF_HEADERS);} |
| YY_BREAK |
| case 64: |
| YY_RULE_SETUP |
| #line 251 "ldlex.l" |
| { RTOKEN(MAP);} |
| YY_BREAK |
| case 65: |
| YY_RULE_SETUP |
| #line 252 "ldlex.l" |
| { RTOKEN(SIZEOF);} |
| YY_BREAK |
| case 66: |
| YY_RULE_SETUP |
| #line 253 "ldlex.l" |
| { RTOKEN(TARGET_K);} |
| YY_BREAK |
| case 67: |
| YY_RULE_SETUP |
| #line 254 "ldlex.l" |
| { RTOKEN(SEARCH_DIR);} |
| YY_BREAK |
| case 68: |
| YY_RULE_SETUP |
| #line 255 "ldlex.l" |
| { RTOKEN(OUTPUT);} |
| YY_BREAK |
| case 69: |
| YY_RULE_SETUP |
| #line 256 "ldlex.l" |
| { RTOKEN(INPUT);} |
| YY_BREAK |
| case 70: |
| YY_RULE_SETUP |
| #line 257 "ldlex.l" |
| { RTOKEN(GROUP);} |
| YY_BREAK |
| case 71: |
| YY_RULE_SETUP |
| #line 258 "ldlex.l" |
| { RTOKEN(DEFINED);} |
| YY_BREAK |
| case 72: |
| YY_RULE_SETUP |
| #line 259 "ldlex.l" |
| { RTOKEN(CREATE_OBJECT_SYMBOLS);} |
| YY_BREAK |
| case 73: |
| YY_RULE_SETUP |
| #line 260 "ldlex.l" |
| { RTOKEN( CONSTRUCTORS);} |
| YY_BREAK |
| case 74: |
| YY_RULE_SETUP |
| #line 261 "ldlex.l" |
| { RTOKEN(FORCE_COMMON_ALLOCATION);} |
| YY_BREAK |
| case 75: |
| YY_RULE_SETUP |
| #line 262 "ldlex.l" |
| { RTOKEN(SECTIONS);} |
| YY_BREAK |
| case 76: |
| YY_RULE_SETUP |
| #line 263 "ldlex.l" |
| { RTOKEN(FILL);} |
| YY_BREAK |
| case 77: |
| YY_RULE_SETUP |
| #line 264 "ldlex.l" |
| { RTOKEN(STARTUP);} |
| YY_BREAK |
| case 78: |
| YY_RULE_SETUP |
| #line 265 "ldlex.l" |
| { RTOKEN(OUTPUT_FORMAT);} |
| YY_BREAK |
| case 79: |
| YY_RULE_SETUP |
| #line 266 "ldlex.l" |
| { RTOKEN( OUTPUT_ARCH);} |
| YY_BREAK |
| case 80: |
| YY_RULE_SETUP |
| #line 267 "ldlex.l" |
| { RTOKEN(HLL);} |
| YY_BREAK |
| case 81: |
| YY_RULE_SETUP |
| #line 268 "ldlex.l" |
| { RTOKEN(SYSLIB);} |
| YY_BREAK |
| case 82: |
| YY_RULE_SETUP |
| #line 269 "ldlex.l" |
| { RTOKEN(FLOAT);} |
| YY_BREAK |
| case 83: |
| YY_RULE_SETUP |
| #line 270 "ldlex.l" |
| { RTOKEN( QUAD);} |
| YY_BREAK |
| case 84: |
| YY_RULE_SETUP |
| #line 271 "ldlex.l" |
| { RTOKEN( SQUAD);} |
| YY_BREAK |
| case 85: |
| YY_RULE_SETUP |
| #line 272 "ldlex.l" |
| { RTOKEN( LONG);} |
| YY_BREAK |
| case 86: |
| YY_RULE_SETUP |
| #line 273 "ldlex.l" |
| { RTOKEN( SHORT);} |
| YY_BREAK |
| case 87: |
| YY_RULE_SETUP |
| #line 274 "ldlex.l" |
| { RTOKEN( BYTE);} |
| YY_BREAK |
| case 88: |
| YY_RULE_SETUP |
| #line 275 "ldlex.l" |
| { RTOKEN(NOFLOAT);} |
| YY_BREAK |
| case 89: |
| YY_RULE_SETUP |
| #line 276 "ldlex.l" |
| { RTOKEN(NOCROSSREFS);} |
| YY_BREAK |
| case 90: |
| YY_RULE_SETUP |
| #line 277 "ldlex.l" |
| { RTOKEN(OVERLAY); } |
| YY_BREAK |
| case 91: |
| YY_RULE_SETUP |
| #line 278 "ldlex.l" |
| { RTOKEN(SORT); } |
| YY_BREAK |
| case 92: |
| YY_RULE_SETUP |
| #line 279 "ldlex.l" |
| { RTOKEN(NOLOAD);} |
| YY_BREAK |
| case 93: |
| YY_RULE_SETUP |
| #line 280 "ldlex.l" |
| { RTOKEN(DSECT);} |
| YY_BREAK |
| case 94: |
| YY_RULE_SETUP |
| #line 281 "ldlex.l" |
| { RTOKEN(COPY);} |
| YY_BREAK |
| case 95: |
| YY_RULE_SETUP |
| #line 282 "ldlex.l" |
| { RTOKEN(INFO);} |
| YY_BREAK |
| case 96: |
| YY_RULE_SETUP |
| #line 283 "ldlex.l" |
| { RTOKEN(OVERLAY);} |
| YY_BREAK |
| case 97: |
| YY_RULE_SETUP |
| #line 284 "ldlex.l" |
| { RTOKEN(ORIGIN);} |
| YY_BREAK |
| case 98: |
| YY_RULE_SETUP |
| #line 285 "ldlex.l" |
| { RTOKEN(ORIGIN);} |
| YY_BREAK |
| case 99: |
| YY_RULE_SETUP |
| #line 286 "ldlex.l" |
| { RTOKEN( LENGTH);} |
| YY_BREAK |
| case 100: |
| YY_RULE_SETUP |
| #line 287 "ldlex.l" |
| { RTOKEN( LENGTH);} |
| YY_BREAK |
| case 101: |
| YY_RULE_SETUP |
| #line 288 "ldlex.l" |
| { RTOKEN(INCLUDE);} |
| YY_BREAK |
| case 102: |
| YY_RULE_SETUP |
| #line 289 "ldlex.l" |
| { RTOKEN (PHDRS); } |
| YY_BREAK |
| case 103: |
| YY_RULE_SETUP |
| #line 290 "ldlex.l" |
| { RTOKEN(AT);} |
| YY_BREAK |
| case 104: |
| YY_RULE_SETUP |
| #line 291 "ldlex.l" |
| { RTOKEN(PROVIDE); } |
| YY_BREAK |
| case 105: |
| YY_RULE_SETUP |
| #line 292 "ldlex.l" |
| { RTOKEN(KEEP); } |
| YY_BREAK |
| case 106: |
| YY_RULE_SETUP |
| #line 293 "ldlex.l" |
| { RTOKEN(EXCLUDE_FILE); } |
| YY_BREAK |
| case 107: |
| YY_RULE_SETUP |
| #line 294 "ldlex.l" |
| { ++ lineno; } |
| YY_BREAK |
| case 108: |
| YY_RULE_SETUP |
| #line 295 "ldlex.l" |
| { ++ lineno; RTOKEN(NEWLINE); } |
| YY_BREAK |
| case 109: |
| YY_RULE_SETUP |
| #line 296 "ldlex.l" |
| { /* Mri comment line */ } |
| YY_BREAK |
| case 110: |
| YY_RULE_SETUP |
| #line 297 "ldlex.l" |
| { /* Mri comment line */ } |
| YY_BREAK |
| case 111: |
| YY_RULE_SETUP |
| #line 298 "ldlex.l" |
| { RTOKEN(ENDWORD); } |
| YY_BREAK |
| case 112: |
| YY_RULE_SETUP |
| #line 299 "ldlex.l" |
| { RTOKEN(ALIGNMOD);} |
| YY_BREAK |
| case 113: |
| YY_RULE_SETUP |
| #line 300 "ldlex.l" |
| { RTOKEN(ALIGN_K);} |
| YY_BREAK |
| case 114: |
| YY_RULE_SETUP |
| #line 301 "ldlex.l" |
| { RTOKEN(CHIP); } |
| YY_BREAK |
| case 115: |
| YY_RULE_SETUP |
| #line 302 "ldlex.l" |
| { RTOKEN(BASE); } |
| YY_BREAK |
| case 116: |
| YY_RULE_SETUP |
| #line 303 "ldlex.l" |
| { RTOKEN(ALIAS); } |
| YY_BREAK |
| case 117: |
| YY_RULE_SETUP |
| #line 304 "ldlex.l" |
| { RTOKEN(TRUNCATE); } |
| YY_BREAK |
| case 118: |
| YY_RULE_SETUP |
| #line 305 "ldlex.l" |
| { RTOKEN(LOAD); } |
| YY_BREAK |
| case 119: |
| YY_RULE_SETUP |
| #line 306 "ldlex.l" |
| { RTOKEN(PUBLIC); } |
| YY_BREAK |
| case 120: |
| YY_RULE_SETUP |
| #line 307 "ldlex.l" |
| { RTOKEN(ORDER); } |
| YY_BREAK |
| case 121: |
| YY_RULE_SETUP |
| #line 308 "ldlex.l" |
| { RTOKEN(NAMEWORD); } |
| YY_BREAK |
| case 122: |
| YY_RULE_SETUP |
| #line 309 "ldlex.l" |
| { RTOKEN(FORMAT); } |
| YY_BREAK |
| case 123: |
| YY_RULE_SETUP |
| #line 310 "ldlex.l" |
| { RTOKEN(CASE); } |
| YY_BREAK |
| case 124: |
| YY_RULE_SETUP |
| #line 311 "ldlex.l" |
| { RTOKEN(START); } |
| YY_BREAK |
| case 125: |
| YY_RULE_SETUP |
| #line 312 "ldlex.l" |
| { RTOKEN(LIST); /* LIST and ignore to end of line */ } |
| YY_BREAK |
| case 126: |
| YY_RULE_SETUP |
| #line 313 "ldlex.l" |
| { RTOKEN(SECT); } |
| YY_BREAK |
| case 127: |
| YY_RULE_SETUP |
| #line 314 "ldlex.l" |
| { RTOKEN(ABSOLUTE); } |
| YY_BREAK |
| case 128: |
| YY_RULE_SETUP |
| #line 315 "ldlex.l" |
| { RTOKEN(ENDWORD); } |
| YY_BREAK |
| case 129: |
| YY_RULE_SETUP |
| #line 316 "ldlex.l" |
| { RTOKEN(ALIGNMOD);} |
| YY_BREAK |
| case 130: |
| YY_RULE_SETUP |
| #line 317 "ldlex.l" |
| { RTOKEN(ALIGN_K);} |
| YY_BREAK |
| case 131: |
| YY_RULE_SETUP |
| #line 318 "ldlex.l" |
| { RTOKEN(CHIP); } |
| YY_BREAK |
| case 132: |
| YY_RULE_SETUP |
| #line 319 "ldlex.l" |
| { RTOKEN(BASE); } |
| YY_BREAK |
| case 133: |
| YY_RULE_SETUP |
| #line 320 "ldlex.l" |
| { RTOKEN(ALIAS); } |
| YY_BREAK |
| case 134: |
| YY_RULE_SETUP |
| #line 321 "ldlex.l" |
| { RTOKEN(TRUNCATE); } |
| YY_BREAK |
| case 135: |
| YY_RULE_SETUP |
| #line 322 "ldlex.l" |
| { RTOKEN(LOAD); } |
| YY_BREAK |
| case 136: |
| YY_RULE_SETUP |
| #line 323 "ldlex.l" |
| { RTOKEN(PUBLIC); } |
| YY_BREAK |
| case 137: |
| YY_RULE_SETUP |
| #line 324 "ldlex.l" |
| { RTOKEN(ORDER); } |
| YY_BREAK |
| case 138: |
| YY_RULE_SETUP |
| #line 325 "ldlex.l" |
| { RTOKEN(NAMEWORD); } |
| YY_BREAK |
| case 139: |
| YY_RULE_SETUP |
| #line 326 "ldlex.l" |
| { RTOKEN(FORMAT); } |
| YY_BREAK |
| case 140: |
| YY_RULE_SETUP |
| #line 327 "ldlex.l" |
| { RTOKEN(CASE); } |
| YY_BREAK |
| case 141: |
| YY_RULE_SETUP |
| #line 328 "ldlex.l" |
| { RTOKEN(EXTERN); } |
| YY_BREAK |
| case 142: |
| YY_RULE_SETUP |
| #line 329 "ldlex.l" |
| { RTOKEN(START); } |
| YY_BREAK |
| case 143: |
| YY_RULE_SETUP |
| #line 330 "ldlex.l" |
| { RTOKEN(LIST); /* LIST and ignore to end of line */ } |
| YY_BREAK |
| case 144: |
| YY_RULE_SETUP |
| #line 331 "ldlex.l" |
| { RTOKEN(SECT); } |
| YY_BREAK |
| case 145: |
| YY_RULE_SETUP |
| #line 332 "ldlex.l" |
| { RTOKEN(ABSOLUTE); } |
| YY_BREAK |
| case 146: |
| YY_RULE_SETUP |
| #line 334 "ldlex.l" |
| { |
| /* Filename without commas, needed to parse mri stuff */ |
| yylval.name = buystring(yytext); |
| return NAME; |
| } |
| YY_BREAK |
| case 147: |
| YY_RULE_SETUP |
| #line 341 "ldlex.l" |
| { |
| yylval.name = buystring(yytext); |
| return NAME; |
| } |
| YY_BREAK |
| case 148: |
| YY_RULE_SETUP |
| #line 345 "ldlex.l" |
| { |
| yylval.name = buystring (yytext + 2); |
| return LNAME; |
| } |
| YY_BREAK |
| case 149: |
| YY_RULE_SETUP |
| #line 349 "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 = buystring(yytext); |
| return NAME; |
| } |
| } |
| YY_BREAK |
| case 150: |
| YY_RULE_SETUP |
| #line 366 "ldlex.l" |
| { |
| /* No matter the state, quotes |
| give what's inside */ |
| yylval.name = buystring(yytext+1); |
| yylval.name[yyleng-2] = 0; |
| return NAME; |
| } |
| YY_BREAK |
| case 151: |
| YY_RULE_SETUP |
| #line 373 "ldlex.l" |
| { lineno++;} |
| YY_BREAK |
| case 152: |
| YY_RULE_SETUP |
| #line 374 "ldlex.l" |
| { } |
| YY_BREAK |
| case 153: |
| YY_RULE_SETUP |
| #line 376 "ldlex.l" |
| { return *yytext; } |
| YY_BREAK |
| case 154: |
| YY_RULE_SETUP |
| #line 378 "ldlex.l" |
| { RTOKEN(GLOBAL); } |
| YY_BREAK |
| case 155: |
| YY_RULE_SETUP |
| #line 380 "ldlex.l" |
| { RTOKEN(LOCAL); } |
| YY_BREAK |
| case 156: |
| YY_RULE_SETUP |
| #line 382 "ldlex.l" |
| { RTOKEN(EXTERN); } |
| YY_BREAK |
| case 157: |
| YY_RULE_SETUP |
| #line 384 "ldlex.l" |
| { yylval.name = buystring (yytext); |
| return VERS_IDENTIFIER; } |
| YY_BREAK |
| case 158: |
| YY_RULE_SETUP |
| #line 387 "ldlex.l" |
| { yylval.name = buystring (yytext); |
| return VERS_TAG; } |
| YY_BREAK |
| case 159: |
| YY_RULE_SETUP |
| #line 390 "ldlex.l" |
| { BEGIN(VERS_SCRIPT); return *yytext; } |
| YY_BREAK |
| case 160: |
| YY_RULE_SETUP |
| #line 392 "ldlex.l" |
| { BEGIN(VERS_NODE); |
| vers_node_nesting = 0; |
| return *yytext; |
| } |
| YY_BREAK |
| case 161: |
| YY_RULE_SETUP |
| #line 396 "ldlex.l" |
| { return *yytext; } |
| YY_BREAK |
| case 162: |
| YY_RULE_SETUP |
| #line 397 "ldlex.l" |
| { vers_node_nesting++; return *yytext; } |
| YY_BREAK |
| case 163: |
| YY_RULE_SETUP |
| #line 398 "ldlex.l" |
| { if (--vers_node_nesting < 0) |
| BEGIN(VERS_SCRIPT); |
| return *yytext; |
| } |
| YY_BREAK |
| case 164: |
| YY_RULE_SETUP |
| #line 403 "ldlex.l" |
| { lineno++; } |
| YY_BREAK |
| case 165: |
| YY_RULE_SETUP |
| #line 405 "ldlex.l" |
| { /* Eat up comments */ } |
| YY_BREAK |
| case 166: |
| YY_RULE_SETUP |
| #line 407 "ldlex.l" |
| { /* Eat up whitespace */ } |
| YY_BREAK |
| case YY_STATE_EOF(INITIAL): |
| case YY_STATE_EOF(SCRIPT): |
| case YY_STATE_EOF(EXPRESSION): |
| case YY_STATE_EOF(BOTH): |
| case YY_STATE_EOF(DEFSYMEXP): |
| case YY_STATE_EOF(MRI): |
| case YY_STATE_EOF(VERS_START): |
| case YY_STATE_EOF(VERS_SCRIPT): |
| case YY_STATE_EOF(VERS_NODE): |
| #line 409 "ldlex.l" |
| { |
| include_stack_ptr--; |
| |
| if (include_stack_ptr == 0) |
| { |
| yyterminate(); |
| } |
| else |
| { |
| yy_switch_to_buffer(include_stack[include_stack_ptr]); |
| |
| } |
| BEGIN(SCRIPT); |
| ldfile_input_filename = file_name_stack[include_stack_ptr - 1]; |
| lineno = lineno_stack[include_stack_ptr - 1]; |
| |
| return END; |
| } |
| YY_BREAK |
| case 167: |
| YY_RULE_SETUP |
| #line 428 "ldlex.l" |
| lex_warn_invalid(" in script", yytext); |
| YY_BREAK |
| case 168: |
| YY_RULE_SETUP |
| #line 429 "ldlex.l" |
| lex_warn_invalid(" in expression", yytext); |
| YY_BREAK |
| case 169: |
| YY_RULE_SETUP |
| #line 431 "ldlex.l" |
| ECHO; |
| YY_BREAK |
| #line 2477 "lex.yy.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->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->yy_n_chars; |
| yy_current_buffer->yy_input_file = yyin; |
| yy_current_buffer->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->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->yy_ch_buf[yy_n_chars]; |
| |
| yy_current_state = yy_get_previous_state(); |
| |
| yy_cp = yy_c_buf_p; |
| yy_bp = yytext_ptr + YY_MORE_ADJ; |
| goto yy_find_action; |
| } |
| break; |
| } |
| |
| default: |
| YY_FATAL_ERROR( |
| "fatal flex scanner internal error--no action found" ); |
| } /* end of action switch */ |
| } /* end of scanning one token */ |
| } /* end of yylex */ |
| |
| |
| /* yy_get_next_buffer - try to read in a new buffer |
| * |
| * Returns a code representing an action: |
| * EOB_ACT_LAST_MATCH - |
| * EOB_ACT_CONTINUE_SCAN - continue scanning from current position |
| * EOB_ACT_END_OF_FILE - end of file |
| */ |
| |
| static int yy_get_next_buffer() |
| { |
| register char *dest = yy_current_buffer->yy_ch_buf; |
| register char *source = yytext_ptr; |
| register int number_to_move, i; |
| int ret_val; |
| |
| if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) |
| YY_FATAL_ERROR( |
| "fatal flex scanner internal error--end of buffer missed" ); |
| |
| if ( yy_current_buffer->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->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->yy_n_chars = yy_n_chars = 0; |
| |
| else |
| { |
| int num_to_read = |
| yy_current_buffer->yy_buf_size - number_to_move - 1; |
| |
| while ( num_to_read <= 0 ) |
| { /* Not enough room in the buffer - grow it. */ |
| #ifdef YY_USES_REJECT |
| YY_FATAL_ERROR( |
| "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); |
| #else |
| |
| /* just a shorter name for the current buffer */ |
| YY_BUFFER_STATE b = yy_current_buffer; |
| |
| int yy_c_buf_p_offset = |
| (int) (yy_c_buf_p - b->yy_ch_buf); |
| |
| if ( b->yy_is_our_buffer ) |
| { |
| int new_size = b->yy_buf_size * 2; |
| |
| if ( new_size <= 0 ) |
| b->yy_buf_size += b->yy_buf_size / 8; |
| else |
| b->yy_buf_size *= 2; |
| |
| b->yy_ch_buf = (char *) |
| /* Include room in for 2 EOB chars. */ |
| yy_flex_realloc( (void *) b->yy_ch_buf, |
| b->yy_buf_size + 2 ); |
| } |
| else |
| /* Can't grow it, we don't own it. */ |
| b->yy_ch_buf = 0; |
| |
| if ( ! b->yy_ch_buf ) |
| YY_FATAL_ERROR( |
| "fatal error - scanner input buffer overflow" ); |
| |
| yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; |
| |
| num_to_read = yy_current_buffer->yy_buf_size - |
| number_to_move - 1; |
| #endif |
| } |
| |
| if ( num_to_read > YY_READ_BUF_SIZE ) |
| num_to_read = YY_READ_BUF_SIZE; |
| |
| /* Read in more data. */ |
| YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), |
| yy_n_chars, num_to_read ); |
| |
| yy_current_buffer->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->yy_buffer_status = |
| YY_BUFFER_EOF_PENDING; |
| } |
| } |
| |
| else |
| ret_val = EOB_ACT_CONTINUE_SCAN; |
| |
| yy_n_chars += number_to_move; |
| yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; |
| yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; |
| |
| yytext_ptr = &yy_current_buffer->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() |
| { |
| register yy_state_type yy_current_state; |
| register char *yy_cp; |
| |
| yy_current_state = yy_start; |
| |
| for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) |
| { |
| register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); |
| if ( yy_accept[yy_current_state] ) |
| { |
| yy_last_accepting_state = yy_current_state; |
| yy_last_accepting_cpos = yy_cp; |
| } |
| while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
| { |
| yy_current_state = (int) yy_def[yy_current_state]; |
| if ( yy_current_state >= 1062 ) |
| yy_c = yy_meta[(unsigned int) yy_c]; |
| } |
| yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
| } |
| |
| return yy_current_state; |
| } |
| |
| |
| /* yy_try_NUL_trans - try to make a transition on the NUL character |
| * |
| * synopsis |
| * next_state = yy_try_NUL_trans( current_state ); |
| */ |
| |
| #ifdef YY_USE_PROTOS |
| static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) |
| #else |
| static yy_state_type yy_try_NUL_trans( yy_current_state ) |
| yy_state_type yy_current_state; |
| #endif |
| { |
| register int yy_is_jam; |
| register char *yy_cp = yy_c_buf_p; |
| |
| register YY_CHAR yy_c = 1; |
| if ( yy_accept[yy_current_state] ) |
| { |
| yy_last_accepting_state = yy_current_state; |
| yy_last_accepting_cpos = yy_cp; |
| } |
| while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
| { |
| yy_current_state = (int) yy_def[yy_current_state]; |
| if ( yy_current_state >= 1062 ) |
| yy_c = yy_meta[(unsigned int) yy_c]; |
| } |
| yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
| yy_is_jam = (yy_current_state == 1061); |
| |
| return yy_is_jam ? 0 : yy_current_state; |
| } |
| |
| |
| #ifndef YY_NO_UNPUT |
| #ifdef YY_USE_PROTOS |
| static void yyunput( int c, register char *yy_bp ) |
| #else |
| static void yyunput( c, yy_bp ) |
| int c; |
| register char *yy_bp; |
| #endif |
| { |
| register char *yy_cp = yy_c_buf_p; |
| |
| /* undo effects of setting up yytext */ |
| *yy_cp = yy_hold_char; |
| |
| if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) |
| { /* need to shift things up to make room */ |
| /* +2 for EOB chars. */ |
| register int number_to_move = yy_n_chars + 2; |
| register char *dest = &yy_current_buffer->yy_ch_buf[ |
| yy_current_buffer->yy_buf_size + 2]; |
| register char *source = |
| &yy_current_buffer->yy_ch_buf[number_to_move]; |
| |
| while ( source > yy_current_buffer->yy_ch_buf ) |
| *--dest = *--source; |
| |
| yy_cp += (int) (dest - source); |
| yy_bp += (int) (dest - source); |
| yy_current_buffer->yy_n_chars = |
| yy_n_chars = yy_current_buffer->yy_buf_size; |
| |
| if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) |
| YY_FATAL_ERROR( "flex scanner push-back overflow" ); |
| } |
| |
| *--yy_cp = (char) c; |
| |
| |
| yytext_ptr = yy_bp; |
| yy_hold_char = *yy_cp; |
| yy_c_buf_p = yy_cp; |
| } |
| #endif /* ifndef YY_NO_UNPUT */ |
| |
| |
| #ifdef __cplusplus |
| static int yyinput() |
| #else |
| static int input() |
| #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->yy_ch_buf[yy_n_chars] ) |
| /* This was really a NUL. */ |
| *yy_c_buf_p = '\0'; |
| |
| else |
| { /* need more input */ |
| int offset = yy_c_buf_p - yytext_ptr; |
| ++yy_c_buf_p; |
| |
| switch ( yy_get_next_buffer() ) |
| { |
| case EOB_ACT_LAST_MATCH: |
| /* This happens because yy_g_n_b() |
| * sees that we've accumulated a |
| * token and flags that we need to |
| * try matching the token before |
| * proceeding. But for input(), |
| * there's no matching to consider. |
| * So convert the EOB_ACT_LAST_MATCH |
| * to EOB_ACT_END_OF_FILE. |
| */ |
| |
| /* Reset buffer status. */ |
| yyrestart( yyin ); |
| |
| /* fall through */ |
| |
| case EOB_ACT_END_OF_FILE: |
| { |
| if ( yywrap() ) |
| return EOF; |
| |
| if ( ! yy_did_buffer_switch_on_eof ) |
| YY_NEW_FILE; |
| #ifdef __cplusplus |
| return yyinput(); |
| #else |
| return input(); |
| #endif |
| } |
| |
| case EOB_ACT_CONTINUE_SCAN: |
| yy_c_buf_p = yytext_ptr + offset; |
| break; |
| } |
| } |
| } |
| |
| c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ |
| *yy_c_buf_p = '\0'; /* preserve yytext */ |
| yy_hold_char = *++yy_c_buf_p; |
| |
| |
| return c; |
| } |
| |
| |
| #ifdef YY_USE_PROTOS |
| void yyrestart( FILE *input_file ) |
| #else |
| void yyrestart( input_file ) |
| FILE *input_file; |
| #endif |
| { |
| if ( ! yy_current_buffer ) |
| yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); |
| |
| yy_init_buffer( yy_current_buffer, input_file ); |
| yy_load_buffer_state(); |
| } |
| |
| |
| #ifdef YY_USE_PROTOS |
| void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) |
| #else |
| void yy_switch_to_buffer( new_buffer ) |
| YY_BUFFER_STATE new_buffer; |
| #endif |
| { |
| 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->yy_buf_pos = yy_c_buf_p; |
| yy_current_buffer->yy_n_chars = yy_n_chars; |
| } |
| |
| yy_current_buffer = 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; |
| } |
| |
| |
| #ifdef YY_USE_PROTOS |
| void yy_load_buffer_state( void ) |
| #else |
| void yy_load_buffer_state() |
| #endif |
| { |
| yy_n_chars = yy_current_buffer->yy_n_chars; |
| yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; |
| yyin = yy_current_buffer->yy_input_file; |
| yy_hold_char = *yy_c_buf_p; |
| } |
| |
| |
| #ifdef YY_USE_PROTOS |
| YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) |
| #else |
| YY_BUFFER_STATE yy_create_buffer( file, size ) |
| FILE *file; |
| int size; |
| #endif |
| { |
| YY_BUFFER_STATE b; |
| |
| b = (YY_BUFFER_STATE) yy_flex_alloc( 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 *) yy_flex_alloc( 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; |
| } |
| |
| |
| #ifdef YY_USE_PROTOS |
| void yy_delete_buffer( YY_BUFFER_STATE b ) |
| #else |
| void yy_delete_buffer( b ) |
| YY_BUFFER_STATE b; |
| #endif |
| { |
| if ( ! b ) |
| return; |
| |
| if ( b == yy_current_buffer ) |
| yy_current_buffer = (YY_BUFFER_STATE) 0; |
| |
| if ( b->yy_is_our_buffer ) |
| yy_flex_free( (void *) b->yy_ch_buf ); |
| |
| yy_flex_free( (void *) b ); |
| } |
| |
| |
| #ifndef YY_ALWAYS_INTERACTIVE |
| #ifndef YY_NEVER_INTERACTIVE |
| extern int isatty YY_PROTO(( int )); |
| #endif |
| #endif |
| |
| #ifdef YY_USE_PROTOS |
| void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) |
| #else |
| void yy_init_buffer( b, file ) |
| YY_BUFFER_STATE b; |
| FILE *file; |
| #endif |
| |
| |
| { |
| yy_flush_buffer( b ); |
| |
| b->yy_input_file = file; |
| b->yy_fill_buffer = 1; |
| |
| #if YY_ALWAYS_INTERACTIVE |
| b->yy_is_interactive = 1; |
| #else |
| #if YY_NEVER_INTERACTIVE |
| b->yy_is_interactive = 0; |
| #else |
| b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; |
| #endif |
| #endif |
| } |
| |
| |
| #ifdef YY_USE_PROTOS |
| void yy_flush_buffer( YY_BUFFER_STATE b ) |
| #else |
| void yy_flush_buffer( b ) |
| YY_BUFFER_STATE b; |
| #endif |
| |
| { |
| 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(); |
| } |
| |
| |
| #ifndef YY_NO_SCAN_BUFFER |
| #ifdef YY_USE_PROTOS |
| YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) |
| #else |
| YY_BUFFER_STATE yy_scan_buffer( base, size ) |
| char *base; |
| yy_size_t size; |
| #endif |
| { |
| YY_BUFFER_STATE b; |
| |
| if ( size < 2 || |
| base[size-2] != YY_END_OF_BUFFER_CHAR || |
| base[size-1] != YY_END_OF_BUFFER_CHAR ) |
| /* They forgot to leave room for the EOB's. */ |
| return 0; |
| |
| b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); |
| if ( ! b ) |
| YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); |
| |
| b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ |
| b->yy_buf_pos = b->yy_ch_buf = base; |
| b->yy_is_our_buffer = 0; |
| b->yy_input_file = 0; |
| b->yy_n_chars = b->yy_buf_size; |
| b->yy_is_interactive = 0; |
| b->yy_at_bol = 1; |
| b->yy_fill_buffer = 0; |
| b->yy_buffer_status = YY_BUFFER_NEW; |
| |
| yy_switch_to_buffer( b ); |
| |
| return b; |
| } |
| #endif |
| |
| |
| #ifndef YY_NO_SCAN_STRING |
| #ifdef YY_USE_PROTOS |
| YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) |
| #else |
| YY_BUFFER_STATE yy_scan_string( yy_str ) |
| yyconst char *yy_str; |
| #endif |
| { |
| int len; |
| for ( len = 0; yy_str[len]; ++len ) |
| ; |
| |
| return yy_scan_bytes( yy_str, len ); |
| } |
| #endif |
| |
| |
| #ifndef YY_NO_SCAN_BYTES |
| #ifdef YY_USE_PROTOS |
| YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) |
| #else |
| YY_BUFFER_STATE yy_scan_bytes( bytes, len ) |
| yyconst char *bytes; |
| int len; |
| #endif |
| { |
| YY_BUFFER_STATE b; |
| char *buf; |
| yy_size_t n; |
| int i; |
| |
| /* Get memory for full buffer, including space for trailing EOB's. */ |
| n = len + 2; |
| buf = (char *) yy_flex_alloc( n ); |
| if ( ! buf ) |
| YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); |
| |
| for ( i = 0; i < len; ++i ) |
| buf[i] = bytes[i]; |
| |
| buf[len] = buf[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; |
| } |
| #endif |
| |
| |
| #ifndef YY_NO_PUSH_STATE |
| #ifdef YY_USE_PROTOS |
| static void yy_push_state( int new_state ) |
| #else |
| static void yy_push_state( new_state ) |
| int new_state; |
| #endif |
| { |
| if ( yy_start_stack_ptr >= yy_start_stack_depth ) |
| { |
| yy_size_t new_size; |
| |
| yy_start_stack_depth += YY_START_STACK_INCR; |
| new_size = yy_start_stack_depth * sizeof( int ); |
| |
| if ( ! yy_start_stack ) |
| yy_start_stack = (int *) yy_flex_alloc( new_size ); |
| |
| else |
| yy_start_stack = (int *) yy_flex_realloc( |
| (void *) yy_start_stack, new_size ); |
| |
| if ( ! yy_start_stack ) |
| YY_FATAL_ERROR( |
| "out of memory expanding start-condition stack" ); |
| } |
| |
| yy_start_stack[yy_start_stack_ptr++] = YY_START; |
| |
| BEGIN(new_state); |
| } |
| #endif |
| |
| |
| #ifndef YY_NO_POP_STATE |
| static void yy_pop_state() |
| { |
| if ( --yy_start_stack_ptr < 0 ) |
| YY_FATAL_ERROR( "start-condition stack underflow" ); |
| |
| BEGIN(yy_start_stack[yy_start_stack_ptr]); |
| } |
| #endif |
| |
| |
| #ifndef YY_NO_TOP_STATE |
| static int yy_top_state() |
| { |
| return yy_start_stack[yy_start_stack_ptr - 1]; |
| } |
| #endif |
| |
| #ifndef YY_EXIT_FAILURE |
| #define YY_EXIT_FAILURE 2 |
| #endif |
| |
| #ifdef YY_USE_PROTOS |
| static void yy_fatal_error( yyconst char msg[] ) |
| #else |
| static void yy_fatal_error( msg ) |
| char msg[]; |
| #endif |
| { |
| (void) fprintf( stderr, "%s\n", msg ); |
| exit( YY_EXIT_FAILURE ); |
| } |
| |
| |
| |
| /* Redefine yyless() so it works in section 3 code. */ |
| |
| #undef yyless |
| #define yyless(n) \ |
| do \ |
| { \ |
| /* Undo effects of setting up yytext. */ \ |
| yytext[yyleng] = yy_hold_char; \ |
| yy_c_buf_p = yytext + n; \ |
| yy_hold_char = *yy_c_buf_p; \ |
| *yy_c_buf_p = '\0'; \ |
| yyleng = n; \ |
| } \ |
| while ( 0 ) |
| |
| |
| /* Internal utility routines. */ |
| |
| #ifndef yytext_ptr |
| #ifdef YY_USE_PROTOS |
| static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) |
| #else |
| static void yy_flex_strncpy( s1, s2, n ) |
| char *s1; |
| yyconst char *s2; |
| int n; |
| #endif |
| { |
| register int i; |
| for ( i = 0; i < n; ++i ) |
| s1[i] = s2[i]; |
| } |
| #endif |
| |
| #ifdef YY_NEED_STRLEN |
| #ifdef YY_USE_PROTOS |
| static int yy_flex_strlen( yyconst char *s ) |
| #else |
| static int yy_flex_strlen( s ) |
| yyconst char *s; |
| #endif |
| { |
| register int n; |
| for ( n = 0; s[n]; ++n ) |
| ; |
| |
| return n; |
| } |
| #endif |
| |
| |
| #ifdef YY_USE_PROTOS |
| static void *yy_flex_alloc( yy_size_t size ) |
| #else |
| static void *yy_flex_alloc( size ) |
| yy_size_t size; |
| #endif |
| { |
| return (void *) malloc( size ); |
| } |
| |
| #ifdef YY_USE_PROTOS |
| static void *yy_flex_realloc( void *ptr, yy_size_t size ) |
| #else |
| static void *yy_flex_realloc( ptr, size ) |
| void *ptr; |
| yy_size_t size; |
| #endif |
| { |
| /* The cast to (char *) in the following accommodates both |
| * implementations that use char* generic pointers, and those |
| * that use void* generic pointers. It works with the latter |
| * because both ANSI C and C++ allow castless assignment from |
| * any pointer type to void*, and deal with argument conversions |
| * as though doing an assignment. |
| */ |
| return (void *) realloc( (char *) ptr, size ); |
| } |
| |
| #ifdef YY_USE_PROTOS |
| static void yy_flex_free( void *ptr ) |
| #else |
| static void yy_flex_free( ptr ) |
| void *ptr; |
| #endif |
| { |
| free( ptr ); |
| } |
| |
| #if YY_MAIN |
| int main() |
| { |
| yylex(); |
| return 0; |
| } |
| #endif |
| #line 431 "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, name) |
| FILE *file; |
| const char *name; |
| { |
| 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] = 1; |
| include_stack[include_stack_ptr] = YY_CURRENT_BUFFER; |
| |
| include_stack_ptr++; |
| yyin = file; |
| yy_switch_to_buffer(yy_create_buffer(yyin, YY_BUF_SIZE)); |
| BEGIN (SCRIPT); |
| } |
| |
| /* Return a newly created flex input buffer containing STRING, |
| which is SIZE bytes long. */ |
| |
| static YY_BUFFER_STATE |
| yy_create_string_buffer (string, size) |
| CONST char *string; |
| size_t size; |
| { |
| YY_BUFFER_STATE b; |
| |
| /* Calls to m-alloc get turned by sed into xm-alloc. */ |
| b = (YY_BUFFER_STATE) malloc (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 = (char *) malloc ((unsigned) (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]; |
| |
| /* 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 (string) |
| CONST char *string; |
| { |
| 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] = "redirect"; |
| lineno_stack[include_stack_ptr] = 0; |
| include_stack[include_stack_ptr] = YY_CURRENT_BUFFER; |
| include_stack_ptr++; |
| tmp = yy_create_string_buffer (string, strlen (string)); |
| yy_switch_to_buffer (tmp); |
| BEGIN (SCRIPT); |
| } |
| |
| /* 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 () |
| { |
| *(state_stack_p)++ = yy_start; |
| BEGIN (SCRIPT); |
| } |
| |
| void |
| ldlex_mri_script () |
| { |
| *(state_stack_p)++ = yy_start; |
| BEGIN (MRI); |
| } |
| |
| void |
| ldlex_version_script () |
| { |
| *(state_stack_p)++ = yy_start; |
| BEGIN (VERS_START); |
| } |
| |
| void |
| ldlex_version_file () |
| { |
| *(state_stack_p)++ = yy_start; |
| BEGIN (VERS_SCRIPT); |
| } |
| |
| void |
| ldlex_defsym () |
| { |
| *(state_stack_p)++ = yy_start; |
| BEGIN (DEFSYMEXP); |
| } |
| |
| void |
| ldlex_expression () |
| { |
| *(state_stack_p)++ = yy_start; |
| BEGIN (EXPRESSION); |
| } |
| |
| void |
| ldlex_both () |
| { |
| *(state_stack_p)++ = yy_start; |
| BEGIN (BOTH); |
| } |
| |
| void |
| ldlex_popstate () |
| { |
| yy_start = *(--state_stack_p); |
| } |
| |
| |
| /* Place up to MAX_SIZE characters in BUF and return in *RESULT |
| either the number of characters read, or 0 to indicate EOF. */ |
| |
| static void |
| yy_input (buf, result, max_size) |
| char *buf; |
| int *result; |
| int max_size; |
| { |
| *result = 0; |
| if (yy_current_buffer->yy_input_file) |
| { |
| if (yyin) |
| { |
| *result = read (fileno (yyin), (char *) buf, max_size); |
| if (*result < 0) |
| einfo ("%F%P: read in flex scanner failed\n"); |
| } |
| } |
| } |
| |
| /* Eat the rest of a C-style comment. */ |
| |
| static void |
| comment () |
| { |
| int c; |
| |
| while (1) |
| { |
| c = input(); |
| while (c != '*' && c != EOF) |
| { |
| 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 == EOF) |
| { |
| 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 (where, what) |
| char *where, *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", ldfile_input_filename); |
| } |
| |
| if (! isprint ((unsigned char) *what)) |
| { |
| sprintf (buf, "\\%03o", (unsigned int) *what); |
| what = buf; |
| } |
| |
| einfo ("%P:%S: ignoring invalid character `%s'%s\n", what, where); |
| } |