| |
| #line 3 "parser_yang_lex.c" |
| |
| #define YY_INT_ALIGNED short int |
| |
| /* A lexical scanner generated by flex */ |
| |
| #define FLEX_SCANNER |
| #define YY_FLEX_MAJOR_VERSION 2 |
| #define YY_FLEX_MINOR_VERSION 6 |
| #define YY_FLEX_SUBMINOR_VERSION 0 |
| #if YY_FLEX_SUBMINOR_VERSION > 0 |
| #define FLEX_BETA |
| #endif |
| |
| /* First, we deal with platform-specific or compiler-specific issues. */ |
| |
| /* begin standard C headers. */ |
| #include <stdio.h> |
| #include <string.h> |
| #include <errno.h> |
| #include <stdlib.h> |
| |
| /* end standard C headers. */ |
| |
| /* flex integer type definitions */ |
| |
| #ifndef FLEXINT_H |
| #define FLEXINT_H |
| |
| /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */ |
| |
| #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
| |
| /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, |
| * if you want the limit (max/min) macros for int types. |
| */ |
| #ifndef __STDC_LIMIT_MACROS |
| #define __STDC_LIMIT_MACROS 1 |
| #endif |
| |
| #include <inttypes.h> |
| typedef int8_t flex_int8_t; |
| typedef uint8_t flex_uint8_t; |
| typedef int16_t flex_int16_t; |
| typedef uint16_t flex_uint16_t; |
| typedef int32_t flex_int32_t; |
| typedef uint32_t flex_uint32_t; |
| #else |
| typedef signed char flex_int8_t; |
| typedef short int flex_int16_t; |
| typedef int flex_int32_t; |
| typedef unsigned char flex_uint8_t; |
| typedef unsigned short int flex_uint16_t; |
| typedef unsigned int flex_uint32_t; |
| |
| /* Limits of integral types. */ |
| #ifndef INT8_MIN |
| #define INT8_MIN (-128) |
| #endif |
| #ifndef INT16_MIN |
| #define INT16_MIN (-32767-1) |
| #endif |
| #ifndef INT32_MIN |
| #define INT32_MIN (-2147483647-1) |
| #endif |
| #ifndef INT8_MAX |
| #define INT8_MAX (127) |
| #endif |
| #ifndef INT16_MAX |
| #define INT16_MAX (32767) |
| #endif |
| #ifndef INT32_MAX |
| #define INT32_MAX (2147483647) |
| #endif |
| #ifndef UINT8_MAX |
| #define UINT8_MAX (255U) |
| #endif |
| #ifndef UINT16_MAX |
| #define UINT16_MAX (65535U) |
| #endif |
| #ifndef UINT32_MAX |
| #define UINT32_MAX (4294967295U) |
| #endif |
| |
| #endif /* ! C99 */ |
| |
| #endif /* ! FLEXINT_H */ |
| |
| #ifdef __cplusplus |
| |
| /* The "const" storage-class-modifier is valid. */ |
| #define YY_USE_CONST |
| |
| #else /* ! __cplusplus */ |
| |
| /* C99 requires __STDC__ to be defined as 1. */ |
| #if defined (__STDC__) |
| |
| #define YY_USE_CONST |
| |
| #endif /* defined (__STDC__) */ |
| #endif /* ! __cplusplus */ |
| |
| #ifdef YY_USE_CONST |
| #define yyconst const |
| #else |
| #define yyconst |
| #endif |
| |
| /* Returned upon end-of-file. */ |
| #define YY_NULL 0 |
| |
| /* Promotes a possibly negative, possibly signed char to an unsigned |
| * integer for use as an array index. If the signed char is negative, |
| * we want to instead treat it as an 8-bit unsigned char, hence the |
| * double cast. |
| */ |
| #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
| |
| /* An opaque pointer. */ |
| #ifndef YY_TYPEDEF_YY_SCANNER_T |
| #define YY_TYPEDEF_YY_SCANNER_T |
| typedef void* yyscan_t; |
| #endif |
| |
| /* For convenience, these vars (plus the bison vars far below) |
| are macros in the reentrant scanner. */ |
| #define yyin yyg->yyin_r |
| #define yyout yyg->yyout_r |
| #define yyextra yyg->yyextra_r |
| #define yyleng yyg->yyleng_r |
| #define yytext yyg->yytext_r |
| #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) |
| #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) |
| #define yy_flex_debug yyg->yy_flex_debug_r |
| |
| /* 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 yyg->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 ((yyg->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 ,yyscanner ) |
| |
| #define YY_END_OF_BUFFER_CHAR 0 |
| |
| /* Size of default input buffer. */ |
| #ifndef YY_BUF_SIZE |
| #ifdef __ia64__ |
| /* On IA-64, the buffer size is 16k, not 8k. |
| * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. |
| * Ditto for the __ia64__ case accordingly. |
| */ |
| #define YY_BUF_SIZE 32768 |
| #else |
| #define YY_BUF_SIZE 16384 |
| #endif /* __ia64__ */ |
| #endif |
| |
| /* The state buf must be large enough to hold one state per character in the main buffer. |
| */ |
| #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
| |
| #ifndef YY_TYPEDEF_YY_BUFFER_STATE |
| #define YY_TYPEDEF_YY_BUFFER_STATE |
| typedef struct yy_buffer_state *YY_BUFFER_STATE; |
| #endif |
| |
| #ifndef YY_TYPEDEF_YY_SIZE_T |
| #define YY_TYPEDEF_YY_SIZE_T |
| typedef size_t yy_size_t; |
| #endif |
| |
| #define EOB_ACT_CONTINUE_SCAN 0 |
| #define EOB_ACT_END_OF_FILE 1 |
| #define EOB_ACT_LAST_MATCH 2 |
| |
| #define YY_LESS_LINENO(n) |
| #define YY_LINENO_REWIND_TO(ptr) |
| |
| /* Return all but the first "n" matched characters back to the input stream. */ |
| #define yyless(n) \ |
| do \ |
| { \ |
| /* Undo effects of setting up yytext. */ \ |
| int yyless_macro_arg = (n); \ |
| YY_LESS_LINENO(yyless_macro_arg);\ |
| *yy_cp = yyg->yy_hold_char; \ |
| YY_RESTORE_YY_MORE_OFFSET \ |
| yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ |
| YY_DO_BEFORE_ACTION; /* set up yytext again */ \ |
| } \ |
| while ( 0 ) |
| |
| #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) |
| |
| #ifndef YY_STRUCT_YY_BUFFER_STATE |
| #define YY_STRUCT_YY_BUFFER_STATE |
| struct yy_buffer_state |
| { |
| FILE *yy_input_file; |
| |
| char *yy_ch_buf; /* input buffer */ |
| char *yy_buf_pos; /* current position in input buffer */ |
| |
| /* Size of input buffer in bytes, not including room for EOB |
| * characters. |
| */ |
| yy_size_t yy_buf_size; |
| |
| /* Number of characters read into yy_ch_buf, not including EOB |
| * characters. |
| */ |
| yy_size_t yy_n_chars; |
| |
| /* Whether we "own" the buffer - i.e., we know we created it, |
| * and can realloc() it to grow it, and should free() it to |
| * delete it. |
| */ |
| int yy_is_our_buffer; |
| |
| /* Whether this is an "interactive" input source; if so, and |
| * if we're using stdio for input, then we want to use getc() |
| * instead of fread(), to make sure we stop fetching input after |
| * each newline. |
| */ |
| int yy_is_interactive; |
| |
| /* Whether we're considered to be at the beginning of a line. |
| * If so, '^' rules will be active on the next match, otherwise |
| * not. |
| */ |
| int yy_at_bol; |
| |
| int yy_bs_lineno; /**< The line count. */ |
| int yy_bs_column; /**< The column count. */ |
| |
| /* Whether to try to fill the input buffer when we reach the |
| * end of it. |
| */ |
| int yy_fill_buffer; |
| |
| int yy_buffer_status; |
| |
| #define YY_BUFFER_NEW 0 |
| #define YY_BUFFER_NORMAL 1 |
| /* When an EOF's been seen but there's still some text to process |
| * then we mark the buffer as YY_EOF_PENDING, to indicate that we |
| * shouldn't try reading from the input source any more. We might |
| * still have a bunch of tokens to match, though, because of |
| * possible backing-up. |
| * |
| * When we actually see the EOF, we change the status to "new" |
| * (via yyrestart()), so that the user can continue scanning by |
| * just pointing yyin at a new input file. |
| */ |
| #define YY_BUFFER_EOF_PENDING 2 |
| |
| }; |
| #endif /* !YY_STRUCT_YY_BUFFER_STATE */ |
| |
| /* We provide macros for accessing buffer states in case in the |
| * future we want to put the buffer states in a more general |
| * "scanner state". |
| * |
| * Returns the top of the stack, or NULL. |
| */ |
| #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \ |
| ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \ |
| : NULL) |
| |
| /* Same as previous macro, but useful when we know that the buffer stack is not |
| * NULL or when we need an lvalue. For internal use only. |
| */ |
| #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] |
| |
| void yyrestart (FILE *input_file ,yyscan_t yyscanner ); |
| void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); |
| YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner ); |
| void yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); |
| void yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner ); |
| void yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); |
| void yypop_buffer_state (yyscan_t yyscanner ); |
| |
| static void yyensure_buffer_stack (yyscan_t yyscanner ); |
| static void yy_load_buffer_state (yyscan_t yyscanner ); |
| static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ,yyscan_t yyscanner ); |
| |
| #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner) |
| |
| YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner ); |
| YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner ); |
| YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner ); |
| |
| void *yyalloc (yy_size_t ,yyscan_t yyscanner ); |
| void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner ); |
| void yyfree (void * ,yyscan_t yyscanner ); |
| |
| #define yy_new_buffer yy_create_buffer |
| |
| #define yy_set_interactive(is_interactive) \ |
| { \ |
| if ( ! YY_CURRENT_BUFFER ){ \ |
| yyensure_buffer_stack (yyscanner); \ |
| YY_CURRENT_BUFFER_LVALUE = \ |
| yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ |
| } \ |
| YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ |
| } |
| |
| #define yy_set_bol(at_bol) \ |
| { \ |
| if ( ! YY_CURRENT_BUFFER ){\ |
| yyensure_buffer_stack (yyscanner); \ |
| YY_CURRENT_BUFFER_LVALUE = \ |
| yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ |
| } \ |
| YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ |
| } |
| |
| #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
| |
| /* Begin user sect3 */ |
| |
| #define yywrap(yyscanner) (/*CONSTCOND*/1) |
| #define YY_SKIP_YYWRAP |
| |
| typedef unsigned char YY_CHAR; |
| |
| typedef int yy_state_type; |
| |
| #define yytext_ptr yytext_r |
| |
| static yy_state_type yy_get_previous_state (yyscan_t yyscanner ); |
| static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner); |
| static int yy_get_next_buffer (yyscan_t yyscanner ); |
| #if defined(__GNUC__) && __GNUC__ >= 3 |
| __attribute__((__noreturn__)) |
| #endif |
| static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner ); |
| |
| /* Done after the current pattern has been matched and before the |
| * corresponding action - sets up yytext. |
| */ |
| #define YY_DO_BEFORE_ACTION \ |
| yyg->yytext_ptr = yy_bp; \ |
| yyleng = (size_t) (yy_cp - yy_bp); \ |
| yyg->yy_hold_char = *yy_cp; \ |
| *yy_cp = '\0'; \ |
| yyg->yy_c_buf_p = yy_cp; |
| |
| #define YY_NUM_RULES 130 |
| #define YY_END_OF_BUFFER 131 |
| /* This struct is not used in this scanner, |
| but its presence is necessary. */ |
| struct yy_trans_info |
| { |
| flex_int32_t yy_verify; |
| flex_int32_t yy_nxt; |
| }; |
| static yyconst flex_int16_t yy_accept[591] = |
| { 0, |
| 0, 0, 0, 0, 0, 0, 0, 0, 96, 96, |
| 131, 129, 128, 126, 129, 125, 94, 129, 93, 125, |
| 125, 100, 102, 92, 123, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 123, 90, 91, 2, 3, |
| 2, 6, 7, 6, 130, 113, 111, 130, 116, 130, |
| 107, 108, 109, 130, 103, 114, 106, 120, 104, 105, |
| 120, 115, 98, 95, 96, 98, 96, 97, 96, 128, |
| 127, 125, 0, 0, 99, 101, 1, 5, 125, 102, |
| 123, 125, 123, 123, 123, 123, 123, 123, 123, 123, |
| |
| 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 4, 8, 113, 112, 0, |
| 0, 117, 110, 119, 118, 120, 0, 120, 96, 0, |
| 96, 95, 101, 125, 102, 124, 123, 74, 123, 123, |
| 123, 123, 123, 14, 123, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 36, 123, 123, 123, 123, |
| |
| 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 123, 123, 123, 62, 123, |
| 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, |
| 123, 121, 120, 125, 102, 124, 123, 123, 123, 123, |
| 123, 12, 123, 15, 123, 123, 123, 123, 123, 123, |
| 123, 123, 123, 22, 123, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 37, 123, 40, 123, 123, |
| 123, 123, 123, 45, 123, 123, 123, 123, 123, 123, |
| 123, 51, 123, 123, 123, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 84, 65, 123, 123, 123, |
| |
| 86, 69, 123, 71, 123, 123, 121, 120, 125, 102, |
| 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 123, 123, 79, 123, 123, |
| 123, 123, 123, 123, 123, 35, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 56, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 123, 68, 70, 123, 123, |
| 120, 125, 87, 123, 9, 123, 123, 123, 16, 17, |
| 123, 123, 123, 123, 77, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 33, 123, 123, 39, 123, |
| |
| 123, 123, 123, 44, 123, 123, 123, 123, 123, 123, |
| 50, 123, 123, 54, 123, 123, 58, 123, 123, 123, |
| 63, 123, 83, 123, 123, 67, 123, 123, 120, 125, |
| 89, 123, 11, 123, 18, 123, 75, 20, 123, 123, |
| 27, 123, 123, 123, 123, 28, 123, 123, 123, 123, |
| 34, 123, 123, 123, 123, 123, 123, 123, 123, 123, |
| 123, 123, 52, 123, 123, 123, 82, 123, 123, 123, |
| 66, 123, 123, 123, 76, 125, 10, 123, 123, 123, |
| 123, 123, 123, 123, 123, 123, 30, 31, 123, 123, |
| 123, 123, 123, 88, 123, 123, 123, 81, 123, 123, |
| |
| 53, 55, 123, 123, 60, 123, 123, 123, 123, 125, |
| 123, 19, 123, 123, 26, 123, 123, 25, 123, 123, |
| 38, 41, 123, 123, 46, 123, 123, 123, 123, 57, |
| 123, 123, 64, 85, 123, 123, 122, 13, 78, 123, |
| 123, 123, 123, 32, 123, 123, 123, 123, 48, 123, |
| 123, 123, 123, 123, 21, 123, 123, 123, 123, 123, |
| 123, 123, 123, 123, 123, 123, 73, 123, 123, 123, |
| 42, 43, 123, 47, 49, 123, 123, 72, 23, 24, |
| 123, 80, 123, 61, 123, 123, 29, 123, 59, 0 |
| } ; |
| |
| static yyconst YY_CHAR yy_ec[256] = |
| { 0, |
| 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, |
| 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 5, 6, 7, 6, 6, 6, 6, 8, 9, |
| 10, 11, 12, 6, 13, 14, 15, 16, 17, 17, |
| 17, 17, 17, 17, 17, 17, 17, 18, 19, 6, |
| 20, 6, 6, 6, 21, 21, 21, 21, 21, 21, |
| 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, |
| 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, |
| 22, 23, 24, 6, 21, 6, 25, 26, 27, 28, |
| |
| 29, 30, 31, 32, 33, 21, 34, 35, 36, 37, |
| 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, |
| 48, 49, 50, 6, 51, 6, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 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 YY_CHAR yy_meta[52] = |
| { 0, |
| 1, 2, 3, 3, 3, 4, 2, 3, 4, 4, |
| 4, 4, 5, 5, 4, 5, 5, 6, 3, 4, |
| 7, 4, 3, 4, 7, 7, 7, 7, 7, 7, |
| 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, |
| 7, 7, 7, 7, 7, 7, 7, 7, 7, 3, |
| 3 |
| } ; |
| |
| static yyconst flex_uint16_t yy_base[604] = |
| { 0, |
| 0, 0, 49, 50, 51, 53, 61, 0, 112, 119, |
| 489, 2278, 122, 2278, 466, 0, 2278, 121, 0, 448, |
| 117, 42, 101, 2278, 137, 156, 176, 112, 105, 144, |
| 157, 177, 186, 163, 196, 199, 201, 215, 213, 224, |
| 233, 239, 236, 202, 242, 257, 2278, 2278, 2278, 2278, |
| 445, 2278, 2278, 428, 2278, 131, 2278, 425, 2278, 150, |
| 2278, 2278, 2278, 385, 149, 2278, 2278, 351, 2278, 2278, |
| 135, 2278, 2278, 2278, 147, 358, 171, 2278, 281, 231, |
| 2278, 0, 191, 341, 2278, 123, 0, 0, 191, 267, |
| 264, 319, 266, 273, 267, 283, 288, 278, 313, 320, |
| |
| 322, 327, 325, 341, 358, 342, 343, 352, 369, 293, |
| 376, 381, 382, 383, 388, 393, 400, 405, 410, 412, |
| 421, 428, 422, 437, 438, 443, 449, 450, 459, 461, |
| 411, 462, 466, 485, 484, 490, 495, 496, 497, 506, |
| 509, 516, 519, 521, 528, 2278, 2278, 245, 2278, 319, |
| 307, 2278, 2278, 2278, 2278, 237, 0, 171, 256, 249, |
| 552, 336, 362, 373, 407, 570, 535, 537, 544, 564, |
| 538, 570, 571, 573, 582, 585, 587, 594, 596, 599, |
| 608, 609, 614, 615, 621, 627, 628, 633, 638, 639, |
| 644, 649, 655, 661, 662, 672, 674, 683, 684, 690, |
| |
| 697, 707, 700, 706, 709, 728, 718, 721, 730, 733, |
| 735, 740, 746, 752, 757, 762, 767, 769, 774, 776, |
| 779, 781, 788, 793, 798, 800, 805, 812, 824, 819, |
| 826, 0, 339, 174, 570, 856, 844, 850, 856, 861, |
| 862, 871, 873, 874, 884, 883, 889, 890, 895, 900, |
| 901, 907, 902, 912, 913, 922, 924, 927, 933, 936, |
| 939, 945, 948, 954, 959, 972, 961, 966, 978, 981, |
| 983, 988, 990, 995, 997, 1002, 1004, 1007, 1016, 1018, |
| 1021, 1023, 1033, 1034, 1035, 1045, 1046, 1047, 1056, 1057, |
| 1058, 1067, 1069, 1070, 1072, 1081, 1087, 1092, 1093, 1098, |
| |
| 1099, 1105, 1110, 1116, 1129, 1119, 0, 276, 481, 847, |
| 1122, 1128, 1131, 1140, 1143, 1150, 1145, 1157, 1160, 1166, |
| 1167, 1172, 1179, 1182, 1184, 1185, 1191, 1196, 1197, 1203, |
| 1206, 1212, 1215, 1217, 1224, 1218, 1229, 1234, 1236, 1243, |
| 1248, 1255, 1257, 1260, 1262, 1267, 1269, 1272, 1278, 1279, |
| 1284, 1285, 1290, 1291, 1301, 1302, 1307, 1314, 1313, 1319, |
| 1320, 1330, 1331, 1332, 1341, 1343, 1344, 1346, 1355, 1356, |
| 355, 1239, 1357, 1368, 1369, 1370, 1379, 1381, 1380, 1386, |
| 1391, 1392, 1402, 1403, 1408, 1414, 1415, 1424, 1426, 1427, |
| 1436, 1438, 1441, 1439, 1448, 1450, 1455, 1460, 1461, 1467, |
| |
| 1470, 1473, 1479, 1482, 1484, 1485, 1494, 1497, 1500, 1506, |
| 1509, 1512, 1518, 1519, 1532, 1521, 1535, 1537, 1538, 1544, |
| 1547, 1550, 1556, 1562, 1568, 1573, 1574, 1575, 227, 159, |
| 1580, 1585, 1586, 1604, 1587, 1597, 1598, 1607, 1609, 1610, |
| 1616, 1621, 1622, 1631, 1633, 1640, 1643, 1650, 1645, 1657, |
| 1659, 1662, 1669, 1678, 1680, 1690, 1693, 1696, 1699, 1705, |
| 1714, 1708, 1711, 1717, 1720, 1730, 1723, 1745, 1735, 1736, |
| 1748, 1750, 1751, 1757, 145, 1254, 1762, 1769, 1772, 1771, |
| 1774, 1781, 1786, 1791, 1797, 1810, 1803, 1812, 1813, 1815, |
| 1822, 1824, 1827, 1834, 1836, 1839, 1846, 1849, 1855, 1858, |
| |
| 1861, 1867, 1870, 1873, 1880, 1879, 1882, 1889, 1891, 1258, |
| 1892, 1894, 1904, 1909, 1910, 1915, 1916, 1921, 1927, 1928, |
| 1934, 1937, 1939, 1940, 1946, 1949, 1955, 1956, 1958, 1967, |
| 1968, 1970, 1977, 1982, 1983, 1984, 0, 1989, 1994, 1995, |
| 2000, 2001, 2006, 2011, 2012, 2013, 2024, 2025, 2035, 2036, |
| 2037, 2047, 2048, 2058, 2059, 2060, 2065, 2074, 2075, 2077, |
| 2087, 2089, 2096, 2098, 2099, 2110, 2105, 2115, 2120, 2125, |
| 2126, 2127, 2136, 2137, 2138, 2143, 2148, 2149, 2150, 2155, |
| 2160, 2161, 2162, 2167, 2172, 2177, 2182, 2183, 2184, 2278, |
| 2217, 2224, 2231, 2235, 2241, 2245, 2251, 2254, 2259, 2263, |
| |
| 124, 2267, 2270 |
| } ; |
| |
| static yyconst flex_int16_t yy_def[604] = |
| { 0, |
| 590, 1, 591, 591, 592, 592, 590, 7, 593, 593, |
| 590, 590, 590, 590, 590, 594, 590, 595, 594, 594, |
| 594, 594, 594, 590, 596, 596, 26, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 590, 590, 590, 590, |
| 590, 590, 590, 590, 590, 590, 590, 590, 590, 597, |
| 590, 590, 590, 590, 590, 590, 590, 598, 590, 590, |
| 598, 590, 590, 590, 599, 590, 599, 590, 599, 590, |
| 590, 594, 595, 590, 590, 594, 594, 594, 594, 594, |
| 27, 600, 27, 27, 27, 27, 27, 27, 27, 27, |
| |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 105, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 590, 590, 590, 590, 597, |
| 590, 590, 590, 590, 590, 598, 601, 598, 599, 590, |
| 599, 599, 594, 594, 594, 602, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 603, 598, 594, 594, 602, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| |
| 27, 27, 27, 27, 27, 27, 603, 598, 594, 594, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 598, 594, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 598, 594, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 598, 594, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 594, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 594, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, |
| 27, 27, 27, 27, 27, 27, 27, 27, 27, 0, |
| 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, |
| |
| 590, 590, 590 |
| } ; |
| |
| static yyconst flex_uint16_t yy_nxt[2330] = |
| { 0, |
| 12, 13, 14, 15, 13, 16, 17, 18, 16, 16, |
| 16, 19, 20, 16, 21, 22, 23, 16, 24, 16, |
| 25, 16, 12, 16, 26, 27, 28, 29, 30, 31, |
| 32, 25, 33, 34, 35, 36, 37, 38, 39, 25, |
| 40, 41, 42, 43, 44, 45, 25, 46, 25, 47, |
| 48, 50, 50, 53, 54, 53, 54, 89, 89, 51, |
| 51, 55, 56, 57, 58, 56, 55, 59, 60, 61, |
| 62, 55, 63, 55, 64, 65, 55, 55, 55, 66, |
| 67, 68, 69, 55, 70, 68, 68, 71, 68, 68, |
| 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, |
| |
| 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, |
| 72, 55, 73, 74, 75, 76, 90, 90, 78, 73, |
| 74, 75, 76, 80, 84, 78, 80, 87, 85, 91, |
| 232, 88, 148, 105, 79, 148, 101, 91, 163, 163, |
| 91, 79, 82, 102, 91, 82, 82, 82, 82, 103, |
| 160, 82, 157, 151, 92, 104, 82, 152, 82, 154, |
| 82, 82, 157, 155, 82, 82, 82, 82, 91, 161, |
| 82, 476, 91, 92, 160, 82, 91, 82, 158, 82, |
| 106, 109, 93, 94, 107, 110, 309, 91, 157, 91, |
| 108, 117, 95, 161, 84, 91, 96, 111, 85, 97, |
| |
| 98, 91, 91, 91, 99, 91, 164, 164, 100, 91, |
| 91, 233, 91, 113, 91, 114, 91, 112, 91, 91, |
| 91, 115, 116, 120, 118, 124, 142, 91, 119, 91, |
| 91, 121, 80, 91, 91, 80, 122, 129, 125, 91, |
| 126, 91, 123, 91, 157, 91, 148, 91, 132, 148, |
| 130, 159, 133, 131, 157, 127, 91, 91, 128, 160, |
| 91, 91, 134, 91, 91, 91, 91, 91, 91, 475, |
| 91, 91, 140, 143, 91, 135, 136, 141, 161, 138, |
| 137, 144, 165, 165, 160, 91, 139, 159, 91, 145, |
| 91, 91, 91, 157, 91, 91, 91, 91, 91, 91, |
| |
| 168, 91, 91, 161, 371, 91, 91, 91, 167, 150, |
| 91, 91, 91, 170, 169, 91, 91, 188, 171, 172, |
| 91, 91, 151, 162, 82, 91, 152, 82, 82, 82, |
| 82, 82, 82, 82, 82, 82, 82, 91, 82, 160, |
| 82, 91, 82, 83, 91, 91, 91, 173, 91, 91, |
| 91, 91, 91, 91, 91, 91, 157, 91, 161, 91, |
| 159, 177, 174, 175, 176, 91, 91, 91, 157, 91, |
| 91, 91, 157, 91, 91, 91, 91, 163, 163, 308, |
| 91, 178, 91, 185, 91, 184, 91, 179, 234, 234, |
| 91, 429, 180, 91, 186, 192, 181, 91, 153, 182, |
| |
| 189, 91, 183, 187, 91, 91, 91, 91, 91, 91, |
| 191, 91, 91, 91, 91, 91, 91, 91, 190, 194, |
| 91, 91, 235, 235, 91, 91, 193, 149, 91, 197, |
| 147, 195, 91, 91, 91, 91, 91, 91, 91, 213, |
| 91, 198, 91, 91, 91, 91, 91, 196, 200, 91, |
| 91, 199, 91, 91, 91, 203, 91, 202, 201, 146, |
| 91, 91, 91, 204, 86, 91, 91, 91, 81, 91, |
| 91, 91, 205, 91, 91, 91, 208, 91, 91, 209, |
| 206, 91, 91, 91, 207, 91, 91, 91, 590, 91, |
| 91, 91, 210, 91, 91, 215, 372, 372, 214, 590, |
| |
| 91, 211, 212, 590, 216, 217, 590, 91, 220, 91, |
| 218, 219, 91, 91, 91, 221, 91, 91, 91, 91, |
| 91, 91, 91, 91, 91, 91, 590, 91, 91, 91, |
| 91, 225, 590, 91, 91, 224, 222, 227, 226, 223, |
| 91, 91, 590, 91, 91, 91, 590, 229, 91, 91, |
| 228, 91, 91, 91, 590, 160, 91, 230, 159, 91, |
| 91, 91, 91, 91, 231, 91, 91, 237, 91, 91, |
| 91, 238, 91, 241, 161, 82, 91, 590, 82, 82, |
| 82, 82, 309, 590, 82, 310, 310, 82, 91, 82, |
| 239, 82, 91, 82, 91, 91, 91, 91, 242, 91, |
| |
| 590, 91, 91, 91, 590, 91, 91, 240, 243, 91, |
| 244, 91, 590, 91, 91, 91, 246, 245, 91, 91, |
| 249, 590, 91, 91, 91, 590, 91, 250, 91, 247, |
| 590, 91, 91, 91, 248, 252, 91, 91, 91, 91, |
| 91, 91, 91, 91, 590, 91, 253, 91, 251, 91, |
| 254, 91, 91, 91, 590, 256, 91, 91, 255, 91, |
| 91, 91, 91, 91, 259, 91, 91, 91, 91, 257, |
| 91, 91, 91, 91, 590, 258, 91, 91, 262, 91, |
| 261, 91, 260, 91, 590, 91, 91, 91, 590, 91, |
| 91, 590, 263, 91, 91, 264, 91, 590, 91, 590, |
| |
| 91, 590, 91, 266, 91, 265, 91, 91, 91, 270, |
| 590, 91, 91, 267, 91, 91, 91, 269, 91, 271, |
| 590, 91, 91, 590, 91, 91, 268, 590, 91, 91, |
| 91, 91, 272, 91, 91, 91, 590, 275, 91, 91, |
| 276, 91, 91, 273, 590, 91, 91, 590, 274, 279, |
| 91, 590, 91, 91, 280, 278, 91, 91, 91, 91, |
| 277, 91, 91, 91, 91, 91, 282, 91, 91, 590, |
| 91, 281, 284, 590, 91, 285, 91, 283, 91, 590, |
| 91, 91, 287, 590, 91, 288, 91, 286, 590, 289, |
| 91, 91, 590, 91, 91, 91, 290, 91, 91, 91, |
| |
| 91, 292, 91, 91, 91, 91, 91, 91, 91, 91, |
| 291, 91, 91, 91, 294, 590, 296, 91, 293, 590, |
| 91, 297, 91, 295, 91, 91, 91, 590, 91, 91, |
| 91, 590, 91, 91, 590, 298, 91, 91, 306, 299, |
| 91, 590, 300, 91, 91, 301, 302, 91, 91, 305, |
| 91, 91, 91, 590, 91, 303, 91, 590, 91, 590, |
| 304, 82, 310, 310, 82, 82, 82, 82, 91, 590, |
| 82, 590, 91, 82, 312, 82, 91, 82, 91, 82, |
| 91, 311, 91, 590, 91, 91, 91, 590, 91, 91, |
| 315, 313, 590, 91, 91, 91, 314, 91, 91, 91, |
| |
| 590, 91, 91, 91, 590, 91, 91, 91, 91, 316, |
| 317, 91, 91, 319, 91, 318, 91, 91, 320, 91, |
| 590, 91, 91, 91, 91, 91, 325, 91, 91, 323, |
| 91, 91, 91, 91, 91, 91, 91, 91, 321, 91, |
| 91, 91, 322, 590, 91, 91, 91, 324, 91, 590, |
| 91, 91, 328, 326, 91, 91, 91, 91, 327, 91, |
| 91, 91, 590, 91, 91, 91, 590, 91, 91, 91, |
| 329, 91, 91, 333, 331, 330, 91, 91, 91, 590, |
| 91, 332, 91, 91, 337, 91, 91, 91, 334, 91, |
| 91, 91, 590, 91, 91, 590, 91, 335, 91, 590, |
| |
| 91, 336, 339, 338, 91, 91, 91, 91, 590, 340, |
| 91, 341, 91, 91, 91, 91, 91, 342, 91, 91, |
| 91, 91, 91, 91, 343, 91, 91, 91, 91, 91, |
| 91, 91, 91, 346, 91, 91, 91, 590, 344, 91, |
| 91, 347, 91, 345, 91, 91, 91, 91, 91, 91, |
| 91, 91, 590, 91, 349, 91, 348, 91, 91, 91, |
| 590, 351, 91, 91, 350, 91, 91, 353, 590, 91, |
| 91, 91, 590, 354, 355, 91, 352, 91, 91, 91, |
| 91, 358, 91, 590, 91, 91, 91, 356, 91, 91, |
| 359, 91, 357, 91, 91, 91, 91, 91, 91, 91, |
| |
| 363, 91, 91, 590, 91, 91, 590, 362, 360, 91, |
| 590, 91, 361, 91, 364, 91, 91, 91, 590, 91, |
| 91, 91, 91, 91, 91, 91, 91, 91, 590, 91, |
| 91, 91, 590, 91, 91, 365, 366, 91, 368, 367, |
| 91, 369, 91, 91, 91, 590, 91, 370, 91, 590, |
| 91, 91, 91, 91, 91, 91, 91, 91, 373, 91, |
| 91, 91, 590, 91, 91, 375, 590, 91, 376, 91, |
| 374, 91, 91, 379, 91, 91, 590, 91, 91, 377, |
| 378, 91, 91, 590, 91, 91, 381, 380, 91, 91, |
| 91, 91, 382, 590, 91, 91, 91, 389, 91, 91, |
| |
| 385, 384, 383, 91, 91, 386, 91, 91, 91, 91, |
| 91, 91, 91, 91, 387, 91, 91, 91, 590, 91, |
| 91, 91, 590, 91, 91, 91, 388, 91, 91, 91, |
| 91, 91, 390, 590, 91, 392, 91, 391, 393, 395, |
| 91, 91, 91, 91, 394, 91, 91, 91, 91, 91, |
| 91, 397, 91, 91, 430, 430, 91, 91, 91, 396, |
| 91, 91, 91, 398, 91, 399, 91, 91, 91, 510, |
| 510, 91, 91, 537, 537, 91, 91, 401, 400, 91, |
| 91, 91, 402, 91, 91, 404, 91, 403, 91, 91, |
| 91, 91, 91, 91, 91, 91, 91, 408, 405, 407, |
| |
| 409, 91, 91, 91, 91, 406, 91, 91, 91, 91, |
| 410, 91, 91, 91, 91, 91, 91, 413, 91, 91, |
| 590, 411, 91, 91, 412, 91, 91, 415, 590, 91, |
| 416, 91, 590, 91, 91, 417, 414, 91, 91, 91, |
| 418, 91, 91, 91, 91, 91, 91, 91, 91, 590, |
| 590, 420, 91, 419, 91, 91, 91, 422, 91, 91, |
| 424, 421, 91, 91, 91, 91, 423, 91, 91, 91, |
| 91, 426, 91, 91, 91, 91, 91, 425, 91, 91, |
| 91, 91, 590, 91, 91, 91, 590, 91, 91, 91, |
| 428, 590, 431, 91, 91, 590, 91, 91, 91, 427, |
| |
| 91, 91, 91, 91, 91, 91, 432, 91, 91, 91, |
| 91, 91, 91, 91, 91, 91, 91, 590, 91, 91, |
| 91, 433, 434, 91, 91, 590, 91, 91, 436, 590, |
| 91, 91, 91, 435, 91, 91, 91, 590, 439, 91, |
| 91, 590, 91, 91, 437, 438, 91, 91, 91, 590, |
| 443, 91, 441, 440, 91, 91, 442, 590, 91, 445, |
| 91, 444, 91, 91, 446, 91, 91, 91, 91, 91, |
| 91, 91, 91, 91, 91, 447, 91, 448, 91, 91, |
| 91, 449, 91, 451, 91, 91, 590, 91, 91, 91, |
| 450, 91, 452, 91, 91, 91, 590, 91, 454, 91, |
| |
| 590, 455, 91, 91, 453, 91, 91, 456, 457, 91, |
| 91, 91, 91, 91, 91, 590, 91, 91, 91, 590, |
| 459, 91, 91, 458, 91, 91, 91, 461, 91, 91, |
| 91, 590, 91, 91, 91, 590, 91, 91, 91, 460, |
| 91, 91, 91, 91, 91, 91, 91, 91, 463, 91, |
| 91, 91, 590, 91, 462, 464, 91, 466, 465, 91, |
| 91, 91, 91, 91, 91, 467, 468, 91, 91, 91, |
| 91, 91, 91, 590, 91, 91, 91, 590, 91, 91, |
| 91, 469, 91, 590, 91, 590, 91, 590, 91, 590, |
| 91, 471, 91, 470, 91, 472, 91, 91, 91, 91, |
| |
| 91, 91, 473, 474, 91, 91, 91, 91, 91, 91, |
| 91, 91, 91, 91, 91, 91, 478, 91, 91, 91, |
| 590, 91, 91, 590, 590, 479, 91, 477, 91, 91, |
| 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, |
| 91, 91, 91, 590, 91, 91, 91, 590, 91, 91, |
| 91, 480, 481, 91, 91, 91, 590, 91, 482, 484, |
| 483, 91, 590, 91, 91, 91, 590, 91, 91, 91, |
| 485, 91, 91, 91, 91, 91, 590, 91, 91, 486, |
| 487, 91, 91, 91, 590, 91, 91, 91, 590, 91, |
| 91, 91, 488, 91, 91, 590, 590, 91, 590, 590, |
| |
| 489, 91, 91, 490, 91, 590, 91, 590, 91, 491, |
| 91, 590, 91, 492, 91, 493, 590, 91, 91, 495, |
| 91, 91, 91, 497, 91, 91, 499, 91, 91, 91, |
| 494, 91, 500, 498, 496, 91, 91, 91, 91, 91, |
| 91, 91, 91, 91, 91, 91, 91, 91, 502, 91, |
| 590, 91, 91, 501, 91, 91, 503, 504, 91, 91, |
| 91, 590, 91, 91, 91, 590, 590, 91, 91, 91, |
| 506, 505, 91, 91, 91, 91, 91, 91, 507, 91, |
| 91, 91, 91, 91, 590, 91, 91, 590, 590, 91, |
| 91, 508, 509, 91, 91, 91, 91, 91, 91, 513, |
| |
| 91, 91, 91, 91, 91, 91, 514, 590, 590, 91, |
| 91, 511, 512, 91, 91, 91, 590, 515, 91, 91, |
| 590, 91, 519, 91, 516, 91, 590, 91, 590, 91, |
| 590, 91, 517, 518, 91, 91, 91, 91, 91, 91, |
| 91, 91, 91, 91, 91, 91, 91, 91, 91, 590, |
| 91, 91, 523, 520, 91, 524, 91, 521, 91, 91, |
| 91, 590, 91, 91, 525, 590, 91, 91, 91, 522, |
| 91, 91, 590, 91, 91, 590, 526, 91, 91, 91, |
| 528, 91, 91, 91, 590, 91, 91, 91, 527, 91, |
| 91, 91, 532, 91, 91, 91, 590, 91, 530, 91, |
| |
| 529, 91, 91, 91, 91, 531, 91, 533, 91, 534, |
| 91, 91, 91, 91, 91, 91, 91, 91, 91, 536, |
| 91, 91, 91, 91, 91, 590, 91, 541, 91, 538, |
| 535, 539, 91, 91, 91, 590, 91, 91, 91, 91, |
| 91, 91, 91, 91, 91, 91, 540, 91, 91, 91, |
| 590, 91, 91, 91, 543, 91, 544, 542, 91, 91, |
| 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, |
| 91, 91, 91, 91, 91, 545, 546, 91, 91, 91, |
| 91, 91, 91, 91, 91, 590, 91, 548, 91, 547, |
| 550, 91, 91, 590, 91, 91, 91, 552, 91, 91, |
| |
| 91, 91, 91, 549, 551, 91, 91, 91, 91, 91, |
| 91, 91, 91, 91, 91, 553, 91, 91, 91, 91, |
| 554, 91, 91, 91, 91, 557, 91, 91, 91, 91, |
| 91, 555, 91, 91, 91, 91, 91, 91, 558, 91, |
| 91, 91, 556, 91, 91, 91, 590, 590, 91, 91, |
| 590, 590, 91, 91, 559, 560, 91, 91, 590, 91, |
| 91, 91, 562, 91, 91, 91, 561, 91, 91, 91, |
| 590, 565, 91, 563, 590, 91, 91, 590, 564, 91, |
| 91, 590, 91, 91, 568, 566, 91, 91, 91, 91, |
| 91, 91, 91, 91, 590, 569, 590, 91, 91, 91, |
| |
| 567, 91, 91, 91, 570, 91, 91, 91, 590, 91, |
| 590, 91, 590, 91, 590, 573, 571, 91, 572, 91, |
| 91, 91, 91, 91, 91, 574, 91, 91, 91, 91, |
| 91, 91, 575, 91, 91, 590, 590, 91, 91, 91, |
| 576, 577, 91, 91, 91, 579, 578, 91, 580, 91, |
| 91, 91, 91, 91, 91, 91, 590, 581, 91, 91, |
| 91, 91, 91, 582, 91, 91, 91, 583, 91, 91, |
| 91, 91, 91, 91, 91, 91, 584, 91, 91, 91, |
| 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, |
| 91, 91, 91, 91, 91, 91, 91, 590, 586, 91, |
| |
| 91, 91, 585, 588, 91, 91, 91, 91, 91, 91, |
| 91, 589, 91, 587, 91, 91, 91, 49, 49, 49, |
| 49, 49, 49, 49, 52, 52, 52, 52, 52, 52, |
| 52, 77, 77, 77, 77, 77, 77, 77, 82, 82, |
| 82, 82, 83, 83, 83, 83, 83, 83, 91, 91, |
| 91, 91, 150, 150, 150, 150, 150, 150, 156, 156, |
| 156, 159, 159, 159, 159, 159, 166, 166, 166, 166, |
| 236, 236, 236, 236, 307, 590, 307, 11, 590, 590, |
| 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, |
| 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, |
| |
| 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, |
| 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, |
| 590, 590, 590, 590, 590, 590, 590, 590, 590 |
| } ; |
| |
| static yyconst flex_int16_t yy_chk[2330] = |
| { 0, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, |
| 1, 3, 4, 5, 5, 6, 6, 22, 22, 3, |
| 4, 7, 7, 7, 7, 7, 7, 7, 7, 7, |
| 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, |
| 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, |
| 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, |
| |
| 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, |
| 7, 7, 9, 9, 9, 9, 23, 23, 9, 10, |
| 10, 10, 10, 13, 18, 10, 13, 21, 18, 29, |
| 601, 21, 56, 29, 9, 56, 28, 29, 86, 86, |
| 28, 10, 25, 28, 28, 25, 25, 25, 25, 28, |
| 75, 25, 71, 60, 25, 28, 25, 60, 25, 65, |
| 25, 26, 475, 65, 26, 26, 26, 26, 30, 75, |
| 26, 430, 30, 26, 77, 26, 30, 26, 71, 26, |
| 30, 31, 26, 26, 30, 31, 234, 34, 158, 31, |
| 30, 34, 26, 77, 83, 34, 26, 31, 83, 26, |
| |
| 27, 32, 27, 27, 27, 32, 89, 89, 27, 32, |
| 33, 158, 27, 33, 33, 33, 27, 32, 33, 27, |
| 35, 33, 33, 36, 35, 37, 44, 36, 35, 37, |
| 44, 36, 80, 37, 44, 80, 36, 39, 37, 38, |
| 38, 39, 36, 38, 429, 39, 148, 38, 40, 148, |
| 39, 160, 40, 39, 156, 38, 40, 41, 38, 159, |
| 43, 41, 40, 42, 43, 41, 45, 42, 43, 429, |
| 45, 42, 43, 45, 45, 41, 41, 43, 159, 42, |
| 41, 46, 90, 90, 79, 46, 42, 79, 91, 46, |
| 93, 95, 91, 308, 93, 95, 91, 94, 93, 95, |
| |
| 94, 94, 98, 79, 308, 94, 98, 96, 93, 151, |
| 98, 96, 97, 96, 95, 96, 97, 110, 97, 98, |
| 97, 110, 150, 79, 92, 110, 150, 92, 92, 92, |
| 92, 92, 92, 92, 92, 92, 92, 99, 92, 162, |
| 92, 99, 92, 84, 100, 99, 101, 99, 100, 103, |
| 101, 102, 100, 103, 101, 102, 233, 103, 162, 102, |
| 76, 103, 100, 101, 102, 104, 106, 107, 68, 104, |
| 106, 107, 371, 104, 106, 107, 108, 163, 163, 233, |
| 108, 104, 105, 107, 108, 106, 105, 105, 164, 164, |
| 105, 371, 105, 109, 108, 114, 105, 109, 64, 105, |
| |
| 111, 109, 105, 109, 111, 112, 113, 114, 111, 112, |
| 113, 114, 115, 112, 113, 114, 115, 116, 112, 116, |
| 115, 116, 165, 165, 117, 116, 115, 58, 117, 118, |
| 54, 116, 117, 118, 119, 131, 120, 118, 119, 131, |
| 120, 118, 119, 131, 120, 121, 123, 117, 120, 121, |
| 123, 119, 122, 121, 123, 122, 122, 121, 120, 51, |
| 122, 124, 125, 123, 20, 124, 125, 126, 15, 124, |
| 125, 126, 124, 127, 128, 126, 127, 127, 128, 127, |
| 125, 127, 128, 129, 126, 130, 132, 129, 11, 130, |
| 132, 129, 128, 130, 132, 133, 309, 309, 132, 0, |
| |
| 133, 129, 130, 0, 133, 133, 0, 133, 135, 134, |
| 133, 134, 135, 134, 136, 136, 135, 134, 136, 137, |
| 138, 139, 136, 137, 138, 139, 0, 137, 138, 139, |
| 140, 140, 0, 141, 140, 139, 137, 141, 140, 138, |
| 142, 141, 0, 143, 142, 144, 0, 143, 142, 144, |
| 142, 143, 145, 144, 0, 161, 145, 144, 161, 167, |
| 145, 168, 171, 167, 145, 168, 171, 167, 169, 168, |
| 171, 169, 169, 171, 161, 166, 169, 0, 166, 166, |
| 166, 166, 235, 0, 166, 235, 235, 166, 170, 166, |
| 169, 166, 170, 166, 172, 173, 170, 174, 172, 173, |
| |
| 0, 174, 172, 173, 0, 174, 175, 170, 173, 176, |
| 175, 177, 0, 176, 175, 177, 177, 176, 178, 177, |
| 179, 0, 178, 180, 179, 0, 178, 180, 179, 177, |
| 0, 180, 181, 182, 178, 182, 181, 182, 183, 184, |
| 181, 182, 183, 184, 0, 185, 183, 184, 181, 185, |
| 184, 186, 187, 185, 0, 186, 187, 188, 185, 186, |
| 187, 188, 189, 190, 189, 188, 189, 190, 191, 187, |
| 189, 190, 191, 192, 0, 188, 191, 192, 192, 193, |
| 191, 192, 190, 193, 0, 194, 195, 193, 0, 194, |
| 195, 0, 193, 194, 195, 194, 196, 0, 197, 0, |
| |
| 196, 0, 197, 197, 196, 195, 197, 198, 199, 201, |
| 0, 198, 199, 198, 200, 198, 199, 200, 200, 202, |
| 0, 201, 200, 0, 203, 201, 199, 0, 203, 201, |
| 204, 202, 203, 205, 204, 202, 0, 205, 204, 202, |
| 206, 205, 207, 203, 0, 208, 207, 0, 204, 208, |
| 207, 0, 206, 208, 209, 207, 206, 210, 209, 211, |
| 206, 210, 209, 211, 212, 210, 211, 211, 212, 0, |
| 213, 210, 212, 0, 213, 213, 214, 211, 213, 0, |
| 214, 215, 214, 0, 214, 215, 216, 213, 0, 215, |
| 216, 217, 0, 218, 216, 217, 216, 218, 219, 217, |
| |
| 220, 218, 219, 221, 220, 222, 219, 221, 220, 222, |
| 217, 221, 223, 222, 221, 0, 223, 224, 220, 0, |
| 223, 224, 225, 222, 226, 224, 225, 0, 226, 227, |
| 225, 0, 226, 227, 0, 225, 228, 227, 231, 226, |
| 228, 0, 226, 230, 228, 227, 227, 230, 229, 230, |
| 231, 230, 229, 0, 231, 228, 229, 0, 231, 0, |
| 229, 236, 310, 310, 236, 236, 236, 236, 237, 0, |
| 236, 0, 237, 236, 238, 236, 237, 236, 238, 236, |
| 239, 237, 238, 0, 239, 240, 241, 0, 239, 240, |
| 241, 239, 0, 240, 241, 242, 240, 243, 244, 242, |
| |
| 0, 243, 244, 242, 0, 243, 244, 246, 245, 243, |
| 245, 246, 245, 247, 248, 246, 245, 247, 248, 249, |
| 0, 247, 248, 249, 250, 251, 253, 249, 250, 251, |
| 253, 252, 250, 251, 253, 252, 254, 255, 249, 252, |
| 254, 255, 250, 0, 254, 255, 256, 252, 257, 0, |
| 256, 258, 257, 255, 256, 258, 257, 259, 256, 258, |
| 260, 259, 0, 261, 260, 259, 0, 261, 260, 262, |
| 258, 261, 263, 262, 260, 259, 263, 262, 264, 0, |
| 263, 261, 264, 265, 266, 267, 264, 265, 263, 267, |
| 268, 265, 0, 267, 268, 0, 266, 264, 268, 0, |
| |
| 266, 265, 269, 267, 266, 270, 269, 271, 0, 270, |
| 269, 271, 272, 270, 273, 271, 272, 272, 273, 274, |
| 272, 275, 273, 274, 273, 275, 276, 274, 277, 275, |
| 276, 278, 277, 277, 276, 278, 277, 0, 275, 278, |
| 279, 278, 280, 276, 279, 281, 280, 282, 279, 281, |
| 280, 282, 0, 281, 280, 282, 279, 283, 284, 285, |
| 0, 283, 284, 285, 281, 283, 284, 285, 0, 286, |
| 287, 288, 0, 286, 287, 288, 284, 286, 287, 288, |
| 289, 290, 291, 0, 289, 290, 291, 288, 289, 290, |
| 291, 292, 289, 293, 294, 292, 295, 293, 294, 292, |
| |
| 295, 293, 294, 0, 295, 296, 0, 294, 292, 296, |
| 0, 297, 293, 296, 297, 297, 298, 299, 0, 297, |
| 298, 299, 300, 301, 298, 299, 300, 301, 0, 302, |
| 300, 301, 0, 302, 303, 298, 299, 302, 303, 300, |
| 304, 305, 303, 306, 304, 0, 311, 306, 304, 0, |
| 311, 306, 312, 305, 311, 313, 312, 305, 311, 313, |
| 312, 305, 0, 313, 314, 313, 0, 315, 314, 317, |
| 312, 315, 314, 317, 316, 315, 0, 317, 316, 315, |
| 316, 318, 316, 0, 319, 318, 319, 318, 319, 318, |
| 320, 321, 319, 0, 320, 321, 322, 326, 320, 321, |
| |
| 322, 321, 320, 323, 322, 323, 324, 323, 325, 326, |
| 324, 323, 325, 326, 324, 327, 325, 326, 0, 327, |
| 328, 329, 0, 327, 328, 329, 325, 330, 328, 329, |
| 331, 330, 327, 0, 331, 330, 332, 329, 331, 333, |
| 332, 334, 336, 333, 332, 334, 336, 333, 335, 334, |
| 336, 335, 335, 337, 372, 372, 335, 337, 338, 334, |
| 339, 337, 338, 337, 339, 338, 338, 340, 339, 476, |
| 476, 340, 341, 510, 510, 340, 341, 340, 339, 342, |
| 341, 343, 341, 342, 344, 343, 345, 342, 344, 343, |
| 345, 346, 344, 347, 345, 346, 348, 347, 344, 346, |
| |
| 348, 347, 349, 350, 348, 345, 349, 350, 351, 352, |
| 349, 350, 351, 352, 353, 354, 351, 352, 353, 354, |
| 0, 350, 353, 354, 351, 355, 356, 354, 0, 355, |
| 356, 357, 0, 355, 356, 357, 353, 359, 358, 357, |
| 358, 359, 358, 360, 361, 359, 358, 360, 361, 0, |
| 0, 360, 361, 359, 362, 363, 364, 362, 362, 363, |
| 364, 361, 362, 363, 364, 365, 363, 366, 367, 365, |
| 368, 366, 367, 365, 368, 366, 367, 365, 368, 369, |
| 370, 373, 0, 369, 370, 373, 0, 369, 370, 373, |
| 370, 0, 374, 375, 376, 0, 374, 375, 376, 369, |
| |
| 374, 375, 376, 377, 379, 378, 376, 377, 379, 378, |
| 380, 377, 379, 378, 380, 381, 382, 0, 380, 381, |
| 382, 377, 378, 381, 382, 0, 383, 384, 382, 0, |
| 383, 384, 385, 381, 383, 384, 385, 0, 386, 387, |
| 385, 0, 386, 387, 383, 384, 386, 387, 388, 0, |
| 389, 390, 388, 387, 389, 390, 388, 0, 389, 390, |
| 391, 389, 392, 394, 391, 393, 392, 394, 391, 393, |
| 392, 394, 395, 393, 396, 392, 395, 393, 396, 397, |
| 395, 394, 396, 397, 398, 399, 0, 397, 398, 399, |
| 395, 400, 398, 399, 401, 400, 0, 402, 401, 400, |
| |
| 0, 402, 401, 403, 400, 402, 404, 403, 405, 406, |
| 404, 403, 405, 406, 404, 0, 405, 406, 407, 0, |
| 407, 408, 407, 406, 409, 408, 407, 409, 409, 408, |
| 410, 0, 409, 411, 410, 0, 412, 411, 410, 408, |
| 412, 411, 413, 414, 412, 416, 413, 414, 412, 416, |
| 413, 414, 0, 416, 410, 413, 415, 416, 415, 417, |
| 415, 418, 419, 417, 415, 418, 419, 417, 420, 418, |
| 419, 421, 420, 0, 422, 421, 420, 0, 422, 421, |
| 423, 420, 422, 0, 423, 0, 424, 0, 423, 0, |
| 424, 424, 425, 422, 424, 425, 425, 426, 427, 428, |
| |
| 425, 426, 427, 428, 431, 426, 427, 428, 431, 432, |
| 433, 435, 431, 432, 433, 435, 434, 432, 433, 435, |
| 0, 436, 437, 0, 0, 436, 437, 432, 434, 436, |
| 437, 438, 434, 439, 440, 438, 434, 439, 440, 438, |
| 441, 439, 440, 0, 441, 442, 443, 0, 441, 442, |
| 443, 439, 440, 442, 443, 444, 0, 445, 442, 444, |
| 443, 445, 0, 444, 446, 445, 0, 447, 446, 449, |
| 445, 447, 446, 449, 448, 447, 0, 449, 448, 447, |
| 448, 450, 448, 451, 0, 450, 452, 451, 0, 450, |
| 452, 451, 449, 453, 452, 0, 0, 453, 0, 0, |
| |
| 450, 453, 454, 452, 455, 0, 454, 0, 455, 453, |
| 454, 0, 455, 454, 456, 455, 0, 457, 456, 457, |
| 458, 457, 456, 459, 458, 457, 461, 459, 458, 460, |
| 456, 459, 462, 460, 458, 463, 462, 460, 461, 463, |
| 462, 464, 461, 463, 465, 464, 461, 467, 465, 464, |
| 0, 467, 465, 464, 466, 467, 466, 468, 466, 469, |
| 470, 0, 466, 469, 470, 0, 0, 469, 470, 468, |
| 470, 469, 471, 468, 472, 473, 471, 468, 472, 473, |
| 471, 474, 472, 473, 0, 474, 477, 0, 0, 474, |
| 477, 473, 474, 478, 477, 480, 479, 478, 481, 480, |
| |
| 479, 478, 481, 480, 479, 482, 481, 0, 0, 482, |
| 483, 478, 479, 482, 483, 484, 0, 482, 483, 484, |
| 0, 485, 486, 484, 483, 485, 0, 487, 0, 485, |
| 0, 487, 484, 485, 486, 487, 488, 489, 486, 490, |
| 488, 489, 486, 490, 488, 489, 491, 490, 492, 0, |
| 491, 493, 492, 489, 491, 493, 492, 490, 494, 493, |
| 495, 0, 494, 496, 495, 0, 494, 496, 495, 491, |
| 497, 496, 0, 498, 497, 0, 496, 498, 497, 499, |
| 499, 498, 500, 499, 0, 501, 500, 499, 497, 501, |
| 500, 502, 505, 501, 503, 502, 0, 504, 503, 502, |
| |
| 500, 504, 503, 506, 505, 504, 507, 506, 505, 507, |
| 507, 506, 505, 508, 507, 509, 511, 508, 512, 509, |
| 511, 508, 512, 509, 511, 0, 512, 516, 513, 511, |
| 508, 513, 513, 514, 515, 0, 513, 514, 515, 516, |
| 517, 514, 515, 516, 517, 518, 514, 516, 517, 518, |
| 0, 519, 520, 518, 519, 519, 520, 517, 521, 519, |
| 520, 522, 521, 523, 524, 522, 521, 523, 524, 522, |
| 525, 523, 524, 526, 525, 523, 524, 526, 525, 527, |
| 528, 526, 529, 527, 528, 0, 529, 527, 528, 526, |
| 529, 530, 531, 0, 532, 530, 531, 532, 532, 530, |
| |
| 531, 533, 532, 528, 531, 533, 534, 535, 536, 533, |
| 534, 535, 536, 538, 534, 535, 536, 538, 539, 540, |
| 536, 538, 539, 540, 541, 542, 539, 540, 541, 542, |
| 543, 540, 541, 542, 543, 544, 545, 546, 543, 544, |
| 545, 546, 541, 544, 545, 546, 0, 0, 547, 548, |
| 0, 0, 547, 548, 545, 546, 547, 548, 0, 549, |
| 550, 551, 548, 549, 550, 551, 547, 549, 550, 551, |
| 0, 552, 553, 550, 0, 552, 553, 0, 551, 552, |
| 553, 0, 554, 555, 556, 553, 554, 555, 556, 557, |
| 554, 555, 556, 557, 0, 557, 0, 557, 558, 559, |
| |
| 554, 560, 558, 559, 558, 560, 558, 559, 0, 560, |
| 0, 561, 0, 562, 0, 561, 559, 562, 560, 561, |
| 563, 562, 564, 565, 563, 562, 564, 565, 563, 567, |
| 564, 565, 563, 567, 566, 0, 0, 567, 566, 568, |
| 564, 565, 566, 568, 569, 568, 566, 568, 569, 570, |
| 571, 572, 569, 570, 571, 572, 0, 570, 571, 572, |
| 573, 574, 575, 573, 573, 574, 575, 576, 573, 574, |
| 575, 576, 577, 578, 579, 576, 577, 578, 579, 580, |
| 577, 578, 579, 580, 581, 582, 583, 580, 581, 582, |
| 583, 584, 581, 582, 583, 584, 585, 0, 583, 584, |
| |
| 585, 586, 581, 586, 585, 586, 587, 588, 589, 586, |
| 587, 588, 589, 585, 587, 588, 589, 591, 591, 591, |
| 591, 591, 591, 591, 592, 592, 592, 592, 592, 592, |
| 592, 593, 593, 593, 593, 593, 593, 593, 594, 594, |
| 594, 594, 595, 595, 595, 595, 595, 595, 596, 596, |
| 596, 596, 597, 597, 597, 597, 597, 597, 598, 598, |
| 598, 599, 599, 599, 599, 599, 600, 600, 600, 600, |
| 602, 602, 602, 602, 603, 0, 603, 590, 590, 590, |
| 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, |
| 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, |
| |
| 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, |
| 590, 590, 590, 590, 590, 590, 590, 590, 590, 590, |
| 590, 590, 590, 590, 590, 590, 590, 590, 590 |
| } ; |
| |
| /* 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 |
| /**
|
| * @file yang.l
|
| * @author Pavol Vican
|
| * @brief YANG parser for libyang (flex grammar)
|
| *
|
| * Copyright (c) 2015 CESNET, z.s.p.o.
|
| *
|
| * This source code is licensed under BSD 3-Clause License (the "License").
|
| * You may not use this file except in compliance with the License.
|
| * You may obtain a copy of the License at
|
| *
|
| * https://opensource.org/licenses/BSD-3-Clause
|
| */
|
| #define YY_NO_INPUT 1 |
| #include "parser_yang.h"
|
| #include "parser_yang_bis.h"
|
|
|
| #define YY_USER_ACTION yylloc->first_column = yylloc->last_column +1;\
|
| yylloc->last_column = yylloc->first_column + yyleng - 1;
|
|
|
| #define INITIAL 0 |
| #define COMMENT1 1 |
| #define COMMENT2 2 |
| #define PATH 3 |
| #define DOUBLEQUOTES 4 |
| |
| #ifndef YY_NO_UNISTD_H |
| /* Special case for "unistd.h", since it is non-ANSI. We include it way |
| * down here because we want the user's section 1 to have been scanned first. |
| * The user has a chance to override it with an option. |
| */ |
| #include <unistd.h> |
| #endif |
| |
| #ifndef YY_EXTRA_TYPE |
| #define YY_EXTRA_TYPE void * |
| #endif |
| |
| /* Holds the entire state of the reentrant scanner. */ |
| struct yyguts_t |
| { |
| |
| /* User-defined. Not touched by flex. */ |
| YY_EXTRA_TYPE yyextra_r; |
| |
| /* The rest are the same as the globals declared in the non-reentrant scanner. */ |
| FILE *yyin_r, *yyout_r; |
| size_t yy_buffer_stack_top; /**< index of top of stack. */ |
| size_t yy_buffer_stack_max; /**< capacity of stack. */ |
| YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */ |
| char yy_hold_char; |
| yy_size_t yy_n_chars; |
| yy_size_t yyleng_r; |
| char *yy_c_buf_p; |
| int yy_init; |
| int yy_start; |
| int yy_did_buffer_switch_on_eof; |
| int yy_start_stack_ptr; |
| int yy_start_stack_depth; |
| int *yy_start_stack; |
| yy_state_type yy_last_accepting_state; |
| char* yy_last_accepting_cpos; |
| |
| int yylineno_r; |
| int yy_flex_debug_r; |
| |
| char *yytext_r; |
| int yy_more_flag; |
| int yy_more_len; |
| |
| YYSTYPE * yylval_r; |
| |
| YYLTYPE * yylloc_r; |
| |
| }; /* end struct yyguts_t */ |
| |
| static int yy_init_globals (yyscan_t yyscanner ); |
| |
| /* This must go here because YYSTYPE and YYLTYPE are included |
| * from bison output in section 1.*/ |
| # define yylval yyg->yylval_r |
| |
| # define yylloc yyg->yylloc_r |
| |
| int yylex_init (yyscan_t* scanner); |
| |
| int yylex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner); |
| |
| /* Accessor methods to globals. |
| These are made visible to non-reentrant scanners for convenience. */ |
| |
| int yylex_destroy (yyscan_t yyscanner ); |
| |
| int yyget_debug (yyscan_t yyscanner ); |
| |
| void yyset_debug (int debug_flag ,yyscan_t yyscanner ); |
| |
| YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner ); |
| |
| void yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner ); |
| |
| FILE *yyget_in (yyscan_t yyscanner ); |
| |
| void yyset_in (FILE * _in_str ,yyscan_t yyscanner ); |
| |
| FILE *yyget_out (yyscan_t yyscanner ); |
| |
| void yyset_out (FILE * _out_str ,yyscan_t yyscanner ); |
| |
| yy_size_t yyget_leng (yyscan_t yyscanner ); |
| |
| char *yyget_text (yyscan_t yyscanner ); |
| |
| int yyget_lineno (yyscan_t yyscanner ); |
| |
| void yyset_lineno (int _line_number ,yyscan_t yyscanner ); |
| |
| int yyget_column (yyscan_t yyscanner ); |
| |
| void yyset_column (int _column_no ,yyscan_t yyscanner ); |
| |
| YYSTYPE * yyget_lval (yyscan_t yyscanner ); |
| |
| void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner ); |
| |
| YYLTYPE *yyget_lloc (yyscan_t yyscanner ); |
| |
| void yyset_lloc (YYLTYPE * yylloc_param ,yyscan_t yyscanner ); |
| |
| /* Macros after this point can all be overridden by user definitions in |
| * section 1. |
| */ |
| |
| #ifndef YY_SKIP_YYWRAP |
| #ifdef __cplusplus |
| extern "C" int yywrap (yyscan_t yyscanner ); |
| #else |
| extern int yywrap (yyscan_t yyscanner ); |
| #endif |
| #endif |
| |
| #ifndef YY_NO_UNPUT |
| |
| #endif |
| |
| #ifndef yytext_ptr |
| static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner); |
| #endif |
| |
| #ifdef YY_NEED_STRLEN |
| static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner); |
| #endif |
| |
| #ifndef YY_NO_INPUT |
| |
| #ifdef __cplusplus |
| static int yyinput (yyscan_t yyscanner ); |
| #else |
| static int input (yyscan_t yyscanner ); |
| #endif |
| |
| #endif |
| |
| /* Amount of stuff to slurp up with each read. */ |
| #ifndef YY_READ_BUF_SIZE |
| #ifdef __ia64__ |
| /* On IA-64, the buffer size is 16k, not 8k */ |
| #define YY_READ_BUF_SIZE 16384 |
| #else |
| #define YY_READ_BUF_SIZE 8192 |
| #endif /* __ia64__ */ |
| #endif |
| |
| /* Copy whatever the last rule matched to the standard output. */ |
| #ifndef ECHO |
| /* This used to be an fputs(), but since the string might contain NUL's, |
| * we now use fwrite(). |
| */ |
| #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) |
| #endif |
| |
| /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, |
| * is returned in "result". |
| */ |
| #ifndef YY_INPUT |
| #define YY_INPUT(buf,result,max_size) \ |
| if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
| { \ |
| int c = '*'; \ |
| size_t n; \ |
| for ( n = 0; n < max_size && \ |
| (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
| buf[n] = (char) c; \ |
| if ( c == '\n' ) \ |
| buf[n++] = (char) c; \ |
| if ( c == EOF && ferror( yyin ) ) \ |
| YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
| result = n; \ |
| } \ |
| else \ |
| { \ |
| errno=0; \ |
| while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ |
| { \ |
| if( errno != EINTR) \ |
| { \ |
| YY_FATAL_ERROR( "input in flex scanner failed" ); \ |
| break; \ |
| } \ |
| errno=0; \ |
| clearerr(yyin); \ |
| } \ |
| }\ |
| \ |
| |
| #endif |
| |
| /* No semi-colon after return; correct usage is to write "yyterminate();" - |
| * we don't want an extra ';' after the "return" because that will cause |
| * some compilers to complain about unreachable statements. |
| */ |
| #ifndef yyterminate |
| #define yyterminate() return YY_NULL |
| #endif |
| |
| /* Number of entries by which start-condition stack grows. */ |
| #ifndef YY_START_STACK_INCR |
| #define YY_START_STACK_INCR 25 |
| #endif |
| |
| /* Report a fatal error. */ |
| #ifndef YY_FATAL_ERROR |
| #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) |
| #endif |
| |
| /* end tables serialization structures and prototypes */ |
| |
| /* Default declaration of generated scanner - a define so the user can |
| * easily add parameters. |
| */ |
| #ifndef YY_DECL |
| #define YY_DECL_IS_OURS 1 |
| |
| extern int yylex \ |
| (YYSTYPE * yylval_param,YYLTYPE * yylloc_param ,yyscan_t yyscanner); |
| |
| #define YY_DECL int yylex \ |
| (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner) |
| #endif /* !YY_DECL */ |
| |
| /* Code executed at the beginning of each rule, after yytext and yyleng |
| * have been set up. |
| */ |
| #ifndef YY_USER_ACTION |
| #define YY_USER_ACTION |
| #endif |
| |
| /* Code executed at the end of each rule. */ |
| #ifndef YY_BREAK |
| #define YY_BREAK /*LINTED*/break; |
| #endif |
| |
| #define YY_RULE_SETUP \ |
| YY_USER_ACTION |
| |
| /** The main scanner function which does all the work. |
| */ |
| YY_DECL |
| { |
| yy_state_type yy_current_state; |
| char *yy_cp, *yy_bp; |
| int yy_act; |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| |
| yylval = yylval_param; |
| |
| yylloc = yylloc_param; |
| |
| if ( !yyg->yy_init ) |
| { |
| yyg->yy_init = 1; |
| |
| #ifdef YY_USER_INIT |
| YY_USER_INIT; |
| #endif |
| |
| if ( ! yyg->yy_start ) |
| yyg->yy_start = 1; /* first start state */ |
| |
| if ( ! yyin ) |
| yyin = stdin; |
| |
| if ( ! yyout ) |
| yyout = stdout; |
| |
| if ( ! YY_CURRENT_BUFFER ) { |
| yyensure_buffer_stack (yyscanner); |
| YY_CURRENT_BUFFER_LVALUE = |
| yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); |
| } |
| |
| yy_load_buffer_state(yyscanner ); |
| } |
| |
| { |
| |
| int tab_count = 0;
|
| int size_str = 0;
|
| int column = 0;
|
| char *str = NULL;
|
| int _state = YY_START;
|
|
|
| while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ |
| { |
| yy_cp = yyg->yy_c_buf_p; |
| |
| /* Support of yytext. */ |
| *yy_cp = yyg->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 = yyg->yy_start; |
| yy_match: |
| do |
| { |
| YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; |
| if ( yy_accept[yy_current_state] ) |
| { |
| yyg->yy_last_accepting_state = yy_current_state; |
| yyg->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 >= 591 ) |
| 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] != 2278 ); |
| |
| yy_find_action: |
| yy_act = yy_accept[yy_current_state]; |
| if ( yy_act == 0 ) |
| { /* have to back up */ |
| yy_cp = yyg->yy_last_accepting_cpos; |
| yy_current_state = yyg->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 = yyg->yy_hold_char; |
| yy_cp = yyg->yy_last_accepting_cpos; |
| yy_current_state = yyg->yy_last_accepting_state; |
| goto yy_find_action; |
| |
| case 1: |
| YY_RULE_SETUP |
| {_state = YY_START; BEGIN COMMENT1; }
|
| YY_BREAK |
| case 2: |
| case 3: |
| /* rule 3 can match eol */ |
| YY_RULE_SETUP |
| |
| YY_BREAK |
| case 4: |
| YY_RULE_SETUP |
| {BEGIN _state; }
|
| YY_BREAK |
| case 5: |
| YY_RULE_SETUP |
| {_state = YY_START; BEGIN COMMENT2;}
|
| YY_BREAK |
| case 6: |
| YY_RULE_SETUP |
| |
| YY_BREAK |
| case 7: |
| /* rule 7 can match eol */ |
| case 8: |
| /* rule 8 can match eol */ |
| YY_RULE_SETUP |
| {BEGIN _state; return EOL; }
|
| YY_BREAK |
| case 9: |
| YY_RULE_SETUP |
| { return ANYXML_KEYWORD; }
|
| YY_BREAK |
| case 10: |
| YY_RULE_SETUP |
| { return ARGUMENT_KEYWORD; }
|
| YY_BREAK |
| case 11: |
| YY_RULE_SETUP |
| { BEGIN PATH; return AUGMENT_KEYWORD; }
|
| YY_BREAK |
| case 12: |
| YY_RULE_SETUP |
| { return BASE_KEYWORD; }
|
| YY_BREAK |
| case 13: |
| YY_RULE_SETUP |
| { return BELONGS_TO_KEYWORD; }
|
| YY_BREAK |
| case 14: |
| YY_RULE_SETUP |
| { return BIT_KEYWORD; }
|
| YY_BREAK |
| case 15: |
| YY_RULE_SETUP |
| { return CASE_KEYWORD; }
|
| YY_BREAK |
| case 16: |
| YY_RULE_SETUP |
| { return CHOICE_KEYWORD; }
|
| YY_BREAK |
| case 17: |
| YY_RULE_SETUP |
| { return CONFIG_KEYWORD; }
|
| YY_BREAK |
| case 18: |
| YY_RULE_SETUP |
| { return CONTACT_KEYWORD; }
|
| YY_BREAK |
| case 19: |
| YY_RULE_SETUP |
| { return CONTAINER_KEYWORD; }
|
| YY_BREAK |
| case 20: |
| YY_RULE_SETUP |
| { return DEFAULT_KEYWORD; }
|
| YY_BREAK |
| case 21: |
| YY_RULE_SETUP |
| { return DESCRIPTION_KEYWORD; }
|
| YY_BREAK |
| case 22: |
| YY_RULE_SETUP |
| { return ENUM_KEYWORD; }
|
| YY_BREAK |
| case 23: |
| YY_RULE_SETUP |
| { return ERROR_APP_TAG_KEYWORD; }
|
| YY_BREAK |
| case 24: |
| YY_RULE_SETUP |
| { return ERROR_MESSAGE_KEYWORD; }
|
| YY_BREAK |
| case 25: |
| YY_RULE_SETUP |
| { return EXTENSION_KEYWORD; }
|
| YY_BREAK |
| case 26: |
| YY_RULE_SETUP |
| { BEGIN PATH; return DEVIATION_KEYWORD; }
|
| YY_BREAK |
| case 27: |
| YY_RULE_SETUP |
| { return DEVIATE_KEYWORD; }
|
| YY_BREAK |
| case 28: |
| YY_RULE_SETUP |
| { return FEATURE_KEYWORD; }
|
| YY_BREAK |
| case 29: |
| YY_RULE_SETUP |
| { return FRACTION_DIGITS_KEYWORD; }
|
| YY_BREAK |
| case 30: |
| YY_RULE_SETUP |
| { return GROUPING_KEYWORD; }
|
| YY_BREAK |
| case 31: |
| YY_RULE_SETUP |
| { return IDENTITY_KEYWORD; }
|
| YY_BREAK |
| case 32: |
| YY_RULE_SETUP |
| { return IF_FEATURE_KEYWORD; }
|
| YY_BREAK |
| case 33: |
| YY_RULE_SETUP |
| { return IMPORT_KEYWORD; }
|
| YY_BREAK |
| case 34: |
| YY_RULE_SETUP |
| { return INCLUDE_KEYWORD; }
|
| YY_BREAK |
| case 35: |
| YY_RULE_SETUP |
| { return INPUT_KEYWORD; }
|
| YY_BREAK |
| case 36: |
| YY_RULE_SETUP |
| { return KEY_KEYWORD; }
|
| YY_BREAK |
| case 37: |
| YY_RULE_SETUP |
| { return LEAF_KEYWORD; }
|
| YY_BREAK |
| case 38: |
| YY_RULE_SETUP |
| { return LEAF_LIST_KEYWORD; }
|
| YY_BREAK |
| case 39: |
| YY_RULE_SETUP |
| { return LENGTH_KEYWORD; }
|
| YY_BREAK |
| case 40: |
| YY_RULE_SETUP |
| { return LIST_KEYWORD; }
|
| YY_BREAK |
| case 41: |
| YY_RULE_SETUP |
| { return MANDATORY_KEYWORD; }
|
| YY_BREAK |
| case 42: |
| YY_RULE_SETUP |
| { return MAX_ELEMENTS_KEYWORD; }
|
| YY_BREAK |
| case 43: |
| YY_RULE_SETUP |
| { return MIN_ELEMENTS_KEYWORD; }
|
| YY_BREAK |
| case 44: |
| YY_RULE_SETUP |
| { return MODULE_KEYWORD; }
|
| YY_BREAK |
| case 45: |
| YY_RULE_SETUP |
| { return MUST_KEYWORD; }
|
| YY_BREAK |
| case 46: |
| YY_RULE_SETUP |
| { return NAMESPACE_KEYWORD; }
|
| YY_BREAK |
| case 47: |
| YY_RULE_SETUP |
| { return NOTIFICATION_KEYWORD; }
|
| YY_BREAK |
| case 48: |
| YY_RULE_SETUP |
| { return ORDERED_BY_KEYWORD; }
|
| YY_BREAK |
| case 49: |
| YY_RULE_SETUP |
| { return ORGANIZATION_KEYWORD; }
|
| YY_BREAK |
| case 50: |
| YY_RULE_SETUP |
| { return OUTPUT_KEYWORD; }
|
| YY_BREAK |
| case 51: |
| YY_RULE_SETUP |
| { BEGIN PATH; return PATH_KEYWORD; }
|
| YY_BREAK |
| case 52: |
| YY_RULE_SETUP |
| { return PATTERN_KEYWORD; }
|
| YY_BREAK |
| case 53: |
| YY_RULE_SETUP |
| { return POSITION_KEYWORD; }
|
| YY_BREAK |
| case 54: |
| YY_RULE_SETUP |
| { return PREFIX_KEYWORD; }
|
| YY_BREAK |
| case 55: |
| YY_RULE_SETUP |
| { return PRESENCE_KEYWORD; }
|
| YY_BREAK |
| case 56: |
| YY_RULE_SETUP |
| { return RANGE_KEYWORD; }
|
| YY_BREAK |
| case 57: |
| YY_RULE_SETUP |
| { return REFERENCE_KEYWORD; }
|
| YY_BREAK |
| case 58: |
| YY_RULE_SETUP |
| { BEGIN PATH; return REFINE_KEYWORD; }
|
| YY_BREAK |
| case 59: |
| YY_RULE_SETUP |
| { return REQUIRE_INSTANCE_KEYWORD; }
|
| YY_BREAK |
| case 60: |
| YY_RULE_SETUP |
| { return REVISION_KEYWORD; }
|
| YY_BREAK |
| case 61: |
| YY_RULE_SETUP |
| { return REVISION_DATE_KEYWORD; }
|
| YY_BREAK |
| case 62: |
| YY_RULE_SETUP |
| { return RPC_KEYWORD; }
|
| YY_BREAK |
| case 63: |
| YY_RULE_SETUP |
| { return STATUS_KEYWORD; }
|
| YY_BREAK |
| case 64: |
| YY_RULE_SETUP |
| { return SUBMODULE_KEYWORD; }
|
| YY_BREAK |
| case 65: |
| YY_RULE_SETUP |
| { return TYPE_KEYWORD; }
|
| YY_BREAK |
| case 66: |
| YY_RULE_SETUP |
| { return TYPEDEF_KEYWORD; }
|
| YY_BREAK |
| case 67: |
| YY_RULE_SETUP |
| { BEGIN PATH; return UNIQUE_KEYWORD; }
|
| YY_BREAK |
| case 68: |
| YY_RULE_SETUP |
| { return UNITS_KEYWORD; }
|
| YY_BREAK |
| case 69: |
| YY_RULE_SETUP |
| { return USES_KEYWORD; }
|
| YY_BREAK |
| case 70: |
| YY_RULE_SETUP |
| { return VALUE_KEYWORD; }
|
| YY_BREAK |
| case 71: |
| YY_RULE_SETUP |
| { return WHEN_KEYWORD; }
|
| YY_BREAK |
| case 72: |
| YY_RULE_SETUP |
| { return YANG_VERSION_KEYWORD; }
|
| YY_BREAK |
| case 73: |
| YY_RULE_SETUP |
| { return YIN_ELEMENT_KEYWORD; }
|
| YY_BREAK |
| case 74: |
| YY_RULE_SETUP |
| { return ADD_KEYWORD; }
|
| YY_BREAK |
| case 75: |
| YY_RULE_SETUP |
| { return CURRENT_KEYWORD; }
|
| YY_BREAK |
| case 76: |
| YY_RULE_SETUP |
| { return CURRENT_KEYWORD; }
|
| YY_BREAK |
| case 77: |
| YY_RULE_SETUP |
| { return DELETE_KEYWORD; }
|
| YY_BREAK |
| case 78: |
| YY_RULE_SETUP |
| { return DEPRECATED_KEYWORD; }
|
| YY_BREAK |
| case 79: |
| YY_RULE_SETUP |
| { return FALSE_KEYWORD; }
|
| YY_BREAK |
| case 80: |
| YY_RULE_SETUP |
| { return NOT_SUPPORTED_KEYWORD; }
|
| YY_BREAK |
| case 81: |
| YY_RULE_SETUP |
| { return OBSOLETE_KEYWORD; }
|
| YY_BREAK |
| case 82: |
| YY_RULE_SETUP |
| { return REPLACE_KEYWORD; }
|
| YY_BREAK |
| case 83: |
| YY_RULE_SETUP |
| { return SYSTEM_KEYWORD; }
|
| YY_BREAK |
| case 84: |
| YY_RULE_SETUP |
| { return TRUE_KEYWORD; }
|
| YY_BREAK |
| case 85: |
| YY_RULE_SETUP |
| { return UNBOUNDED_KEYWORD; }
|
| YY_BREAK |
| case 86: |
| YY_RULE_SETUP |
| { return USER_KEYWORD; }
|
| YY_BREAK |
| case 87: |
| YY_RULE_SETUP |
| {return ACTION_KEYWORD; }
|
| YY_BREAK |
| case 88: |
| YY_RULE_SETUP |
| {return MODIFIER_KEYWORD; }
|
| YY_BREAK |
| case 89: |
| YY_RULE_SETUP |
| {return ANYDATA_KEYWORD; }
|
| YY_BREAK |
| case 90: |
| case 91: |
| case 92: |
| case 93: |
| YY_RULE_SETUP |
| { return yytext[0];} /* unsolved problem with concatenate string '+' */
|
| YY_BREAK |
| case 94: |
| YY_RULE_SETUP |
| {_state = YY_START; BEGIN DOUBLEQUOTES; str = yytext; column = yylloc->first_column; }
|
| YY_BREAK |
| case 95: |
| YY_RULE_SETUP |
| { tab_count++; size_str += yyleng; }
|
| YY_BREAK |
| case 96: |
| /* rule 96 can match eol */ |
| YY_RULE_SETUP |
| { size_str += yyleng; }
|
| YY_BREAK |
| case 97: |
| YY_RULE_SETUP |
| { yylval->i = tab_count;
|
| BEGIN _state;
|
| yytext = str;
|
| yyleng = size_str + 2;
|
| yylloc->first_column = column;
|
| return STRING;
|
| }
|
| YY_BREAK |
| case 98: |
| YY_RULE_SETUP |
| case YY_STATE_EOF(DOUBLEQUOTES): |
| { return ERROR;}
|
| YY_BREAK |
| case 99: |
| /* rule 99 can match eol */ |
| YY_RULE_SETUP |
| {return STRING;}
|
| YY_BREAK |
| case 100: |
| YY_RULE_SETUP |
| {return ZERO;}
|
| YY_BREAK |
| case 101: |
| YY_RULE_SETUP |
| {return INTEGER;}
|
| YY_BREAK |
| case 102: |
| YY_RULE_SETUP |
| {return NON_NEGATIVE_INTEGER;}
|
| YY_BREAK |
| case 103: |
| case 104: |
| case 105: |
| case 106: |
| case 107: |
| case 108: |
| case 109: |
| YY_RULE_SETUP |
| {return yytext[0];}
|
| YY_BREAK |
| case 110: |
| YY_RULE_SETUP |
| {return DOUBLEDOT;}
|
| YY_BREAK |
| case 111: |
| /* rule 111 can match eol */ |
| case 112: |
| /* rule 112 can match eol */ |
| YY_RULE_SETUP |
| { yylloc->last_column = 0; return EOL;}
|
| YY_BREAK |
| case 113: |
| YY_RULE_SETUP |
| { return WHITESPACE;}
|
| YY_BREAK |
| case 114: |
| case 115: |
| YY_RULE_SETUP |
| {BEGIN INITIAL; return yytext[0];}
|
| YY_BREAK |
| case 116: |
| YY_RULE_SETUP |
| {_state = YY_START; BEGIN DOUBLEQUOTES; str = yytext; column = yylloc->first_column; }
|
| YY_BREAK |
| case 117: |
| /* rule 117 can match eol */ |
| YY_RULE_SETUP |
| {return STRING;}
|
| YY_BREAK |
| case 118: |
| YY_RULE_SETUP |
| {_state = YY_START; BEGIN COMMENT2;}
|
| YY_BREAK |
| case 119: |
| YY_RULE_SETUP |
| {_state = YY_START; BEGIN COMMENT1;}
|
| YY_BREAK |
| case 120: |
| YY_RULE_SETUP |
| {return IDENTIFIER;}
|
| YY_BREAK |
| case 121: |
| YY_RULE_SETUP |
| {return IDENTIFIERPREFIX;}
|
| YY_BREAK |
| case 122: |
| YY_RULE_SETUP |
| {return REVISION_DATE;}
|
| YY_BREAK |
| case 123: |
| YY_RULE_SETUP |
| {return IDENTIFIER;}
|
| YY_BREAK |
| case 124: |
| YY_RULE_SETUP |
| {return IDENTIFIERPREFIX;}
|
| YY_BREAK |
| case 125: |
| YY_RULE_SETUP |
| {if (yytext[0]=='/') {
|
| switch(yytext[1]) {
|
| case '*': _state = YY_START; BEGIN COMMENT1; yyless(2); break;
|
| case '/': yyless(2); _state = YY_START; BEGIN COMMENT2; break;
|
| default: return STRINGS;
|
| }
|
| } else {return STRINGS;} }
|
| YY_BREAK |
| case 126: |
| /* rule 126 can match eol */ |
| case 127: |
| /* rule 127 can match eol */ |
| YY_RULE_SETUP |
| { yylloc->last_column = 0; return EOL; }
|
| YY_BREAK |
| case 128: |
| YY_RULE_SETUP |
| { return WHITESPACE;}
|
| YY_BREAK |
| case 129: |
| YY_RULE_SETUP |
| { return ERROR;}
|
| YY_BREAK |
| case 130: |
| YY_RULE_SETUP |
| ECHO; |
| YY_BREAK |
| case YY_STATE_EOF(INITIAL): |
| case YY_STATE_EOF(COMMENT1): |
| case YY_STATE_EOF(COMMENT2): |
| case YY_STATE_EOF(PATH): |
| yyterminate(); |
| |
| case YY_END_OF_BUFFER: |
| { |
| /* Amount of text matched not including the EOB char. */ |
| int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1; |
| |
| /* Undo the effects of YY_DO_BEFORE_ACTION. */ |
| *yy_cp = yyg->yy_hold_char; |
| YY_RESTORE_YY_MORE_OFFSET |
| |
| if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) |
| { |
| /* We're scanning a new file or input source. It's |
| * possible that this happened because the user |
| * just pointed yyin at a new source and called |
| * yylex(). If so, then we have to assure |
| * consistency between YY_CURRENT_BUFFER and our |
| * globals. Here is the right place to do so, because |
| * this is the first action (other than possibly a |
| * back-up) that will match for the new input source. |
| */ |
| yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
| YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; |
| YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; |
| } |
| |
| /* Note that here we test for yy_c_buf_p "<=" to the position |
| * of the first EOB in the buffer, since yy_c_buf_p will |
| * already have been incremented past the NUL character |
| * (since all states make transitions on EOB to the |
| * end-of-buffer state). Contrast this with the test |
| * in input(). |
| */ |
| if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) |
| { /* This was really a NUL. */ |
| yy_state_type yy_next_state; |
| |
| yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; |
| |
| yy_current_state = yy_get_previous_state( yyscanner ); |
| |
| /* 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 , yyscanner); |
| |
| yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; |
| |
| if ( yy_next_state ) |
| { |
| /* Consume the NUL. */ |
| yy_cp = ++yyg->yy_c_buf_p; |
| yy_current_state = yy_next_state; |
| goto yy_match; |
| } |
| |
| else |
| { |
| yy_cp = yyg->yy_c_buf_p; |
| goto yy_find_action; |
| } |
| } |
| |
| else switch ( yy_get_next_buffer( yyscanner ) ) |
| { |
| case EOB_ACT_END_OF_FILE: |
| { |
| yyg->yy_did_buffer_switch_on_eof = 0; |
| |
| if ( yywrap(yyscanner ) ) |
| { |
| /* 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. |
| */ |
| yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ; |
| |
| yy_act = YY_STATE_EOF(YY_START); |
| goto do_action; |
| } |
| |
| else |
| { |
| if ( ! yyg->yy_did_buffer_switch_on_eof ) |
| YY_NEW_FILE; |
| } |
| break; |
| } |
| |
| case EOB_ACT_CONTINUE_SCAN: |
| yyg->yy_c_buf_p = |
| yyg->yytext_ptr + yy_amount_of_matched_text; |
| |
| yy_current_state = yy_get_previous_state( yyscanner ); |
| |
| yy_cp = yyg->yy_c_buf_p; |
| yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; |
| goto yy_match; |
| |
| case EOB_ACT_LAST_MATCH: |
| yyg->yy_c_buf_p = |
| &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]; |
| |
| yy_current_state = yy_get_previous_state( yyscanner ); |
| |
| yy_cp = yyg->yy_c_buf_p; |
| yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; |
| goto yy_find_action; |
| } |
| break; |
| } |
| |
| default: |
| YY_FATAL_ERROR( |
| "fatal flex scanner internal error--no action found" ); |
| } /* end of action switch */ |
| } /* end of scanning one token */ |
| } /* end of user's declarations */ |
| } /* end of yylex */ |
| |
| /* yy_get_next_buffer - try to read in a new buffer |
| * |
| * Returns a code representing an action: |
| * EOB_ACT_LAST_MATCH - |
| * EOB_ACT_CONTINUE_SCAN - continue scanning from current position |
| * EOB_ACT_END_OF_FILE - end of file |
| */ |
| static int yy_get_next_buffer (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; |
| char *source = yyg->yytext_ptr; |
| yy_size_t number_to_move, i; |
| int ret_val; |
| |
| if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] ) |
| YY_FATAL_ERROR( |
| "fatal flex scanner internal error--end of buffer missed" ); |
| |
| if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) |
| { /* Don't try to fill the buffer, so this is an EOF. */ |
| if ( yyg->yy_c_buf_p - yyg->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 = (yy_size_t) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1; |
| |
| for ( i = 0; i < number_to_move; ++i ) |
| *(dest++) = *(source++); |
| |
| if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) |
| /* don't do the read, it's not guaranteed to return an EOF, |
| * just force an EOF |
| */ |
| YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0; |
| |
| else |
| { |
| yy_size_t num_to_read = |
| YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; |
| |
| while ( num_to_read <= 0 ) |
| { /* Not enough room in the buffer - grow it. */ |
| |
| /* just a shorter name for the current buffer */ |
| YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; |
| |
| int yy_c_buf_p_offset = |
| (int) (yyg->yy_c_buf_p - b->yy_ch_buf); |
| |
| if ( b->yy_is_our_buffer ) |
| { |
| yy_size_t new_size = b->yy_buf_size * 2; |
| |
| if ( new_size <= 0 ) |
| b->yy_buf_size += b->yy_buf_size / 8; |
| else |
| b->yy_buf_size *= 2; |
| |
| b->yy_ch_buf = (char *) |
| /* Include room in for 2 EOB chars. */ |
| yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ,yyscanner ); |
| } |
| 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" ); |
| |
| yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; |
| |
| num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - |
| number_to_move - 1; |
| |
| } |
| |
| if ( num_to_read > YY_READ_BUF_SIZE ) |
| num_to_read = YY_READ_BUF_SIZE; |
| |
| /* Read in more data. */ |
| YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), |
| yyg->yy_n_chars, num_to_read ); |
| |
| YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; |
| } |
| |
| if ( yyg->yy_n_chars == 0 ) |
| { |
| if ( number_to_move == YY_MORE_ADJ ) |
| { |
| ret_val = EOB_ACT_END_OF_FILE; |
| yyrestart(yyin ,yyscanner); |
| } |
| |
| else |
| { |
| ret_val = EOB_ACT_LAST_MATCH; |
| YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = |
| YY_BUFFER_EOF_PENDING; |
| } |
| } |
| |
| else |
| ret_val = EOB_ACT_CONTINUE_SCAN; |
| |
| if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { |
| /* Extend the array by 50%, plus the number we really need. */ |
| yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1); |
| YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ,yyscanner ); |
| if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) |
| YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); |
| } |
| |
| yyg->yy_n_chars += number_to_move; |
| YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR; |
| YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; |
| |
| yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; |
| |
| return ret_val; |
| } |
| |
| /* yy_get_previous_state - get the state just before the EOB char was reached */ |
| |
| static yy_state_type yy_get_previous_state (yyscan_t yyscanner) |
| { |
| yy_state_type yy_current_state; |
| char *yy_cp; |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| |
| yy_current_state = yyg->yy_start; |
| |
| for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) |
| { |
| YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); |
| if ( yy_accept[yy_current_state] ) |
| { |
| yyg->yy_last_accepting_state = yy_current_state; |
| yyg->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 >= 591 ) |
| yy_c = yy_meta[(unsigned int) yy_c]; |
| } |
| yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
| } |
| |
| return yy_current_state; |
| } |
| |
| /* yy_try_NUL_trans - try to make a transition on the NUL character |
| * |
| * synopsis |
| * next_state = yy_try_NUL_trans( current_state ); |
| */ |
| static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) |
| { |
| int yy_is_jam; |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ |
| char *yy_cp = yyg->yy_c_buf_p; |
| |
| YY_CHAR yy_c = 1; |
| if ( yy_accept[yy_current_state] ) |
| { |
| yyg->yy_last_accepting_state = yy_current_state; |
| yyg->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 >= 591 ) |
| 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 == 590); |
| |
| (void)yyg; |
| return yy_is_jam ? 0 : yy_current_state; |
| } |
| |
| #ifndef YY_NO_UNPUT |
| |
| #endif |
| |
| #ifndef YY_NO_INPUT |
| #ifdef __cplusplus |
| static int yyinput (yyscan_t yyscanner) |
| #else |
| static int input (yyscan_t yyscanner) |
| #endif |
| |
| { |
| int c; |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| |
| *yyg->yy_c_buf_p = yyg->yy_hold_char; |
| |
| if ( *yyg->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 ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) |
| /* This was really a NUL. */ |
| *yyg->yy_c_buf_p = '\0'; |
| |
| else |
| { /* need more input */ |
| yy_size_t offset = yyg->yy_c_buf_p - yyg->yytext_ptr; |
| ++yyg->yy_c_buf_p; |
| |
| switch ( yy_get_next_buffer( yyscanner ) ) |
| { |
| 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 ,yyscanner); |
| |
| /*FALLTHROUGH*/ |
| |
| case EOB_ACT_END_OF_FILE: |
| { |
| if ( yywrap(yyscanner ) ) |
| return EOF; |
| |
| if ( ! yyg->yy_did_buffer_switch_on_eof ) |
| YY_NEW_FILE; |
| #ifdef __cplusplus |
| return yyinput(yyscanner); |
| #else |
| return input(yyscanner); |
| #endif |
| } |
| |
| case EOB_ACT_CONTINUE_SCAN: |
| yyg->yy_c_buf_p = yyg->yytext_ptr + offset; |
| break; |
| } |
| } |
| } |
| |
| c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */ |
| *yyg->yy_c_buf_p = '\0'; /* preserve yytext */ |
| yyg->yy_hold_char = *++yyg->yy_c_buf_p; |
| |
| return c; |
| } |
| #endif /* ifndef YY_NO_INPUT */ |
| |
| /** Immediately switch to a different input stream. |
| * @param input_file A readable stream. |
| * @param yyscanner The scanner object. |
| * @note This function does not reset the start condition to @c INITIAL . |
| */ |
| void yyrestart (FILE * input_file , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| |
| if ( ! YY_CURRENT_BUFFER ){ |
| yyensure_buffer_stack (yyscanner); |
| YY_CURRENT_BUFFER_LVALUE = |
| yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); |
| } |
| |
| yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner); |
| yy_load_buffer_state(yyscanner ); |
| } |
| |
| /** Switch to a different input buffer. |
| * @param new_buffer The new input buffer. |
| * @param yyscanner The scanner object. |
| */ |
| void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| |
| /* TODO. We should be able to replace this entire function body |
| * with |
| * yypop_buffer_state(); |
| * yypush_buffer_state(new_buffer); |
| */ |
| yyensure_buffer_stack (yyscanner); |
| if ( YY_CURRENT_BUFFER == new_buffer ) |
| return; |
| |
| if ( YY_CURRENT_BUFFER ) |
| { |
| /* Flush out information for old buffer. */ |
| *yyg->yy_c_buf_p = yyg->yy_hold_char; |
| YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; |
| YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; |
| } |
| |
| YY_CURRENT_BUFFER_LVALUE = new_buffer; |
| yy_load_buffer_state(yyscanner ); |
| |
| /* 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. |
| */ |
| yyg->yy_did_buffer_switch_on_eof = 1; |
| } |
| |
| static void yy_load_buffer_state (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
| yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; |
| yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; |
| yyg->yy_hold_char = *yyg->yy_c_buf_p; |
| } |
| |
| /** Allocate and initialize an input buffer state. |
| * @param file A readable stream. |
| * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. |
| * @param yyscanner The scanner object. |
| * @return the allocated buffer state. |
| */ |
| YY_BUFFER_STATE yy_create_buffer (FILE * file, int size , yyscan_t yyscanner) |
| { |
| YY_BUFFER_STATE b; |
| |
| b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner ); |
| if ( ! b ) |
| YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); |
| |
| b->yy_buf_size = (yy_size_t)size; |
| |
| /* yy_ch_buf has to be 2 characters longer than the size given because |
| * we need to put in 2 end-of-buffer characters. |
| */ |
| b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ,yyscanner ); |
| 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 ,yyscanner); |
| |
| return b; |
| } |
| |
| /** Destroy the buffer. |
| * @param b a buffer created with yy_create_buffer() |
| * @param yyscanner The scanner object. |
| */ |
| void yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| |
| if ( ! b ) |
| return; |
| |
| if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ |
| YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; |
| |
| if ( b->yy_is_our_buffer ) |
| yyfree((void *) b->yy_ch_buf ,yyscanner ); |
| |
| yyfree((void *) b ,yyscanner ); |
| } |
| |
| /* Initializes or reinitializes a buffer. |
| * This function is sometimes called more than once on the same buffer, |
| * such as during a yyrestart() or at EOF. |
| */ |
| static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) |
| |
| { |
| int oerrno = errno; |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| |
| yy_flush_buffer(b ,yyscanner); |
| |
| b->yy_input_file = file; |
| b->yy_fill_buffer = 1; |
| |
| /* If b is the current buffer, then yy_init_buffer was _probably_ |
| * called from yyrestart() or through yy_get_next_buffer. |
| * In that case, we don't want to reset the lineno or column. |
| */ |
| if (b != YY_CURRENT_BUFFER){ |
| b->yy_bs_lineno = 1; |
| b->yy_bs_column = 0; |
| } |
| |
| b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; |
| |
| errno = oerrno; |
| } |
| |
| /** Discard all buffered characters. On the next scan, YY_INPUT will be called. |
| * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. |
| * @param yyscanner The scanner object. |
| */ |
| void yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| 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(yyscanner ); |
| } |
| |
| /** Pushes the new state onto the stack. The new state becomes |
| * the current state. This function will allocate the stack |
| * if necessary. |
| * @param new_buffer The new state. |
| * @param yyscanner The scanner object. |
| */ |
| void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| if (new_buffer == NULL) |
| return; |
| |
| yyensure_buffer_stack(yyscanner); |
| |
| /* This block is copied from yy_switch_to_buffer. */ |
| if ( YY_CURRENT_BUFFER ) |
| { |
| /* Flush out information for old buffer. */ |
| *yyg->yy_c_buf_p = yyg->yy_hold_char; |
| YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; |
| YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; |
| } |
| |
| /* Only push if top exists. Otherwise, replace top. */ |
| if (YY_CURRENT_BUFFER) |
| yyg->yy_buffer_stack_top++; |
| YY_CURRENT_BUFFER_LVALUE = new_buffer; |
| |
| /* copied from yy_switch_to_buffer. */ |
| yy_load_buffer_state(yyscanner ); |
| yyg->yy_did_buffer_switch_on_eof = 1; |
| } |
| |
| /** Removes and deletes the top of the stack, if present. |
| * The next element becomes the new top. |
| * @param yyscanner The scanner object. |
| */ |
| void yypop_buffer_state (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| if (!YY_CURRENT_BUFFER) |
| return; |
| |
| yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner); |
| YY_CURRENT_BUFFER_LVALUE = NULL; |
| if (yyg->yy_buffer_stack_top > 0) |
| --yyg->yy_buffer_stack_top; |
| |
| if (YY_CURRENT_BUFFER) { |
| yy_load_buffer_state(yyscanner ); |
| yyg->yy_did_buffer_switch_on_eof = 1; |
| } |
| } |
| |
| /* Allocates the stack if it does not exist. |
| * Guarantees space for at least one push. |
| */ |
| static void yyensure_buffer_stack (yyscan_t yyscanner) |
| { |
| yy_size_t num_to_alloc; |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| |
| if (!yyg->yy_buffer_stack) { |
| |
| /* First allocation is just for 2 elements, since we don't know if this |
| * scanner will even need a stack. We use 2 instead of 1 to avoid an |
| * immediate realloc on the next call. |
| */ |
| num_to_alloc = 1; // After all that talk, this was set to 1 anyways... |
| yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc |
| (num_to_alloc * sizeof(struct yy_buffer_state*) |
| , yyscanner); |
| if ( ! yyg->yy_buffer_stack ) |
| YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); |
| |
| memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*)); |
| |
| yyg->yy_buffer_stack_max = num_to_alloc; |
| yyg->yy_buffer_stack_top = 0; |
| return; |
| } |
| |
| if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){ |
| |
| /* Increase the buffer to prepare for a possible push. */ |
| yy_size_t grow_size = 8 /* arbitrary grow size */; |
| |
| num_to_alloc = yyg->yy_buffer_stack_max + grow_size; |
| yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc |
| (yyg->yy_buffer_stack, |
| num_to_alloc * sizeof(struct yy_buffer_state*) |
| , yyscanner); |
| if ( ! yyg->yy_buffer_stack ) |
| YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); |
| |
| /* zero only the new slots.*/ |
| memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*)); |
| yyg->yy_buffer_stack_max = num_to_alloc; |
| } |
| } |
| |
| /** Setup the input buffer state to scan directly from a user-specified character buffer. |
| * @param base the character buffer |
| * @param size the size in bytes of the character buffer |
| * @param yyscanner The scanner object. |
| * @return the newly allocated buffer state object. |
| */ |
| YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) |
| { |
| YY_BUFFER_STATE b; |
| |
| if ( size < 2 || |
| base[size-2] != YY_END_OF_BUFFER_CHAR || |
| base[size-1] != YY_END_OF_BUFFER_CHAR ) |
| /* They forgot to leave room for the EOB's. */ |
| return 0; |
| |
| b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner ); |
| 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 ,yyscanner ); |
| |
| return b; |
| } |
| |
| /** Setup the input buffer state to scan a string. The next call to yylex() will |
| * scan from a @e copy of @a str. |
| * @param yystr a NUL-terminated string to scan |
| * @param yyscanner The scanner object. |
| * @return the newly allocated buffer state object. |
| * @note If you want to scan bytes that may contain NUL values, then use |
| * yy_scan_bytes() instead. |
| */ |
| YY_BUFFER_STATE yy_scan_string (yyconst char * yystr , yyscan_t yyscanner) |
| { |
| |
| return yy_scan_bytes(yystr,strlen(yystr) ,yyscanner); |
| } |
| |
| /** Setup the input buffer state to scan the given bytes. The next call to yylex() will |
| * scan from a @e copy of @a bytes. |
| * @param yybytes the byte buffer to scan |
| * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. |
| * @param yyscanner The scanner object. |
| * @return the newly allocated buffer state object. |
| */ |
| YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len , yyscan_t yyscanner) |
| { |
| YY_BUFFER_STATE b; |
| char *buf; |
| yy_size_t n; |
| yy_size_t i; |
| |
| /* Get memory for full buffer, including space for trailing EOB's. */ |
| n = _yybytes_len + 2; |
| buf = (char *) yyalloc(n ,yyscanner ); |
| if ( ! buf ) |
| YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); |
| |
| for ( i = 0; i < _yybytes_len; ++i ) |
| buf[i] = yybytes[i]; |
| |
| buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; |
| |
| b = yy_scan_buffer(buf,n ,yyscanner); |
| if ( ! b ) |
| YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); |
| |
| /* It's okay to grow etc. this buffer, and we should throw it |
| * away when we're done. |
| */ |
| b->yy_is_our_buffer = 1; |
| |
| return b; |
| } |
| |
| #ifndef YY_EXIT_FAILURE |
| #define YY_EXIT_FAILURE 2 |
| #endif |
| |
| static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| (void)yyg; |
| (void) fprintf( stderr, "%s\n", msg ); |
| exit( YY_EXIT_FAILURE ); |
| } |
| |
| /* Redefine yyless() so it works in section 3 code. */ |
| |
| #undef yyless |
| #define yyless(n) \ |
| do \ |
| { \ |
| /* Undo effects of setting up yytext. */ \ |
| int yyless_macro_arg = (n); \ |
| YY_LESS_LINENO(yyless_macro_arg);\ |
| yytext[yyleng] = yyg->yy_hold_char; \ |
| yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ |
| yyg->yy_hold_char = *yyg->yy_c_buf_p; \ |
| *yyg->yy_c_buf_p = '\0'; \ |
| yyleng = yyless_macro_arg; \ |
| } \ |
| while ( 0 ) |
| |
| /* Accessor methods (get/set functions) to struct members. */ |
| |
| /** Get the user-defined data for this scanner. |
| * @param yyscanner The scanner object. |
| */ |
| YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| return yyextra; |
| } |
| |
| /** Get the current line number. |
| * @param yyscanner The scanner object. |
| */ |
| int yyget_lineno (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| |
| if (! YY_CURRENT_BUFFER) |
| return 0; |
| |
| return yylineno; |
| } |
| |
| /** Get the current column number. |
| * @param yyscanner The scanner object. |
| */ |
| int yyget_column (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| |
| if (! YY_CURRENT_BUFFER) |
| return 0; |
| |
| return yycolumn; |
| } |
| |
| /** Get the input stream. |
| * @param yyscanner The scanner object. |
| */ |
| FILE *yyget_in (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| return yyin; |
| } |
| |
| /** Get the output stream. |
| * @param yyscanner The scanner object. |
| */ |
| FILE *yyget_out (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| return yyout; |
| } |
| |
| /** Get the length of the current token. |
| * @param yyscanner The scanner object. |
| */ |
| yy_size_t yyget_leng (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| return yyleng; |
| } |
| |
| /** Get the current token. |
| * @param yyscanner The scanner object. |
| */ |
| |
| char *yyget_text (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| return yytext; |
| } |
| |
| /** Set the user-defined data. This data is never touched by the scanner. |
| * @param user_defined The data to be associated with this scanner. |
| * @param yyscanner The scanner object. |
| */ |
| void yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| yyextra = user_defined ; |
| } |
| |
| /** Set the current line number. |
| * @param _line_number line number |
| * @param yyscanner The scanner object. |
| */ |
| void yyset_lineno (int _line_number , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| |
| /* lineno is only valid if an input buffer exists. */ |
| if (! YY_CURRENT_BUFFER ) |
| YY_FATAL_ERROR( "yyset_lineno called with no buffer" ); |
| |
| yylineno = _line_number; |
| } |
| |
| /** Set the current column. |
| * @param _column_no column number |
| * @param yyscanner The scanner object. |
| */ |
| void yyset_column (int _column_no , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| |
| /* column is only valid if an input buffer exists. */ |
| if (! YY_CURRENT_BUFFER ) |
| YY_FATAL_ERROR( "yyset_column called with no buffer" ); |
| |
| yycolumn = _column_no; |
| } |
| |
| /** Set the input stream. This does not discard the current |
| * input buffer. |
| * @param _in_str A readable stream. |
| * @param yyscanner The scanner object. |
| * @see yy_switch_to_buffer |
| */ |
| void yyset_in (FILE * _in_str , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| yyin = _in_str ; |
| } |
| |
| void yyset_out (FILE * _out_str , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| yyout = _out_str ; |
| } |
| |
| int yyget_debug (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| return yy_flex_debug; |
| } |
| |
| void yyset_debug (int _bdebug , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| yy_flex_debug = _bdebug ; |
| } |
| |
| /* Accessor methods for yylval and yylloc */ |
| |
| YYSTYPE * yyget_lval (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| return yylval; |
| } |
| |
| void yyset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| yylval = yylval_param; |
| } |
| |
| YYLTYPE *yyget_lloc (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| return yylloc; |
| } |
| |
| void yyset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| yylloc = yylloc_param; |
| } |
| |
| /* User-visible API */ |
| |
| /* yylex_init is special because it creates the scanner itself, so it is |
| * the ONLY reentrant function that doesn't take the scanner as the last argument. |
| * That's why we explicitly handle the declaration, instead of using our macros. |
| */ |
| |
| int yylex_init(yyscan_t* ptr_yy_globals) |
| |
| { |
| if (ptr_yy_globals == NULL){ |
| errno = EINVAL; |
| return 1; |
| } |
| |
| *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL ); |
| |
| if (*ptr_yy_globals == NULL){ |
| errno = ENOMEM; |
| return 1; |
| } |
| |
| /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ |
| memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); |
| |
| return yy_init_globals ( *ptr_yy_globals ); |
| } |
| |
| /* yylex_init_extra has the same functionality as yylex_init, but follows the |
| * convention of taking the scanner as the last argument. Note however, that |
| * this is a *pointer* to a scanner, as it will be allocated by this call (and |
| * is the reason, too, why this function also must handle its own declaration). |
| * The user defined value in the first argument will be available to yyalloc in |
| * the yyextra field. |
| */ |
| |
| int yylex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals ) |
| |
| { |
| struct yyguts_t dummy_yyguts; |
| |
| yyset_extra (yy_user_defined, &dummy_yyguts); |
| |
| if (ptr_yy_globals == NULL){ |
| errno = EINVAL; |
| return 1; |
| } |
| |
| *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts ); |
| |
| if (*ptr_yy_globals == NULL){ |
| errno = ENOMEM; |
| return 1; |
| } |
| |
| /* By setting to 0xAA, we expose bugs in |
| yy_init_globals. Leave at 0x00 for releases. */ |
| memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); |
| |
| yyset_extra (yy_user_defined, *ptr_yy_globals); |
| |
| return yy_init_globals ( *ptr_yy_globals ); |
| } |
| |
| static int yy_init_globals (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| /* Initialization is the same as for the non-reentrant scanner. |
| * This function is called from yylex_destroy(), so don't allocate here. |
| */ |
| |
| yyg->yy_buffer_stack = 0; |
| yyg->yy_buffer_stack_top = 0; |
| yyg->yy_buffer_stack_max = 0; |
| yyg->yy_c_buf_p = (char *) 0; |
| yyg->yy_init = 0; |
| yyg->yy_start = 0; |
| |
| yyg->yy_start_stack_ptr = 0; |
| yyg->yy_start_stack_depth = 0; |
| yyg->yy_start_stack = NULL; |
| |
| /* Defined in main.c */ |
| #ifdef YY_STDINIT |
| yyin = stdin; |
| yyout = stdout; |
| #else |
| yyin = (FILE *) 0; |
| yyout = (FILE *) 0; |
| #endif |
| |
| /* For future reference: Set errno on error, since we are called by |
| * yylex_init() |
| */ |
| return 0; |
| } |
| |
| /* yylex_destroy is for both reentrant and non-reentrant scanners. */ |
| int yylex_destroy (yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| |
| /* Pop the buffer stack, destroying each element. */ |
| while(YY_CURRENT_BUFFER){ |
| yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner ); |
| YY_CURRENT_BUFFER_LVALUE = NULL; |
| yypop_buffer_state(yyscanner); |
| } |
| |
| /* Destroy the stack itself. */ |
| yyfree(yyg->yy_buffer_stack ,yyscanner); |
| yyg->yy_buffer_stack = NULL; |
| |
| /* Destroy the start condition stack. */ |
| yyfree(yyg->yy_start_stack ,yyscanner ); |
| yyg->yy_start_stack = NULL; |
| |
| /* Reset the globals. This is important in a non-reentrant scanner so the next time |
| * yylex() is called, initialization will occur. */ |
| yy_init_globals( yyscanner); |
| |
| /* Destroy the main struct (reentrant only). */ |
| yyfree ( yyscanner , yyscanner ); |
| yyscanner = NULL; |
| return 0; |
| } |
| |
| /* |
| * Internal utility routines. |
| */ |
| |
| #ifndef yytext_ptr |
| static void yy_flex_strncpy (char* s1, yyconst char * s2, int n , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| (void)yyg; |
| |
| int i; |
| for ( i = 0; i < n; ++i ) |
| s1[i] = s2[i]; |
| } |
| #endif |
| |
| #ifdef YY_NEED_STRLEN |
| static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner) |
| { |
| int n; |
| for ( n = 0; s[n]; ++n ) |
| ; |
| |
| return n; |
| } |
| #endif |
| |
| void *yyalloc (yy_size_t size , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| (void)yyg; |
| return (void *) malloc( size ); |
| } |
| |
| void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| (void)yyg; |
| |
| /* The cast to (char *) in the following accommodates both |
| * implementations that use char* generic pointers, and those |
| * that use void* generic pointers. It works with the latter |
| * because both ANSI C and C++ allow castless assignment from |
| * any pointer type to void*, and deal with argument conversions |
| * as though doing an assignment. |
| */ |
| return (void *) realloc( (char *) ptr, size ); |
| } |
| |
| void yyfree (void * ptr , yyscan_t yyscanner) |
| { |
| struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| (void)yyg; |
| free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ |
| } |
| |
| #define YYTABLES_NAME "yytables" |
| |