diff options
author | Alexander Smirnov <alex@ydb.tech> | 2024-07-08 15:54:05 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-07-08 15:54:05 +0000 |
commit | fc7be18c76af2e700641f3598c4856baeef1428e (patch) | |
tree | 11dbca45eb321c3a4dd08b12152acc6ef5dd3fa9 /contrib/tools/bison/src/scan-gram.c | |
parent | ec0e7ed6da6fb317741fd8468602949a1362eca5 (diff) | |
parent | c92cb9d3a19331916f0c274d80e67f02a62caa9b (diff) | |
download | ydb-fc7be18c76af2e700641f3598c4856baeef1428e.tar.gz |
Merge branch 'rightlib' into mergelibs-240708-1553
Diffstat (limited to 'contrib/tools/bison/src/scan-gram.c')
-rw-r--r-- | contrib/tools/bison/src/scan-gram.c | 2709 |
1 files changed, 1474 insertions, 1235 deletions
diff --git a/contrib/tools/bison/src/scan-gram.c b/contrib/tools/bison/src/scan-gram.c index 6c215ea7a7..49d9541887 100644 --- a/contrib/tools/bison/src/scan-gram.c +++ b/contrib/tools/bison/src/scan-gram.c @@ -1,22 +1,27 @@ -#line 2 "src/scan-gram.c" +#line 1 "src/scan-gram.c" -#line 4 "src/scan-gram.c" +#line 3 "src/scan-gram.c" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ /* %not-for-header */ - /* %if-c-only */ /* %if-not-reentrant */ #define yy_create_buffer gram__create_buffer #define yy_delete_buffer gram__delete_buffer -#define yy_flex_debug gram__flex_debug +#define yy_scan_buffer gram__scan_buffer +#define yy_scan_string gram__scan_string +#define yy_scan_bytes gram__scan_bytes #define yy_init_buffer gram__init_buffer #define yy_flush_buffer gram__flush_buffer #define yy_load_buffer_state gram__load_buffer_state #define yy_switch_to_buffer gram__switch_to_buffer +#define yypush_buffer_state gram_push_buffer_state +#define yypop_buffer_state gram_pop_buffer_state +#define yyensure_buffer_stack gram_ensure_buffer_stack +#define yy_flex_debug gram__flex_debug #define yyin gram_in #define yyleng gram_leng #define yylex gram_lex @@ -35,8 +40,8 @@ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 -#define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 37 +#define YY_FLEX_MINOR_VERSION 6 +#define YY_FLEX_SUBMINOR_VERSION 4 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif @@ -45,11 +50,244 @@ /* %endif */ /* %if-c-only */ - +#ifdef yy_create_buffer +#define gram__create_buffer_ALREADY_DEFINED +#else +#define yy_create_buffer gram__create_buffer +#endif + +#ifdef yy_delete_buffer +#define gram__delete_buffer_ALREADY_DEFINED +#else +#define yy_delete_buffer gram__delete_buffer +#endif + +#ifdef yy_scan_buffer +#define gram__scan_buffer_ALREADY_DEFINED +#else +#define yy_scan_buffer gram__scan_buffer +#endif + +#ifdef yy_scan_string +#define gram__scan_string_ALREADY_DEFINED +#else +#define yy_scan_string gram__scan_string +#endif + +#ifdef yy_scan_bytes +#define gram__scan_bytes_ALREADY_DEFINED +#else +#define yy_scan_bytes gram__scan_bytes +#endif + +#ifdef yy_init_buffer +#define gram__init_buffer_ALREADY_DEFINED +#else +#define yy_init_buffer gram__init_buffer +#endif + +#ifdef yy_flush_buffer +#define gram__flush_buffer_ALREADY_DEFINED +#else +#define yy_flush_buffer gram__flush_buffer +#endif + +#ifdef yy_load_buffer_state +#define gram__load_buffer_state_ALREADY_DEFINED +#else +#define yy_load_buffer_state gram__load_buffer_state +#endif + +#ifdef yy_switch_to_buffer +#define gram__switch_to_buffer_ALREADY_DEFINED +#else +#define yy_switch_to_buffer gram__switch_to_buffer +#endif + +#ifdef yypush_buffer_state +#define gram_push_buffer_state_ALREADY_DEFINED +#else +#define yypush_buffer_state gram_push_buffer_state +#endif + +#ifdef yypop_buffer_state +#define gram_pop_buffer_state_ALREADY_DEFINED +#else +#define yypop_buffer_state gram_pop_buffer_state +#endif + +#ifdef yyensure_buffer_stack +#define gram_ensure_buffer_stack_ALREADY_DEFINED +#else +#define yyensure_buffer_stack gram_ensure_buffer_stack +#endif + +#ifdef yylex +#define gram_lex_ALREADY_DEFINED +#else +#define yylex gram_lex +#endif + +#ifdef yyrestart +#define gram_restart_ALREADY_DEFINED +#else +#define yyrestart gram_restart +#endif + +#ifdef yylex_init +#define gram_lex_init_ALREADY_DEFINED +#else +#define yylex_init gram_lex_init +#endif + +#ifdef yylex_init_extra +#define gram_lex_init_extra_ALREADY_DEFINED +#else +#define yylex_init_extra gram_lex_init_extra +#endif + +#ifdef yylex_destroy +#define gram_lex_destroy_ALREADY_DEFINED +#else +#define yylex_destroy gram_lex_destroy +#endif + +#ifdef yyget_debug +#define gram_get_debug_ALREADY_DEFINED +#else +#define yyget_debug gram_get_debug +#endif + +#ifdef yyset_debug +#define gram_set_debug_ALREADY_DEFINED +#else +#define yyset_debug gram_set_debug +#endif + +#ifdef yyget_extra +#define gram_get_extra_ALREADY_DEFINED +#else +#define yyget_extra gram_get_extra +#endif + +#ifdef yyset_extra +#define gram_set_extra_ALREADY_DEFINED +#else +#define yyset_extra gram_set_extra +#endif + +#ifdef yyget_in +#define gram_get_in_ALREADY_DEFINED +#else +#define yyget_in gram_get_in +#endif + +#ifdef yyset_in +#define gram_set_in_ALREADY_DEFINED +#else +#define yyset_in gram_set_in +#endif + +#ifdef yyget_out +#define gram_get_out_ALREADY_DEFINED +#else +#define yyget_out gram_get_out +#endif + +#ifdef yyset_out +#define gram_set_out_ALREADY_DEFINED +#else +#define yyset_out gram_set_out +#endif + +#ifdef yyget_leng +#define gram_get_leng_ALREADY_DEFINED +#else +#define yyget_leng gram_get_leng +#endif + +#ifdef yyget_text +#define gram_get_text_ALREADY_DEFINED +#else +#define yyget_text gram_get_text +#endif + +#ifdef yyget_lineno +#define gram_get_lineno_ALREADY_DEFINED +#else +#define yyget_lineno gram_get_lineno +#endif + +#ifdef yyset_lineno +#define gram_set_lineno_ALREADY_DEFINED +#else +#define yyset_lineno gram_set_lineno +#endif + +#ifdef yywrap +#define gram_wrap_ALREADY_DEFINED +#else +#define yywrap gram_wrap +#endif + /* %endif */ +#ifdef yyalloc +#define gram_alloc_ALREADY_DEFINED +#else +#define yyalloc gram_alloc +#endif + +#ifdef yyrealloc +#define gram_realloc_ALREADY_DEFINED +#else +#define yyrealloc gram_realloc +#endif + +#ifdef yyfree +#define gram_free_ALREADY_DEFINED +#else +#define yyfree gram_free +#endif + /* %if-c-only */ +#ifdef yytext +#define gram_text_ALREADY_DEFINED +#else +#define yytext gram_text +#endif + +#ifdef yyleng +#define gram_leng_ALREADY_DEFINED +#else +#define yyleng gram_leng +#endif + +#ifdef yyin +#define gram_in_ALREADY_DEFINED +#else +#define yyin gram_in +#endif + +#ifdef yyout +#define gram_out_ALREADY_DEFINED +#else +#define yyout gram_out +#endif + +#ifdef yy_flex_debug +#define gram__flex_debug_ALREADY_DEFINED +#else +#define yy_flex_debug gram__flex_debug +#endif + +#ifdef yylineno +#define gram_lineno_ALREADY_DEFINED +#else +#define yylineno gram_lineno +#endif + /* %endif */ /* First, we deal with platform-specific or compiler-specific issues. */ @@ -127,50 +365,39 @@ typedef unsigned int flex_uint32_t; #define UINT32_MAX (4294967295U) #endif +#ifndef SIZE_MAX +#define SIZE_MAX (~(size_t)0) +#endif + #endif /* ! C99 */ #endif /* ! FLEXINT_H */ /* %endif */ +/* begin standard C++ headers. */ /* %if-c++-only */ /* %endif */ -#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 +/* TODO: this is always defined, so inline it */ #define yyconst const + +#if defined(__GNUC__) && __GNUC__ >= 3 +#define yynoreturn __attribute__((__noreturn__)) #else -#define yyconst +#define yynoreturn #endif /* %not-for-header */ - /* Returned upon end-of-file. */ #define YY_NULL 0 /* %ok-for-header */ /* %not-for-header */ - -/* 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. +/* Promotes a possibly negative, possibly signed char to an + * integer in range [0..255] for use as an array index. */ -#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) +#define YY_SC_TO_UI(c) ((YY_CHAR) (c)) /* %ok-for-header */ /* %if-reentrant */ @@ -185,25 +412,29 @@ typedef unsigned int flex_uint32_t; * definition of BEGIN. */ #define BEGIN (yy_start) = 1 + 2 * - /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START (((yy_start) - 1) / 2) #define YYSTATE YY_START - /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) - /* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE gram_restart(gram_in ) - +#define YY_NEW_FILE yyrestart( yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE +#ifdef __ia64__ +/* On IA-64, the buffer size is 16k, not 8k. + * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. + * Ditto for the __ia64__ case accordingly. + */ +#define YY_BUF_SIZE 32768 +#else #define YY_BUF_SIZE 16384 +#endif /* __ia64__ */ #endif /* The state buf must be large enough to hold one state per character in the main buffer. @@ -221,35 +452,35 @@ typedef size_t yy_size_t; #endif /* %if-not-reentrant */ -extern yy_size_t gram_leng; +extern int yyleng; /* %endif */ /* %if-c-only */ /* %if-not-reentrant */ -extern FILE *gram_in, *gram_out; +extern FILE *yyin, *yyout; /* %endif */ /* %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 gram_text. */ \ + /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up gram_text again */ \ + YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) - #define unput(c) yyunput( c, (yytext_ptr) ) #ifndef YY_STRUCT_YY_BUFFER_STATE @@ -269,12 +500,12 @@ struct yy_buffer_state /* Size of input buffer in bytes, not including room for EOB * characters. */ - yy_size_t yy_buf_size; + int yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ - yy_size_t yy_n_chars; + int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to @@ -297,7 +528,7 @@ struct yy_buffer_state 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. */ @@ -314,8 +545,8 @@ struct yy_buffer_state * possible backing-up. * * When we actually see the EOF, we change the status to "new" - * (via gram_restart()), so that the user can continue scanning by - * just pointing gram_in at a new input file. + * (via yyrestart()), so that the user can continue scanning by + * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 @@ -324,13 +555,12 @@ struct yy_buffer_state /* %if-c-only Standard (non-C++) definition */ /* %not-for-header */ - /* %if-not-reentrant */ /* Stack of input buffers. */ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ -static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ +static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */ /* %endif */ /* %ok-for-header */ @@ -345,7 +575,6 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) - /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ @@ -355,118 +584,115 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ /* %if-not-reentrant */ /* %not-for-header */ - -/* yy_hold_char holds the character lost when gram_text is formed. */ +/* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; -static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */ -yy_size_t gram_leng; +static int yy_n_chars; /* number of characters read into yy_ch_buf */ +int yyleng; /* Points to current character in buffer. */ -static char *yy_c_buf_p = (char *) 0; +static char *yy_c_buf_p = NULL; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ -/* Flag which is used to allow gram_wrap()'s to do buffer switches - * instead of setting up a fresh gram_in. A bit of a hack ... +/* Flag which is used to allow yywrap()'s to do buffer switches + * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; /* %ok-for-header */ /* %endif */ -void gram_restart (FILE *input_file ); -void gram__switch_to_buffer (YY_BUFFER_STATE new_buffer ); -YY_BUFFER_STATE gram__create_buffer (FILE *file,int size ); -void gram__delete_buffer (YY_BUFFER_STATE b ); -void gram__flush_buffer (YY_BUFFER_STATE b ); -void gram_push_buffer_state (YY_BUFFER_STATE new_buffer ); -void gram_pop_buffer_state (void ); - -static void gram_ensure_buffer_stack (void ); -static void gram__load_buffer_state (void ); -static void gram__init_buffer (YY_BUFFER_STATE b,FILE *file ); +void yyrestart ( FILE *input_file ); +void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer ); +YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size ); +void yy_delete_buffer ( YY_BUFFER_STATE b ); +void yy_flush_buffer ( YY_BUFFER_STATE b ); +void yypush_buffer_state ( YY_BUFFER_STATE new_buffer ); +void yypop_buffer_state ( void ); -#define YY_FLUSH_BUFFER gram__flush_buffer(YY_CURRENT_BUFFER ) +static void yyensure_buffer_stack ( void ); +static void yy_load_buffer_state ( void ); +static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file ); +#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER ) -YY_BUFFER_STATE gram__scan_buffer (char *base,yy_size_t size ); -YY_BUFFER_STATE gram__scan_string (yyconst char *yy_str ); -YY_BUFFER_STATE gram__scan_bytes (yyconst char *bytes,yy_size_t len ); +YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size ); +YY_BUFFER_STATE yy_scan_string ( const char *yy_str ); +YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len ); /* %endif */ -void *gram_alloc (yy_size_t ); -void *gram_realloc (void *,yy_size_t ); -void gram_free (void * ); - -#define yy_new_buffer gram__create_buffer +void *yyalloc ( yy_size_t ); +void *yyrealloc ( void *, yy_size_t ); +void yyfree ( void * ); +#define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ - gram_ensure_buffer_stack (); \ + yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ - gram__create_buffer(gram_in,YY_BUF_SIZE ); \ + yy_create_buffer( yyin, YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } - #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ - gram_ensure_buffer_stack (); \ + yyensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ - gram__create_buffer(gram_in,YY_BUF_SIZE ); \ + yy_create_buffer( yyin, YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } - #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) -/* %% [1.0] gram_text/gram_in/gram_out/yy_state_type/gram_lineno etc. def's & init go here */ +/* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */ /* Begin user sect3 */ -#define gram_wrap() 1 +#define gram_wrap() (/*CONSTCOND*/1) #define YY_SKIP_YYWRAP #define FLEX_DEBUG +typedef flex_uint8_t YY_CHAR; -typedef unsigned char YY_CHAR; - -FILE *gram_in = (FILE *) 0, *gram_out = (FILE *) 0; +FILE *yyin = NULL, *yyout = NULL; typedef int yy_state_type; -extern int gram_lineno; +extern int yylineno; +int yylineno = 1; -int gram_lineno = 1; +extern char *yytext; +#ifdef yytext_ptr +#undef yytext_ptr +#endif +#define yytext_ptr yytext -extern char *gram_text; -#define yytext_ptr gram_text +/* %% [1.5] DFA */ /* %if-c-only Standard (non-C++) definition */ -static yy_state_type yy_get_previous_state (void ); -static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); -static int yy_get_next_buffer (void ); -static void yy_fatal_error (yyconst char msg[] ); +static yy_state_type yy_get_previous_state ( void ); +static yy_state_type yy_try_NUL_trans ( yy_state_type current_state ); +static int yy_get_next_buffer ( void ); +static void yynoreturn yy_fatal_error ( const char* msg ); /* %endif */ /* Done after the current pattern has been matched and before the - * corresponding action - sets up gram_text. + * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ -/* %% [2.0] code to fiddle gram_text and gram_leng for yymore() goes here \ */\ - gram_leng = (size_t) (yy_cp - yy_bp); \ +/* %% [2.0] code to fiddle yytext and yyleng for yymore() goes here \ */\ + yyleng = (int) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ -/* %% [3.0] code to copy yytext_ptr to gram_text[] goes here, if %array \ */\ +/* %% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \ */\ (yy_c_buf_p) = yy_cp; - /* %% [4.0] data tables for the DFA and the user's section 1 definitions go here */ -#define YY_NUM_RULES 130 -#define YY_END_OF_BUFFER 131 +#define YY_NUM_RULES 129 +#define YY_END_OF_BUFFER 130 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info @@ -474,90 +700,89 @@ struct yy_trans_info flex_int32_t yy_verify; flex_int32_t yy_nxt; }; -static yyconst flex_int16_t yy_accept[582] = +static const flex_int16_t yy_accept[573] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 93, 93, 113, 113, 113, 113, 0, 0, - 0, 0, 131, 80, 2, 2, 71, 80, 70, 80, - 1, 66, 80, 67, 67, 65, 77, 63, 66, 79, - 73, 64, 80, 90, 90, 128, 95, 94, 128, 81, - 97, 96, 84, 2, 1, 84, 83, 82, 84, 99, - 99, 100, 98, 81, 129, 119, 128, 118, 128, 128, - 128, 122, 125, 126, 128, 92, 128, 117, 116, 128, - 115, 114, 87, 2, 1, 85, 87, 87, 86, 87, - - 88, 2, 1, 88, 88, 80, 0, 78, 62, 0, - 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, - 62, 62, 62, 62, 62, 62, 62, 62, 72, 66, - 66, 4, 3, 69, 67, 69, 0, 76, 0, 89, - 112, 110, 101, 112, 103, 104, 105, 106, 107, 108, - 112, 109, 112, 99, 99, 100, 127, 120, 121, 0, - 123, 0, 122, 124, 0, 91, 0, 0, 93, 113, - 113, 113, 113, 87, 85, 62, 62, 0, 62, 62, - 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, - 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, - - 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, - 3, 69, 68, 75, 0, 101, 0, 0, 102, 0, + 0, 0, 92, 92, 112, 112, 112, 112, 0, 0, + 0, 0, 130, 79, 2, 2, 70, 79, 69, 79, + 1, 65, 79, 66, 66, 64, 76, 62, 65, 78, + 72, 63, 79, 89, 89, 127, 94, 93, 127, 80, + 96, 95, 83, 2, 1, 83, 82, 81, 83, 98, + 98, 99, 97, 80, 128, 118, 127, 117, 127, 127, + 127, 121, 124, 125, 127, 91, 127, 116, 115, 127, + 114, 113, 86, 2, 1, 84, 86, 86, 85, 86, + + 87, 2, 1, 87, 87, 79, 77, 61, 0, 61, + 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, + 61, 61, 61, 61, 61, 61, 61, 71, 65, 65, + 4, 3, 68, 66, 68, 0, 75, 0, 88, 111, + 109, 100, 111, 102, 103, 104, 105, 106, 107, 111, + 108, 111, 98, 98, 99, 126, 119, 120, 0, 122, + 0, 121, 123, 0, 90, 0, 0, 92, 112, 112, + 112, 112, 86, 84, 61, 0, 73, 61, 61, 61, + 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, + 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, + + 61, 61, 61, 61, 61, 61, 61, 61, 3, 68, + 67, 74, 0, 100, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 74, 62, 62, 62, 62, 62, 62, 62, - 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, - 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, - 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, - 62, 0, 101, 0, 0, 62, 7, 62, 62, 62, - 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, - 23, 62, 62, 62, 62, 62, 62, 62, 62, 62, - - 62, 62, 62, 62, 62, 36, 62, 62, 62, 62, - 62, 62, 44, 62, 47, 62, 62, 50, 0, 0, - 0, 62, 8, 62, 62, 62, 13, 14, 62, 62, - 62, 62, 62, 62, 62, 62, 62, 26, 62, 62, - 62, 62, 62, 62, 62, 62, 32, 62, 34, 62, - 62, 62, 62, 62, 62, 41, 62, 43, 45, 48, - 62, 0, 0, 111, 6, 62, 10, 62, 62, 62, - 16, 62, 62, 62, 62, 62, 62, 62, 62, 62, - 62, 62, 62, 62, 62, 62, 62, 33, 62, 62, - 62, 62, 62, 62, 62, 62, 62, 62, 0, 62, - - 11, 62, 62, 62, 62, 62, 62, 62, 62, 62, - 62, 62, 62, 62, 62, 62, 62, 62, 62, 62, - 62, 62, 0, 59, 62, 62, 38, 62, 62, 40, - 62, 62, 62, 49, 5, 0, 62, 62, 62, 62, - 62, 62, 62, 62, 62, 62, 62, 62, 22, 62, - 62, 62, 62, 62, 29, 62, 58, 30, 62, 62, - 62, 62, 62, 42, 62, 62, 0, 62, 62, 62, - 62, 62, 17, 53, 62, 62, 62, 62, 62, 24, - 25, 62, 62, 62, 62, 62, 62, 62, 62, 62, - 62, 62, 0, 0, 62, 62, 12, 62, 62, 62, - - 62, 62, 21, 62, 62, 62, 62, 62, 62, 62, - 37, 62, 62, 62, 62, 62, 62, 62, 62, 18, - 62, 62, 62, 27, 56, 62, 62, 62, 35, 39, - 60, 46, 61, 9, 51, 62, 62, 0, 54, 62, - 62, 62, 0, 56, 62, 62, 62, 15, 52, 62, - 62, 62, 62, 62, 62, 62, 62, 20, 62, 62, - 62, 62, 62, 28, 57, 62, 62, 62, 62, 62, - 62, 62, 19, 55, 62, 62, 62, 62, 62, 31, - 0 + 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, + 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, + 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, + 61, 61, 61, 61, 61, 61, 61, 61, 0, 100, + 0, 0, 61, 7, 61, 61, 61, 61, 61, 61, + 61, 61, 61, 61, 61, 61, 61, 22, 61, 61, + 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, + + 61, 61, 34, 61, 61, 61, 61, 61, 61, 42, + 61, 45, 61, 61, 48, 0, 0, 0, 61, 8, + 61, 61, 61, 13, 14, 61, 61, 61, 61, 61, + 61, 61, 61, 61, 25, 61, 61, 61, 61, 61, + 61, 61, 30, 61, 32, 61, 61, 61, 61, 61, + 61, 39, 61, 41, 43, 46, 61, 0, 0, 110, + 6, 61, 10, 61, 61, 61, 15, 61, 61, 61, + 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, + 61, 61, 31, 61, 61, 61, 61, 61, 61, 61, + 61, 61, 61, 0, 61, 11, 61, 61, 61, 61, + + 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, + 61, 61, 61, 61, 61, 61, 0, 58, 61, 61, + 36, 61, 61, 38, 61, 61, 61, 47, 5, 0, + 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, + 61, 61, 21, 61, 61, 61, 61, 27, 61, 57, + 28, 61, 61, 61, 61, 61, 40, 61, 61, 0, + 61, 61, 61, 61, 61, 16, 53, 61, 61, 61, + 61, 61, 23, 24, 61, 61, 61, 61, 61, 61, + 61, 61, 61, 61, 0, 0, 61, 61, 12, 61, + 61, 61, 61, 61, 20, 61, 61, 61, 61, 61, + + 61, 35, 61, 61, 61, 61, 61, 61, 61, 61, + 17, 61, 61, 61, 50, 61, 61, 61, 33, 37, + 59, 44, 60, 9, 51, 61, 61, 0, 54, 61, + 61, 61, 50, 50, 61, 61, 61, 49, 52, 61, + 61, 61, 50, 61, 61, 61, 61, 61, 19, 61, + 61, 61, 61, 61, 26, 56, 61, 61, 61, 61, + 61, 61, 61, 18, 55, 61, 61, 61, 61, 61, + 29, 0 } ; -static yyconst flex_int32_t yy_ec[256] = +static const YY_CHAR yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 2, 2, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 5, 6, 7, 8, 6, 9, 6, 10, 6, - 6, 11, 6, 12, 13, 14, 15, 16, 17, 17, - 17, 17, 17, 17, 17, 18, 18, 19, 20, 21, - 22, 23, 24, 6, 25, 25, 25, 25, 25, 25, - 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, - 26, 26, 26, 26, 27, 26, 26, 28, 26, 26, - 29, 30, 31, 6, 32, 6, 33, 34, 35, 36, - - 37, 38, 39, 40, 41, 26, 42, 43, 44, 45, - 46, 47, 48, 49, 50, 51, 52, 53, 26, 54, - 55, 26, 56, 57, 58, 6, 1, 1, 1, 1, + 1, 5, 1, 6, 7, 1, 8, 1, 9, 1, + 1, 10, 1, 11, 12, 13, 14, 15, 16, 16, + 16, 16, 16, 16, 16, 17, 17, 18, 19, 20, + 21, 22, 23, 1, 24, 24, 24, 24, 24, 24, + 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, + 25, 25, 25, 25, 26, 25, 25, 27, 25, 25, + 28, 29, 30, 1, 31, 1, 32, 33, 34, 35, + + 36, 37, 38, 39, 40, 25, 41, 42, 43, 44, + 45, 46, 47, 48, 49, 50, 51, 52, 25, 53, + 54, 25, 55, 56, 57, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -574,438 +799,420 @@ static yyconst flex_int32_t yy_ec[256] = 1, 1, 1, 1, 1 } ; -static yyconst flex_int32_t yy_meta[60] = +static const YY_CHAR yy_meta[59] = { 0, - 1, 2, 3, 1, 2, 4, 5, 4, 5, 5, - 5, 5, 6, 7, 8, 9, 9, 9, 4, 5, - 10, 5, 10, 4, 9, 11, 11, 11, 12, 4, - 13, 11, 9, 9, 9, 9, 9, 9, 11, 11, - 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, - 11, 11, 11, 11, 11, 5, 5, 5, 1 + 1, 2, 3, 1, 2, 4, 1, 4, 4, 4, + 4, 5, 6, 2, 7, 7, 7, 1, 4, 8, + 4, 8, 1, 7, 9, 9, 9, 10, 1, 11, + 9, 7, 7, 7, 7, 7, 7, 9, 9, 9, + 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, + 9, 9, 9, 9, 4, 4, 4, 1 } ; -static yyconst flex_int16_t yy_base[609] = +static const flex_int16_t yy_base[599] = { 0, - 0, 1065, 1061, 1060, 57, 58, 59, 60, 79, 94, - 53, 62, 117, 126, 135, 144, 100, 145, 154, 163, - 68, 69, 65, 70, 98, 155, 101, 164, 221, 1062, - 174, 193, 1069, 0, 1074, 1074, 1074, 280, 1074, 1074, - 1074, 339, 119, 164, 197, 1074, 114, 1074, 398, 1074, - 1074, 1074, 1025, 1074, 1052, 1074, 1074, 1074, 451, 1074, - 1074, 1074, 1074, 1074, 1074, 128, 1074, 1074, 1023, 1052, - 54, 1043, 1074, 1050, 1074, 1074, 1004, 1074, 331, 63, - 190, 1074, 1074, 1074, 153, 1074, 185, 1074, 1074, 346, - 1074, 1074, 0, 1074, 0, 0, 192, 1074, 1074, 1018, - - 1074, 1074, 1074, 339, 1017, 0, 0, 1074, 0, 354, - 1018, 1012, 169, 311, 1016, 1013, 1010, 329, 1017, 331, - 1001, 334, 331, 98, 334, 1007, 1014, 1017, 1074, 505, - 0, 1074, 0, 0, 374, 549, 1026, 1074, 1007, 1074, - 1074, 1074, 357, 0, 1074, 1074, 1074, 1074, 1074, 1074, - 0, 1074, 0, 1034, 365, 1025, 1074, 1074, 1074, 382, - 1074, 391, 1074, 1074, 398, 1074, 406, 410, 1015, 1074, - 416, 1014, 421, 0, 0, 0, 0, 430, 0, 998, - 1006, 393, 992, 993, 990, 991, 362, 988, 995, 990, - 341, 999, 984, 988, 407, 994, 979, 980, 393, 979, - - 979, 987, 988, 991, 974, 980, 974, 979, 970, 983, - 0, 0, 0, 1074, 972, 420, 0, 0, 0, 439, - 434, 445, 174, 451, 442, 457, 410, 468, 474, 485, - 489, 435, 1074, 983, 978, 962, 81, 962, 975, 960, - 964, 972, 971, 970, 993, 954, 965, 952, 989, 968, - 961, 962, 371, 465, 308, 949, 950, 433, 961, 950, - 957, 941, 952, 948, 941, 945, 951, 950, 940, 951, - 949, 946, 1074, 0, 0, 933, 0, 942, 928, 934, - 929, 942, 921, 926, 939, 960, 936, 924, 929, 917, - 0, 921, 916, 929, 442, 928, 923, 926, 921, 911, - - 923, 915, 906, 913, 919, 918, 903, 467, 912, 901, - 914, 899, 0, 904, 0, 903, 901, 0, 941, 0, - 0, 890, 0, 901, 906, 890, 0, 0, 480, 890, - 893, 482, 906, 905, 904, 903, 894, 0, 887, 886, - 894, 886, 892, 884, 878, 876, 0, 875, 0, 912, - 888, 886, 875, 874, 871, 0, 868, 0, 484, 0, - 868, 504, 0, 1074, 0, 866, 866, 880, 861, 860, - 485, 863, 865, 864, 860, 865, 868, 857, 859, 855, - 854, 869, 864, 867, 862, 852, 860, 523, 849, 858, - 845, 860, 859, 854, 844, 838, 837, 850, 534, 502, - - 0, 835, 848, 847, 834, 833, 844, 828, 827, 828, - 864, 839, 842, 829, 836, 835, 819, 820, 817, 818, - 832, 817, 538, 1074, 832, 819, 0, 814, 813, 0, - 816, 827, 826, 0, 1074, 851, 810, 809, 809, 805, - 804, 803, 802, 812, 798, 797, 810, 813, 0, 801, - 794, 805, 804, 798, 0, 797, 0, 0, 795, 789, - 802, 786, 785, 0, 800, 799, 825, 782, 781, 780, - 794, 793, 0, 0, 785, 778, 777, 774, 787, 0, - 0, 780, 779, 768, 767, 776, 783, 768, 764, 762, - 743, 739, 773, 541, 729, 727, 0, 714, 712, 703, - - 704, 700, 0, 700, 681, 657, 517, 525, 664, 662, - 0, 655, 653, 662, 660, 661, 658, 642, 641, 551, - 639, 638, 645, 566, 573, 637, 636, 574, 0, 0, - 0, 0, 0, 0, 0, 577, 576, 587, 1074, 548, - 549, 566, 594, 1074, 562, 561, 558, 0, 0, 569, - 568, 560, 567, 566, 551, 560, 559, 0, 559, 558, - 538, 529, 520, 0, 0, 524, 521, 510, 533, 483, - 482, 484, 0, 0, 490, 461, 457, 445, 420, 0, - 1074, 616, 629, 642, 655, 668, 681, 694, 701, 712, - 725, 738, 749, 756, 764, 772, 783, 791, 437, 388, - - 372, 208, 200, 162, 137, 83, 69, 802 + 0, 998, 994, 993, 56, 57, 58, 61, 63, 90, + 76, 87, 70, 97, 117, 121, 66, 130, 140, 144, + 79, 107, 99, 109, 153, 159, 148, 152, 201, 995, + 182, 258, 1001, 0, 1006, 1006, 1006, 265, 1006, 1006, + 1006, 320, 153, 313, 153, 1006, 61, 1006, 330, 1006, + 1006, 1006, 958, 1006, 985, 1006, 1006, 1006, 383, 1006, + 1006, 1006, 1006, 1006, 1006, 161, 1006, 1006, 956, 985, + 110, 976, 1006, 983, 1006, 1006, 937, 1006, 169, 144, + 254, 1006, 1006, 1006, 250, 1006, 187, 1006, 1006, 265, + 1006, 1006, 0, 1006, 0, 0, 261, 1006, 1006, 951, + + 1006, 1006, 1006, 266, 950, 0, 1006, 0, 320, 951, + 945, 241, 293, 949, 946, 943, 250, 950, 294, 934, + 303, 245, 150, 311, 940, 947, 950, 1006, 436, 0, + 1006, 0, 0, 346, 480, 959, 1006, 940, 1006, 1006, + 1006, 342, 0, 1006, 1006, 1006, 1006, 1006, 1006, 0, + 1006, 0, 967, 330, 958, 1006, 1006, 1006, 365, 1006, + 369, 1006, 1006, 374, 1006, 378, 382, 948, 1006, 388, + 947, 392, 0, 0, 0, 398, 1006, 931, 939, 374, + 925, 926, 923, 924, 360, 921, 928, 923, 368, 932, + 917, 921, 398, 927, 912, 913, 333, 912, 912, 920, + + 921, 924, 907, 913, 907, 912, 903, 916, 0, 0, + 0, 1006, 905, 402, 0, 0, 0, 423, 431, 453, + 410, 459, 443, 465, 390, 471, 475, 479, 483, 379, + 916, 911, 895, 81, 895, 908, 893, 897, 905, 904, + 903, 926, 887, 898, 885, 922, 901, 894, 895, 415, + 448, 412, 882, 883, 420, 894, 883, 890, 874, 885, + 881, 874, 878, 884, 883, 873, 884, 882, 879, 1006, + 0, 0, 866, 0, 875, 861, 867, 862, 875, 854, + 859, 872, 893, 869, 857, 862, 850, 0, 854, 849, + 862, 333, 861, 856, 859, 854, 844, 856, 848, 839, + + 846, 852, 851, 836, 467, 845, 834, 847, 832, 0, + 837, 0, 836, 834, 0, 873, 0, 0, 823, 0, + 834, 839, 823, 0, 0, 475, 823, 826, 477, 839, + 838, 837, 836, 827, 0, 820, 828, 820, 826, 818, + 812, 810, 0, 809, 0, 846, 822, 820, 809, 808, + 805, 0, 802, 0, 479, 0, 802, 484, 0, 1006, + 0, 800, 800, 814, 795, 794, 480, 797, 799, 798, + 794, 799, 802, 791, 793, 789, 804, 799, 802, 797, + 787, 795, 516, 784, 793, 780, 795, 794, 789, 779, + 773, 772, 785, 519, 495, 0, 770, 783, 782, 769, + + 768, 779, 763, 762, 763, 799, 774, 777, 764, 771, + 755, 756, 753, 754, 768, 753, 525, 1006, 768, 755, + 0, 750, 749, 0, 752, 763, 762, 0, 1006, 787, + 746, 745, 745, 741, 740, 739, 738, 748, 734, 733, + 746, 749, 0, 737, 730, 741, 735, 0, 734, 0, + 0, 732, 726, 739, 723, 722, 0, 737, 736, 762, + 719, 718, 717, 731, 730, 0, 0, 722, 715, 714, + 711, 724, 0, 0, 717, 706, 705, 714, 721, 716, + 715, 714, 707, 706, 741, 499, 710, 709, 0, 699, + 698, 689, 690, 681, 0, 678, 663, 511, 513, 668, + + 664, 0, 654, 652, 663, 660, 661, 647, 612, 608, + 536, 605, 601, 610, 545, 603, 600, 605, 0, 0, + 0, 0, 0, 0, 0, 608, 607, 549, 1006, 531, + 533, 595, 556, 569, 591, 590, 527, 0, 0, 538, + 532, 524, 576, 531, 529, 513, 516, 515, 0, 499, + 498, 491, 467, 461, 0, 0, 459, 439, 435, 434, + 389, 381, 378, 0, 0, 390, 366, 347, 350, 307, + 0, 1006, 581, 592, 603, 614, 625, 636, 647, 653, + 662, 673, 684, 693, 699, 704, 713, 720, 286, 277, + 259, 187, 179, 173, 135, 133, 87, 729 + } ; -static yyconst flex_int16_t yy_def[609] = +static const flex_int16_t yy_def[599] = { 0, - 581, 1, 582, 582, 583, 583, 583, 583, 584, 584, - 585, 585, 583, 583, 583, 583, 583, 583, 583, 583, - 583, 583, 583, 583, 583, 583, 583, 583, 581, 29, - 586, 586, 581, 587, 581, 581, 581, 581, 581, 581, - 581, 588, 581, 589, 589, 581, 581, 581, 588, 581, - 581, 581, 587, 581, 581, 581, 581, 581, 590, 581, - 581, 581, 581, 581, 581, 581, 581, 581, 581, 591, - 591, 581, 581, 591, 581, 581, 581, 581, 581, 581, - 581, 581, 581, 581, 581, 581, 581, 581, 581, 592, - 581, 581, 593, 581, 593, 594, 581, 581, 581, 593, - - 581, 581, 581, 581, 581, 587, 595, 581, 596, 595, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 581, 588, - 49, 581, 597, 598, 589, 598, 581, 581, 581, 581, - 581, 581, 581, 599, 581, 581, 581, 581, 581, 581, - 600, 581, 601, 591, 591, 581, 581, 581, 581, 581, - 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, - 581, 581, 581, 593, 594, 595, 596, 581, 595, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 597, 598, 136, 581, 581, 581, 602, 603, 601, 581, - 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, - 581, 592, 581, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 581, 581, 604, 605, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 581, 606, - 607, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 581, 600, 581, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 581, 596, - - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 581, 581, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 581, 581, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 608, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 608, 608, 596, 596, 596, 596, 596, 596, - - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 581, 581, 596, - 596, 596, 581, 581, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, - 0, 581, 581, 581, 581, 581, 581, 581, 581, 581, - 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, - - 581, 581, 581, 581, 581, 581, 581, 581 + 572, 1, 573, 573, 574, 574, 574, 574, 575, 575, + 576, 576, 574, 574, 574, 574, 574, 574, 574, 574, + 574, 574, 574, 574, 574, 574, 574, 574, 572, 29, + 577, 577, 572, 578, 572, 572, 572, 572, 572, 572, + 572, 579, 572, 580, 580, 572, 572, 572, 579, 572, + 572, 572, 578, 572, 572, 572, 572, 572, 581, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 582, + 582, 572, 572, 582, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 583, + 572, 572, 584, 572, 584, 585, 572, 572, 572, 584, + + 572, 572, 572, 572, 572, 578, 572, 586, 572, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 572, 579, 49, + 572, 587, 588, 580, 588, 572, 572, 572, 572, 572, + 572, 572, 589, 572, 572, 572, 572, 572, 572, 590, + 572, 591, 582, 582, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, + 572, 572, 584, 585, 586, 572, 572, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + + 586, 586, 586, 586, 586, 586, 586, 586, 587, 588, + 135, 572, 572, 572, 592, 593, 591, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 583, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 572, 572, + 594, 595, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 572, 596, 597, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 572, 590, 572, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 572, 586, 586, 586, 586, 586, 586, + + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 572, 572, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 572, 572, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 598, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 598, 598, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 572, 572, 586, + 586, 586, 572, 572, 586, 586, 586, 586, 586, 586, + 586, 586, 572, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, + 586, 0, 572, 572, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572 + } ; -static yyconst flex_int16_t yy_nxt[1134] = +static const flex_int16_t yy_nxt[1065] = { 0, - 34, 35, 36, 34, 35, 34, 37, 34, 38, 39, - 40, 41, 34, 42, 43, 44, 45, 45, 34, 46, - 47, 48, 40, 34, 49, 49, 49, 49, 50, 34, - 34, 49, 49, 49, 49, 49, 49, 49, 49, 49, + 34, 35, 36, 34, 35, 37, 34, 38, 39, 40, + 41, 34, 42, 43, 44, 45, 45, 34, 46, 47, + 48, 40, 34, 49, 49, 49, 49, 50, 34, 34, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, - 49, 49, 49, 49, 49, 51, 52, 40, 34, 57, - 57, 61, 61, 58, 58, 71, 155, 86, 62, 62, - 75, 75, 86, 72, 71, 73, 154, 364, 85, 85, - 64, 36, 72, 64, 73, 161, 59, 59, 59, 59, - 65, 363, 162, 66, 87, 64, 36, 67, 64, 87, - - 88, 69, 75, 91, 89, 65, 76, 68, 66, 78, - 92, 74, 67, 279, 79, 60, 60, 60, 60, 75, - 74, 280, 68, 76, 137, 77, 78, 90, 75, 132, - 90, 79, 76, 133, 77, 78, 138, 75, 132, 203, - 79, 76, 133, 80, 78, 321, 75, 75, 204, 79, - 76, 76, 80, 78, 78, 81, 75, 88, 79, 79, - 76, 89, 80, 78, 81, 75, 91, 166, 79, 76, - 320, 80, 78, 92, 81, 102, 36, 79, 102, 135, - 135, 135, 167, 81, 90, 103, 168, 169, 104, 168, - 82, 136, 83, 90, 102, 36, 161, 102, 163, 82, - - 105, 83, 132, 162, 103, 182, 133, 104, 275, 82, - 164, 84, 135, 135, 135, 183, 274, 136, 82, 165, + 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, + 49, 49, 49, 49, 51, 52, 40, 34, 57, 57, + 61, 58, 58, 61, 64, 36, 62, 64, 75, 62, + 136, 76, 75, 65, 78, 76, 66, 77, 78, 79, + 67, 75, 137, 79, 59, 59, 59, 71, 85, 59, + 68, 64, 36, 360, 64, 72, 69, 73, 71, 75, + + 65, 86, 76, 66, 77, 78, 72, 67, 73, 75, + 79, 86, 276, 60, 60, 60, 85, 68, 60, 75, + 277, 154, 76, 75, 80, 78, 76, 87, 80, 78, + 79, 153, 75, 74, 79, 76, 81, 87, 78, 359, + 81, 318, 75, 79, 74, 76, 75, 80, 78, 76, + 91, 80, 78, 79, 91, 88, 92, 79, 89, 81, + 92, 88, 131, 81, 89, 160, 132, 134, 134, 134, + 131, 82, 161, 83, 132, 82, 90, 83, 157, 317, + 90, 90, 158, 102, 36, 272, 102, 90, 167, 168, + 201, 167, 103, 271, 82, 104, 84, 159, 82, 202, + 84, 93, 94, 36, 93, 94, 93, 93, 93, 93, - 93, 93, 95, 93, 96, 97, 98, 98, 98, 93, - 93, 93, 93, 93, 93, 96, 96, 96, 96, 93, - 93, 99, 96, 96, 96, 96, 96, 96, 96, 96, + 93, 95, 93, 96, 97, 98, 98, 98, 93, 93, + 93, 93, 93, 93, 96, 96, 96, 96, 93, 93, + 99, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, 96, - 96, 96, 96, 96, 96, 96, 93, 93, 93, 93, - 107, 107, 107, 107, 107, 107, 107, 107, 108, 107, - 107, 107, 107, 109, 107, 107, 107, 107, 107, 107, - - 107, 107, 107, 110, 109, 109, 109, 109, 107, 107, - 107, 109, 109, 111, 112, 113, 114, 115, 116, 109, - 117, 109, 118, 119, 120, 121, 122, 109, 123, 124, - 125, 126, 127, 109, 128, 129, 107, 107, 107, 106, - 300, 158, 106, 301, 106, 159, 106, 171, 172, 132, - 171, 130, 130, 133, 184, 178, 178, 106, 178, 185, - 160, 190, 106, 194, 186, 191, 198, 201, 106, 106, - 205, 202, 216, 216, 192, 173, 195, 155, 248, 206, - 219, 196, 199, 220, 221, 200, 220, 154, 207, 135, - 135, 135, 222, 223, 249, 222, 218, 106, 581, 224, - - 225, 581, 224, 581, 243, 581, 296, 226, 227, 179, - 226, 168, 169, 297, 168, 244, 581, 229, 172, 253, - 229, 581, 231, 232, 166, 231, 236, 581, 581, 259, - 237, 178, 178, 260, 178, 273, 273, 581, 254, 167, - 220, 221, 238, 220, 158, 217, 222, 223, 159, 222, - 163, 255, 224, 225, 339, 224, 581, 142, 226, 227, - 142, 226, 164, 160, 173, 304, 143, 143, 580, 168, - 169, 165, 168, 340, 142, 229, 172, 144, 229, 353, - 142, 579, 305, 145, 146, 233, 229, 172, 147, 229, - 231, 232, 369, 231, 373, 148, 396, 405, 354, 149, - - 298, 150, 151, 152, 153, 106, 578, 299, 106, 577, - 106, 370, 106, 374, 437, 397, 406, 130, 130, 399, - 399, 399, 576, 106, 423, 423, 423, 423, 106, 526, - 575, 574, 573, 438, 106, 106, 435, 527, 436, 423, - 423, 423, 423, 435, 424, 572, 571, 494, 527, 399, - 399, 399, 538, 538, 538, 538, 527, 570, 569, 424, - 550, 551, 568, 106, 213, 213, 213, 543, 543, 543, - 543, 567, 539, 213, 543, 543, 543, 543, 566, 551, - 551, 213, 213, 213, 213, 213, 213, 544, 538, 538, - 538, 538, 565, 564, 544, 543, 543, 543, 543, 563, - - 562, 561, 560, 559, 558, 557, 556, 555, 539, 554, - 553, 552, 549, 548, 547, 544, 54, 54, 54, 54, - 54, 54, 54, 54, 54, 54, 54, 54, 54, 56, - 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, - 56, 56, 63, 63, 63, 63, 63, 63, 63, 63, - 63, 63, 63, 63, 63, 70, 70, 70, 70, 70, - 70, 70, 70, 70, 70, 70, 70, 70, 101, 101, - 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, - 101, 106, 546, 545, 106, 542, 106, 106, 541, 540, - 537, 536, 535, 106, 131, 534, 533, 131, 532, 131, - - 131, 531, 131, 530, 131, 529, 131, 134, 528, 134, - 525, 134, 141, 141, 141, 141, 141, 141, 141, 141, - 141, 141, 141, 141, 141, 154, 154, 154, 154, 154, - 154, 154, 154, 154, 524, 154, 154, 154, 170, 170, - 170, 170, 170, 170, 170, 170, 170, 170, 170, 174, - 523, 522, 174, 174, 174, 521, 520, 519, 174, 518, - 174, 175, 175, 517, 175, 516, 175, 176, 176, 176, - 176, 176, 176, 176, 176, 176, 176, 177, 177, 494, - 177, 515, 177, 211, 211, 514, 211, 211, 211, 211, - 211, 211, 211, 211, 211, 211, 212, 212, 513, 212, - - 512, 212, 493, 493, 511, 493, 493, 493, 493, 493, - 493, 493, 493, 493, 493, 510, 509, 508, 507, 506, - 505, 504, 503, 502, 501, 500, 499, 498, 497, 496, - 495, 494, 492, 491, 490, 489, 488, 487, 486, 485, - 484, 483, 482, 481, 480, 479, 478, 477, 476, 475, - 474, 473, 472, 471, 470, 469, 468, 467, 466, 465, - 464, 463, 462, 461, 460, 459, 458, 457, 456, 455, - 454, 453, 452, 451, 450, 449, 448, 447, 446, 445, - 444, 443, 442, 441, 440, 439, 434, 433, 432, 431, - 430, 429, 428, 427, 426, 425, 422, 421, 420, 419, - - 418, 417, 416, 415, 414, 413, 412, 411, 410, 409, - 408, 407, 404, 403, 402, 401, 400, 398, 395, 394, - 393, 392, 391, 390, 389, 388, 387, 386, 385, 384, - 383, 382, 381, 380, 379, 378, 377, 376, 375, 372, - 371, 368, 367, 366, 365, 362, 361, 360, 359, 358, - 357, 356, 355, 352, 351, 350, 349, 348, 347, 346, - 345, 344, 343, 342, 341, 338, 337, 336, 335, 334, - 333, 332, 331, 330, 329, 328, 327, 326, 325, 324, - 323, 322, 319, 318, 317, 316, 315, 314, 313, 312, - 311, 310, 309, 308, 307, 306, 303, 302, 295, 294, - - 293, 292, 291, 290, 289, 288, 287, 286, 285, 284, - 283, 282, 281, 278, 277, 276, 272, 271, 270, 269, - 268, 267, 266, 265, 264, 263, 262, 261, 258, 257, - 256, 252, 251, 250, 247, 246, 245, 242, 241, 240, - 239, 235, 234, 230, 228, 156, 155, 215, 214, 210, - 209, 208, 197, 193, 189, 188, 187, 181, 180, 139, - 139, 157, 155, 156, 155, 139, 140, 139, 581, 100, - 55, 55, 53, 33, 581, 581, 581, 581, 581, 581, - 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, - 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, - - 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, - 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, - 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, - 581, 581, 581 + 96, 96, 96, 96, 96, 93, 93, 93, 93, 102, + 36, 162, 102, 165, 105, 217, 170, 171, 103, 170, + 131, 104, 107, 163, 132, 131, 180, 108, 166, 132, + 199, 188, 164, 216, 200, 189, 181, 109, 108, 108, + 108, 108, 215, 172, 190, 108, 108, 110, 111, 112, + + 113, 114, 115, 108, 116, 108, 117, 118, 119, 120, + 121, 108, 122, 123, 124, 125, 126, 108, 127, 128, + 106, 176, 176, 106, 176, 192, 106, 134, 134, 134, + 572, 129, 129, 572, 196, 182, 572, 106, 193, 135, + 183, 154, 106, 194, 336, 184, 203, 572, 106, 106, + 197, 153, 572, 198, 571, 204, 214, 214, 572, 572, + 134, 134, 134, 336, 205, 135, 218, 219, 256, 218, + 220, 221, 257, 220, 177, 222, 223, 106, 222, 224, + 225, 572, 224, 167, 168, 570, 167, 572, 141, 227, + 171, 141, 227, 229, 230, 569, 229, 142, 142, 176, + + 176, 240, 176, 165, 245, 141, 233, 172, 143, 250, + 234, 141, 241, 568, 144, 145, 270, 270, 166, 146, + 246, 567, 235, 566, 218, 219, 147, 218, 251, 565, + 148, 160, 149, 150, 151, 152, 106, 564, 161, 106, + 157, 252, 106, 297, 158, 563, 298, 129, 129, 293, + 162, 301, 177, 106, 220, 221, 294, 220, 106, 159, + 222, 223, 163, 222, 106, 106, 224, 225, 302, 224, + 562, 164, 167, 168, 561, 167, 227, 171, 349, 227, + 227, 171, 295, 227, 229, 230, 365, 229, 369, 296, + 391, 400, 560, 106, 211, 211, 211, 350, 394, 394, + + 394, 429, 559, 211, 486, 366, 431, 370, 558, 392, + 401, 211, 211, 211, 211, 211, 211, 417, 417, 417, + 417, 429, 516, 430, 517, 432, 417, 417, 417, 417, + 557, 556, 555, 394, 394, 394, 418, 528, 528, 528, + 528, 517, 540, 517, 541, 418, 533, 533, 533, 533, + 528, 528, 528, 528, 554, 553, 529, 533, 533, 533, + 533, 541, 552, 541, 551, 534, 550, 549, 548, 529, + 543, 543, 543, 543, 547, 546, 534, 543, 543, 543, + 543, 54, 54, 54, 54, 54, 54, 54, 54, 54, + 54, 54, 56, 56, 56, 56, 56, 56, 56, 56, + + 56, 56, 56, 63, 63, 63, 63, 63, 63, 63, + 63, 63, 63, 63, 70, 70, 70, 70, 70, 70, + 70, 70, 70, 70, 70, 101, 101, 101, 101, 101, + 101, 101, 101, 101, 101, 101, 106, 545, 544, 542, + 106, 106, 539, 538, 537, 536, 106, 130, 535, 532, + 531, 130, 130, 130, 530, 130, 527, 130, 133, 133, + 526, 133, 140, 140, 140, 140, 140, 140, 140, 140, + 140, 140, 140, 153, 153, 153, 153, 153, 153, 153, + 525, 153, 153, 153, 169, 169, 169, 169, 169, 169, + 169, 169, 169, 173, 524, 523, 173, 173, 522, 521, + + 173, 520, 173, 174, 174, 174, 519, 174, 175, 175, + 175, 518, 175, 209, 209, 515, 209, 209, 209, 209, + 209, 209, 209, 209, 210, 210, 210, 514, 210, 485, + 485, 513, 485, 485, 485, 485, 485, 485, 485, 485, + 512, 511, 510, 509, 508, 507, 486, 506, 505, 504, + 503, 502, 501, 500, 499, 498, 497, 496, 495, 494, + 493, 492, 491, 490, 489, 488, 487, 486, 484, 483, + 482, 481, 480, 479, 478, 477, 476, 475, 474, 473, + 472, 471, 470, 469, 468, 467, 466, 465, 464, 463, + 462, 461, 460, 459, 458, 457, 456, 455, 454, 453, + + 452, 451, 450, 449, 448, 447, 446, 445, 444, 443, + 442, 441, 440, 439, 438, 437, 436, 435, 434, 433, + 428, 427, 426, 425, 424, 423, 422, 421, 420, 419, + 416, 415, 414, 413, 412, 411, 410, 409, 408, 407, + 406, 405, 404, 403, 402, 399, 398, 397, 396, 395, + 393, 390, 389, 388, 387, 386, 385, 384, 383, 382, + 381, 380, 379, 378, 377, 376, 375, 374, 373, 372, + 371, 368, 367, 364, 363, 362, 361, 358, 357, 356, + 355, 354, 353, 352, 351, 348, 347, 346, 345, 344, + 343, 342, 341, 340, 339, 338, 337, 335, 334, 333, + + 332, 331, 330, 329, 328, 327, 326, 325, 324, 323, + 322, 321, 320, 319, 316, 315, 314, 313, 312, 311, + 310, 309, 308, 307, 306, 305, 304, 303, 300, 299, + 292, 291, 290, 289, 288, 287, 286, 285, 284, 283, + 282, 281, 280, 279, 278, 275, 274, 273, 269, 268, + 267, 266, 265, 264, 263, 262, 261, 260, 259, 258, + 255, 254, 253, 249, 248, 247, 244, 243, 242, 239, + 238, 237, 236, 232, 231, 228, 226, 155, 154, 213, + 212, 208, 207, 206, 195, 191, 187, 186, 185, 179, + 178, 138, 138, 156, 154, 155, 154, 138, 139, 138, + + 572, 100, 55, 55, 53, 33, 572, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 572 } ; -static yyconst flex_int16_t yy_chk[1134] = +static const flex_int16_t yy_chk[1065] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, - 6, 7, 8, 5, 6, 11, 71, 23, 7, 8, - 21, 22, 24, 11, 12, 11, 71, 607, 21, 22, - 9, 9, 12, 9, 12, 80, 5, 6, 7, 8, - 9, 606, 80, 9, 23, 10, 10, 9, 10, 24, - - 25, 10, 17, 27, 25, 10, 17, 9, 10, 17, - 27, 11, 10, 237, 17, 5, 6, 7, 8, 13, - 12, 237, 10, 13, 47, 13, 13, 25, 14, 43, - 27, 13, 14, 43, 14, 14, 47, 15, 66, 124, - 14, 15, 66, 15, 15, 605, 16, 18, 124, 15, - 16, 18, 16, 16, 18, 15, 19, 26, 16, 18, - 19, 26, 19, 19, 16, 20, 28, 85, 19, 20, - 604, 20, 20, 28, 19, 31, 31, 20, 31, 44, - 44, 44, 85, 20, 26, 31, 87, 87, 31, 87, - 15, 44, 15, 28, 32, 32, 223, 32, 81, 16, - - 32, 16, 97, 223, 32, 113, 97, 32, 603, 19, - 81, 19, 45, 45, 45, 113, 602, 44, 20, 81, + 1, 1, 1, 1, 1, 1, 1, 1, 5, 6, + 7, 5, 6, 8, 9, 9, 7, 9, 17, 8, + 47, 17, 13, 9, 17, 13, 9, 13, 13, 17, + 9, 21, 47, 13, 5, 6, 7, 11, 21, 8, + 9, 10, 10, 597, 10, 11, 10, 11, 12, 14, + + 10, 23, 14, 10, 14, 14, 12, 10, 12, 22, + 14, 24, 234, 5, 6, 7, 22, 10, 8, 15, + 234, 71, 15, 16, 15, 15, 16, 23, 16, 16, + 15, 71, 18, 11, 16, 18, 15, 24, 18, 596, + 16, 595, 19, 18, 12, 19, 20, 19, 19, 20, + 27, 20, 20, 19, 28, 25, 27, 20, 25, 19, + 28, 26, 43, 20, 26, 80, 43, 45, 45, 45, + 66, 15, 80, 15, 66, 16, 27, 16, 79, 594, + 28, 25, 79, 31, 31, 593, 31, 26, 87, 87, + 123, 87, 31, 592, 19, 31, 19, 79, 20, 123, + 20, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, - 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, - 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, - 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, + 29, 29, 29, 29, 29, 29, 29, 29, 29, 32, + 32, 81, 32, 85, 32, 591, 90, 90, 32, 90, + 97, 32, 38, 81, 97, 104, 112, 38, 85, 104, + 122, 117, 81, 590, 122, 117, 112, 38, 38, 38, + 38, 38, 589, 90, 117, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, - 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, - 38, 38, 38, 38, 38, 38, 38, 38, 38, 42, - 255, 79, 42, 255, 42, 79, 42, 90, 90, 104, - 90, 42, 42, 104, 114, 110, 110, 42, 110, 114, - 79, 118, 42, 120, 114, 118, 122, 123, 42, 42, - 125, 123, 143, 143, 118, 90, 120, 155, 191, 125, - 601, 120, 122, 160, 160, 122, 160, 155, 125, 135, - 135, 135, 162, 162, 191, 162, 600, 42, 49, 165, - - 165, 49, 165, 49, 187, 49, 253, 167, 167, 110, - 167, 168, 168, 253, 168, 187, 49, 171, 171, 195, - 171, 49, 173, 173, 227, 173, 182, 49, 49, 199, - 182, 178, 178, 199, 178, 216, 216, 232, 195, 227, - 220, 220, 182, 220, 221, 599, 222, 222, 221, 222, - 225, 195, 224, 224, 295, 224, 49, 59, 226, 226, - 59, 226, 225, 221, 232, 258, 59, 59, 579, 228, - 228, 225, 228, 295, 59, 229, 229, 59, 229, 308, - 59, 578, 258, 59, 59, 178, 230, 230, 59, 230, - 231, 231, 329, 231, 332, 59, 359, 371, 308, 59, - - 254, 59, 59, 59, 59, 130, 577, 254, 130, 576, - 130, 329, 130, 332, 400, 359, 371, 130, 130, 362, - 362, 362, 575, 130, 388, 388, 388, 388, 130, 507, - 572, 571, 570, 400, 130, 130, 399, 508, 399, 423, - 423, 423, 423, 494, 388, 569, 568, 494, 507, 399, - 399, 399, 520, 520, 520, 520, 508, 567, 566, 423, - 540, 541, 563, 130, 136, 136, 136, 524, 524, 524, - 524, 562, 520, 136, 525, 525, 525, 525, 561, 540, - 541, 136, 136, 136, 136, 136, 136, 524, 538, 538, - 538, 538, 560, 559, 525, 543, 543, 543, 543, 557, - - 556, 555, 554, 553, 552, 551, 550, 547, 538, 546, - 545, 542, 537, 536, 528, 543, 582, 582, 582, 582, - 582, 582, 582, 582, 582, 582, 582, 582, 582, 583, - 583, 583, 583, 583, 583, 583, 583, 583, 583, 583, - 583, 583, 584, 584, 584, 584, 584, 584, 584, 584, - 584, 584, 584, 584, 584, 585, 585, 585, 585, 585, - 585, 585, 585, 585, 585, 585, 585, 585, 586, 586, - 586, 586, 586, 586, 586, 586, 586, 586, 586, 586, - 586, 587, 527, 526, 587, 523, 587, 587, 522, 521, - 519, 518, 517, 587, 588, 516, 515, 588, 514, 588, - - 588, 513, 588, 512, 588, 510, 588, 589, 509, 589, - 506, 589, 590, 590, 590, 590, 590, 590, 590, 590, - 590, 590, 590, 590, 590, 591, 591, 591, 591, 591, - 591, 591, 591, 591, 505, 591, 591, 591, 592, 592, - 592, 592, 592, 592, 592, 592, 592, 592, 592, 593, - 504, 502, 593, 593, 593, 501, 500, 499, 593, 498, - 593, 594, 594, 496, 594, 495, 594, 595, 595, 595, - 595, 595, 595, 595, 595, 595, 595, 596, 596, 493, - 596, 492, 596, 597, 597, 491, 597, 597, 597, 597, - 597, 597, 597, 597, 597, 597, 598, 598, 490, 598, - - 489, 598, 608, 608, 488, 608, 608, 608, 608, 608, - 608, 608, 608, 608, 608, 487, 486, 485, 484, 483, - 482, 479, 478, 477, 476, 475, 472, 471, 470, 469, - 468, 467, 466, 465, 463, 462, 461, 460, 459, 456, - 454, 453, 452, 451, 450, 448, 447, 446, 445, 444, - 443, 442, 441, 440, 439, 438, 437, 436, 433, 432, - 431, 429, 428, 426, 425, 422, 421, 420, 419, 418, - 417, 416, 415, 414, 413, 412, 411, 410, 409, 408, - 407, 406, 405, 404, 403, 402, 398, 397, 396, 395, - 394, 393, 392, 391, 390, 389, 387, 386, 385, 384, - - 383, 382, 381, 380, 379, 378, 377, 376, 375, 374, - 373, 372, 370, 369, 368, 367, 366, 361, 357, 355, - 354, 353, 352, 351, 350, 348, 346, 345, 344, 343, - 342, 341, 340, 339, 337, 336, 335, 334, 333, 331, - 330, 326, 325, 324, 322, 319, 317, 316, 314, 312, - 311, 310, 309, 307, 306, 305, 304, 303, 302, 301, - 300, 299, 298, 297, 296, 294, 293, 292, 290, 289, - 288, 287, 286, 285, 284, 283, 282, 281, 280, 279, - 278, 276, 272, 271, 270, 269, 268, 267, 266, 265, - 264, 263, 262, 261, 260, 259, 257, 256, 252, 251, - - 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, - 240, 239, 238, 236, 235, 234, 215, 210, 209, 208, - 207, 206, 205, 204, 203, 202, 201, 200, 198, 197, - 196, 194, 193, 192, 190, 189, 188, 186, 185, 184, - 183, 181, 180, 172, 169, 156, 154, 139, 137, 128, - 127, 126, 121, 119, 117, 116, 115, 112, 111, 105, - 100, 77, 74, 72, 70, 69, 55, 53, 33, 30, - 4, 3, 2, 581, 581, 581, 581, 581, 581, 581, - 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, - 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, - - 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, - 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, - 581, 581, 581, 581, 581, 581, 581, 581, 581, 581, - 581, 581, 581 + 42, 109, 109, 42, 109, 119, 42, 44, 44, 44, + 49, 42, 42, 49, 121, 113, 49, 42, 119, 44, + 113, 154, 42, 119, 292, 113, 124, 49, 42, 42, + 121, 154, 49, 121, 570, 124, 142, 142, 49, 49, + 134, 134, 134, 292, 124, 44, 159, 159, 197, 159, + 161, 161, 197, 161, 109, 164, 164, 42, 164, 166, + 166, 230, 166, 167, 167, 569, 167, 49, 59, 170, + 170, 59, 170, 172, 172, 568, 172, 59, 59, 176, + + 176, 185, 176, 225, 189, 59, 180, 230, 59, 193, + 180, 59, 185, 567, 59, 59, 214, 214, 225, 59, + 189, 566, 180, 563, 218, 218, 59, 218, 193, 562, + 59, 221, 59, 59, 59, 59, 129, 561, 221, 129, + 219, 193, 129, 252, 219, 560, 252, 129, 129, 250, + 223, 255, 176, 129, 220, 220, 250, 220, 129, 219, + 222, 222, 223, 222, 129, 129, 224, 224, 255, 224, + 559, 223, 226, 226, 558, 226, 227, 227, 305, 227, + 228, 228, 251, 228, 229, 229, 326, 229, 329, 251, + 355, 367, 557, 129, 135, 135, 135, 305, 358, 358, + + 358, 486, 554, 135, 486, 326, 395, 329, 553, 355, + 367, 135, 135, 135, 135, 135, 135, 383, 383, 383, + 383, 394, 498, 394, 499, 395, 417, 417, 417, 417, + 552, 551, 550, 394, 394, 394, 383, 511, 511, 511, + 511, 498, 530, 499, 531, 417, 515, 515, 515, 515, + 528, 528, 528, 528, 548, 547, 511, 533, 533, 533, + 533, 530, 546, 531, 545, 515, 544, 542, 541, 528, + 534, 534, 534, 534, 540, 537, 533, 543, 543, 543, + 543, 573, 573, 573, 573, 573, 573, 573, 573, 573, + 573, 573, 574, 574, 574, 574, 574, 574, 574, 574, + + 574, 574, 574, 575, 575, 575, 575, 575, 575, 575, + 575, 575, 575, 575, 576, 576, 576, 576, 576, 576, + 576, 576, 576, 576, 576, 577, 577, 577, 577, 577, + 577, 577, 577, 577, 577, 577, 578, 536, 535, 532, + 578, 578, 527, 526, 518, 517, 578, 579, 516, 514, + 513, 579, 579, 579, 512, 579, 510, 579, 580, 580, + 509, 580, 581, 581, 581, 581, 581, 581, 581, 581, + 581, 581, 581, 582, 582, 582, 582, 582, 582, 582, + 508, 582, 582, 582, 583, 583, 583, 583, 583, 583, + 583, 583, 583, 584, 507, 506, 584, 584, 505, 504, + + 584, 503, 584, 585, 585, 585, 501, 585, 586, 586, + 586, 500, 586, 587, 587, 497, 587, 587, 587, 587, + 587, 587, 587, 587, 588, 588, 588, 496, 588, 598, + 598, 494, 598, 598, 598, 598, 598, 598, 598, 598, + 493, 492, 491, 490, 488, 487, 485, 484, 483, 482, + 481, 480, 479, 478, 477, 476, 475, 472, 471, 470, + 469, 468, 465, 464, 463, 462, 461, 460, 459, 458, + 456, 455, 454, 453, 452, 449, 447, 446, 445, 444, + 442, 441, 440, 439, 438, 437, 436, 435, 434, 433, + 432, 431, 430, 427, 426, 425, 423, 422, 420, 419, + + 416, 415, 414, 413, 412, 411, 410, 409, 408, 407, + 406, 405, 404, 403, 402, 401, 400, 399, 398, 397, + 393, 392, 391, 390, 389, 388, 387, 386, 385, 384, + 382, 381, 380, 379, 378, 377, 376, 375, 374, 373, + 372, 371, 370, 369, 368, 366, 365, 364, 363, 362, + 357, 353, 351, 350, 349, 348, 347, 346, 344, 342, + 341, 340, 339, 338, 337, 336, 334, 333, 332, 331, + 330, 328, 327, 323, 322, 321, 319, 316, 314, 313, + 311, 309, 308, 307, 306, 304, 303, 302, 301, 300, + 299, 298, 297, 296, 295, 294, 293, 291, 290, 289, + + 287, 286, 285, 284, 283, 282, 281, 280, 279, 278, + 277, 276, 275, 273, 269, 268, 267, 266, 265, 264, + 263, 262, 261, 260, 259, 258, 257, 256, 254, 253, + 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, + 239, 238, 237, 236, 235, 233, 232, 231, 213, 208, + 207, 206, 205, 204, 203, 202, 201, 200, 199, 198, + 196, 195, 194, 192, 191, 190, 188, 187, 186, 184, + 183, 182, 181, 179, 178, 171, 168, 155, 153, 138, + 136, 127, 126, 125, 120, 118, 116, 115, 114, 111, + 110, 105, 100, 77, 74, 72, 70, 69, 55, 53, + + 33, 30, 4, 3, 2, 572, 572, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 572, 572, 572, 572, 572, 572, 572, + 572, 572, 572, 572 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; -extern int gram__flex_debug; -int gram__flex_debug = 1; +extern int yy_flex_debug; +int yy_flex_debug = 1; -static yyconst flex_int16_t yy_rule_linenum[130] = +static const flex_int16_t yy_rule_linenum[129] = { 0, - 179, 182, 183, 184, 192, 210, 211, 212, 213, 214, - 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, - 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, - 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, - 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, - 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, - 267, 269, 273, 274, 275, 277, 284, 288, 295, 300, - 303, 306, 309, 317, 324, 325, 326, 332, 339, 346, - 366, 376, 391, 396, 415, 428, 444, 459, 476, 477, - 488, 499, 500, 512, 520, 530, 549, 561, 575, 576, - - 587, 596, 606, 607, 608, 609, 610, 611, 612, 615, - 617, 625, 643, 648, 649, 655, 656, 667, 673, 679, - 685, 701, 702, 706, 713, 730, 751, 784, 785 + 190, 193, 194, 195, 203, 221, 222, 223, 224, 225, + 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, + 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, + 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, + 256, 257, 258, 259, 260, 261, 262, 263, 267, 271, + 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, + 285, 289, 290, 291, 293, 300, 301, 305, 310, 313, + 316, 319, 327, 334, 335, 336, 342, 349, 356, 376, + 386, 401, 406, 425, 438, 454, 469, 486, 487, 498, + 509, 510, 522, 531, 541, 560, 572, 586, 587, 598, + + 608, 618, 619, 620, 621, 622, 623, 624, 627, 629, + 637, 655, 660, 661, 667, 668, 679, 685, 691, 697, + 713, 714, 718, 725, 741, 761, 792, 793 } ; /* The intent behind this definition is that it'll catch @@ -1015,11 +1222,11 @@ static yyconst flex_int16_t yy_rule_linenum[130] = #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET -char *gram_text; -#line 1 "../../src/scan-gram.l" +char *yytext; +#line 1 "/Users/akim/src/gnu/bison/src/scan-gram.l" /* Bison Grammar Scanner -*- C -*- - Copyright (C) 2002-2013 Free Software Foundation, Inc. + Copyright (C) 2002-2015, 2018-2019 Free Software Foundation, Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -1036,74 +1243,73 @@ char *gram_text; You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ #define YY_NO_INPUT 1 -#line 24 "../../src/scan-gram.l" -/* Work around a bug in flex 2.5.31. See Debian bug 333231 - <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=333231>. */ -#undef gram_wrap -#define gram_wrap() 1 - -#define FLEX_PREFIX(Id) gram_ ## Id -#include <src/flex-scanner.h> +#line 24 "/Users/akim/src/gnu/bison/src/scan-gram.l" +#include <c-ctype.h> +#include <mbswidth.h> +#include <quote.h> +#include <quotearg.h> #include <src/complain.h> #include <src/files.h> #include <src/getargs.h> #include <src/gram.h> -#include <quotearg.h> #include <src/reader.h> +#include <src/scan-gram.h> #include <src/uniqstr.h> -#include <c-ctype.h> -#include <mbswidth.h> -#include <quote.h> +#define FLEX_PREFIX(Id) gram_ ## Id +#include <src/flex-scanner.h> -#include <src/scan-gram.h> +/* Work around a bug in flex 2.5.31. See Debian bug 333231 + <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=333231>. */ +#undef gram_wrap +#define gram_wrap() 1 #define YY_DECL GRAM_LEX_DECL -#define YY_USER_INIT \ - code_start = scanner_cursor = loc->start; \ - /* Location of scanner cursor. */ static boundary scanner_cursor; -#define YY_USER_ACTION location_compute (loc, &scanner_cursor, gram_text, gram_leng); +#define YY_USER_ACTION location_compute (loc, &scanner_cursor, yytext, yyleng); static size_t no_cr_read (FILE *, char *, size_t); -#define YY_INPUT(buf, result, size) ((result) = no_cr_read (gram_in, buf, size)) +#define YY_INPUT(buf, result, size) ((result) = no_cr_read (yyin, buf, size)) -#define RETURN_PERCENT_PARAM(Value) \ - RETURN_VALUE(PERCENT_PARAM, param, param_ ## Value) +/* Report that yytext is an extension, and evaluate to its token type. */ +#define BISON_DIRECTIVE(Directive) \ + (bison_directive (loc, yytext), PERCENT_ ## Directive) -#define RETURN_PERCENT_FLAG(Value) \ - RETURN_VALUE(PERCENT_FLAG, uniqstr, uniqstr_new (Value)) +#define RETURN_PERCENT_PARAM(Value) \ + RETURN_VALUE(PERCENT_PARAM, param_ ## Value) -#define RETURN_VALUE(Token, Field, Value) \ +#define RETURN_PERCENT_FLAG(Value) \ + RETURN_VALUE(PERCENT_FLAG, uniqstr_new (Value)) + +#define RETURN_VALUE(Token, Value) \ do { \ - val->Field = Value; \ + val->Token = Value; \ return Token; \ } while (0) #define ROLLBACK_CURRENT_TOKEN \ do { \ - scanner_cursor.column -= mbsnwidth (gram_text, gram_leng, 0); \ + scanner_cursor.column -= mbsnwidth (yytext, yyleng, 0); \ yyless (0); \ } while (0) #define DEPRECATED(Msg) \ do { \ - size_t i; \ - deprecated_directive (loc, gram_text, Msg); \ + deprecated_directive (loc, yytext, Msg); \ scanner_cursor.column -= mbsnwidth (Msg, strlen (Msg), 0); \ - for (i = strlen (Msg); i != 0; --i) \ + for (size_t i = strlen (Msg); i != 0; --i) \ unput (Msg[i - 1]); \ } while (0) /* A string representing the most recently saved token. */ -static char *last_string; +static char *last_string = NULL; /* Bracketed identifier. */ -static uniqstr bracketed_id_str = 0; +static uniqstr bracketed_id_str = NULL; static location bracketed_id_loc; static boundary bracketed_id_start; static int bracketed_id_context_state = 0; @@ -1115,41 +1321,43 @@ gram_scanner_last_string_free (void) } static void handle_syncline (char *, location); -static unsigned long int scan_integer (char const *p, int base, location loc); +static unsigned long scan_integer (char const *p, int base, location loc); static int convert_ucn_to_byte (char const *hex_text); static void unexpected_eof (boundary, char const *); static void unexpected_newline (boundary, char const *); -/* A C-like comment in directives/rules. */ +#line 1329 "src/scan-gram.c" +#line 108 "/Users/akim/src/gnu/bison/src/scan-gram.l" + /* A C-like comment in directives/rules. */ -/* Strings and characters in directives/rules. */ + /* Strings and characters in directives/rules. */ -/* A identifier was just read in directives/rules. Special state -to capture the sequence 'identifier :'. */ + /* A identifier was just read in directives/rules. Special state + to capture the sequence 'identifier :'. */ -/* POSIX says that a tag must be both an id and a C union member, but -historically almost any character is allowed in a tag. We -disallow NUL, as this simplifies our implementation. We match -angle brackets in nested pairs: several languages use them for -generics/template types. */ + /* POSIX says that a tag must be both an id and a C union member, but + historically almost any character is allowed in a tag. We + disallow NUL, as this simplifies our implementation. We match + angle brackets in nested pairs: several languages use them for + generics/template types. */ -/* Four types of user code: -- prologue (code between '%{' '%}' in the first section, before %%); -- actions, printers, union, etc, (between braced in the middle section); -- epilogue (everything after the second %%). -- predicate (code between '%?{' and '{' in middle section); */ + /* Four types of user code: + - prologue (code between '%{' '%}' in the first section, before %%); + - actions, printers, union, etc, (between braced in the middle section); + - epilogue (everything after the second %%). + - predicate (code between '%?{' and '{' in middle section); */ -/* C and C++ comments in code. */ + /* C and C++ comments in code. */ -/* Strings and characters in code. */ + /* Strings and characters in code. */ -/* Bracketed identifiers support. */ + /* Bracketed identifiers support. */ /* Zero or more instances of backslash-newline. Following GCC, allow white space between the backslash and the newline. */ /* An equal sign, with optional leading whitespaces. This is used in some deprecated constructs. */ -#line 1153 "src/scan-gram.c" +#line 1360 "src/scan-gram.c" #define INITIAL 0 #define SC_YACC_COMMENT 1 @@ -1188,7 +1396,7 @@ generics/template types. */ /* %if-reentrant */ /* %if-c-only */ -static int yy_init_globals (void ); +static int yy_init_globals ( void ); /* %endif */ /* %if-reentrant */ @@ -1198,31 +1406,31 @@ static int yy_init_globals (void ); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ -int gram_lex_destroy (void ); +int yylex_destroy ( void ); -int gram_get_debug (void ); +int yyget_debug ( void ); -void gram_set_debug (int debug_flag ); +void yyset_debug ( int debug_flag ); -YY_EXTRA_TYPE gram_get_extra (void ); +YY_EXTRA_TYPE yyget_extra ( void ); -void gram_set_extra (YY_EXTRA_TYPE user_defined ); +void yyset_extra ( YY_EXTRA_TYPE user_defined ); -FILE *gram_get_in (void ); +FILE *yyget_in ( void ); -void gram_set_in (FILE * in_str ); +void yyset_in ( FILE * _in_str ); -FILE *gram_get_out (void ); +FILE *yyget_out ( void ); -void gram_set_out (FILE * out_str ); +void yyset_out ( FILE * _out_str ); -yy_size_t gram_get_leng (void ); + int yyget_leng ( void ); -char *gram_get_text (void ); +char *yyget_text ( void ); -int gram_get_lineno (void ); +int yyget_lineno ( void ); -void gram_set_lineno (int line_number ); +void yyset_lineno ( int _line_number ); /* %if-bison-bridge */ /* %endif */ @@ -1233,36 +1441,37 @@ void gram_set_lineno (int line_number ); #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus -extern "C" int gram_wrap (void ); +extern "C" int yywrap ( void ); #else -extern int gram_wrap (void ); +extern int yywrap ( void ); #endif #endif /* %not-for-header */ - - static void yyunput (int c,char *buf_ptr ); +#ifndef YY_NO_UNPUT + static void yyunput ( int c, char *buf_ptr ); + +#endif /* %ok-for-header */ /* %endif */ #ifndef yytext_ptr -static void yy_flex_strncpy (char *,yyconst char *,int ); +static void yy_flex_strncpy ( char *, const char *, int ); #endif #ifdef YY_NEED_STRLEN -static int yy_flex_strlen (yyconst char * ); +static int yy_flex_strlen ( const char * ); #endif #ifndef YY_NO_INPUT /* %if-c-only Standard (non-C++) definition */ /* %not-for-header */ - #ifdef __cplusplus -static int yyinput (void ); +static int yyinput ( void ); #else -static int input (void ); +static int input ( void ); #endif /* %ok-for-header */ @@ -1275,7 +1484,12 @@ static int input (void ); /* 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. */ @@ -1284,7 +1498,7 @@ static int input (void ); /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO do { if (fwrite( gram_text, gram_leng, 1, gram_out )) {} } while (0) +#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) /* %endif */ /* %if-c++-only C++ definition */ /* %endif */ @@ -1299,20 +1513,20 @@ static int input (void ); if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ - size_t n; \ + int n; \ for ( n = 0; n < max_size && \ - (c = getc( gram_in )) != EOF && c != '\n'; ++n ) \ + (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ - if ( c == EOF && ferror( gram_in ) ) \ + 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, gram_in))==0 && ferror(gram_in)) \ + while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \ { \ if( errno != EINTR) \ { \ @@ -1320,7 +1534,7 @@ static int input (void ); break; \ } \ errno=0; \ - clearerr(gram_in); \ + clearerr(yyin); \ } \ }\ \ @@ -1353,11 +1567,9 @@ static int input (void ); /* %if-tables-serialization structures and prototypes */ /* %not-for-header */ - /* %ok-for-header */ /* %not-for-header */ - /* %tables-yydmap generated elements */ /* %endif */ /* end tables serialization structures and prototypes */ @@ -1371,15 +1583,15 @@ static int input (void ); #define YY_DECL_IS_OURS 1 /* %if-c-only Standard (non-C++) definition */ -extern int gram_lex (void); +extern int yylex (void); -#define YY_DECL int gram_lex (void) +#define YY_DECL int yylex (void) /* %endif */ /* %if-c++-only C++ definition */ /* %endif */ #endif /* !YY_DECL */ -/* Code executed at the beginning of each rule, after gram_text and gram_leng +/* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION @@ -1388,28 +1600,62 @@ extern int gram_lex (void); /* Code executed at the end of each rule. */ #ifndef YY_BREAK -#define YY_BREAK break; +#define YY_BREAK /*LINTED*/break; #endif /* %% [6.0] YY_RULE_SETUP definition goes here */ #define YY_RULE_SETUP \ - if ( gram_leng > 0 ) \ + if ( yyleng > 0 ) \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ - (gram_text[gram_leng - 1] == '\n'); \ + (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION /* %not-for-header */ - /** The main scanner function which does all the work. */ YY_DECL { - register yy_state_type yy_current_state; - register char *yy_cp, *yy_bp; - register int yy_act; + yy_state_type yy_current_state; + char *yy_cp, *yy_bp; + int yy_act; + if ( !(yy_init) ) + { + (yy_init) = 1; + +#ifdef YY_USER_INIT + YY_USER_INIT; +#endif + + if ( ! (yy_start) ) + (yy_start) = 1; /* first start state */ + + if ( ! yyin ) +/* %if-c-only */ + yyin = stdin; +/* %endif */ +/* %if-c++-only */ +/* %endif */ + + if ( ! yyout ) +/* %if-c-only */ + yyout = stdout; +/* %endif */ +/* %if-c++-only */ +/* %endif */ + + if ( ! YY_CURRENT_BUFFER ) { + yyensure_buffer_stack (); + YY_CURRENT_BUFFER_LVALUE = + yy_create_buffer( yyin, YY_BUF_SIZE ); + } + + yy_load_buffer_state( ); + } + + { /* %% [7.0] user's declarations go here */ -#line 149 "../../src/scan-gram.l" +#line 151 "/Users/akim/src/gnu/bison/src/scan-gram.l" /* Nesting level. Either for nested braces, or nested angle brackets @@ -1423,7 +1669,7 @@ YY_DECL location id_loc PACIFY_CC (= empty_location); /* Where containing code started, when applicable. Its initial - value is relevant only when gram_lex is invoked in the SC_EPILOGUE + value is relevant only when yylex is invoked in the SC_EPILOGUE start condition. */ boundary code_start = scanner_cursor; @@ -1431,54 +1677,29 @@ YY_DECL when applicable. */ boundary token_start PACIFY_CC (= scanner_cursor); + /* We cannot trust YY_USER_INIT, whose semantics changes over time + (it moved in Flex 2.5.38). */ + static bool first = true; + if (first) + { + scanner_cursor = loc->start; + first = false; + } + /*-----------------------. | Scanning white space. | `-----------------------*/ -#line 1441 "src/scan-gram.c" - - if ( !(yy_init) ) - { - (yy_init) = 1; - -#ifdef YY_USER_INIT - YY_USER_INIT; -#endif - - if ( ! (yy_start) ) - (yy_start) = 1; /* first start state */ - - if ( ! gram_in ) -/* %if-c-only */ - gram_in = stdin; -/* %endif */ -/* %if-c++-only */ -/* %endif */ - - if ( ! gram_out ) -/* %if-c-only */ - gram_out = stdout; -/* %endif */ -/* %if-c++-only */ -/* %endif */ - - if ( ! YY_CURRENT_BUFFER ) { - gram_ensure_buffer_stack (); - YY_CURRENT_BUFFER_LVALUE = - gram__create_buffer(gram_in,YY_BUF_SIZE ); - } - - gram__load_buffer_state( ); - } +#line 1695 "src/scan-gram.c" - while ( 1 ) /* loops until end-of-file is reached */ + while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ { /* %% [8.0] yymore()-related code goes here */ yy_cp = (yy_c_buf_p); - /* Support of gram_text. */ + /* Support of yytext. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of @@ -1492,7 +1713,7 @@ YY_DECL yy_match: do { - register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; @@ -1501,13 +1722,13 @@ yy_match: 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 >= 582 ) - yy_c = yy_meta[(unsigned int) yy_c]; + if ( yy_current_state >= 573 ) + yy_c = yy_meta[yy_c]; } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; ++yy_cp; } - while ( yy_current_state != 581 ); + while ( yy_current_state != 572 ); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); @@ -1517,22 +1738,22 @@ yy_find_action: YY_DO_BEFORE_ACTION; -/* %% [11.0] code for gram_lineno update goes here */ +/* %% [11.0] code for yylineno update goes here */ do_action: /* This label is used only to access EOF actions. */ /* %% [12.0] debug code goes here */ - if ( gram__flex_debug ) + if ( yy_flex_debug ) { if ( yy_act == 0 ) fprintf( stderr, "--scanner backing up\n" ); - else if ( yy_act < 130 ) + else if ( yy_act < 129 ) fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n", - (long)yy_rule_linenum[yy_act], gram_text ); - else if ( yy_act == 130 ) + (long)yy_rule_linenum[yy_act], yytext ); + else if ( yy_act == 129 ) fprintf( stderr, "--accepting default rule (\"%s\")\n", - gram_text ); - else if ( yy_act == 131 ) + yytext ); + else if ( yy_act == 130 ) fprintf( stderr, "--(end of buffer or a NUL)\n" ); else fprintf( stderr, "--EOF (start condition %d)\n", YY_START ); @@ -1551,23 +1772,23 @@ do_action: /* This label is used only to access EOF actions. */ /* Comments and white space. */ case 1: YY_RULE_SETUP -#line 179 "../../src/scan-gram.l" +#line 190 "/Users/akim/src/gnu/bison/src/scan-gram.l" { complain (loc, Wother, _("stray ',' treated as white space")); } YY_BREAK case 2: /* rule 2 can match eol */ -#line 183 "../../src/scan-gram.l" +#line 194 "/Users/akim/src/gnu/bison/src/scan-gram.l" case 3: /* rule 3 can match eol */ YY_RULE_SETUP -#line 183 "../../src/scan-gram.l" +#line 194 "/Users/akim/src/gnu/bison/src/scan-gram.l" continue; YY_BREAK case 4: YY_RULE_SETUP -#line 184 "../../src/scan-gram.l" +#line 195 "/Users/akim/src/gnu/bison/src/scan-gram.l" { token_start = loc->start; context_state = YY_START; @@ -1579,9 +1800,9 @@ YY_RULE_SETUP case 5: /* rule 5 can match eol */ YY_RULE_SETUP -#line 192 "../../src/scan-gram.l" +#line 203 "/Users/akim/src/gnu/bison/src/scan-gram.l" { - handle_syncline (gram_text + sizeof "#line " - 1, *loc); + handle_syncline (yytext + sizeof "#line " - 1, *loc); } YY_BREAK @@ -1597,368 +1818,360 @@ YY_RULE_SETUP case 6: YY_RULE_SETUP -#line 210 "../../src/scan-gram.l" -return PERCENT_NONASSOC; +#line 221 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (NONASSOC); YY_BREAK case 7: YY_RULE_SETUP -#line 211 "../../src/scan-gram.l" -return PERCENT_CODE; +#line 222 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (CODE); YY_BREAK case 8: YY_RULE_SETUP -#line 212 "../../src/scan-gram.l" -RETURN_PERCENT_FLAG("parse.trace"); +#line 223 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_PERCENT_FLAG ("parse.trace"); YY_BREAK case 9: YY_RULE_SETUP -#line 213 "../../src/scan-gram.l" -return PERCENT_DEFAULT_PREC; +#line 224 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (DEFAULT_PREC); YY_BREAK case 10: YY_RULE_SETUP -#line 214 "../../src/scan-gram.l" -return PERCENT_DEFINE; +#line 225 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (DEFINE); YY_BREAK case 11: YY_RULE_SETUP -#line 215 "../../src/scan-gram.l" -return PERCENT_DEFINES; +#line 226 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (DEFINES); YY_BREAK case 12: YY_RULE_SETUP -#line 216 "../../src/scan-gram.l" -return PERCENT_DESTRUCTOR; +#line 227 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (DESTRUCTOR); YY_BREAK case 13: YY_RULE_SETUP -#line 217 "../../src/scan-gram.l" -return PERCENT_DPREC; +#line 228 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (DPREC); YY_BREAK case 14: YY_RULE_SETUP -#line 218 "../../src/scan-gram.l" -return PERCENT_EMPTY; +#line 229 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (EMPTY); YY_BREAK case 15: YY_RULE_SETUP -#line 219 "../../src/scan-gram.l" -return PERCENT_ERROR_VERBOSE; +#line 230 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (EXPECT); YY_BREAK case 16: YY_RULE_SETUP -#line 220 "../../src/scan-gram.l" -return PERCENT_EXPECT; +#line 231 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (EXPECT_RR); YY_BREAK case 17: YY_RULE_SETUP -#line 221 "../../src/scan-gram.l" -return PERCENT_EXPECT_RR; +#line 232 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_VALUE (PERCENT_FILE_PREFIX, uniqstr_new (yytext)); YY_BREAK case 18: YY_RULE_SETUP -#line 222 "../../src/scan-gram.l" -return PERCENT_FILE_PREFIX; +#line 233 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_VALUE (PERCENT_YACC, uniqstr_new (yytext)); YY_BREAK case 19: YY_RULE_SETUP -#line 223 "../../src/scan-gram.l" -return PERCENT_YACC; +#line 234 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (INITIAL_ACTION); YY_BREAK case 20: YY_RULE_SETUP -#line 224 "../../src/scan-gram.l" -return PERCENT_INITIAL_ACTION; +#line 235 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (GLR_PARSER); YY_BREAK case 21: YY_RULE_SETUP -#line 225 "../../src/scan-gram.l" -return PERCENT_GLR_PARSER; +#line 236 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (LANGUAGE); YY_BREAK case 22: YY_RULE_SETUP -#line 226 "../../src/scan-gram.l" -return PERCENT_LANGUAGE; +#line 237 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return PERCENT_LEFT; YY_BREAK case 23: YY_RULE_SETUP -#line 227 "../../src/scan-gram.l" -return PERCENT_LEFT; +#line 238 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_PERCENT_PARAM (lex); YY_BREAK case 24: YY_RULE_SETUP -#line 228 "../../src/scan-gram.l" -RETURN_PERCENT_PARAM(lex); +#line 239 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_PERCENT_FLAG ("locations"); YY_BREAK case 25: YY_RULE_SETUP -#line 229 "../../src/scan-gram.l" -RETURN_PERCENT_FLAG("locations"); +#line 240 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (MERGE); YY_BREAK case 26: YY_RULE_SETUP -#line 230 "../../src/scan-gram.l" -return PERCENT_MERGE; +#line 241 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (NO_DEFAULT_PREC); YY_BREAK case 27: YY_RULE_SETUP -#line 231 "../../src/scan-gram.l" -return PERCENT_NAME_PREFIX; +#line 242 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (NO_LINES); YY_BREAK case 28: YY_RULE_SETUP -#line 232 "../../src/scan-gram.l" -return PERCENT_NO_DEFAULT_PREC; +#line 243 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return PERCENT_NONASSOC; YY_BREAK case 29: YY_RULE_SETUP -#line 233 "../../src/scan-gram.l" -return PERCENT_NO_LINES; +#line 244 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (NONDETERMINISTIC_PARSER); YY_BREAK case 30: YY_RULE_SETUP -#line 234 "../../src/scan-gram.l" -return PERCENT_NONASSOC; +#line 245 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (NTERM); YY_BREAK case 31: YY_RULE_SETUP -#line 235 "../../src/scan-gram.l" -return PERCENT_NONDETERMINISTIC_PARSER; +#line 246 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (OUTPUT); YY_BREAK case 32: YY_RULE_SETUP -#line 236 "../../src/scan-gram.l" -return PERCENT_NTERM; +#line 247 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_PERCENT_PARAM (both); YY_BREAK case 33: YY_RULE_SETUP -#line 237 "../../src/scan-gram.l" -return PERCENT_OUTPUT; +#line 248 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_PERCENT_PARAM (parse); YY_BREAK case 34: YY_RULE_SETUP -#line 238 "../../src/scan-gram.l" -RETURN_PERCENT_PARAM(both); +#line 249 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return PERCENT_PREC; YY_BREAK case 35: YY_RULE_SETUP -#line 239 "../../src/scan-gram.l" -RETURN_PERCENT_PARAM(parse); +#line 250 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (PRECEDENCE); YY_BREAK case 36: YY_RULE_SETUP -#line 240 "../../src/scan-gram.l" -return PERCENT_PREC; +#line 251 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (PRINTER); YY_BREAK case 37: YY_RULE_SETUP -#line 241 "../../src/scan-gram.l" -return PERCENT_PRECEDENCE; +#line 252 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_PERCENT_FLAG ("api.pure"); YY_BREAK case 38: YY_RULE_SETUP -#line 242 "../../src/scan-gram.l" -return PERCENT_PRINTER; +#line 253 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (REQUIRE); YY_BREAK case 39: YY_RULE_SETUP -#line 243 "../../src/scan-gram.l" -RETURN_PERCENT_FLAG("api.pure"); +#line 254 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return PERCENT_RIGHT; YY_BREAK case 40: YY_RULE_SETUP -#line 244 "../../src/scan-gram.l" -return PERCENT_REQUIRE; +#line 255 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (SKELETON); YY_BREAK case 41: YY_RULE_SETUP -#line 245 "../../src/scan-gram.l" -return PERCENT_RIGHT; +#line 256 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return PERCENT_START; YY_BREAK case 42: YY_RULE_SETUP -#line 246 "../../src/scan-gram.l" -return PERCENT_SKELETON; +#line 257 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (TOKEN); YY_BREAK case 43: YY_RULE_SETUP -#line 247 "../../src/scan-gram.l" -return PERCENT_START; +#line 258 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return PERCENT_TOKEN; YY_BREAK case 44: YY_RULE_SETUP -#line 248 "../../src/scan-gram.l" -return PERCENT_TOKEN; +#line 259 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (TOKEN_TABLE); YY_BREAK case 45: YY_RULE_SETUP -#line 249 "../../src/scan-gram.l" -return PERCENT_TOKEN; +#line 260 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return PERCENT_TYPE; YY_BREAK case 46: YY_RULE_SETUP -#line 250 "../../src/scan-gram.l" -return PERCENT_TOKEN_TABLE; +#line 261 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return PERCENT_UNION; YY_BREAK case 47: YY_RULE_SETUP -#line 251 "../../src/scan-gram.l" -return PERCENT_TYPE; +#line 262 "/Users/akim/src/gnu/bison/src/scan-gram.l" +return BISON_DIRECTIVE (VERBOSE); YY_BREAK case 48: YY_RULE_SETUP -#line 252 "../../src/scan-gram.l" -return PERCENT_UNION; +#line 263 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_VALUE (PERCENT_YACC, uniqstr_new (yytext)); YY_BREAK +/* Deprecated since Bison 3.0 (2013-07-25), but the warning is + issued only since Bison 3.3. */ case 49: YY_RULE_SETUP -#line 253 "../../src/scan-gram.l" -return PERCENT_VERBOSE; +#line 267 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_VALUE (PERCENT_ERROR_VERBOSE, uniqstr_new (yytext)); YY_BREAK +/* Deprecated since Bison 2.6 (2012-07-19), but the warning is + issued only since Bison 3.3. */ case 50: +/* rule 50 can match eol */ YY_RULE_SETUP -#line 254 "../../src/scan-gram.l" -return PERCENT_YACC; +#line 271 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_VALUE (PERCENT_NAME_PREFIX, uniqstr_new (yytext)); YY_BREAK -/* deprecated */ +/* Deprecated since Bison 2.7.90, 2012. */ case 51: YY_RULE_SETUP -#line 257 "../../src/scan-gram.l" -DEPRECATED("%default-prec"); +#line 274 "/Users/akim/src/gnu/bison/src/scan-gram.l" +DEPRECATED ("%default-prec"); YY_BREAK case 52: YY_RULE_SETUP -#line 258 "../../src/scan-gram.l" -DEPRECATED("%define parse.error verbose"); +#line 275 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_VALUE (PERCENT_ERROR_VERBOSE, uniqstr_new (yytext)); YY_BREAK case 53: YY_RULE_SETUP -#line 259 "../../src/scan-gram.l" -DEPRECATED("%expect-rr"); +#line 276 "/Users/akim/src/gnu/bison/src/scan-gram.l" +DEPRECATED ("%expect-rr"); YY_BREAK case 54: /* rule 54 can match eol */ YY_RULE_SETUP -#line 260 "../../src/scan-gram.l" -DEPRECATED("%file-prefix"); +#line 277 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_VALUE (PERCENT_FILE_PREFIX, uniqstr_new (yytext)); YY_BREAK case 55: YY_RULE_SETUP -#line 261 "../../src/scan-gram.l" -DEPRECATED("%fixed-output-files"); +#line 278 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_VALUE (PERCENT_YACC, uniqstr_new (yytext)); YY_BREAK case 56: -/* rule 56 can match eol */ YY_RULE_SETUP -#line 262 "../../src/scan-gram.l" -DEPRECATED("%name-prefix"); +#line 279 "/Users/akim/src/gnu/bison/src/scan-gram.l" +DEPRECATED ("%no-default-prec"); YY_BREAK case 57: YY_RULE_SETUP -#line 263 "../../src/scan-gram.l" -DEPRECATED("%no-default-prec"); +#line 280 "/Users/akim/src/gnu/bison/src/scan-gram.l" +DEPRECATED ("%no-lines"); YY_BREAK case 58: +/* rule 58 can match eol */ YY_RULE_SETUP -#line 264 "../../src/scan-gram.l" -DEPRECATED("%no-lines"); +#line 281 "/Users/akim/src/gnu/bison/src/scan-gram.l" +DEPRECATED ("%output"); YY_BREAK case 59: -/* rule 59 can match eol */ YY_RULE_SETUP -#line 265 "../../src/scan-gram.l" -DEPRECATED("%output"); +#line 282 "/Users/akim/src/gnu/bison/src/scan-gram.l" +DEPRECATED ("%pure-parser"); YY_BREAK case 60: YY_RULE_SETUP -#line 266 "../../src/scan-gram.l" -DEPRECATED("%pure-parser"); +#line 283 "/Users/akim/src/gnu/bison/src/scan-gram.l" +DEPRECATED ("%token-table"); YY_BREAK case 61: YY_RULE_SETUP -#line 267 "../../src/scan-gram.l" -DEPRECATED("%token-table"); - YY_BREAK -case 62: -/* rule 62 can match eol */ -YY_RULE_SETUP -#line 269 "../../src/scan-gram.l" +#line 285 "/Users/akim/src/gnu/bison/src/scan-gram.l" { - complain (loc, complaint, _("invalid directive: %s"), quote (gram_text)); + complain (loc, complaint, _("invalid directive: %s"), quote (yytext)); } YY_BREAK -case 63: +case 62: YY_RULE_SETUP -#line 273 "../../src/scan-gram.l" +#line 289 "/Users/akim/src/gnu/bison/src/scan-gram.l" return EQUAL; YY_BREAK -case 64: +case 63: YY_RULE_SETUP -#line 274 "../../src/scan-gram.l" +#line 290 "/Users/akim/src/gnu/bison/src/scan-gram.l" return PIPE; YY_BREAK -case 65: +case 64: YY_RULE_SETUP -#line 275 "../../src/scan-gram.l" +#line 291 "/Users/akim/src/gnu/bison/src/scan-gram.l" return SEMICOLON; YY_BREAK -case 66: +case 65: YY_RULE_SETUP -#line 277 "../../src/scan-gram.l" +#line 293 "/Users/akim/src/gnu/bison/src/scan-gram.l" { - val->uniqstr = uniqstr_new (gram_text); + val->ID = uniqstr_new (yytext); id_loc = *loc; bracketed_id_str = NULL; BEGIN SC_AFTER_IDENTIFIER; } YY_BREAK -case 67: +case 66: YY_RULE_SETUP -#line 284 "../../src/scan-gram.l" -{ - val->integer = scan_integer (gram_text, 10, *loc); - return INT; - } +#line 300 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_VALUE (INT, scan_integer (yytext, 10, *loc)); YY_BREAK -case 68: +case 67: YY_RULE_SETUP -#line 288 "../../src/scan-gram.l" -{ - val->integer = scan_integer (gram_text, 16, *loc); - return INT; - } +#line 301 "/Users/akim/src/gnu/bison/src/scan-gram.l" +RETURN_VALUE (INT, scan_integer (yytext, 16, *loc)); YY_BREAK /* Identifiers may not start with a digit. Yet, don't silently accept "1FOO" as "1 FOO". */ -case 69: +case 68: YY_RULE_SETUP -#line 295 "../../src/scan-gram.l" +#line 305 "/Users/akim/src/gnu/bison/src/scan-gram.l" { - complain (loc, complaint, _("invalid identifier: %s"), quote (gram_text)); + complain (loc, complaint, _("invalid identifier: %s"), quote (yytext)); } YY_BREAK /* Characters. */ -case 70: +case 69: YY_RULE_SETUP -#line 300 "../../src/scan-gram.l" +#line 310 "/Users/akim/src/gnu/bison/src/scan-gram.l" token_start = loc->start; BEGIN SC_ESCAPED_CHARACTER; YY_BREAK /* Strings. */ -case 71: +case 70: YY_RULE_SETUP -#line 303 "../../src/scan-gram.l" +#line 313 "/Users/akim/src/gnu/bison/src/scan-gram.l" token_start = loc->start; BEGIN SC_ESCAPED_STRING; YY_BREAK /* Prologue. */ -case 72: +case 71: YY_RULE_SETUP -#line 306 "../../src/scan-gram.l" +#line 316 "/Users/akim/src/gnu/bison/src/scan-gram.l" code_start = loc->start; BEGIN SC_PROLOGUE; YY_BREAK /* Code in between braces. */ -case 73: +case 72: YY_RULE_SETUP -#line 309 "../../src/scan-gram.l" +#line 319 "/Users/akim/src/gnu/bison/src/scan-gram.l" { STRING_GROW; nesting = 0; @@ -1967,10 +2180,10 @@ YY_RULE_SETUP } YY_BREAK /* Semantic predicate. */ -case 74: -/* rule 74 can match eol */ +case 73: +/* rule 73 can match eol */ YY_RULE_SETUP -#line 317 "../../src/scan-gram.l" +#line 327 "/Users/akim/src/gnu/bison/src/scan-gram.l" { nesting = 0; code_start = loc->start; @@ -1978,28 +2191,28 @@ YY_RULE_SETUP } YY_BREAK /* A type. */ -case 75: +case 74: YY_RULE_SETUP -#line 324 "../../src/scan-gram.l" +#line 334 "/Users/akim/src/gnu/bison/src/scan-gram.l" return TAG_ANY; YY_BREAK -case 76: +case 75: YY_RULE_SETUP -#line 325 "../../src/scan-gram.l" +#line 335 "/Users/akim/src/gnu/bison/src/scan-gram.l" return TAG_NONE; YY_BREAK -case 77: +case 76: YY_RULE_SETUP -#line 326 "../../src/scan-gram.l" +#line 336 "/Users/akim/src/gnu/bison/src/scan-gram.l" { nesting = 0; token_start = loc->start; BEGIN SC_TAG; } YY_BREAK -case 78: +case 77: YY_RULE_SETUP -#line 332 "../../src/scan-gram.l" +#line 342 "/Users/akim/src/gnu/bison/src/scan-gram.l" { static int percent_percent_count; if (++percent_percent_count == 2) @@ -2007,9 +2220,9 @@ YY_RULE_SETUP return PERCENT_PERCENT; } YY_BREAK -case 79: +case 78: YY_RULE_SETUP -#line 339 "../../src/scan-gram.l" +#line 349 "/Users/akim/src/gnu/bison/src/scan-gram.l" { bracketed_id_str = NULL; bracketed_id_start = loc->start; @@ -2017,17 +2230,17 @@ YY_RULE_SETUP BEGIN SC_BRACKETED_ID; } YY_BREAK -case 80: +case 79: YY_RULE_SETUP -#line 346 "../../src/scan-gram.l" +#line 356 "/Users/akim/src/gnu/bison/src/scan-gram.l" { complain (loc, complaint, "%s: %s", - ngettext ("invalid character", "invalid characters", gram_leng), - quote_mem (gram_text, gram_leng)); + ngettext ("invalid character", "invalid characters", yyleng), + quote_mem (yytext, yyleng)); } YY_BREAK case YY_STATE_EOF(INITIAL): -#line 352 "../../src/scan-gram.l" +#line 362 "/Users/akim/src/gnu/bison/src/scan-gram.l" { loc->start = loc->end = scanner_cursor; yyterminate (); @@ -2040,9 +2253,9 @@ case YY_STATE_EOF(INITIAL): `--------------------------------------------------------------*/ -case 81: +case 80: YY_RULE_SETUP -#line 366 "../../src/scan-gram.l" +#line 376 "/Users/akim/src/gnu/bison/src/scan-gram.l" complain (loc, complaint, _("invalid null character")); YY_BREAK @@ -2051,9 +2264,9 @@ complain (loc, complaint, _("invalid null character")); `-----------------------------------------------------------------*/ -case 82: +case 81: YY_RULE_SETUP -#line 376 "../../src/scan-gram.l" +#line 386 "/Users/akim/src/gnu/bison/src/scan-gram.l" { if (bracketed_id_str) { @@ -2070,18 +2283,18 @@ YY_RULE_SETUP } } YY_BREAK -case 83: +case 82: YY_RULE_SETUP -#line 391 "../../src/scan-gram.l" +#line 401 "/Users/akim/src/gnu/bison/src/scan-gram.l" { BEGIN (bracketed_id_str ? SC_RETURN_BRACKETED_ID : INITIAL); *loc = id_loc; return ID_COLON; } YY_BREAK -case 84: +case 83: YY_RULE_SETUP -#line 396 "../../src/scan-gram.l" +#line 406 "/Users/akim/src/gnu/bison/src/scan-gram.l" { ROLLBACK_CURRENT_TOKEN; BEGIN (bracketed_id_str ? SC_RETURN_BRACKETED_ID : INITIAL); @@ -2090,7 +2303,7 @@ YY_RULE_SETUP } YY_BREAK case YY_STATE_EOF(SC_AFTER_IDENTIFIER): -#line 402 "../../src/scan-gram.l" +#line 412 "/Users/akim/src/gnu/bison/src/scan-gram.l" { BEGIN (bracketed_id_str ? SC_RETURN_BRACKETED_ID : INITIAL); *loc = id_loc; @@ -2103,33 +2316,33 @@ case YY_STATE_EOF(SC_AFTER_IDENTIFIER): `--------------------------------*/ -case 85: +case 84: YY_RULE_SETUP -#line 415 "../../src/scan-gram.l" +#line 425 "/Users/akim/src/gnu/bison/src/scan-gram.l" { if (bracketed_id_str) { complain (loc, complaint, _("unexpected identifier in bracketed name: %s"), - quote (gram_text)); + quote (yytext)); } else { - bracketed_id_str = uniqstr_new (gram_text); + bracketed_id_str = uniqstr_new (yytext); bracketed_id_loc = *loc; } } YY_BREAK -case 86: +case 85: YY_RULE_SETUP -#line 428 "../../src/scan-gram.l" +#line 438 "/Users/akim/src/gnu/bison/src/scan-gram.l" { BEGIN bracketed_id_context_state; if (bracketed_id_str) { if (INITIAL == bracketed_id_context_state) { - val->uniqstr = bracketed_id_str; + val->BRACKETED_ID = bracketed_id_str; bracketed_id_str = 0; *loc = bracketed_id_loc; return BRACKETED_ID; @@ -2139,18 +2352,18 @@ YY_RULE_SETUP complain (loc, complaint, _("an identifier expected")); } YY_BREAK -case 87: +case 86: YY_RULE_SETUP -#line 444 "../../src/scan-gram.l" +#line 454 "/Users/akim/src/gnu/bison/src/scan-gram.l" { complain (loc, complaint, "%s: %s", ngettext ("invalid character in bracketed name", - "invalid characters in bracketed name", gram_leng), - quote_mem (gram_text, gram_leng)); + "invalid characters in bracketed name", yyleng), + quote_mem (yytext, yyleng)); } YY_BREAK case YY_STATE_EOF(SC_BRACKETED_ID): -#line 451 "../../src/scan-gram.l" +#line 461 "/Users/akim/src/gnu/bison/src/scan-gram.l" { BEGIN bracketed_id_context_state; unexpected_eof (bracketed_id_start, "]"); @@ -2159,12 +2372,12 @@ case YY_STATE_EOF(SC_BRACKETED_ID): -case 88: +case 87: YY_RULE_SETUP -#line 459 "../../src/scan-gram.l" +#line 469 "/Users/akim/src/gnu/bison/src/scan-gram.l" { ROLLBACK_CURRENT_TOKEN; - val->uniqstr = bracketed_id_str; + val->BRACKETED_ID = bracketed_id_str; bracketed_id_str = 0; *loc = bracketed_id_loc; BEGIN INITIAL; @@ -2177,19 +2390,19 @@ YY_RULE_SETUP `---------------------------------------------------------------*/ -case 89: +case 88: YY_RULE_SETUP -#line 476 "../../src/scan-gram.l" +#line 486 "/Users/akim/src/gnu/bison/src/scan-gram.l" BEGIN context_state; YY_BREAK -case 90: -/* rule 90 can match eol */ +case 89: +/* rule 89 can match eol */ YY_RULE_SETUP -#line 477 "../../src/scan-gram.l" +#line 487 "/Users/akim/src/gnu/bison/src/scan-gram.l" continue; YY_BREAK case YY_STATE_EOF(SC_YACC_COMMENT): -#line 478 "../../src/scan-gram.l" +#line 488 "/Users/akim/src/gnu/bison/src/scan-gram.l" unexpected_eof (token_start, "*/"); BEGIN context_state; YY_BREAK @@ -2198,14 +2411,14 @@ unexpected_eof (token_start, "*/"); BEGIN context_state; `------------------------------------------------------------*/ -case 91: -/* rule 91 can match eol */ +case 90: +/* rule 90 can match eol */ YY_RULE_SETUP -#line 488 "../../src/scan-gram.l" +#line 498 "/Users/akim/src/gnu/bison/src/scan-gram.l" STRING_GROW; BEGIN context_state; YY_BREAK case YY_STATE_EOF(SC_COMMENT): -#line 489 "../../src/scan-gram.l" +#line 499 "/Users/akim/src/gnu/bison/src/scan-gram.l" unexpected_eof (token_start, "*/"); BEGIN context_state; YY_BREAK @@ -2214,20 +2427,20 @@ unexpected_eof (token_start, "*/"); BEGIN context_state; `--------------------------------------------------------------*/ -case 92: -/* rule 92 can match eol */ +case 91: +/* rule 91 can match eol */ YY_RULE_SETUP -#line 499 "../../src/scan-gram.l" +#line 509 "/Users/akim/src/gnu/bison/src/scan-gram.l" STRING_GROW; BEGIN context_state; YY_BREAK -case 93: -/* rule 93 can match eol */ +case 92: +/* rule 92 can match eol */ YY_RULE_SETUP -#line 500 "../../src/scan-gram.l" +#line 510 "/Users/akim/src/gnu/bison/src/scan-gram.l" STRING_GROW; YY_BREAK case YY_STATE_EOF(SC_LINE_COMMENT): -#line 501 "../../src/scan-gram.l" +#line 511 "/Users/akim/src/gnu/bison/src/scan-gram.l" BEGIN context_state; YY_BREAK @@ -2237,25 +2450,26 @@ BEGIN context_state; `------------------------------------------------*/ -case 94: +case 93: YY_RULE_SETUP -#line 512 "../../src/scan-gram.l" +#line 522 "/Users/akim/src/gnu/bison/src/scan-gram.l" { STRING_FINISH; - loc->start = token_start; - val->code = last_string; BEGIN INITIAL; - return STRING; + loc->start = token_start; + complain (loc, Wyacc, + _("POSIX Yacc does not support string literals")); + RETURN_VALUE (STRING, last_string); } YY_BREAK case YY_STATE_EOF(SC_ESCAPED_STRING): -#line 519 "../../src/scan-gram.l" +#line 530 "/Users/akim/src/gnu/bison/src/scan-gram.l" unexpected_eof (token_start, "\""); YY_BREAK -case 95: -/* rule 95 can match eol */ +case 94: +/* rule 94 can match eol */ YY_RULE_SETUP -#line 520 "../../src/scan-gram.l" +#line 531 "/Users/akim/src/gnu/bison/src/scan-gram.l" unexpected_newline (token_start, "\""); YY_BREAK @@ -2265,20 +2479,20 @@ unexpected_newline (token_start, "\""); `----------------------------------------------------------*/ -case 96: +case 95: YY_RULE_SETUP -#line 530 "../../src/scan-gram.l" +#line 541 "/Users/akim/src/gnu/bison/src/scan-gram.l" { STRING_FINISH; loc->start = token_start; - val->character = last_string[0]; + val->CHAR = last_string[0]; /* FIXME: Eventually, make these errors. */ if (last_string[0] == '\0') { complain (loc, Wother, _("empty character literal")); /* '\0' seems dangerous even if we are about to complain. */ - val->character = '\''; + val->CHAR = '\''; } else if (last_string[1] != '\0') complain (loc, Wother, @@ -2288,14 +2502,14 @@ YY_RULE_SETUP return CHAR; } YY_BREAK -case 97: -/* rule 97 can match eol */ +case 96: +/* rule 96 can match eol */ YY_RULE_SETUP -#line 549 "../../src/scan-gram.l" +#line 560 "/Users/akim/src/gnu/bison/src/scan-gram.l" unexpected_newline (token_start, "'"); YY_BREAK case YY_STATE_EOF(SC_ESCAPED_CHARACTER): -#line 550 "../../src/scan-gram.l" +#line 561 "/Users/akim/src/gnu/bison/src/scan-gram.l" unexpected_eof (token_start, "'"); YY_BREAK @@ -2304,16 +2518,16 @@ unexpected_eof (token_start, "'"); `--------------------------------------------------------------*/ -case 98: +case 97: YY_RULE_SETUP -#line 561 "../../src/scan-gram.l" +#line 572 "/Users/akim/src/gnu/bison/src/scan-gram.l" { --nesting; if (nesting < 0) { STRING_FINISH; loc->start = token_start; - val->uniqstr = uniqstr_new (last_string); + val->TAG = uniqstr_new (last_string); STRING_FREE; BEGIN INITIAL; return TAG; @@ -2321,19 +2535,19 @@ YY_RULE_SETUP STRING_GROW; } YY_BREAK -case 99: -/* rule 99 can match eol */ +case 98: +/* rule 98 can match eol */ YY_RULE_SETUP -#line 575 "../../src/scan-gram.l" +#line 586 "/Users/akim/src/gnu/bison/src/scan-gram.l" STRING_GROW; YY_BREAK -case 100: +case 99: YY_RULE_SETUP -#line 576 "../../src/scan-gram.l" -STRING_GROW; nesting += gram_leng; +#line 587 "/Users/akim/src/gnu/bison/src/scan-gram.l" +STRING_GROW; nesting += yyleng; YY_BREAK case YY_STATE_EOF(SC_TAG): -#line 578 "../../src/scan-gram.l" +#line 589 "/Users/akim/src/gnu/bison/src/scan-gram.l" unexpected_eof (token_start, ">"); YY_BREAK @@ -2342,97 +2556,98 @@ unexpected_eof (token_start, ">"); `----------------------------*/ -case 101: +case 100: YY_RULE_SETUP -#line 587 "../../src/scan-gram.l" +#line 598 "/Users/akim/src/gnu/bison/src/scan-gram.l" { - unsigned long int c = strtoul (gram_text + 1, NULL, 8); + verify (UCHAR_MAX < ULONG_MAX); + unsigned long c = strtoul (yytext + 1, NULL, 8); if (!c || UCHAR_MAX < c) complain (loc, complaint, _("invalid number after \\-escape: %s"), - gram_text+1); + yytext+1); else obstack_1grow (&obstack_for_string, c); } YY_BREAK -case 102: +case 101: YY_RULE_SETUP -#line 596 "../../src/scan-gram.l" +#line 608 "/Users/akim/src/gnu/bison/src/scan-gram.l" { verify (UCHAR_MAX < ULONG_MAX); - unsigned long int c = strtoul (gram_text + 2, NULL, 16); + unsigned long c = strtoul (yytext + 2, NULL, 16); if (!c || UCHAR_MAX < c) complain (loc, complaint, _("invalid number after \\-escape: %s"), - gram_text+1); + yytext+1); else obstack_1grow (&obstack_for_string, c); } YY_BREAK -case 103: +case 102: YY_RULE_SETUP -#line 606 "../../src/scan-gram.l" +#line 618 "/Users/akim/src/gnu/bison/src/scan-gram.l" obstack_1grow (&obstack_for_string, '\a'); YY_BREAK -case 104: +case 103: YY_RULE_SETUP -#line 607 "../../src/scan-gram.l" +#line 619 "/Users/akim/src/gnu/bison/src/scan-gram.l" obstack_1grow (&obstack_for_string, '\b'); YY_BREAK -case 105: +case 104: YY_RULE_SETUP -#line 608 "../../src/scan-gram.l" +#line 620 "/Users/akim/src/gnu/bison/src/scan-gram.l" obstack_1grow (&obstack_for_string, '\f'); YY_BREAK -case 106: +case 105: YY_RULE_SETUP -#line 609 "../../src/scan-gram.l" +#line 621 "/Users/akim/src/gnu/bison/src/scan-gram.l" obstack_1grow (&obstack_for_string, '\n'); YY_BREAK -case 107: +case 106: YY_RULE_SETUP -#line 610 "../../src/scan-gram.l" +#line 622 "/Users/akim/src/gnu/bison/src/scan-gram.l" obstack_1grow (&obstack_for_string, '\r'); YY_BREAK -case 108: +case 107: YY_RULE_SETUP -#line 611 "../../src/scan-gram.l" +#line 623 "/Users/akim/src/gnu/bison/src/scan-gram.l" obstack_1grow (&obstack_for_string, '\t'); YY_BREAK -case 109: +case 108: YY_RULE_SETUP -#line 612 "../../src/scan-gram.l" +#line 624 "/Users/akim/src/gnu/bison/src/scan-gram.l" obstack_1grow (&obstack_for_string, '\v'); YY_BREAK /* \\[\"\'?\\] would be shorter, but it confuses xgettext. */ -case 110: +case 109: YY_RULE_SETUP -#line 615 "../../src/scan-gram.l" -obstack_1grow (&obstack_for_string, gram_text[1]); +#line 627 "/Users/akim/src/gnu/bison/src/scan-gram.l" +obstack_1grow (&obstack_for_string, yytext[1]); YY_BREAK -case 111: +case 110: YY_RULE_SETUP -#line 617 "../../src/scan-gram.l" +#line 629 "/Users/akim/src/gnu/bison/src/scan-gram.l" { - int c = convert_ucn_to_byte (gram_text); + int c = convert_ucn_to_byte (yytext); if (c <= 0) complain (loc, complaint, _("invalid number after \\-escape: %s"), - gram_text+1); + yytext+1); else obstack_1grow (&obstack_for_string, c); } YY_BREAK -case 112: -/* rule 112 can match eol */ +case 111: +/* rule 111 can match eol */ YY_RULE_SETUP -#line 625 "../../src/scan-gram.l" +#line 637 "/Users/akim/src/gnu/bison/src/scan-gram.l" { - char const *p = gram_text + 1; + char const *p = yytext + 1; /* Quote only if escaping won't make the character visible. */ if (c_isspace ((unsigned char) *p) && c_isprint ((unsigned char) *p)) p = quote (p); else p = quotearg_style_mem (escape_quoting_style, p, 1); complain (loc, complaint, _("invalid character after \\-escape: %s"), - p); + p); } YY_BREAK @@ -2441,46 +2656,46 @@ YY_RULE_SETUP `--------------------------------------------*/ -case 113: -/* rule 113 can match eol */ +case 112: +/* rule 112 can match eol */ YY_RULE_SETUP -#line 643 "../../src/scan-gram.l" +#line 655 "/Users/akim/src/gnu/bison/src/scan-gram.l" STRING_GROW; YY_BREAK -case 114: +case 113: YY_RULE_SETUP -#line 648 "../../src/scan-gram.l" +#line 660 "/Users/akim/src/gnu/bison/src/scan-gram.l" STRING_GROW; BEGIN context_state; YY_BREAK -case 115: -/* rule 115 can match eol */ +case 114: +/* rule 114 can match eol */ YY_RULE_SETUP -#line 649 "../../src/scan-gram.l" +#line 661 "/Users/akim/src/gnu/bison/src/scan-gram.l" unexpected_newline (token_start, "'"); YY_BREAK case YY_STATE_EOF(SC_CHARACTER): -#line 650 "../../src/scan-gram.l" +#line 662 "/Users/akim/src/gnu/bison/src/scan-gram.l" unexpected_eof (token_start, "'"); YY_BREAK -case 116: +case 115: YY_RULE_SETUP -#line 655 "../../src/scan-gram.l" +#line 667 "/Users/akim/src/gnu/bison/src/scan-gram.l" STRING_GROW; BEGIN context_state; YY_BREAK -case 117: -/* rule 117 can match eol */ +case 116: +/* rule 116 can match eol */ YY_RULE_SETUP -#line 656 "../../src/scan-gram.l" +#line 668 "/Users/akim/src/gnu/bison/src/scan-gram.l" unexpected_newline (token_start, "\""); YY_BREAK case YY_STATE_EOF(SC_STRING): -#line 657 "../../src/scan-gram.l" +#line 669 "/Users/akim/src/gnu/bison/src/scan-gram.l" unexpected_eof (token_start, "\""); YY_BREAK @@ -2489,9 +2704,9 @@ unexpected_eof (token_start, "\""); `---------------------------------------------------*/ -case 118: +case 117: YY_RULE_SETUP -#line 667 "../../src/scan-gram.l" +#line 679 "/Users/akim/src/gnu/bison/src/scan-gram.l" { STRING_GROW; context_state = YY_START; @@ -2499,9 +2714,9 @@ YY_RULE_SETUP BEGIN SC_CHARACTER; } YY_BREAK -case 119: +case 118: YY_RULE_SETUP -#line 673 "../../src/scan-gram.l" +#line 685 "/Users/akim/src/gnu/bison/src/scan-gram.l" { STRING_GROW; context_state = YY_START; @@ -2509,10 +2724,10 @@ YY_RULE_SETUP BEGIN SC_STRING; } YY_BREAK -case 120: -/* rule 120 can match eol */ +case 119: +/* rule 119 can match eol */ YY_RULE_SETUP -#line 679 "../../src/scan-gram.l" +#line 691 "/Users/akim/src/gnu/bison/src/scan-gram.l" { STRING_GROW; context_state = YY_START; @@ -2520,10 +2735,10 @@ YY_RULE_SETUP BEGIN SC_COMMENT; } YY_BREAK -case 121: -/* rule 121 can match eol */ +case 120: +/* rule 120 can match eol */ YY_RULE_SETUP -#line 685 "../../src/scan-gram.l" +#line 697 "/Users/akim/src/gnu/bison/src/scan-gram.l" { STRING_GROW; context_state = YY_START; @@ -2537,37 +2752,37 @@ YY_RULE_SETUP `-----------------------------------------------------------*/ -case 122: -/* rule 122 can match eol */ +case 121: +/* rule 121 can match eol */ YY_RULE_SETUP -#line 701 "../../src/scan-gram.l" +#line 713 "/Users/akim/src/gnu/bison/src/scan-gram.l" STRING_GROW; nesting++; YY_BREAK -case 123: -/* rule 123 can match eol */ +case 122: +/* rule 122 can match eol */ YY_RULE_SETUP -#line 702 "../../src/scan-gram.l" +#line 714 "/Users/akim/src/gnu/bison/src/scan-gram.l" STRING_GROW; nesting--; YY_BREAK -/* Tokenize '<<%' correctly (as '<<' '%') rather than incorrrectly +/* Tokenize '<<%' correctly (as '<<' '%') rather than incorrectly (as '<' '<%'). */ -case 124: -/* rule 124 can match eol */ +case 123: +/* rule 123 can match eol */ YY_RULE_SETUP -#line 706 "../../src/scan-gram.l" +#line 718 "/Users/akim/src/gnu/bison/src/scan-gram.l" STRING_GROW; YY_BREAK case YY_STATE_EOF(SC_BRACED_CODE): case YY_STATE_EOF(SC_PREDICATE): -#line 708 "../../src/scan-gram.l" +#line 720 "/Users/akim/src/gnu/bison/src/scan-gram.l" unexpected_eof (code_start, "}"); YY_BREAK -case 125: +case 124: YY_RULE_SETUP -#line 713 "../../src/scan-gram.l" +#line 725 "/Users/akim/src/gnu/bison/src/scan-gram.l" { obstack_1grow (&obstack_for_string, '}'); @@ -2576,27 +2791,25 @@ YY_RULE_SETUP { STRING_FINISH; loc->start = code_start; - val->code = last_string; BEGIN INITIAL; - return BRACED_CODE; + RETURN_VALUE (BRACED_CODE, last_string); } } YY_BREAK -case 126: +case 125: YY_RULE_SETUP -#line 730 "../../src/scan-gram.l" +#line 741 "/Users/akim/src/gnu/bison/src/scan-gram.l" { --nesting; if (nesting < 0) { STRING_FINISH; loc->start = code_start; - val->code = last_string; BEGIN INITIAL; - return BRACED_PREDICATE; + RETURN_VALUE (BRACED_PREDICATE, last_string); } else obstack_1grow (&obstack_for_string, '}'); @@ -2608,19 +2821,18 @@ YY_RULE_SETUP `--------------------------------------------------------------*/ -case 127: +case 126: YY_RULE_SETUP -#line 751 "../../src/scan-gram.l" +#line 761 "/Users/akim/src/gnu/bison/src/scan-gram.l" { STRING_FINISH; loc->start = code_start; - val->code = last_string; BEGIN INITIAL; - return PROLOGUE; + RETURN_VALUE (PROLOGUE, last_string); } YY_BREAK case YY_STATE_EOF(SC_PROLOGUE): -#line 759 "../../src/scan-gram.l" +#line 768 "/Users/akim/src/gnu/bison/src/scan-gram.l" unexpected_eof (code_start, "%}"); YY_BREAK @@ -2631,33 +2843,32 @@ unexpected_eof (code_start, "%}"); case YY_STATE_EOF(SC_EPILOGUE): -#line 770 "../../src/scan-gram.l" +#line 779 "/Users/akim/src/gnu/bison/src/scan-gram.l" { STRING_FINISH; loc->start = code_start; - val->code = last_string; BEGIN INITIAL; - return EPILOGUE; + RETURN_VALUE (EPILOGUE, last_string); } YY_BREAK /*-----------------------------------------------------. | By default, grow the string obstack with the input. | `-----------------------------------------------------*/ +case 127: +#line 793 "/Users/akim/src/gnu/bison/src/scan-gram.l" case 128: -#line 785 "../../src/scan-gram.l" -case 129: -/* rule 129 can match eol */ +/* rule 128 can match eol */ YY_RULE_SETUP -#line 785 "../../src/scan-gram.l" +#line 793 "/Users/akim/src/gnu/bison/src/scan-gram.l" STRING_GROW; YY_BREAK -case 130: +case 129: YY_RULE_SETUP -#line 787 "../../src/scan-gram.l" +#line 795 "/Users/akim/src/gnu/bison/src/scan-gram.l" YY_FATAL_ERROR( "flex scanner jammed" ); YY_BREAK -#line 2661 "src/scan-gram.c" +#line 2871 "src/scan-gram.c" case YY_STATE_EOF(SC_RETURN_BRACKETED_ID): yyterminate(); @@ -2674,15 +2885,19 @@ case YY_STATE_EOF(SC_RETURN_BRACKETED_ID): { /* We're scanning a new file or input source. It's * possible that this happened because the user - * just pointed gram_in at a new source and called - * gram_lex(). If so, then we have to assure + * just pointed yyin at a new source and called + * yylex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = gram_in; +/* %if-c-only */ + YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; +/* %endif */ +/* %if-c++-only */ +/* %endif */ YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } @@ -2737,11 +2952,11 @@ case YY_STATE_EOF(SC_RETURN_BRACKETED_ID): { (yy_did_buffer_switch_on_eof) = 0; - if ( gram_wrap( ) ) + if ( yywrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up - * gram_text, we can now 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 @@ -2790,12 +3005,12 @@ case YY_STATE_EOF(SC_RETURN_BRACKETED_ID): "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ -} /* end of gram_lex */ + } /* end of user's declarations */ +} /* end of yylex */ /* %ok-for-header */ /* %if-c++-only */ /* %not-for-header */ - /* %ok-for-header */ /* %endif */ @@ -2813,9 +3028,9 @@ static int yy_get_next_buffer (void) /* %if-c++-only */ /* %endif */ { - register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - register char *source = (yytext_ptr); - register int number_to_move, i; + char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; + char *source = (yytext_ptr); + int number_to_move, i; int ret_val; if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) @@ -2844,7 +3059,7 @@ static int yy_get_next_buffer (void) /* Try to read more data. */ /* First move last chars to start of buffer. */ - number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; + number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1); for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); @@ -2857,7 +3072,7 @@ static int yy_get_next_buffer (void) else { - yy_size_t num_to_read = + int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) @@ -2871,7 +3086,7 @@ static int yy_get_next_buffer (void) if ( b->yy_is_our_buffer ) { - yy_size_t new_size = b->yy_buf_size * 2; + int new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; @@ -2880,11 +3095,12 @@ static int yy_get_next_buffer (void) b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ - gram_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); + yyrealloc( (void *) b->yy_ch_buf, + (yy_size_t) (b->yy_buf_size + 2) ); } else /* Can't grow it, we don't own it. */ - b->yy_ch_buf = 0; + b->yy_ch_buf = NULL; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( @@ -2912,7 +3128,7 @@ static int yy_get_next_buffer (void) if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; - gram_restart(gram_in ); + yyrestart( yyin ); } else @@ -2926,12 +3142,15 @@ static int yy_get_next_buffer (void) else ret_val = EOB_ACT_CONTINUE_SCAN; - if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { + if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ - yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) gram_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); + int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc( + (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); + /* "- 2" to take care of EOB's */ + YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2); } (yy_n_chars) += number_to_move; @@ -2947,14 +3166,13 @@ static int yy_get_next_buffer (void) /* %if-c-only */ /* %not-for-header */ - static yy_state_type yy_get_previous_state (void) /* %endif */ /* %if-c++-only */ /* %endif */ { - register yy_state_type yy_current_state; - register char *yy_cp; + yy_state_type yy_current_state; + char *yy_cp; /* %% [15.0] code to get the start state into yy_current_state goes here */ yy_current_state = (yy_start); @@ -2963,7 +3181,7 @@ static int yy_get_next_buffer (void) for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { /* %% [16.0] code to find the next state goes here */ - register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 59); + YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 58); if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; @@ -2972,10 +3190,10 @@ static int yy_get_next_buffer (void) 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 >= 582 ) - yy_c = yy_meta[(unsigned int) yy_c]; + if ( yy_current_state >= 573 ) + yy_c = yy_meta[yy_c]; } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; } return yy_current_state; @@ -2992,11 +3210,11 @@ static int yy_get_next_buffer (void) /* %if-c++-only */ /* %endif */ { - register int yy_is_jam; + int yy_is_jam; /* %% [17.0] code to find the next state, and perhaps do backing up, goes here */ - register char *yy_cp = (yy_c_buf_p); + char *yy_cp = (yy_c_buf_p); - register YY_CHAR yy_c = 59; + YY_CHAR yy_c = 58; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; @@ -3005,36 +3223,37 @@ static int yy_get_next_buffer (void) 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 >= 582 ) - yy_c = yy_meta[(unsigned int) yy_c]; + if ( yy_current_state >= 573 ) + yy_c = yy_meta[yy_c]; } - yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - yy_is_jam = (yy_current_state == 581); + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + yy_is_jam = (yy_current_state == 572); return yy_is_jam ? 0 : yy_current_state; } +#ifndef YY_NO_UNPUT /* %if-c-only */ - static void yyunput (int c, register char * yy_bp ) + static void yyunput (int c, char * yy_bp ) /* %endif */ /* %if-c++-only */ /* %endif */ { - register char *yy_cp; + char *yy_cp; yy_cp = (yy_c_buf_p); - /* undo effects of setting up gram_text */ + /* undo effects of setting up yytext */ *yy_cp = (yy_hold_char); if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ - register yy_size_t number_to_move = (yy_n_chars) + 2; - register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ + int number_to_move = (yy_n_chars) + 2; + char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; - register char *source = + char *source = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) @@ -3043,7 +3262,7 @@ static int yy_get_next_buffer (void) yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = - (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; + (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size; if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) YY_FATAL_ERROR( "flex scanner push-back overflow" ); @@ -3051,7 +3270,7 @@ static int yy_get_next_buffer (void) *--yy_cp = (char) c; -/* %% [18.0] update gram_lineno here */ +/* %% [18.0] update yylineno here */ (yytext_ptr) = yy_bp; (yy_hold_char) = *yy_cp; @@ -3060,6 +3279,7 @@ static int yy_get_next_buffer (void) /* %if-c-only */ /* %endif */ +#endif /* %if-c-only */ #ifndef YY_NO_INPUT @@ -3089,7 +3309,7 @@ static int yy_get_next_buffer (void) else { /* need more input */ - yy_size_t offset = (yy_c_buf_p) - (yytext_ptr); + int offset = (int) ((yy_c_buf_p) - (yytext_ptr)); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) @@ -3106,14 +3326,14 @@ static int yy_get_next_buffer (void) */ /* Reset buffer status. */ - gram_restart(gram_in ); + yyrestart( yyin ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { - if ( gram_wrap( ) ) - return EOF; + if ( yywrap( ) ) + return 0; if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; @@ -3132,10 +3352,10 @@ static int yy_get_next_buffer (void) } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ - *(yy_c_buf_p) = '\0'; /* preserve gram_text */ + *(yy_c_buf_p) = '\0'; /* preserve yytext */ (yy_hold_char) = *++(yy_c_buf_p); -/* %% [19.0] update BOL and gram_lineno */ +/* %% [19.0] update BOL and yylineno */ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); return c; @@ -3150,28 +3370,31 @@ static int yy_get_next_buffer (void) * @note This function does not reset the start condition to @c INITIAL . */ /* %if-c-only */ - void gram_restart (FILE * input_file ) + void yyrestart (FILE * input_file ) /* %endif */ /* %if-c++-only */ /* %endif */ { if ( ! YY_CURRENT_BUFFER ){ - gram_ensure_buffer_stack (); + yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = - gram__create_buffer(gram_in,YY_BUF_SIZE ); + yy_create_buffer( yyin, YY_BUF_SIZE ); } - gram__init_buffer(YY_CURRENT_BUFFER,input_file ); - gram__load_buffer_state( ); + yy_init_buffer( YY_CURRENT_BUFFER, input_file ); + yy_load_buffer_state( ); } +/* %if-c++-only */ +/* %endif */ + /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ /* %if-c-only */ - void gram__switch_to_buffer (YY_BUFFER_STATE new_buffer ) + void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) /* %endif */ /* %if-c++-only */ /* %endif */ @@ -3179,10 +3402,10 @@ static int yy_get_next_buffer (void) /* TODO. We should be able to replace this entire function body * with - * gram_pop_buffer_state(); - * gram_push_buffer_state(new_buffer); + * yypop_buffer_state(); + * yypush_buffer_state(new_buffer); */ - gram_ensure_buffer_stack (); + yyensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; @@ -3195,25 +3418,29 @@ static int yy_get_next_buffer (void) } YY_CURRENT_BUFFER_LVALUE = new_buffer; - gram__load_buffer_state( ); + yy_load_buffer_state( ); /* We don't actually know whether we did this switch during - * EOF (gram_wrap()) processing, but the only time this flag - * is looked at is after gram_wrap() is called, so it's safe + * EOF (yywrap()) processing, but the only time this flag + * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } /* %if-c-only */ -static void gram__load_buffer_state (void) +static void yy_load_buffer_state (void) /* %endif */ /* %if-c++-only */ /* %endif */ { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - gram_in = YY_CURRENT_BUFFER_LVALUE->yy_input_file; +/* %if-c-only */ + yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; +/* %endif */ +/* %if-c++-only */ +/* %endif */ (yy_hold_char) = *(yy_c_buf_p); } @@ -3224,39 +3451,42 @@ static void gram__load_buffer_state (void) * @return the allocated buffer state. */ /* %if-c-only */ - YY_BUFFER_STATE gram__create_buffer (FILE * file, int size ) + YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) /* %endif */ /* %if-c++-only */ /* %endif */ { YY_BUFFER_STATE b; - b = (YY_BUFFER_STATE) gram_alloc(sizeof( struct yy_buffer_state ) ); + b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in gram__create_buffer()" ); + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ - b->yy_ch_buf = (char *) gram_alloc(b->yy_buf_size + 2 ); + b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) ); if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in gram__create_buffer()" ); + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; - gram__init_buffer(b,file ); + yy_init_buffer( b, file ); return b; } +/* %if-c++-only */ +/* %endif */ + /** Destroy the buffer. - * @param b a buffer created with gram__create_buffer() + * @param b a buffer created with yy_create_buffer() * */ /* %if-c-only */ - void gram__delete_buffer (YY_BUFFER_STATE b ) + void yy_delete_buffer (YY_BUFFER_STATE b ) /* %endif */ /* %if-c++-only */ /* %endif */ @@ -3269,17 +3499,17 @@ static void gram__load_buffer_state (void) YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) - gram_free((void *) b->yy_ch_buf ); + yyfree( (void *) b->yy_ch_buf ); - gram_free((void *) b ); + yyfree( (void *) b ); } /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, - * such as during a gram_restart() or at EOF. + * such as during a yyrestart() or at EOF. */ /* %if-c-only */ - static void gram__init_buffer (YY_BUFFER_STATE b, FILE * file ) + static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) /* %endif */ /* %if-c++-only */ /* %endif */ @@ -3287,13 +3517,17 @@ static void gram__load_buffer_state (void) { int oerrno = errno; - gram__flush_buffer(b ); + yy_flush_buffer( b ); +/* %if-c-only */ b->yy_input_file = file; +/* %endif */ +/* %if-c++-only */ +/* %endif */ b->yy_fill_buffer = 1; - /* If b is the current buffer, then gram__init_buffer was _probably_ - * called from gram_restart() or through yy_get_next_buffer. + /* 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){ @@ -3316,7 +3550,7 @@ static void gram__load_buffer_state (void) * */ /* %if-c-only */ - void gram__flush_buffer (YY_BUFFER_STATE b ) + void yy_flush_buffer (YY_BUFFER_STATE b ) /* %endif */ /* %if-c++-only */ /* %endif */ @@ -3339,7 +3573,7 @@ static void gram__load_buffer_state (void) b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) - gram__load_buffer_state( ); + yy_load_buffer_state( ); } /* %if-c-or-c++ */ @@ -3350,7 +3584,7 @@ static void gram__load_buffer_state (void) * */ /* %if-c-only */ -void gram_push_buffer_state (YY_BUFFER_STATE new_buffer ) +void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) /* %endif */ /* %if-c++-only */ /* %endif */ @@ -3358,9 +3592,9 @@ void gram_push_buffer_state (YY_BUFFER_STATE new_buffer ) if (new_buffer == NULL) return; - gram_ensure_buffer_stack(); + yyensure_buffer_stack(); - /* This block is copied from gram__switch_to_buffer. */ + /* This block is copied from yy_switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ @@ -3374,8 +3608,8 @@ void gram_push_buffer_state (YY_BUFFER_STATE new_buffer ) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; - /* copied from gram__switch_to_buffer. */ - gram__load_buffer_state( ); + /* copied from yy_switch_to_buffer. */ + yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } /* %endif */ @@ -3386,7 +3620,7 @@ void gram_push_buffer_state (YY_BUFFER_STATE new_buffer ) * */ /* %if-c-only */ -void gram_pop_buffer_state (void) +void yypop_buffer_state (void) /* %endif */ /* %if-c++-only */ /* %endif */ @@ -3394,13 +3628,13 @@ void gram_pop_buffer_state (void) if (!YY_CURRENT_BUFFER) return; - gram__delete_buffer(YY_CURRENT_BUFFER ); + yy_delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { - gram__load_buffer_state( ); + yy_load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } @@ -3411,7 +3645,7 @@ void gram_pop_buffer_state (void) * Guarantees space for at least one push. */ /* %if-c-only */ -static void gram_ensure_buffer_stack (void) +static void yyensure_buffer_stack (void) /* %endif */ /* %if-c++-only */ /* %endif */ @@ -3424,15 +3658,15 @@ static void gram_ensure_buffer_stack (void) * scanner will even need a stack. We use 2 instead of 1 to avoid an * immediate realloc on the next call. */ - num_to_alloc = 1; - (yy_buffer_stack) = (struct yy_buffer_state**)gram_alloc + num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ + (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) - YY_FATAL_ERROR( "out of dynamic memory in gram_ensure_buffer_stack()" ); - + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - + (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; @@ -3441,15 +3675,15 @@ static void gram_ensure_buffer_stack (void) if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ /* Increase the buffer to prepare for a possible push. */ - int grow_size = 8 /* arbitrary grow size */; + yy_size_t grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; - (yy_buffer_stack) = (struct yy_buffer_state**)gram_realloc + (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) - YY_FATAL_ERROR( "out of dynamic memory in gram_ensure_buffer_stack()" ); + YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); /* zero only the new slots.*/ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); @@ -3463,9 +3697,9 @@ static void gram_ensure_buffer_stack (void) * @param base the character buffer * @param size the size in bytes of the character buffer * - * @return the newly allocated buffer state object. + * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE gram__scan_buffer (char * base, yy_size_t size ) +YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; @@ -3473,53 +3707,53 @@ YY_BUFFER_STATE gram__scan_buffer (char * base, yy_size_t size ) 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; + return NULL; - b = (YY_BUFFER_STATE) gram_alloc(sizeof( struct yy_buffer_state ) ); + b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in gram__scan_buffer()" ); + 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_size = (int) (size - 2); /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; - b->yy_input_file = 0; + b->yy_input_file = NULL; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; - gram__switch_to_buffer(b ); + yy_switch_to_buffer( b ); return b; } /* %endif */ /* %if-c-only */ -/** Setup the input buffer state to scan a string. The next call to gram_lex() will +/** Setup the input buffer state to scan a string. The next call to yylex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use - * gram__scan_bytes() instead. + * yy_scan_bytes() instead. */ -YY_BUFFER_STATE gram__scan_string (yyconst char * yystr ) +YY_BUFFER_STATE yy_scan_string (const char * yystr ) { - return gram__scan_bytes(yystr,strlen(yystr) ); + return yy_scan_bytes( yystr, (int) strlen(yystr) ); } /* %endif */ /* %if-c-only */ -/** Setup the input buffer state to scan the given bytes. The next call to gram_lex() will +/** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. * @param yybytes the byte buffer to scan * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE gram__scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) +YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len ) { YY_BUFFER_STATE b; char *buf; @@ -3527,19 +3761,19 @@ YY_BUFFER_STATE gram__scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_l int i; /* Get memory for full buffer, including space for trailing EOB's. */ - n = _yybytes_len + 2; - buf = (char *) gram_alloc(n ); + n = (yy_size_t) (_yybytes_len + 2); + buf = (char *) yyalloc( n ); if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in gram__scan_bytes()" ); + 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 = gram__scan_buffer(buf,n ); + b = yy_scan_buffer( buf, n ); if ( ! b ) - YY_FATAL_ERROR( "bad buffer in gram__scan_bytes()" ); + 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. @@ -3555,9 +3789,9 @@ YY_BUFFER_STATE gram__scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_l #endif /* %if-c-only */ -static void yy_fatal_error (yyconst char* msg ) +static void yynoreturn yy_fatal_error (const char* msg ) { - (void) fprintf( stderr, "%s\n", msg ); + fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* %endif */ @@ -3570,14 +3804,14 @@ static void yy_fatal_error (yyconst char* msg ) #define yyless(n) \ do \ { \ - /* Undo effects of setting up gram_text. */ \ + /* Undo effects of setting up yytext. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ - gram_text[gram_leng] = (yy_hold_char); \ - (yy_c_buf_p) = gram_text + yyless_macro_arg; \ + yytext[yyleng] = (yy_hold_char); \ + (yy_c_buf_p) = yytext + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ - gram_leng = yyless_macro_arg; \ + yyleng = yyless_macro_arg; \ } \ while ( 0 ) @@ -3590,82 +3824,82 @@ static void yy_fatal_error (yyconst char* msg ) /** Get the current line number. * */ -int gram_get_lineno (void) +int yyget_lineno (void) { - - return gram_lineno; + + return yylineno; } /** Get the input stream. * */ -FILE *gram_get_in (void) +FILE *yyget_in (void) { - return gram_in; + return yyin; } /** Get the output stream. * */ -FILE *gram_get_out (void) +FILE *yyget_out (void) { - return gram_out; + return yyout; } /** Get the length of the current token. * */ -yy_size_t gram_get_leng (void) +int yyget_leng (void) { - return gram_leng; + return yyleng; } /** Get the current token. * */ -char *gram_get_text (void) +char *yyget_text (void) { - return gram_text; + return yytext; } /* %if-reentrant */ /* %endif */ /** Set the current line number. - * @param line_number + * @param _line_number line number * */ -void gram_set_lineno (int line_number ) +void yyset_lineno (int _line_number ) { - gram_lineno = line_number; + yylineno = _line_number; } /** Set the input stream. This does not discard the current * input buffer. - * @param in_str A readable stream. + * @param _in_str A readable stream. * - * @see gram__switch_to_buffer + * @see yy_switch_to_buffer */ -void gram_set_in (FILE * in_str ) +void yyset_in (FILE * _in_str ) { - gram_in = in_str ; + yyin = _in_str ; } -void gram_set_out (FILE * out_str ) +void yyset_out (FILE * _out_str ) { - gram_out = out_str ; + yyout = _out_str ; } -int gram_get_debug (void) +int yyget_debug (void) { - return gram__flex_debug; + return yy_flex_debug; } -void gram_set_debug (int bdebug ) +void yyset_debug (int _bdebug ) { - gram__flex_debug = bdebug ; + yy_flex_debug = _bdebug ; } /* %endif */ @@ -3679,50 +3913,50 @@ void gram_set_debug (int bdebug ) static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. - * This function is called from gram_lex_destroy(), so don't allocate here. + * This function is called from yylex_destroy(), so don't allocate here. */ - (yy_buffer_stack) = 0; + (yy_buffer_stack) = NULL; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; - (yy_c_buf_p) = (char *) 0; + (yy_c_buf_p) = NULL; (yy_init) = 0; (yy_start) = 0; /* Defined in main.c */ #ifdef YY_STDINIT - gram_in = stdin; - gram_out = stdout; + yyin = stdin; + yyout = stdout; #else - gram_in = (FILE *) 0; - gram_out = (FILE *) 0; + yyin = NULL; + yyout = NULL; #endif /* For future reference: Set errno on error, since we are called by - * gram_lex_init() + * yylex_init() */ return 0; } /* %endif */ /* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */ -/* gram_lex_destroy is for both reentrant and non-reentrant scanners. */ -int gram_lex_destroy (void) +/* yylex_destroy is for both reentrant and non-reentrant scanners. */ +int yylex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ - gram__delete_buffer(YY_CURRENT_BUFFER ); + yy_delete_buffer( YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; - gram_pop_buffer_state(); + yypop_buffer_state(); } /* Destroy the stack itself. */ - gram_free((yy_buffer_stack) ); + yyfree((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time - * gram_lex() is called, initialization will occur. */ + * yylex() is called, initialization will occur. */ yy_init_globals( ); /* %if-reentrant */ @@ -3736,18 +3970,19 @@ int gram_lex_destroy (void) */ #ifndef yytext_ptr -static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) +static void yy_flex_strncpy (char* s1, const char * s2, int n ) { - register int i; + + 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 ) +static int yy_flex_strlen (const char * s ) { - register int n; + int n; for ( n = 0; s[n]; ++n ) ; @@ -3755,13 +3990,14 @@ static int yy_flex_strlen (yyconst char * s ) } #endif -void *gram_alloc (yy_size_t size ) +void *yyalloc (yy_size_t size ) { - return (void *) malloc( size ); + return malloc(size); } -void *gram_realloc (void * ptr, yy_size_t size ) +void *yyrealloc (void * ptr, yy_size_t size ) { + /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter @@ -3769,12 +4005,12 @@ void *gram_realloc (void * ptr, yy_size_t size ) * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ - return (void *) realloc( (char *) ptr, size ); + return realloc(ptr, size); } -void gram_free (void * ptr ) +void yyfree (void * ptr ) { - free( (char *) ptr ); /* see gram_realloc() for (char *) cast */ + free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ } /* %if-tables-serialization definitions */ @@ -3784,8 +4020,7 @@ void gram_free (void * ptr ) /* %ok-for-header */ -#line 787 "../../src/scan-gram.l" - +#line 795 "/Users/akim/src/gnu/bison/src/scan-gram.l" /* Read bytes from FP into buffer BUF of size SIZE. Return the @@ -3840,16 +4075,20 @@ no_cr_read (FILE *fp, char *buf, size_t size) | Scan NUMBER for a base-BASE integer at location LOC. | `------------------------------------------------------*/ -static unsigned long int +static unsigned long scan_integer (char const *number, int base, location loc) { verify (INT_MAX < ULONG_MAX); - unsigned long int num = strtoul (number, NULL, base); + if (base == 16) + complain (&loc, Wyacc, + _("POSIX Yacc does not support hexadecimal literals")); + + unsigned long num = strtoul (number, NULL, base); if (INT_MAX < num) { complain (&loc, complaint, _("integer out of range: %s"), - quote (number)); + quote (number)); num = INT_MAX; } @@ -3867,7 +4106,7 @@ static int convert_ucn_to_byte (char const *ucn) { verify (UCHAR_MAX <= INT_MAX); - unsigned long int code = strtoul (ucn + 2, NULL, 16); + unsigned long code = strtoul (ucn + 2, NULL, 16); /* FIXME: Currently we assume Unicode-compatible unibyte characters on ASCII hosts (i.e., Latin-1 on hosts with 8-bit bytes). On @@ -3922,7 +4161,7 @@ static void handle_syncline (char *args, location loc) { char *file; - unsigned long int lineno = strtoul (args, &file, 10); + unsigned long lineno = strtoul (args, &file, 10); if (INT_MAX <= lineno) { complain (&loc, Wother, _("line number overflow")); @@ -3953,7 +4192,7 @@ unexpected_end (boundary start, char const *msgid, char const *token_end) loc.end = scanner_cursor; size_t i = strlen (token_end); -/* Adjust scanner cursor so that any later message does not count + /* Adjust scanner cursor so that any later message does not count the characters about to be inserted. */ scanner_cursor.column -= i; @@ -3964,7 +4203,7 @@ unexpected_end (boundary start, char const *msgid, char const *token_end) /* Instead of '\'', display "'". */ if (STREQ (token_end, "'\\''")) token_end = "\"'\""; - complain (&loc, complaint, _(msgid), token_end); + complain (&loc, complaint, msgid, token_end); } @@ -3977,7 +4216,7 @@ unexpected_end (boundary start, char const *msgid, char const *token_end) static void unexpected_eof (boundary start, char const *token_end) { - unexpected_end (start, N_("missing %s at end of file"), token_end); + unexpected_end (start, _("missing %s at end of file"), token_end); } @@ -3988,7 +4227,7 @@ unexpected_eof (boundary start, char const *token_end) static void unexpected_newline (boundary start, char const *token_end) { - unexpected_end (start, N_("missing %s at end of line"), token_end); + unexpected_end (start, _("missing %s at end of line"), token_end); } @@ -4012,6 +4251,6 @@ gram_scanner_free (void) { obstack_free (&obstack_for_string, 0); /* Reclaim Flex's buffers. */ - gram_lex_destroy (); + yylex_destroy (); } |