diff --git a/scripts/code_generation_hashes/ANGLE_load_functions_table.json b/scripts/code_generation_hashes/ANGLE_load_functions_table.json index fe5bc258a..225542af3 100644 --- a/scripts/code_generation_hashes/ANGLE_load_functions_table.json +++ b/scripts/code_generation_hashes/ANGLE_load_functions_table.json @@ -1,6 +1,8 @@ { + "src/libANGLE/renderer/angle_format.py": + "32ba71942c0fd00e6807104f1bb80a3c", "src/libANGLE/renderer/gen_load_functions_table.py": - "e65c50e84fc38ad34d0eb0bebb84aab6", + "9b4ea6bcb4eb4c43f48a097a9ec920f1", "src/libANGLE/renderer/load_functions_data.json": "5e9a50b1eeda3b5bca68aac4bc379437", "src/libANGLE/renderer/load_functions_table_autogen.cpp": diff --git a/scripts/code_generation_hashes/ANGLE_shader_preprocessor.json b/scripts/code_generation_hashes/ANGLE_shader_preprocessor.json index 99a715430..08ea3b3d7 100644 --- a/scripts/code_generation_hashes/ANGLE_shader_preprocessor.json +++ b/scripts/code_generation_hashes/ANGLE_shader_preprocessor.json @@ -1,14 +1,16 @@ { + "src/compiler/generate_parser_tools.py": + "dca7f7926758ba89a337854f615aca46", "src/compiler/preprocessor/generate_parser.py": "cc871de99688a35bfe32ef501f965d5a", "src/compiler/preprocessor/preprocessor.l": - "143dec2269b9a49a9588391bb57580ec", + "31b4f8bc0bb8f713f5e4db8ae04925e2", "src/compiler/preprocessor/preprocessor.y": - "a3a7dcbf9fd1cf1721ab635cea0189b2", + "6d9cc9961a8df3e3712f63f01f995161", "src/compiler/preprocessor/preprocessor_lex_autogen.cpp": - "5e2dd7b0f74393db96ca6d9b0adeae0b", + "77b814881471bcb8c2720a3bc87110de", "src/compiler/preprocessor/preprocessor_tab_autogen.cpp": - "1faa877557cf67e564cabc547aa3f3c0", + "e6f38425fe894b07a3a961a6c81b85c2", "tools/flex-bison/linux/bison.sha1": "efa86001f00e7bcfdbe899dd15fc88e0", "tools/flex-bison/linux/flex.sha1": diff --git a/scripts/code_generation_hashes/ANGLE_shader_translator.json b/scripts/code_generation_hashes/ANGLE_shader_translator.json index 47a175121..079879427 100644 --- a/scripts/code_generation_hashes/ANGLE_shader_translator.json +++ b/scripts/code_generation_hashes/ANGLE_shader_translator.json @@ -1,14 +1,16 @@ { + "src/compiler/generate_parser_tools.py": + "dca7f7926758ba89a337854f615aca46", "src/compiler/translator/generate_parser.py": "566178ecdfae3a29803b3687fc518ebb", "src/compiler/translator/glslang.l": - "1aaddb610e7bde7f7cffc993ba762c93", + "1cf4635ab5c00fa10592fce2569368ac", "src/compiler/translator/glslang.y": - "2570cc8e33a11cbff3fcbe278f96e5ba", + "ffa9809b1f330df9b9e38ada6698f8a4", "src/compiler/translator/glslang_lex_autogen.cpp": - "2958d0637093e53e1330c67cc323bbb9", + "ce633127e7674ceb14000f2654cf2637", "src/compiler/translator/glslang_tab_autogen.cpp": - "a1c116b14fc63d802487b5d404669d93", + "ff27c679d225ba8d0a4f9f9857eda3e5", "src/compiler/translator/glslang_tab_autogen.h": "c33cc1947462ebb31778181a48538b6b", "tools/flex-bison/linux/bison.sha1": diff --git a/scripts/code_generation_hashes/GL_copy_conversion_table.json b/scripts/code_generation_hashes/GL_copy_conversion_table.json index f018e17f9..86eb31cd6 100644 --- a/scripts/code_generation_hashes/GL_copy_conversion_table.json +++ b/scripts/code_generation_hashes/GL_copy_conversion_table.json @@ -4,5 +4,7 @@ "src/libANGLE/es3_copy_conversion_table_autogen.cpp": "b20d198cf5e292c43170d4873b381b34", "src/libANGLE/gen_copy_conversion_table.py": - "827a4a27cea1e11bef18fed9dce6dceb" + "18e0d2ff461f730a9efb0dcdfa3f058a", + "src/libANGLE/renderer/angle_format.py": + "32ba71942c0fd00e6807104f1bb80a3c" } \ No newline at end of file diff --git a/scripts/code_generation_hashes/GL_format_map.json b/scripts/code_generation_hashes/GL_format_map.json index 3fe5adefd..032f25a78 100644 --- a/scripts/code_generation_hashes/GL_format_map.json +++ b/scripts/code_generation_hashes/GL_format_map.json @@ -6,5 +6,7 @@ "src/libANGLE/format_map_data.json": "2dd1986f49c441ad9a71b82410f57d6e", "src/libANGLE/gen_format_map.py": - "dbc855d50826670a9e1a4ff2747e7583" + "38320d844e6629e09afc5ccdc484e9aa", + "src/libANGLE/renderer/angle_format.py": + "32ba71942c0fd00e6807104f1bb80a3c" } \ No newline at end of file diff --git a/scripts/code_generation_hashes/Metal_format_table.json b/scripts/code_generation_hashes/Metal_format_table.json index 1a09c3115..7f18613e2 100644 --- a/scripts/code_generation_hashes/Metal_format_table.json +++ b/scripts/code_generation_hashes/Metal_format_table.json @@ -1,6 +1,8 @@ { + "src/libANGLE/renderer/angle_format.py": + "32ba71942c0fd00e6807104f1bb80a3c", "src/libANGLE/renderer/metal/gen_mtl_format_table.py": - "afa19b351ae9615be0ec962790d81bd3", + "b6468446dd1da3e44ac9dd11690b5bf1", "src/libANGLE/renderer/metal/mtl_format_map.json": "c6f5b6dda11e456cfbcaeec53eb46fa0", "src/libANGLE/renderer/metal/mtl_format_table_autogen.mm": diff --git a/src/compiler/generate_parser_tools.py b/src/compiler/generate_parser_tools.py index 38ede1c00..82b0826bc 100644 --- a/src/compiler/generate_parser_tools.py +++ b/src/compiler/generate_parser_tools.py @@ -90,6 +90,10 @@ def run_flex(basename): patched = output.replace(patch_in, patch_out) + # Remove all tab characters from output. WebKit does not allow any tab characters in source + # files. + patched = patched.replace('\t', ' ') + with open(output_source, 'w') as flex_output_patched: flex_output_patched.write(patched) @@ -134,6 +138,10 @@ def generate_parser(basename, generate_header): if sys.argv[1] == 'inputs': inputs = get_tool_file_sha1s() inputs += get_input_files(basename) + current_file = __file__ + if current_file.endswith('.pyc'): + current_file = current_file[:-1] + inputs += [current_file] print(','.join(inputs)) if sys.argv[1] == 'outputs': print(','.join(get_output_files(basename, generate_header))) diff --git a/src/compiler/preprocessor/preprocessor.l b/src/compiler/preprocessor/preprocessor.l index 4d2d1d3fe..cca479bd1 100644 --- a/src/compiler/preprocessor/preprocessor.l +++ b/src/compiler/preprocessor/preprocessor.l @@ -23,7 +23,6 @@ IF YOU MODIFY THIS FILE YOU ALSO NEED TO RUN scripts/run_code_generation.py // preprocessor.l: // Lexer for the OpenGL shading language preprocessor. -// clang-format off } %{ diff --git a/src/compiler/preprocessor/preprocessor.y b/src/compiler/preprocessor/preprocessor.y index cb64e0345..fa0620aa4 100644 --- a/src/compiler/preprocessor/preprocessor.y +++ b/src/compiler/preprocessor/preprocessor.y @@ -22,8 +22,6 @@ WHICH GENERATES THE GLSL ES preprocessor expression parser. // preprocessor.y: // Parser for the OpenGL shading language preprocessor. -// clang-format off - #if defined(__GNUC__) // Triggered by the auto-generated pplval variable. #if !defined(__clang__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) diff --git a/src/compiler/preprocessor/preprocessor_lex_autogen.cpp b/src/compiler/preprocessor/preprocessor_lex_autogen.cpp index 7f63ed6f8..584abf0b0 100644 --- a/src/compiler/preprocessor/preprocessor_lex_autogen.cpp +++ b/src/compiler/preprocessor/preprocessor_lex_autogen.cpp @@ -9,459 +9,355 @@ // preprocessor.l: // Lexer for the OpenGL shading language preprocessor. -// clang-format off - - - -#define YY_INT_ALIGNED short int +#define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ - - - - - - - - - #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 6 #define YY_FLEX_SUBMINOR_VERSION 4 #if YY_FLEX_SUBMINOR_VERSION > 0 -#define FLEX_BETA +# define FLEX_BETA #endif - - - - - - - - - - - - - #ifdef yy_create_buffer -#define pp_create_buffer_ALREADY_DEFINED +# define pp_create_buffer_ALREADY_DEFINED #else -#define yy_create_buffer pp_create_buffer +# define yy_create_buffer pp_create_buffer #endif - #ifdef yy_delete_buffer -#define pp_delete_buffer_ALREADY_DEFINED +# define pp_delete_buffer_ALREADY_DEFINED #else -#define yy_delete_buffer pp_delete_buffer +# define yy_delete_buffer pp_delete_buffer #endif - #ifdef yy_scan_buffer -#define pp_scan_buffer_ALREADY_DEFINED +# define pp_scan_buffer_ALREADY_DEFINED #else -#define yy_scan_buffer pp_scan_buffer +# define yy_scan_buffer pp_scan_buffer #endif - #ifdef yy_scan_string -#define pp_scan_string_ALREADY_DEFINED +# define pp_scan_string_ALREADY_DEFINED #else -#define yy_scan_string pp_scan_string +# define yy_scan_string pp_scan_string #endif - #ifdef yy_scan_bytes -#define pp_scan_bytes_ALREADY_DEFINED +# define pp_scan_bytes_ALREADY_DEFINED #else -#define yy_scan_bytes pp_scan_bytes +# define yy_scan_bytes pp_scan_bytes #endif - #ifdef yy_init_buffer -#define pp_init_buffer_ALREADY_DEFINED +# define pp_init_buffer_ALREADY_DEFINED #else -#define yy_init_buffer pp_init_buffer +# define yy_init_buffer pp_init_buffer #endif - #ifdef yy_flush_buffer -#define pp_flush_buffer_ALREADY_DEFINED +# define pp_flush_buffer_ALREADY_DEFINED #else -#define yy_flush_buffer pp_flush_buffer +# define yy_flush_buffer pp_flush_buffer #endif - #ifdef yy_load_buffer_state -#define pp_load_buffer_state_ALREADY_DEFINED +# define pp_load_buffer_state_ALREADY_DEFINED #else -#define yy_load_buffer_state pp_load_buffer_state +# define yy_load_buffer_state pp_load_buffer_state #endif - #ifdef yy_switch_to_buffer -#define pp_switch_to_buffer_ALREADY_DEFINED +# define pp_switch_to_buffer_ALREADY_DEFINED #else -#define yy_switch_to_buffer pp_switch_to_buffer +# define yy_switch_to_buffer pp_switch_to_buffer #endif - #ifdef yypush_buffer_state -#define pppush_buffer_state_ALREADY_DEFINED +# define pppush_buffer_state_ALREADY_DEFINED #else -#define yypush_buffer_state pppush_buffer_state +# define yypush_buffer_state pppush_buffer_state #endif - #ifdef yypop_buffer_state -#define pppop_buffer_state_ALREADY_DEFINED +# define pppop_buffer_state_ALREADY_DEFINED #else -#define yypop_buffer_state pppop_buffer_state +# define yypop_buffer_state pppop_buffer_state #endif - #ifdef yyensure_buffer_stack -#define ppensure_buffer_stack_ALREADY_DEFINED +# define ppensure_buffer_stack_ALREADY_DEFINED #else -#define yyensure_buffer_stack ppensure_buffer_stack +# define yyensure_buffer_stack ppensure_buffer_stack #endif - #ifdef yylex -#define pplex_ALREADY_DEFINED +# define pplex_ALREADY_DEFINED #else -#define yylex pplex +# define yylex pplex #endif - #ifdef yyrestart -#define pprestart_ALREADY_DEFINED +# define pprestart_ALREADY_DEFINED #else -#define yyrestart pprestart +# define yyrestart pprestart #endif - #ifdef yylex_init -#define pplex_init_ALREADY_DEFINED +# define pplex_init_ALREADY_DEFINED #else -#define yylex_init pplex_init +# define yylex_init pplex_init #endif - #ifdef yylex_init_extra -#define pplex_init_extra_ALREADY_DEFINED +# define pplex_init_extra_ALREADY_DEFINED #else -#define yylex_init_extra pplex_init_extra +# define yylex_init_extra pplex_init_extra #endif - #ifdef yylex_destroy -#define pplex_destroy_ALREADY_DEFINED +# define pplex_destroy_ALREADY_DEFINED #else -#define yylex_destroy pplex_destroy +# define yylex_destroy pplex_destroy #endif - #ifdef yyget_debug -#define ppget_debug_ALREADY_DEFINED +# define ppget_debug_ALREADY_DEFINED #else -#define yyget_debug ppget_debug +# define yyget_debug ppget_debug #endif - #ifdef yyset_debug -#define ppset_debug_ALREADY_DEFINED +# define ppset_debug_ALREADY_DEFINED #else -#define yyset_debug ppset_debug +# define yyset_debug ppset_debug #endif - #ifdef yyget_extra -#define ppget_extra_ALREADY_DEFINED +# define ppget_extra_ALREADY_DEFINED #else -#define yyget_extra ppget_extra +# define yyget_extra ppget_extra #endif - #ifdef yyset_extra -#define ppset_extra_ALREADY_DEFINED +# define ppset_extra_ALREADY_DEFINED #else -#define yyset_extra ppset_extra +# define yyset_extra ppset_extra #endif - #ifdef yyget_in -#define ppget_in_ALREADY_DEFINED +# define ppget_in_ALREADY_DEFINED #else -#define yyget_in ppget_in +# define yyget_in ppget_in #endif - #ifdef yyset_in -#define ppset_in_ALREADY_DEFINED +# define ppset_in_ALREADY_DEFINED #else -#define yyset_in ppset_in +# define yyset_in ppset_in #endif - #ifdef yyget_out -#define ppget_out_ALREADY_DEFINED +# define ppget_out_ALREADY_DEFINED #else -#define yyget_out ppget_out +# define yyget_out ppget_out #endif - #ifdef yyset_out -#define ppset_out_ALREADY_DEFINED +# define ppset_out_ALREADY_DEFINED #else -#define yyset_out ppset_out +# define yyset_out ppset_out #endif - #ifdef yyget_leng -#define ppget_leng_ALREADY_DEFINED +# define ppget_leng_ALREADY_DEFINED #else -#define yyget_leng ppget_leng +# define yyget_leng ppget_leng #endif - #ifdef yyget_text -#define ppget_text_ALREADY_DEFINED +# define ppget_text_ALREADY_DEFINED #else -#define yyget_text ppget_text +# define yyget_text ppget_text #endif - #ifdef yyget_lineno -#define ppget_lineno_ALREADY_DEFINED +# define ppget_lineno_ALREADY_DEFINED #else -#define yyget_lineno ppget_lineno +# define yyget_lineno ppget_lineno #endif - #ifdef yyset_lineno -#define ppset_lineno_ALREADY_DEFINED +# define ppset_lineno_ALREADY_DEFINED #else -#define yyset_lineno ppset_lineno +# define yyset_lineno ppset_lineno #endif - - #ifdef yyget_column -#define ppget_column_ALREADY_DEFINED +# define ppget_column_ALREADY_DEFINED #else -#define yyget_column ppget_column +# define yyget_column ppget_column #endif - #ifdef yyset_column -#define ppset_column_ALREADY_DEFINED +# define ppset_column_ALREADY_DEFINED #else -#define yyset_column ppset_column +# define yyset_column ppset_column #endif - - #ifdef yywrap -#define ppwrap_ALREADY_DEFINED +# define ppwrap_ALREADY_DEFINED #else -#define yywrap ppwrap +# define yywrap ppwrap #endif - - - - #ifdef yyget_lval -#define ppget_lval_ALREADY_DEFINED +# define ppget_lval_ALREADY_DEFINED #else -#define yyget_lval ppget_lval +# define yyget_lval ppget_lval #endif - #ifdef yyset_lval -#define ppset_lval_ALREADY_DEFINED +# define ppset_lval_ALREADY_DEFINED #else -#define yyset_lval ppset_lval +# define yyset_lval ppset_lval #endif - - - - #ifdef yyget_lloc -#define ppget_lloc_ALREADY_DEFINED +# define ppget_lloc_ALREADY_DEFINED #else -#define yyget_lloc ppget_lloc +# define yyget_lloc ppget_lloc #endif - #ifdef yyset_lloc -#define ppset_lloc_ALREADY_DEFINED +# define ppset_lloc_ALREADY_DEFINED #else -#define yyset_lloc ppset_lloc +# define yyset_lloc ppset_lloc #endif - - - #ifdef yyalloc -#define ppalloc_ALREADY_DEFINED +# define ppalloc_ALREADY_DEFINED #else -#define yyalloc ppalloc +# define yyalloc ppalloc #endif - #ifdef yyrealloc -#define pprealloc_ALREADY_DEFINED +# define pprealloc_ALREADY_DEFINED #else -#define yyrealloc pprealloc +# define yyrealloc pprealloc #endif - #ifdef yyfree -#define ppfree_ALREADY_DEFINED +# define ppfree_ALREADY_DEFINED #else -#define yyfree ppfree +# define yyfree ppfree #endif - - - - - - - - /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ -#include -#include #include +#include #include +#include /* end standard C headers. */ /* flex integer type definitions */ #ifndef FLEXINT_H -#define FLEXINT_H +# define FLEXINT_H /* C99 systems have . Non-C99 systems may or may not. */ -#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, - * if you want the limit (max/min) macros for int types. + * if you want the limit (max/min) macros for int types. */ -#ifndef __STDC_LIMIT_MACROS -#define __STDC_LIMIT_MACROS 1 -#endif +# ifndef __STDC_LIMIT_MACROS +# define __STDC_LIMIT_MACROS 1 +# endif -#include +# include typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; -#else +# else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; -typedef unsigned char flex_uint8_t; +typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* Limits of integral types. */ -#ifndef INT8_MIN -#define INT8_MIN (-128) -#endif -#ifndef INT16_MIN -#define INT16_MIN (-32767-1) -#endif -#ifndef INT32_MIN -#define INT32_MIN (-2147483647-1) -#endif -#ifndef INT8_MAX -#define INT8_MAX (127) -#endif -#ifndef INT16_MAX -#define INT16_MAX (32767) -#endif -#ifndef INT32_MAX -#define INT32_MAX (2147483647) -#endif -#ifndef UINT8_MAX -#define UINT8_MAX (255U) -#endif -#ifndef UINT16_MAX -#define UINT16_MAX (65535U) -#endif -#ifndef UINT32_MAX -#define UINT32_MAX (4294967295U) -#endif +# ifndef INT8_MIN +# define INT8_MIN (-128) +# endif +# ifndef INT16_MIN +# define INT16_MIN (-32767 - 1) +# endif +# ifndef INT32_MIN +# define INT32_MIN (-2147483647 - 1) +# endif +# ifndef INT8_MAX +# define INT8_MAX (127) +# endif +# ifndef INT16_MAX +# define INT16_MAX (32767) +# endif +# ifndef INT32_MAX +# define INT32_MAX (2147483647) +# endif +# ifndef UINT8_MAX +# define UINT8_MAX (255U) +# endif +# ifndef UINT16_MAX +# define UINT16_MAX (65535U) +# endif +# ifndef UINT32_MAX +# define UINT32_MAX (4294967295U) +# endif -#ifndef SIZE_MAX -#define SIZE_MAX (~(size_t)0) -#endif +# ifndef SIZE_MAX +# define SIZE_MAX (~(size_t)0) +# endif -#endif /* ! C99 */ +# endif /* ! C99 */ #endif /* ! FLEXINT_H */ - /* begin standard C++ headers. */ /* TODO: this is always defined, so inline it */ #define yyconst const #if defined(__GNUC__) && __GNUC__ >= 3 -#define yynoreturn __attribute__((__noreturn__)) +# define yynoreturn __attribute__((__noreturn__)) #else -#define yynoreturn +# define yynoreturn #endif /* Returned upon end-of-file. */ #define YY_NULL 0 - /* Promotes a possibly negative, possibly signed char to an * integer in range [0..255] for use as an array index. */ -#define YY_SC_TO_UI(c) ((YY_CHAR) (c)) - - - - +#define YY_SC_TO_UI(c) ((YY_CHAR)(c)) /* An opaque pointer. */ #ifndef YY_TYPEDEF_YY_SCANNER_T -#define YY_TYPEDEF_YY_SCANNER_T -typedef void* yyscan_t; +# define YY_TYPEDEF_YY_SCANNER_T +typedef void *yyscan_t; #endif - - - - - - - - - - - - - - - - /* For convenience, these vars (plus the bison vars far below) are macros in the reentrant scanner. */ #define yyin yyg->yyin_r @@ -473,18 +369,6 @@ typedef void* yyscan_t; #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) #define yy_flex_debug yyg->yy_flex_debug_r - - - - - - - - - - - - /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. @@ -499,385 +383,285 @@ typedef void* yyscan_t; /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE yyrestart( yyin , yyscanner ) +#define YY_NEW_FILE yyrestart(yyin, yyscanner) #define YY_END_OF_BUFFER_CHAR 0 - /* Size of default input buffer. */ #ifndef YY_BUF_SIZE -#ifdef __ia64__ +# 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__ */ +# define YY_BUF_SIZE 32768 +# else +# define YY_BUF_SIZE 16384 +# endif /* __ia64__ */ #endif - /* The state buf must be large enough to hold one state per character in the main buffer. */ -#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) - - +#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE -#define YY_TYPEDEF_YY_BUFFER_STATE +# define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif #ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T +# define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif - - - #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 - - #define YY_LESS_LINENO(n) - #define YY_LINENO_REWIND_TO(ptr) - -/* Return all but the first "n" matched characters back to the input stream. */ -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - *yy_cp = yyg->yy_hold_char; \ - YY_RESTORE_YY_MORE_OFFSET \ - yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up yytext again */ \ - } \ - while ( 0 ) -#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) +#define YY_LESS_LINENO(n) +#define YY_LINENO_REWIND_TO(ptr) + +/* Return all but the first "n" matched characters back to the input stream. */ +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg); \ + *yy_cp = yyg->yy_hold_char; \ + YY_RESTORE_YY_MORE_OFFSET \ + yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ + YY_DO_BEFORE_ACTION; /* set up yytext again */ \ + } while (0) +#define unput(c) yyunput(c, yyg->yytext_ptr, yyscanner) #ifndef YY_STRUCT_YY_BUFFER_STATE -#define YY_STRUCT_YY_BUFFER_STATE +# define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state - { - FILE *yy_input_file; +{ + FILE *yy_input_file; + char *yy_ch_buf; /* input buffer */ + char *yy_buf_pos; /* current position in input buffer */ + /* Size of input buffer in bytes, not including room for EOB + * characters. + */ + int yy_buf_size; - char *yy_ch_buf; /* input buffer */ - char *yy_buf_pos; /* current position in input buffer */ + /* Number of characters read into yy_ch_buf, not including EOB + * characters. + */ + int yy_n_chars; - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - int yy_buf_size; + /* Whether we "own" the buffer - i.e., we know we created it, + * and can realloc() it to grow it, and should free() it to + * delete it. + */ + int yy_is_our_buffer; - /* Number of characters read into yy_ch_buf, not including EOB - * characters. - */ - int yy_n_chars; + /* Whether this is an "interactive" input source; if so, and + * if we're using stdio for input, then we want to use getc() + * instead of fread(), to make sure we stop fetching input after + * each newline. + */ + int yy_is_interactive; - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int yy_at_bol; + /* Whether we're considered to be at the beginning of a line. + * If so, '^' rules will be active on the next match, otherwise + * not. + */ + int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ + /* Whether to try to fill the input buffer when we reach the + * end of it. + */ + int yy_fill_buffer; - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int yy_fill_buffer; + int yy_buffer_status; - int yy_buffer_status; - -#define YY_BUFFER_NEW 0 -#define YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via yyrestart()), so that the user can continue scanning by - * just pointing yyin at a new input file. - */ -#define YY_BUFFER_EOF_PENDING 2 - - }; +# define YY_BUFFER_NEW 0 +# define YY_BUFFER_NORMAL 1 + /* When an EOF's been seen but there's still some text to process + * then we mark the buffer as YY_EOF_PENDING, to indicate that we + * shouldn't try reading from the input source any more. We might + * still have a bunch of tokens to match, though, because of + * possible backing-up. + * + * When we actually see the EOF, we change the status to "new" + * (via yyrestart()), so that the user can continue scanning by + * just pointing yyin at a new input file. + */ +# define YY_BUFFER_EOF_PENDING 2 +}; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ - - - /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". * * Returns the top of the stack, or NULL. */ -#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \ - ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \ - : NULL) +#define YY_CURRENT_BUFFER \ + (yyg->yy_buffer_stack ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] : NULL) /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] +void yyrestart(FILE *input_file, yyscan_t yyscanner); +void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner); +YY_BUFFER_STATE yy_create_buffer(FILE *file, int size, yyscan_t yyscanner); +void yy_delete_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner); +void yy_flush_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner); +void yypush_buffer_state(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner); +void yypop_buffer_state(yyscan_t yyscanner); +static void yyensure_buffer_stack(yyscan_t yyscanner); +static void yy_load_buffer_state(yyscan_t yyscanner); +static void yy_init_buffer(YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner); +#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER, yyscanner) +YY_BUFFER_STATE yy_scan_buffer(char *base, yy_size_t size, yyscan_t yyscanner); +YY_BUFFER_STATE yy_scan_string(const char *yy_str, yyscan_t yyscanner); +YY_BUFFER_STATE yy_scan_bytes(const char *bytes, int len, yyscan_t yyscanner); - -void yyrestart ( FILE *input_file , yyscan_t yyscanner ); -void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner ); -YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size , yyscan_t yyscanner ); -void yy_delete_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner ); -void yy_flush_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner ); -void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner ); -void yypop_buffer_state ( yyscan_t yyscanner ); - - -static void yyensure_buffer_stack ( yyscan_t yyscanner ); -static void yy_load_buffer_state ( yyscan_t yyscanner ); -static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file , yyscan_t yyscanner ); -#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner) - - -YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner ); -YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner ); -YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner ); - - -void *yyalloc ( yy_size_t , yyscan_t yyscanner ); -void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner ); -void yyfree ( void * , yyscan_t yyscanner ); - +void *yyalloc(yy_size_t, yyscan_t yyscanner); +void *yyrealloc(void *, yy_size_t, yyscan_t yyscanner); +void yyfree(void *, yyscan_t yyscanner); #define yy_new_buffer yy_create_buffer -#define yy_set_interactive(is_interactive) \ - { \ - if ( ! YY_CURRENT_BUFFER ){ \ - yyensure_buffer_stack (yyscanner); \ - YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ - } -#define yy_set_bol(at_bol) \ - { \ - if ( ! YY_CURRENT_BUFFER ){\ - yyensure_buffer_stack (yyscanner); \ - YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ - } +#define yy_set_interactive(is_interactive) \ + { \ + if (!YY_CURRENT_BUFFER) \ + { \ + yyensure_buffer_stack(yyscanner); \ + YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ + } +#define yy_set_bol(at_bol) \ + { \ + if (!YY_CURRENT_BUFFER) \ + { \ + yyensure_buffer_stack(yyscanner); \ + YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ + } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) - /* Begin user sect3 */ -#define ppwrap(yyscanner) (/*CONSTCOND*/1) +#define ppwrap(yyscanner) (/*CONSTCOND*/ 1) #define YY_SKIP_YYWRAP typedef flex_uint8_t YY_CHAR; - typedef int yy_state_type; #define yytext_ptr yytext_r - - - - - -static yy_state_type yy_get_previous_state ( yyscan_t yyscanner ); -static yy_state_type yy_try_NUL_trans ( yy_state_type current_state , yyscan_t yyscanner); -static int yy_get_next_buffer ( yyscan_t yyscanner ); -static void yynoreturn yy_fatal_error ( const char* msg , yyscan_t yyscanner ); - - - +static yy_state_type yy_get_previous_state(yyscan_t yyscanner); +static yy_state_type yy_try_NUL_trans(yy_state_type current_state, yyscan_t yyscanner); +static int yy_get_next_buffer(yyscan_t yyscanner); +static void yynoreturn yy_fatal_error(const char *msg, yyscan_t yyscanner); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ -#define YY_DO_BEFORE_ACTION \ - yyg->yytext_ptr = yy_bp; \ - yyleng = (int) (yy_cp - yy_bp); \ - yyg->yy_hold_char = *yy_cp; \ - *yy_cp = '\0'; \ - yyg->yy_c_buf_p = yy_cp; +#define YY_DO_BEFORE_ACTION \ + yyg->yytext_ptr = yy_bp; \ + yyleng = (int)(yy_cp - yy_bp); \ + yyg->yy_hold_char = *yy_cp; \ + *yy_cp = '\0'; \ + yyg->yy_c_buf_p = yy_cp; #define YY_NUM_RULES 37 #define YY_END_OF_BUFFER 38 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info - { - flex_int32_t yy_verify; - flex_int32_t yy_nxt; - }; -static const flex_int16_t yy_accept[95] = - { 0, - 0, 0, 0, 0, 38, 36, 34, 35, 35, 33, - 7, 33, 33, 33, 33, 33, 33, 33, 33, 9, - 9, 33, 33, 33, 8, 33, 33, 3, 5, 5, - 4, 34, 35, 19, 27, 20, 30, 25, 12, 23, - 13, 24, 10, 2, 1, 26, 10, 9, 11, 11, - 11, 9, 11, 9, 9, 14, 16, 18, 17, 15, - 8, 31, 21, 32, 22, 3, 5, 6, 11, 10, - 11, 10, 1, 10, 11, 10, 0, 10, 9, 9, - 9, 28, 29, 0, 10, 10, 10, 10, 9, 10, - 10, 9, 10, 0 +{ + flex_int32_t yy_verify; + flex_int32_t yy_nxt; +}; +static const flex_int16_t yy_accept[95] = { + 0, 0, 0, 0, 0, 38, 36, 34, 35, 35, 33, 7, 33, 33, 33, 33, 33, 33, 33, 33, 9, 9, 33, 33, + 33, 8, 33, 33, 3, 5, 5, 4, 34, 35, 19, 27, 20, 30, 25, 12, 23, 13, 24, 10, 2, 1, 26, 10, + 9, 11, 11, 11, 9, 11, 9, 9, 14, 16, 18, 17, 15, 8, 31, 21, 32, 22, 3, 5, 6, 11, 10, 11, + 10, 1, 10, 11, 10, 0, 10, 9, 9, 9, 28, 29, 0, 10, 10, 10, 10, 9, 10, 10, 9, 10, 0 - } ; +}; -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, 2, 5, 1, 6, 1, 7, 8, 1, 9, - 9, 10, 11, 9, 12, 13, 14, 15, 16, 16, - 16, 16, 16, 16, 16, 17, 17, 9, 9, 18, - 19, 20, 9, 1, 21, 21, 21, 21, 22, 23, - 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, - 24, 24, 24, 24, 25, 24, 24, 26, 24, 24, - 9, 1, 9, 27, 24, 1, 21, 21, 21, 21, +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, 2, 5, 1, 6, 1, 7, 8, 1, 9, 9, + 10, 11, 9, 12, 13, 14, 15, 16, 16, 16, 16, 16, 16, 16, 17, 17, 9, 9, 18, 19, 20, + 9, 1, 21, 21, 21, 21, 22, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, + 24, 25, 24, 24, 26, 24, 24, 9, 1, 9, 27, 24, 1, 21, 21, 21, 21, - 22, 23, 24, 24, 24, 24, 24, 24, 24, 24, - 24, 24, 24, 24, 24, 24, 25, 24, 24, 26, - 24, 24, 9, 28, 9, 9, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 22, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 25, 24, 24, 26, 24, + 24, 9, 28, 9, 9, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1 - } ; + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; -static const YY_CHAR yy_meta[29] = - { 0, - 1, 1, 2, 2, 1, 1, 1, 1, 1, 3, - 1, 1, 4, 1, 5, 5, 5, 1, 1, 1, - 5, 5, 5, 5, 5, 5, 1, 1 - } ; +static const YY_CHAR yy_meta[29] = {0, 1, 1, 2, 2, 1, 1, 1, 1, 1, 3, 1, 1, 4, 1, + 5, 5, 5, 1, 1, 1, 5, 5, 5, 5, 5, 5, 1, 1}; -static const flex_int16_t yy_base[100] = - { 0, - 0, 0, 26, 28, 133, 195, 130, 195, 128, 105, - 195, 104, 25, 195, 100, 23, 27, 32, 31, 38, - 50, 38, 93, 49, 0, 16, 51, 0, 195, 105, - 87, 93, 195, 195, 195, 195, 195, 195, 195, 195, - 195, 195, 67, 195, 0, 195, 81, 55, 84, 98, - 110, 53, 61, 0, 52, 39, 195, 195, 195, 33, - 0, 195, 195, 195, 195, 0, 195, 195, 113, 0, - 126, 0, 0, 0, 133, 0, 56, 128, 0, 133, - 0, 195, 195, 101, 141, 143, 145, 0, 15, 154, - 195, 0, 195, 195, 177, 32, 182, 187, 189 +static const flex_int16_t yy_base[100] = { + 0, 0, 0, 26, 28, 133, 195, 130, 195, 128, 105, 195, 104, 25, 195, 100, 23, + 27, 32, 31, 38, 50, 38, 93, 49, 0, 16, 51, 0, 195, 105, 87, 93, 195, + 195, 195, 195, 195, 195, 195, 195, 195, 195, 67, 195, 0, 195, 81, 55, 84, 98, + 110, 53, 61, 0, 52, 39, 195, 195, 195, 33, 0, 195, 195, 195, 195, 0, 195, + 195, 113, 0, 126, 0, 0, 0, 133, 0, 56, 128, 0, 133, 0, 195, 195, 101, + 141, 143, 145, 0, 15, 154, 195, 0, 195, 195, 177, 32, 182, 187, 189 - } ; +}; -static const flex_int16_t yy_def[100] = - { 0, - 94, 1, 95, 95, 94, 94, 94, 94, 94, 94, - 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, - 20, 94, 94, 94, 96, 94, 94, 97, 94, 94, - 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, - 94, 94, 94, 94, 98, 94, 94, 20, 20, 49, - 50, 50, 99, 21, 50, 94, 94, 94, 94, 94, - 96, 94, 94, 94, 94, 97, 94, 94, 43, 43, - 69, 69, 98, 47, 50, 50, 94, 51, 50, 99, - 50, 94, 94, 94, 71, 75, 94, 50, 50, 94, - 94, 50, 94, 0, 94, 94, 94, 94, 94 +static const flex_int16_t yy_def[100] = { + 0, 94, 1, 95, 95, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, + 20, 94, 94, 94, 96, 94, 94, 97, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, + 94, 94, 94, 98, 94, 94, 20, 20, 49, 50, 50, 99, 21, 50, 94, 94, 94, 94, 94, 96, 94, + 94, 94, 94, 97, 94, 94, 43, 43, 69, 69, 98, 47, 50, 50, 94, 51, 50, 99, 50, 94, 94, + 94, 71, 75, 94, 50, 50, 94, 94, 50, 94, 0, 94, 94, 94, 94, 94 - } ; +}; -static const flex_int16_t yy_nxt[224] = - { 0, - 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 21, 22, 23, 24, - 25, 25, 25, 25, 25, 25, 26, 27, 29, 30, - 29, 30, 36, 39, 62, 31, 61, 31, 41, 92, - 44, 40, 63, 37, 45, 42, 43, 43, 43, 46, - 47, 83, 48, 48, 49, 56, 57, 82, 50, 51, - 50, 50, 52, 53, 54, 54, 54, 59, 60, 64, - 87, 87, 87, 50, 55, 50, 81, 79, 65, 69, - 50, 70, 70, 70, 50, 50, 50, 69, 71, 72, - 69, 69, 69, 50, 32, 74, 74, 74, 49, 49, +static const flex_int16_t yy_nxt[224] = { + 0, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 21, 22, 23, 24, 25, 25, + 25, 25, 25, 25, 26, 27, 29, 30, 29, 30, 36, 39, 62, 31, 61, 31, 41, 92, 44, 40, 63, 37, 45, + 42, 43, 43, 43, 46, 47, 83, 48, 48, 49, 56, 57, 82, 50, 51, 50, 50, 52, 53, 54, 54, 54, 59, + 60, 64, 87, 87, 87, 50, 55, 50, 81, 79, 65, 69, 50, 70, 70, 70, 50, 50, 50, 69, 71, 72, 69, + 69, 69, 50, 32, 74, 74, 74, 49, 49, - 68, 50, 75, 76, 50, 50, 50, 67, 50, 50, - 50, 58, 50, 50, 50, 90, 90, 90, 38, 50, - 77, 77, 35, 34, 78, 78, 78, 69, 69, 69, - 33, 32, 94, 94, 69, 69, 84, 84, 94, 94, - 85, 85, 85, 84, 84, 50, 94, 86, 86, 86, - 88, 94, 94, 94, 94, 94, 50, 89, 50, 87, - 87, 87, 94, 72, 94, 76, 94, 91, 90, 90, - 90, 94, 94, 94, 94, 94, 93, 28, 28, 28, - 28, 28, 66, 94, 94, 66, 66, 73, 94, 73, - 73, 73, 80, 80, 5, 94, 94, 94, 94, 94, + 68, 50, 75, 76, 50, 50, 50, 67, 50, 50, 50, 58, 50, 50, 50, 90, 90, 90, 38, 50, 77, 77, 35, + 34, 78, 78, 78, 69, 69, 69, 33, 32, 94, 94, 69, 69, 84, 84, 94, 94, 85, 85, 85, 84, 84, 50, + 94, 86, 86, 86, 88, 94, 94, 94, 94, 94, 50, 89, 50, 87, 87, 87, 94, 72, 94, 76, 94, 91, 90, + 90, 90, 94, 94, 94, 94, 94, 93, 28, 28, 28, 28, 28, 66, 94, 94, 66, 66, 73, 94, 73, 73, 73, + 80, 80, 5, 94, 94, 94, 94, 94, - 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, - 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, - 94, 94, 94 - } ; + 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94}; -static const flex_int16_t yy_chk[224] = - { 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, 3, 3, - 4, 4, 13, 16, 26, 3, 96, 4, 17, 89, - 19, 16, 26, 13, 19, 17, 18, 18, 18, 19, - 20, 60, 20, 20, 20, 22, 22, 56, 20, 20, - 20, 20, 20, 20, 21, 21, 21, 24, 24, 27, - 77, 77, 77, 53, 21, 21, 55, 52, 27, 43, - 48, 43, 43, 43, 53, 53, 53, 43, 43, 43, - 43, 43, 43, 47, 32, 47, 47, 47, 49, 49, +static const flex_int16_t yy_chk[224] = { + 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, 3, 3, 4, 4, 13, 16, 26, 3, 96, 4, 17, 89, 19, 16, 26, 13, 19, + 17, 18, 18, 18, 19, 20, 60, 20, 20, 20, 22, 22, 56, 20, 20, 20, 20, 20, 20, 21, 21, 21, 24, + 24, 27, 77, 77, 77, 53, 21, 21, 55, 52, 27, 43, 48, 43, 43, 43, 53, 53, 53, 43, 43, 43, 43, + 43, 43, 47, 32, 47, 47, 47, 49, 49, - 31, 47, 47, 47, 47, 47, 47, 30, 49, 49, - 50, 23, 50, 50, 50, 84, 84, 84, 15, 50, - 51, 51, 12, 10, 51, 51, 51, 69, 69, 69, - 9, 7, 5, 0, 69, 69, 71, 71, 78, 78, - 71, 71, 71, 75, 75, 80, 0, 75, 75, 75, - 78, 85, 85, 86, 86, 0, 80, 80, 80, 87, - 87, 87, 0, 85, 0, 86, 0, 87, 90, 90, - 90, 0, 0, 0, 0, 0, 90, 95, 95, 95, - 95, 95, 97, 0, 0, 97, 97, 98, 0, 98, - 98, 98, 99, 99, 94, 94, 94, 94, 94, 94, + 31, 47, 47, 47, 47, 47, 47, 30, 49, 49, 50, 23, 50, 50, 50, 84, 84, 84, 15, 50, 51, 51, 12, + 10, 51, 51, 51, 69, 69, 69, 9, 7, 5, 0, 69, 69, 71, 71, 78, 78, 71, 71, 71, 75, 75, 80, + 0, 75, 75, 75, 78, 85, 85, 86, 86, 0, 80, 80, 80, 87, 87, 87, 0, 85, 0, 86, 0, 87, 90, + 90, 90, 0, 0, 0, 0, 0, 90, 95, 95, 95, 95, 95, 97, 0, 0, 97, 97, 98, 0, 98, 98, 98, + 99, 99, 94, 94, 94, 94, 94, 94, - 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, - 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, - 94, 94, 94 - } ; + 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94, 94}; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. @@ -901,7 +685,7 @@ IF YOU MODIFY THIS FILE YOU ALSO NEED TO RUN scripts/run_code_generation.py */ #if defined(_MSC_VER) -#pragma warning(disable: 4005) +# pragma warning(disable : 4005) #endif #include "compiler/preprocessor/Tokenizer.h" @@ -911,28 +695,28 @@ IF YOU MODIFY THIS FILE YOU ALSO NEED TO RUN scripts/run_code_generation.py #if defined(__GNUC__) // Triggered by the auto-generated yy_fatal_error function. -#pragma GCC diagnostic ignored "-Wmissing-noreturn" +# pragma GCC diagnostic ignored "-Wmissing-noreturn" #elif defined(_MSC_VER) -#pragma warning(disable: 4244) +# pragma warning(disable : 4244) #endif #if defined(__clang__) // Flex uses `/*FALLTHROUGH*/` instead of dedicated statements. -#pragma clang diagnostic ignored "-Wimplicit-fallthrough" -#if defined(__APPLE__) +# pragma clang diagnostic ignored "-Wimplicit-fallthrough" +# if defined(__APPLE__) // Older clang versions don't have -Wextra-semi-stmt, and detecting Apple clang versions is // difficult because they use different yet overlapping version numbers vs. regular clang. -#pragma clang diagnostic ignored "-Wunknown-warning-option" -#endif +# pragma clang diagnostic ignored "-Wunknown-warning-option" +# endif // Flex isn't semi-colon clean. -#pragma clang diagnostic ignored "-Wextra-semi-stmt" -#pragma clang diagnostic ignored "-Wunreachable-code" +# pragma clang diagnostic ignored "-Wextra-semi-stmt" +# pragma clang diagnostic ignored "-Wunreachable-code" #endif // Workaround for flex using the register keyword, deprecated in C++11. #ifdef __cplusplus -#if __cplusplus > 199711L -#define register -#endif +# if __cplusplus > 199711L +# define register +# endif #endif typedef std::string YYSTYPE; @@ -942,62 +726,51 @@ typedef angle::pp::SourceLocation YYLTYPE; #define yyfileno yycolumn #define YY_USER_INIT \ - do { \ - yyfileno = 0; \ - yylineno = 1; \ + do \ + { \ + yyfileno = 0; \ + yylineno = 1; \ yyextra->leadingSpace = false; \ - yyextra->lineStart = true; \ - } while(0); + yyextra->lineStart = true; \ + } while (0); #define YY_NO_INPUT #define YY_USER_ACTION \ do \ { \ - angle::pp::Input* input = &yyextra->input; \ - angle::pp::Input::Location* scanLoc = &yyextra->scanLoc; \ + angle::pp::Input *input = &yyextra->input; \ + angle::pp::Input::Location *scanLoc = &yyextra->scanLoc; \ while ((scanLoc->sIndex < input->count()) && \ (scanLoc->cIndex >= input->length(scanLoc->sIndex))) \ { \ scanLoc->cIndex -= input->length(scanLoc->sIndex++); \ - ++yyfileno; yylineno = 1; \ + ++yyfileno; \ + yylineno = 1; \ } \ yylloc->file = yyfileno; \ yylloc->line = yylineno; \ scanLoc->cIndex += yyleng; \ - } while(0); - -#define YY_INPUT(buf, result, maxSize) \ - result = yyextra->input.read(buf, maxSize, &yylineno); - - - + } while (0); +#define YY_INPUT(buf, result, maxSize) result = yyextra->input.read(buf, maxSize, &yylineno); #define INITIAL 0 #define COMMENT 1 - - - - - -#define YY_EXTRA_TYPE angle::pp::Tokenizer::Context* - - - +#define YY_EXTRA_TYPE angle::pp::Tokenizer::Context * /* Holds the entire state of the reentrant scanner. */ struct yyguts_t - { +{ /* User-defined. Not touched by flex. */ YY_EXTRA_TYPE yyextra_r; /* The rest are the same as the globals declared in the non-reentrant scanner. */ FILE *yyin_r, *yyout_r; - size_t yy_buffer_stack_top; /**< index of top of stack. */ - size_t yy_buffer_stack_max; /**< capacity of stack. */ - YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */ + size_t yy_buffer_stack_top; /**< index of top of stack. */ + size_t yy_buffer_stack_max; /**< capacity of stack. */ + YY_BUFFER_STATE *yy_buffer_stack; /**< Stack as an array. */ char yy_hold_char; int yy_n_chars; int yyleng_r; @@ -1009,1202 +782,1070 @@ struct yyguts_t int yy_start_stack_depth; int *yy_start_stack; yy_state_type yy_last_accepting_state; - char* yy_last_accepting_cpos; + char *yy_last_accepting_cpos; int yylineno_r; int yy_flex_debug_r; - - - char *yytext_r; int yy_more_flag; int yy_more_len; + YYSTYPE *yylval_r; + YYLTYPE *yylloc_r; - YYSTYPE * yylval_r; +}; /* end struct yyguts_t */ +static int yy_init_globals(yyscan_t yyscanner); +/* This must go here because YYSTYPE and YYLTYPE are included + * from bison output in section 1.*/ +#define yylval yyg->yylval_r - YYLTYPE * yylloc_r; - - - }; /* end struct yyguts_t */ - - - - -static int yy_init_globals ( yyscan_t yyscanner ); - - - - - - /* This must go here because YYSTYPE and YYLTYPE are included - * from bison output in section 1.*/ - # define yylval yyg->yylval_r - - - - # define yylloc yyg->yylloc_r - - - -int yylex_init (yyscan_t* scanner); - -int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner); +#define yylloc yyg->yylloc_r +int yylex_init(yyscan_t *scanner); +int yylex_init_extra(YY_EXTRA_TYPE user_defined, yyscan_t *scanner); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ +int yylex_destroy(yyscan_t yyscanner); -int yylex_destroy ( yyscan_t yyscanner ); +int yyget_debug(yyscan_t yyscanner); +void yyset_debug(int debug_flag, yyscan_t yyscanner); +YY_EXTRA_TYPE yyget_extra(yyscan_t yyscanner); -int yyget_debug ( yyscan_t yyscanner ); +void yyset_extra(YY_EXTRA_TYPE user_defined, yyscan_t yyscanner); +FILE *yyget_in(yyscan_t yyscanner); +void yyset_in(FILE *_in_str, yyscan_t yyscanner); -void yyset_debug ( int debug_flag , yyscan_t yyscanner ); +FILE *yyget_out(yyscan_t yyscanner); +void yyset_out(FILE *_out_str, yyscan_t yyscanner); +int yyget_leng(yyscan_t yyscanner); -YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner ); +char *yyget_text(yyscan_t yyscanner); +int yyget_lineno(yyscan_t yyscanner); +void yyset_lineno(int _line_number, yyscan_t yyscanner); -void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner ); +int yyget_column(yyscan_t yyscanner); +void yyset_column(int _column_no, yyscan_t yyscanner); +YYSTYPE *yyget_lval(yyscan_t yyscanner); -FILE *yyget_in ( yyscan_t yyscanner ); +void yyset_lval(YYSTYPE *yylval_param, yyscan_t yyscanner); +YYLTYPE *yyget_lloc(yyscan_t yyscanner); - -void yyset_in ( FILE * _in_str , yyscan_t yyscanner ); - - - -FILE *yyget_out ( yyscan_t yyscanner ); - - - -void yyset_out ( FILE * _out_str , yyscan_t yyscanner ); - - - - int yyget_leng ( yyscan_t yyscanner ); - - - -char *yyget_text ( yyscan_t yyscanner ); - - - -int yyget_lineno ( yyscan_t yyscanner ); - - - -void yyset_lineno ( int _line_number , yyscan_t yyscanner ); - - - - -int yyget_column ( yyscan_t yyscanner ); - - - - - -void yyset_column ( int _column_no , yyscan_t yyscanner ); - - - - -YYSTYPE * yyget_lval ( yyscan_t yyscanner ); - - -void yyset_lval ( YYSTYPE * yylval_param , yyscan_t yyscanner ); - - - - YYLTYPE *yyget_lloc ( yyscan_t yyscanner ); - - - - void yyset_lloc ( YYLTYPE * yylloc_param , yyscan_t yyscanner ); - - +void yyset_lloc(YYLTYPE *yylloc_param, yyscan_t yyscanner); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP -#ifdef __cplusplus -extern "C" int yywrap ( yyscan_t yyscanner ); -#else -extern int yywrap ( yyscan_t yyscanner ); -#endif +# ifdef __cplusplus +extern "C" int yywrap(yyscan_t yyscanner); +# else +extern int yywrap(yyscan_t yyscanner); +# endif #endif #ifndef YY_NO_UNPUT - + #endif - #ifndef yytext_ptr -static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner); +static void yy_flex_strncpy(char *, const char *, int, yyscan_t yyscanner); #endif #ifdef YY_NEED_STRLEN -static int yy_flex_strlen ( const char * , yyscan_t yyscanner); +static int yy_flex_strlen(const char *, yyscan_t yyscanner); #endif #ifndef YY_NO_INPUT -#ifdef __cplusplus -static int yyinput ( yyscan_t yyscanner ); -#else -static int input ( yyscan_t yyscanner ); -#endif +# ifdef __cplusplus +static int yyinput(yyscan_t yyscanner); +# else +static int input(yyscan_t yyscanner); +# endif #endif - - - - - - - /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE -#ifdef __ia64__ +# 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__ */ +# define YY_READ_BUF_SIZE 16384 +# else +# define YY_READ_BUF_SIZE 8192 +# endif /* __ia64__ */ #endif - /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) +# define ECHO \ + do \ + { \ + if (fwrite(yytext, (size_t)yyleng, 1, yyout)) \ + { \ + } \ + } while (0) #endif - - /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT -#define YY_INPUT(buf,result,max_size) \ - if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ - { \ - int c = '*'; \ - int n; \ - for ( n = 0; n < max_size && \ - (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( c == EOF && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - result = n; \ - } \ - else \ - { \ - errno=0; \ - while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \ - { \ - if( errno != EINTR) \ - { \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - break; \ - } \ - errno=0; \ - clearerr(yyin); \ - } \ - }\ -\ +# define YY_INPUT(buf, result, max_size) \ + if (YY_CURRENT_BUFFER_LVALUE->yy_is_interactive) \ + { \ + int c = '*'; \ + int n; \ + for (n = 0; n < max_size && (c = getc(yyin)) != EOF && c != '\n'; ++n) \ + buf[n] = (char)c; \ + if (c == '\n') \ + buf[n++] = (char)c; \ + if (c == EOF && ferror(yyin)) \ + YY_FATAL_ERROR("input in flex scanner failed"); \ + result = n; \ + } \ + else \ + { \ + errno = 0; \ + while ((result = (int)fread(buf, 1, (yy_size_t)max_size, yyin)) == 0 && ferror(yyin)) \ + { \ + if (errno != EINTR) \ + { \ + YY_FATAL_ERROR("input in flex scanner failed"); \ + break; \ + } \ + errno = 0; \ + clearerr(yyin); \ + } \ + } #endif - - /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate -#define yyterminate() return YY_NULL +# define yyterminate() return YY_NULL #endif - /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR -#define YY_START_STACK_INCR 25 +# define YY_START_STACK_INCR 25 #endif - /* Report a fatal error. */ #ifndef YY_FATAL_ERROR -#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) +# define YY_FATAL_ERROR(msg) yy_fatal_error(msg, yyscanner) #endif - - /* end tables serialization structures and prototypes */ - - /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL -#define YY_DECL_IS_OURS 1 +# define YY_DECL_IS_OURS 1 +extern int yylex(YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner); - - - - - - - - - - - - - - - -extern int yylex \ - (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner); - -#define YY_DECL int yylex \ - (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner) +# define YY_DECL int yylex(YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner) #endif /* !YY_DECL */ - /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION -#define YY_USER_ACTION +# define YY_USER_ACTION #endif - - /* Code executed at the end of each rule. */ #ifndef YY_BREAK -#define YY_BREAK /*LINTED*/break; +# define YY_BREAK /*LINTED*/ break; #endif - - -#define YY_RULE_SETUP \ - YY_USER_ACTION - +#define YY_RULE_SETUP YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { - yy_state_type yy_current_state; - char *yy_cp, *yy_bp; - int yy_act; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - - + yy_state_type yy_current_state; + char *yy_cp, *yy_bp; + int yy_act; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; yylval = yylval_param; - - yylloc = yylloc_param; - - if ( !yyg->yy_init ) - { - yyg->yy_init = 1; + if (!yyg->yy_init) + { + yyg->yy_init = 1; #ifdef YY_USER_INIT - YY_USER_INIT; + YY_USER_INIT; #endif + if (!yyg->yy_start) + yyg->yy_start = 1; /* first start state */ + if (!yyin) + yyin = stdin; - if ( ! yyg->yy_start ) - yyg->yy_start = 1; /* first start state */ + if (!yyout) + yyout = stdout; - if ( ! yyin ) - yyin = stdin; + if (!YY_CURRENT_BUFFER) + { + yyensure_buffer_stack(yyscanner); + YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner); + } - if ( ! yyout ) - yyout = stdout; + yy_load_buffer_state(yyscanner); + } - if ( ! YY_CURRENT_BUFFER ) { - yyensure_buffer_stack (yyscanner); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); - } - - yy_load_buffer_state( yyscanner ); - } - - { - - - /* Line comment */ - - while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ - { - yy_cp = yyg->yy_c_buf_p; - - /* Support of yytext. */ - *yy_cp = yyg->yy_hold_char; - - /* yy_bp points to the position in yy_ch_buf of the start of - * the current run. - */ - yy_bp = yy_cp; - - yy_current_state = yyg->yy_start; -yy_match: - do - { - YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 95 ) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - ++yy_cp; - } - while ( yy_current_state != 94 ); - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - -yy_find_action: - yy_act = yy_accept[yy_current_state]; - - YY_DO_BEFORE_ACTION; - - - -do_action: /* This label is used only to access EOF actions. */ - - - switch ( yy_act ) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = yyg->yy_hold_char; - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - goto yy_find_action; - -case 1: -YY_RULE_SETUP - - YY_BREAK -/* Block comment */ -/* Line breaks are just counted - not returned. */ -/* The comment is replaced by a single space. */ -case 2: -YY_RULE_SETUP -{ BEGIN(COMMENT); } - YY_BREAK -case 3: -YY_RULE_SETUP - - YY_BREAK -case 4: -YY_RULE_SETUP - - YY_BREAK -case 5: -/* rule 5 can match eol */ -YY_RULE_SETUP -{ - if (yylineno == INT_MAX) { - *yylval = "Integer overflow on line number"; - return angle::pp::Token::GOT_ERROR; - } - ++yylineno; -} - YY_BREAK -case 6: -YY_RULE_SETUP -{ - yyextra->leadingSpace = true; - BEGIN(INITIAL); -} - YY_BREAK -case 7: -YY_RULE_SETUP -{ - // # is only valid at start of line for preprocessor directives. - yylval->assign(1, yytext[0]); - return yyextra->lineStart ? angle::pp::Token::PP_HASH : angle::pp::Token::PP_OTHER; -} - YY_BREAK -case 8: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::IDENTIFIER; -} - YY_BREAK -case 9: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::CONST_INT; -} - YY_BREAK -case 10: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::CONST_FLOAT; -} - YY_BREAK -/* Anything that starts with a {DIGIT} or .{DIGIT} must be a number. */ -/* Rule to catch all invalid integers and floats. */ -case 11: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::PP_NUMBER; -} - YY_BREAK -case 12: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_INC; -} - YY_BREAK -case 13: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_DEC; -} - YY_BREAK -case 14: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_LEFT; -} - YY_BREAK -case 15: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_RIGHT; -} - YY_BREAK -case 16: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_LE; -} - YY_BREAK -case 17: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_GE; -} - YY_BREAK -case 18: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_EQ; -} - YY_BREAK -case 19: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_NE; -} - YY_BREAK -case 20: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_AND; -} - YY_BREAK -case 21: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_XOR; -} - YY_BREAK -case 22: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_OR; -} - YY_BREAK -case 23: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_ADD_ASSIGN; -} - YY_BREAK -case 24: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_SUB_ASSIGN; -} - YY_BREAK -case 25: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_MUL_ASSIGN; -} - YY_BREAK -case 26: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_DIV_ASSIGN; -} - YY_BREAK -case 27: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_MOD_ASSIGN; -} - YY_BREAK -case 28: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_LEFT_ASSIGN; -} - YY_BREAK -case 29: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_RIGHT_ASSIGN; -} - YY_BREAK -case 30: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_AND_ASSIGN; -} - YY_BREAK -case 31: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_XOR_ASSIGN; -} - YY_BREAK -case 32: -YY_RULE_SETUP -{ - yylval->assign(yytext, yyleng); - return angle::pp::Token::OP_OR_ASSIGN; -} - YY_BREAK -case 33: -YY_RULE_SETUP -{ - yylval->assign(1, yytext[0]); - return yytext[0]; -} - YY_BREAK -case 34: -YY_RULE_SETUP -{ yyextra->leadingSpace = true; } - YY_BREAK -case 35: -/* rule 35 can match eol */ -YY_RULE_SETUP -{ - if (yylineno == INT_MAX) - { - *yylval = "Integer overflow on line number"; - return angle::pp::Token::GOT_ERROR; - } - ++yylineno; - yylval->assign(1, '\n'); - return '\n'; -} - YY_BREAK -case 36: -YY_RULE_SETUP -{ - yylval->assign(1, yytext[0]); - return angle::pp::Token::PP_OTHER; -} - YY_BREAK -case YY_STATE_EOF(INITIAL): -case YY_STATE_EOF(COMMENT): -{ - // YY_USER_ACTION is not invoked for handling EOF. - // Set the location for EOF token manually. - angle::pp::Input* input = &yyextra->input; - angle::pp::Input::Location* scanLoc = &yyextra->scanLoc; - yy_size_t sIndexMax = input->count() ? input->count() - 1 : 0; - if (scanLoc->sIndex != sIndexMax) - { - // We can only reach here if there are empty strings at the - // end of the input. - scanLoc->sIndex = sIndexMax; scanLoc->cIndex = 0; - // FIXME: this is not 64-bit clean. - yyfileno = static_cast(sIndexMax); yylineno = 1; - } - yylloc->file = yyfileno; - yylloc->line = yylineno; - yylval->clear(); - // Line number overflows fake EOFs to exit early, check for this case. - if (yylineno == INT_MAX) { - yyextra->diagnostics->report(angle::pp::Diagnostics::PP_TOKENIZER_ERROR, - angle::pp::SourceLocation(yyfileno, yylineno), - "Integer overflow on line number"); - } - else if (YY_START == COMMENT) - { - yyextra->diagnostics->report(angle::pp::Diagnostics::PP_EOF_IN_COMMENT, - angle::pp::SourceLocation(yyfileno, yylineno), - "EOF while in a comment"); - } - yyterminate(); -} - YY_BREAK -case 37: -YY_RULE_SETUP -ECHO; - YY_BREAK + /* Line comment */ - case YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1; + while (/*CONSTCOND*/ 1) /* loops until end-of-file is reached */ + { + yy_cp = yyg->yy_c_buf_p; - /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = yyg->yy_hold_char; - YY_RESTORE_YY_MORE_OFFSET + /* Support of yytext. */ + *yy_cp = yyg->yy_hold_char; - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed yyin at a new source and called - * yylex(). If so, then we have to assure - * consistency between YY_CURRENT_BUFFER and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; - } + /* yy_bp points to the position in yy_ch_buf of the start of + * the current run. + */ + yy_bp = yy_cp; - /* Note that here we test for yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) - { /* This was really a NUL. */ - yy_state_type yy_next_state; + yy_current_state = yyg->yy_start; + yy_match: + do + { + YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + if (yy_accept[yy_current_state]) + { + yyg->yy_last_accepting_state = yy_current_state; + yyg->yy_last_accepting_cpos = yy_cp; + } + while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) + { + yy_current_state = (int)yy_def[yy_current_state]; + if (yy_current_state >= 95) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + ++yy_cp; + } while (yy_current_state != 94); + yy_cp = yyg->yy_last_accepting_cpos; + yy_current_state = yyg->yy_last_accepting_state; - yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; + yy_find_action: + yy_act = yy_accept[yy_current_state]; - yy_current_state = yy_get_previous_state( yyscanner ); + YY_DO_BEFORE_ACTION; - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ + do_action: /* This label is used only to access EOF actions. */ - yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner); + switch (yy_act) + { /* beginning of action switch */ + case 0: /* must back up */ + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = yyg->yy_hold_char; + yy_cp = yyg->yy_last_accepting_cpos; + yy_current_state = yyg->yy_last_accepting_state; + goto yy_find_action; - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; + case 1: + YY_RULE_SETUP - if ( yy_next_state ) - { - /* Consume the NUL. */ - yy_cp = ++yyg->yy_c_buf_p; - yy_current_state = yy_next_state; - goto yy_match; - } + YY_BREAK + /* Block comment */ + /* Line breaks are just counted - not returned. */ + /* The comment is replaced by a single space. */ + case 2: + YY_RULE_SETUP { BEGIN(COMMENT); } + YY_BREAK + case 3: + YY_RULE_SETUP - else - { - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - goto yy_find_action; - } - } + YY_BREAK + case 4: + YY_RULE_SETUP - else switch ( yy_get_next_buffer( yyscanner ) ) - { - case EOB_ACT_END_OF_FILE: - { - yyg->yy_did_buffer_switch_on_eof = 0; + YY_BREAK + case 5: + /* rule 5 can match eol */ + YY_RULE_SETUP + { + if (yylineno == INT_MAX) + { + *yylval = "Integer overflow on line number"; + return angle::pp::Token::GOT_ERROR; + } + ++yylineno; + } + YY_BREAK + case 6: + YY_RULE_SETUP + { + yyextra->leadingSpace = true; + BEGIN(INITIAL); + } + YY_BREAK + case 7: + YY_RULE_SETUP + { + // # is only valid at start of line for preprocessor directives. + yylval->assign(1, yytext[0]); + return yyextra->lineStart ? angle::pp::Token::PP_HASH + : angle::pp::Token::PP_OTHER; + } + YY_BREAK + case 8: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::IDENTIFIER; + } + YY_BREAK + case 9: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::CONST_INT; + } + YY_BREAK + case 10: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::CONST_FLOAT; + } + YY_BREAK + /* Anything that starts with a {DIGIT} or .{DIGIT} must be a number. */ + /* Rule to catch all invalid integers and floats. */ + case 11: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::PP_NUMBER; + } + YY_BREAK + case 12: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_INC; + } + YY_BREAK + case 13: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_DEC; + } + YY_BREAK + case 14: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_LEFT; + } + YY_BREAK + case 15: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_RIGHT; + } + YY_BREAK + case 16: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_LE; + } + YY_BREAK + case 17: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_GE; + } + YY_BREAK + case 18: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_EQ; + } + YY_BREAK + case 19: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_NE; + } + YY_BREAK + case 20: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_AND; + } + YY_BREAK + case 21: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_XOR; + } + YY_BREAK + case 22: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_OR; + } + YY_BREAK + case 23: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_ADD_ASSIGN; + } + YY_BREAK + case 24: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_SUB_ASSIGN; + } + YY_BREAK + case 25: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_MUL_ASSIGN; + } + YY_BREAK + case 26: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_DIV_ASSIGN; + } + YY_BREAK + case 27: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_MOD_ASSIGN; + } + YY_BREAK + case 28: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_LEFT_ASSIGN; + } + YY_BREAK + case 29: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_RIGHT_ASSIGN; + } + YY_BREAK + case 30: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_AND_ASSIGN; + } + YY_BREAK + case 31: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_XOR_ASSIGN; + } + YY_BREAK + case 32: + YY_RULE_SETUP + { + yylval->assign(yytext, yyleng); + return angle::pp::Token::OP_OR_ASSIGN; + } + YY_BREAK + case 33: + YY_RULE_SETUP + { + yylval->assign(1, yytext[0]); + return yytext[0]; + } + YY_BREAK + case 34: + YY_RULE_SETUP { yyextra->leadingSpace = true; } + YY_BREAK + case 35: + /* rule 35 can match eol */ + YY_RULE_SETUP + { + if (yylineno == INT_MAX) + { + *yylval = "Integer overflow on line number"; + return angle::pp::Token::GOT_ERROR; + } + ++yylineno; + yylval->assign(1, '\n'); + return '\n'; + } + YY_BREAK + case 36: + YY_RULE_SETUP + { + yylval->assign(1, yytext[0]); + return angle::pp::Token::PP_OTHER; + } + YY_BREAK + case YY_STATE_EOF(INITIAL): + case YY_STATE_EOF(COMMENT): + { + // YY_USER_ACTION is not invoked for handling EOF. + // Set the location for EOF token manually. + angle::pp::Input *input = &yyextra->input; + angle::pp::Input::Location *scanLoc = &yyextra->scanLoc; + yy_size_t sIndexMax = input->count() ? input->count() - 1 : 0; + if (scanLoc->sIndex != sIndexMax) + { + // We can only reach here if there are empty strings at the + // end of the input. + scanLoc->sIndex = sIndexMax; + scanLoc->cIndex = 0; + // FIXME: this is not 64-bit clean. + yyfileno = static_cast(sIndexMax); + yylineno = 1; + } + yylloc->file = yyfileno; + yylloc->line = yylineno; + yylval->clear(); - if ( yywrap( yyscanner ) ) - { - /* Note: because we've taken care in - * yy_get_next_buffer() to have set up - * yytext, we can now set up - * yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * YY_NULL, it'll still work - another - * YY_NULL will get returned. - */ - yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ; + // Line number overflows fake EOFs to exit early, check for this case. + if (yylineno == INT_MAX) + { + yyextra->diagnostics->report(angle::pp::Diagnostics::PP_TOKENIZER_ERROR, + angle::pp::SourceLocation(yyfileno, yylineno), + "Integer overflow on line number"); + } + else if (YY_START == COMMENT) + { + yyextra->diagnostics->report(angle::pp::Diagnostics::PP_EOF_IN_COMMENT, + angle::pp::SourceLocation(yyfileno, yylineno), + "EOF while in a comment"); + } + yyterminate(); + } + YY_BREAK + case 37: + YY_RULE_SETUP + ECHO; + YY_BREAK - yy_act = YY_STATE_EOF(YY_START); - goto do_action; - } + case YY_END_OF_BUFFER: + { + /* Amount of text matched not including the EOB char. */ + int yy_amount_of_matched_text = (int)(yy_cp - yyg->yytext_ptr) - 1; - else - { - if ( ! yyg->yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; - } - break; - } + /* Undo the effects of YY_DO_BEFORE_ACTION. */ + *yy_cp = yyg->yy_hold_char; + YY_RESTORE_YY_MORE_OFFSET - case EOB_ACT_CONTINUE_SCAN: - yyg->yy_c_buf_p = - yyg->yytext_ptr + yy_amount_of_matched_text; + if (YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW) + { + /* We're scanning a new file or input source. It's + * possible that this happened because the user + * just pointed yyin at a new source and called + * yylex(). If so, then we have to assure + * consistency between YY_CURRENT_BUFFER and our + * globals. Here is the right place to do so, because + * this is the first action (other than possibly a + * back-up) that will match for the new input source. + */ + yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; + } - yy_current_state = yy_get_previous_state( yyscanner ); + /* Note that here we test for yy_c_buf_p "<=" to the position + * of the first EOB in the buffer, since yy_c_buf_p will + * already have been incremented past the NUL character + * (since all states make transitions on EOB to the + * end-of-buffer state). Contrast this with the test + * in input(). + */ + if (yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]) + { /* This was really a NUL. */ + yy_state_type yy_next_state; - yy_cp = yyg->yy_c_buf_p; - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - goto yy_match; + yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; - case EOB_ACT_LAST_MATCH: - yyg->yy_c_buf_p = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]; + yy_current_state = yy_get_previous_state(yyscanner); - yy_current_state = yy_get_previous_state( yyscanner ); + /* Okay, we're now positioned to make the NUL + * transition. We couldn't have + * yy_get_previous_state() go ahead and do it + * for us because it doesn't know how to deal + * with the possibility of jamming (and we don't + * want to build jamming into it because then it + * will run more slowly). + */ - yy_cp = yyg->yy_c_buf_p; - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - goto yy_find_action; - } - break; - } + yy_next_state = yy_try_NUL_trans(yy_current_state, yyscanner); - default: - YY_FATAL_ERROR( - "fatal flex scanner internal error--no action found" ); - } /* end of action switch */ - } /* end of scanning one token */ - } /* end of user's declarations */ + yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; + + if (yy_next_state) + { + /* Consume the NUL. */ + yy_cp = ++yyg->yy_c_buf_p; + yy_current_state = yy_next_state; + goto yy_match; + } + + else + { + yy_cp = yyg->yy_last_accepting_cpos; + yy_current_state = yyg->yy_last_accepting_state; + goto yy_find_action; + } + } + + else + switch (yy_get_next_buffer(yyscanner)) + { + case EOB_ACT_END_OF_FILE: + { + yyg->yy_did_buffer_switch_on_eof = 0; + + if (yywrap(yyscanner)) + { + /* Note: because we've taken care in + * yy_get_next_buffer() to have set up + * yytext, we can now set up + * yy_c_buf_p so that if some total + * hoser (like flex itself) wants to + * call the scanner after we return the + * YY_NULL, it'll still work - another + * YY_NULL will get returned. + */ + yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ; + + yy_act = YY_STATE_EOF(YY_START); + goto do_action; + } + + else + { + if (!yyg->yy_did_buffer_switch_on_eof) + YY_NEW_FILE; + } + break; + } + + case EOB_ACT_CONTINUE_SCAN: + yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state(yyscanner); + + yy_cp = yyg->yy_c_buf_p; + yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; + goto yy_match; + + case EOB_ACT_LAST_MATCH: + yyg->yy_c_buf_p = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]; + + yy_current_state = yy_get_previous_state(yyscanner); + + yy_cp = yyg->yy_c_buf_p; + yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; + goto yy_find_action; + } + break; + } + + default: + YY_FATAL_ERROR("fatal flex scanner internal error--no action found"); + } /* end of action switch */ + } /* end of scanning one token */ + } /* end of user's declarations */ } /* end of yylex */ - - - - /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file + * EOB_ACT_LAST_MATCH - + * EOB_ACT_CONTINUE_SCAN - continue scanning from current position + * EOB_ACT_END_OF_FILE - end of file */ -static int yy_get_next_buffer (yyscan_t yyscanner) +static int yy_get_next_buffer(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - char *source = yyg->yytext_ptr; - int number_to_move, i; - int ret_val; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; + char *source = yyg->yytext_ptr; + int number_to_move, i; + int ret_val; - if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] ) - YY_FATAL_ERROR( - "fatal flex scanner internal error--end of buffer missed" ); + if (yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1]) + YY_FATAL_ERROR("fatal flex scanner internal error--end of buffer missed"); - if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 ) - { - /* We matched a single character, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; - } + if (YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0) + { /* Don't try to fill the buffer, so this is an EOF. */ + if (yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1) + { + /* We matched a single character, the EOB, so + * treat this as a final EOF. + */ + return EOB_ACT_END_OF_FILE; + } - else - { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; - } - } + else + { + /* We matched some text prior to the EOB, first + * process it. + */ + return EOB_ACT_LAST_MATCH; + } + } - /* Try to read more data. */ + /* Try to read more data. */ - /* First move last chars to start of buffer. */ - number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1); + /* First move last chars to start of buffer. */ + number_to_move = (int)(yyg->yy_c_buf_p - yyg->yytext_ptr - 1); - for ( i = 0; i < number_to_move; ++i ) - *(dest++) = *(source++); + for (i = 0; i < number_to_move; ++i) + *(dest++) = *(source++); - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0; + if (YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING) + /* don't do the read, it's not guaranteed to return an EOF, + * just force an EOF + */ + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0; - else - { - int num_to_read = - YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + else + { + int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; - while ( num_to_read <= 0 ) - { /* Not enough room in the buffer - grow it. */ + while (num_to_read <= 0) + { /* Not enough room in the buffer - grow it. */ - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; + /* just a shorter name for the current buffer */ + YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; - int yy_c_buf_p_offset = - (int) (yyg->yy_c_buf_p - b->yy_ch_buf); + int yy_c_buf_p_offset = (int)(yyg->yy_c_buf_p - b->yy_ch_buf); - if ( b->yy_is_our_buffer ) - { - int new_size = b->yy_buf_size * 2; + if (b->yy_is_our_buffer) + { + int new_size = b->yy_buf_size * 2; - if ( new_size <= 0 ) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; + if (new_size <= 0) + b->yy_buf_size += b->yy_buf_size / 8; + else + b->yy_buf_size *= 2; - b->yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - yyrealloc( (void *) b->yy_ch_buf, - (yy_size_t) (b->yy_buf_size + 2) , yyscanner ); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = NULL; + b->yy_ch_buf = (char *) + /* Include room in for 2 EOB chars. */ + yyrealloc((void *)b->yy_ch_buf, (yy_size_t)(b->yy_buf_size + 2), yyscanner); + } + else + /* Can't grow it, we don't own it. */ + b->yy_ch_buf = NULL; - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); + if (!b->yy_ch_buf) + YY_FATAL_ERROR("fatal error - scanner input buffer overflow"); - yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; + yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; - num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - - number_to_move - 1; + num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + } - } + if (num_to_read > YY_READ_BUF_SIZE) + num_to_read = YY_READ_BUF_SIZE; - if ( num_to_read > YY_READ_BUF_SIZE ) - num_to_read = YY_READ_BUF_SIZE; + /* Read in more data. */ + yy_size_t ret = 0; + YY_INPUT((&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), ret, num_to_read); + yyg->yy_n_chars = static_cast(ret); - /* Read in more data. */ - yy_size_t ret = 0; - YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - ret, num_to_read ); - yyg->yy_n_chars = static_cast(ret); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; + } - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } + if (yyg->yy_n_chars == 0) + { + if (number_to_move == YY_MORE_ADJ) + { + ret_val = EOB_ACT_END_OF_FILE; + yyrestart(yyin, yyscanner); + } - if ( yyg->yy_n_chars == 0 ) - { - if ( number_to_move == YY_MORE_ADJ ) - { - ret_val = EOB_ACT_END_OF_FILE; - yyrestart( yyin , yyscanner); - } + else + { + ret_val = EOB_ACT_LAST_MATCH; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; + } + } - else - { - ret_val = EOB_ACT_LAST_MATCH; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = - YY_BUFFER_EOF_PENDING; - } - } + else + ret_val = EOB_ACT_CONTINUE_SCAN; - else - ret_val = EOB_ACT_CONTINUE_SCAN; + if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) + { + /* Extend the array by 50%, plus the number we really need. */ + int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *)yyrealloc( + (void *)YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t)new_size, yyscanner); + 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); + } - if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { - /* Extend the array by 50%, plus the number we really need. */ - int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1); - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc( - (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner ); - 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); - } + yyg->yy_n_chars += number_to_move; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; - yyg->yy_n_chars += number_to_move; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; + yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; - yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; - - return ret_val; + return ret_val; } - /* yy_get_previous_state - get the state just before the EOB char was reached */ - static yy_state_type yy_get_previous_state (yyscan_t yyscanner) +static yy_state_type yy_get_previous_state(yyscan_t yyscanner) { - yy_state_type yy_current_state; - char *yy_cp; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + yy_state_type yy_current_state; + char *yy_cp; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; - yy_current_state = yyg->yy_start; + yy_current_state = yyg->yy_start; - for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) - { - YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 95 ) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - } + for (yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp) + { + YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if (yy_accept[yy_current_state]) + { + yyg->yy_last_accepting_state = yy_current_state; + yyg->yy_last_accepting_cpos = yy_cp; + } + while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) + { + yy_current_state = (int)yy_def[yy_current_state]; + if (yy_current_state >= 95) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + } - return yy_current_state; + return yy_current_state; } - /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis - * next_state = yy_try_NUL_trans( current_state ); + * next_state = yy_try_NUL_trans( current_state ); */ - static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) +static yy_state_type yy_try_NUL_trans(yy_state_type yy_current_state, yyscan_t yyscanner) { - int yy_is_jam; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ - char *yy_cp = yyg->yy_c_buf_p; + int yy_is_jam; + struct yyguts_t *yyg = + (struct yyguts_t *)yyscanner; /* This var may be unused depending upon options. */ + char *yy_cp = yyg->yy_c_buf_p; - YY_CHAR yy_c = 1; - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 95 ) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - yy_is_jam = (yy_current_state == 94); + YY_CHAR yy_c = 1; + if (yy_accept[yy_current_state]) + { + yyg->yy_last_accepting_state = yy_current_state; + yyg->yy_last_accepting_cpos = yy_cp; + } + while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) + { + yy_current_state = (int)yy_def[yy_current_state]; + if (yy_current_state >= 95) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + yy_is_jam = (yy_current_state == 94); - (void)yyg; - return yy_is_jam ? 0 : yy_current_state; + (void)yyg; + return yy_is_jam ? 0 : yy_current_state; } - #ifndef YY_NO_UNPUT #endif #ifndef YY_NO_INPUT -#ifdef __cplusplus - static int yyinput (yyscan_t yyscanner) -#else - static int input (yyscan_t yyscanner) -#endif +# ifdef __cplusplus +static int yyinput(yyscan_t yyscanner) +# else +static int input(yyscan_t yyscanner) +# endif { - int c; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + int c; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; - *yyg->yy_c_buf_p = yyg->yy_hold_char; + *yyg->yy_c_buf_p = yyg->yy_hold_char; - if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) - { - /* yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) - /* This was really a NUL. */ - *yyg->yy_c_buf_p = '\0'; + if (*yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR) + { + /* yy_c_buf_p now points to the character we want to return. + * If this occurs *before* the EOB characters, then it's a + * valid NUL; if not, then we've hit the end of the buffer. + */ + if (yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]) + /* This was really a NUL. */ + *yyg->yy_c_buf_p = '\0'; - else - { /* need more input */ - int offset = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr); - ++yyg->yy_c_buf_p; + else + { /* need more input */ + int offset = (int)(yyg->yy_c_buf_p - yyg->yytext_ptr); + ++yyg->yy_c_buf_p; - switch ( yy_get_next_buffer( yyscanner ) ) - { - case EOB_ACT_LAST_MATCH: - /* This happens because yy_g_n_b() - * sees that we've accumulated a - * token and flags that we need to - * try matching the token before - * proceeding. But for input(), - * there's no matching to consider. - * So convert the EOB_ACT_LAST_MATCH - * to EOB_ACT_END_OF_FILE. - */ + switch (yy_get_next_buffer(yyscanner)) + { + case EOB_ACT_LAST_MATCH: + /* This happens because yy_g_n_b() + * sees that we've accumulated a + * token and flags that we need to + * try matching the token before + * proceeding. But for input(), + * there's no matching to consider. + * So convert the EOB_ACT_LAST_MATCH + * to EOB_ACT_END_OF_FILE. + */ - /* Reset buffer status. */ - yyrestart( yyin , yyscanner); + /* Reset buffer status. */ + yyrestart(yyin, yyscanner); - /*FALLTHROUGH*/ + /*FALLTHROUGH*/ - case EOB_ACT_END_OF_FILE: - { - if ( yywrap( yyscanner ) ) - return 0; + case EOB_ACT_END_OF_FILE: + { + if (yywrap(yyscanner)) + return 0; - if ( ! yyg->yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; -#ifdef __cplusplus - return yyinput(yyscanner); -#else - return input(yyscanner); -#endif - } + if (!yyg->yy_did_buffer_switch_on_eof) + YY_NEW_FILE; +# ifdef __cplusplus + return yyinput(yyscanner); +# else + return input(yyscanner); +# endif + } - case EOB_ACT_CONTINUE_SCAN: - yyg->yy_c_buf_p = yyg->yytext_ptr + offset; - break; - } - } - } + case EOB_ACT_CONTINUE_SCAN: + yyg->yy_c_buf_p = yyg->yytext_ptr + offset; + break; + } + } + } - c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */ - *yyg->yy_c_buf_p = '\0'; /* preserve yytext */ - yyg->yy_hold_char = *++yyg->yy_c_buf_p; + c = *(unsigned char *)yyg->yy_c_buf_p; /* cast for 8-bit char's */ + *yyg->yy_c_buf_p = '\0'; /* preserve yytext */ + yyg->yy_hold_char = *++yyg->yy_c_buf_p; - - return c; + return c; } -#endif /* ifndef YY_NO_INPUT */ +#endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. * @param yyscanner The scanner object. * @note This function does not reset the start condition to @c INITIAL . */ - void yyrestart (FILE * input_file , yyscan_t yyscanner) +void yyrestart(FILE *input_file, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; - if ( ! YY_CURRENT_BUFFER ){ - yyensure_buffer_stack (yyscanner); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); - } + if (!YY_CURRENT_BUFFER) + { + yyensure_buffer_stack(yyscanner); + YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner); + } - yy_init_buffer( YY_CURRENT_BUFFER, input_file , yyscanner); - yy_load_buffer_state( yyscanner ); + yy_init_buffer(YY_CURRENT_BUFFER, input_file, yyscanner); + yy_load_buffer_state(yyscanner); } - /** Switch to a different input buffer. * @param new_buffer The new input buffer. * @param yyscanner The scanner object. */ - void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) +void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; - /* TODO. We should be able to replace this entire function body - * with - * yypop_buffer_state(); - * yypush_buffer_state(new_buffer); + /* TODO. We should be able to replace this entire function body + * with + * yypop_buffer_state(); + * yypush_buffer_state(new_buffer); */ - yyensure_buffer_stack (yyscanner); - if ( YY_CURRENT_BUFFER == new_buffer ) - return; + yyensure_buffer_stack(yyscanner); + if (YY_CURRENT_BUFFER == new_buffer) + return; - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *yyg->yy_c_buf_p = yyg->yy_hold_char; - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } + if (YY_CURRENT_BUFFER) + { + /* Flush out information for old buffer. */ + *yyg->yy_c_buf_p = yyg->yy_hold_char; + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; + } - YY_CURRENT_BUFFER_LVALUE = new_buffer; - yy_load_buffer_state( yyscanner ); + YY_CURRENT_BUFFER_LVALUE = new_buffer; + yy_load_buffer_state(yyscanner); - /* We don't actually know whether we did this switch during - * EOF (yywrap()) processing, but the only time this flag - * is looked at is after yywrap() is called, so it's safe - * to go ahead and always set it. - */ - yyg->yy_did_buffer_switch_on_eof = 1; + /* We don't actually know whether we did this switch during + * EOF (yywrap()) processing, but the only time this flag + * is looked at is after yywrap() is called, so it's safe + * to go ahead and always set it. + */ + yyg->yy_did_buffer_switch_on_eof = 1; } - -static void yy_load_buffer_state (yyscan_t yyscanner) +static void yy_load_buffer_state(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; - yyg->yy_hold_char = *yyg->yy_c_buf_p; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; + yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; + yyg->yy_hold_char = *yyg->yy_c_buf_p; } /** Allocate and initialize an input buffer state. @@ -2213,110 +1854,106 @@ static void yy_load_buffer_state (yyscan_t yyscanner) * @param yyscanner The scanner object. * @return the allocated buffer state. */ - YY_BUFFER_STATE yy_create_buffer (FILE * file, int size , yyscan_t yyscanner) +YY_BUFFER_STATE yy_create_buffer(FILE *file, int size, yyscan_t yyscanner) { - YY_BUFFER_STATE b; - - b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + YY_BUFFER_STATE b; - b->yy_buf_size = size; + b = (YY_BUFFER_STATE)yyalloc(sizeof(struct yy_buffer_state), yyscanner); + if (!b) + YY_FATAL_ERROR("out of dynamic memory in yy_create_buffer()"); - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner ); - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + b->yy_buf_size = size; - b->yy_is_our_buffer = 1; + /* yy_ch_buf has to be 2 characters longer than the size given because + * we need to put in 2 end-of-buffer characters. + */ + b->yy_ch_buf = (char *)yyalloc((yy_size_t)(b->yy_buf_size + 2), yyscanner); + if (!b->yy_ch_buf) + YY_FATAL_ERROR("out of dynamic memory in yy_create_buffer()"); - yy_init_buffer( b, file , yyscanner); + b->yy_is_our_buffer = 1; - return b; + yy_init_buffer(b, file, yyscanner); + + return b; } - /** Destroy the buffer. * @param b a buffer created with yy_create_buffer() * @param yyscanner The scanner object. */ - void yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) +void yy_delete_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; - if ( ! b ) - return; + if (!b) + return; - if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ - YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; + if (b == YY_CURRENT_BUFFER) /* Not sure if we should pop here. */ + YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE)0; - if ( b->yy_is_our_buffer ) - yyfree( (void *) b->yy_ch_buf , yyscanner ); + if (b->yy_is_our_buffer) + yyfree((void *)b->yy_ch_buf, yyscanner); - yyfree( (void *) b , yyscanner ); + yyfree((void *)b, yyscanner); } - /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. */ - static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) +static void yy_init_buffer(YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner) { - int oerrno = errno; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + int oerrno = errno; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; - yy_flush_buffer( b , yyscanner); + yy_flush_buffer(b, yyscanner); - b->yy_input_file = file; - b->yy_fill_buffer = 1; + b->yy_input_file = file; + b->yy_fill_buffer = 1; /* If b is the current buffer, then yy_init_buffer was _probably_ * called from yyrestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ - if (b != YY_CURRENT_BUFFER){ + if (b != YY_CURRENT_BUFFER) + { b->yy_bs_lineno = 1; b->yy_bs_column = 0; } + b->yy_is_interactive = 0; - - b->yy_is_interactive = 0; - - - errno = oerrno; + errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * @param yyscanner The scanner object. */ - void yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) +void yy_flush_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if ( ! b ) - return; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + if (!b) + return; - b->yy_n_chars = 0; + b->yy_n_chars = 0; - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; - b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; + /* We always need two end-of-buffer characters. The first causes + * a transition to the end-of-buffer state. The second causes + * a jam in that state. + */ + b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; + b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; - b->yy_buf_pos = &b->yy_ch_buf[0]; + b->yy_buf_pos = &b->yy_ch_buf[0]; - b->yy_at_bol = 1; - b->yy_buffer_status = YY_BUFFER_NEW; + b->yy_at_bol = 1; + b->yy_buffer_status = YY_BUFFER_NEW; - if ( b == YY_CURRENT_BUFFER ) - yy_load_buffer_state( yyscanner ); + if (b == YY_CURRENT_BUFFER) + yy_load_buffer_state(yyscanner); } /** Pushes the new state onto the stack. The new state becomes @@ -2325,146 +1962,136 @@ static void yy_load_buffer_state (yyscan_t yyscanner) * @param new_buffer The new state. * @param yyscanner The scanner object. */ -void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) +void yypush_buffer_state(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if (new_buffer == NULL) - return; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + if (new_buffer == NULL) + return; - yyensure_buffer_stack(yyscanner); + yyensure_buffer_stack(yyscanner); - /* This block is copied from yy_switch_to_buffer. */ - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *yyg->yy_c_buf_p = yyg->yy_hold_char; - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } + /* This block is copied from yy_switch_to_buffer. */ + if (YY_CURRENT_BUFFER) + { + /* Flush out information for old buffer. */ + *yyg->yy_c_buf_p = yyg->yy_hold_char; + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; + } - /* Only push if top exists. Otherwise, replace top. */ - if (YY_CURRENT_BUFFER) - yyg->yy_buffer_stack_top++; - YY_CURRENT_BUFFER_LVALUE = new_buffer; + /* Only push if top exists. Otherwise, replace top. */ + if (YY_CURRENT_BUFFER) + yyg->yy_buffer_stack_top++; + YY_CURRENT_BUFFER_LVALUE = new_buffer; - /* copied from yy_switch_to_buffer. */ - yy_load_buffer_state( yyscanner ); - yyg->yy_did_buffer_switch_on_eof = 1; + /* copied from yy_switch_to_buffer. */ + yy_load_buffer_state(yyscanner); + yyg->yy_did_buffer_switch_on_eof = 1; } - /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * @param yyscanner The scanner object. */ -void yypop_buffer_state (yyscan_t yyscanner) +void yypop_buffer_state(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if (!YY_CURRENT_BUFFER) - return; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + if (!YY_CURRENT_BUFFER) + return; - yy_delete_buffer(YY_CURRENT_BUFFER , yyscanner); - YY_CURRENT_BUFFER_LVALUE = NULL; - if (yyg->yy_buffer_stack_top > 0) - --yyg->yy_buffer_stack_top; + yy_delete_buffer(YY_CURRENT_BUFFER, yyscanner); + YY_CURRENT_BUFFER_LVALUE = NULL; + if (yyg->yy_buffer_stack_top > 0) + --yyg->yy_buffer_stack_top; - if (YY_CURRENT_BUFFER) { - yy_load_buffer_state( yyscanner ); - yyg->yy_did_buffer_switch_on_eof = 1; - } + if (YY_CURRENT_BUFFER) + { + yy_load_buffer_state(yyscanner); + yyg->yy_did_buffer_switch_on_eof = 1; + } } - /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ -static void yyensure_buffer_stack (yyscan_t yyscanner) +static void yyensure_buffer_stack(yyscan_t yyscanner) { - yy_size_t num_to_alloc; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + yy_size_t num_to_alloc; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; - if (!yyg->yy_buffer_stack) { + if (!yyg->yy_buffer_stack) + { - /* First allocation is just for 2 elements, since we don't know if this - * scanner will even need a stack. We use 2 instead of 1 to avoid an - * immediate realloc on the next call. + /* First allocation is just for 2 elements, since we don't know if this + * scanner will even need a stack. We use 2 instead of 1 to avoid an + * immediate realloc on the next call. */ - num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ - yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc - (num_to_alloc * sizeof(struct yy_buffer_state*) - , yyscanner); - if ( ! yyg->yy_buffer_stack ) - YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ + yyg->yy_buffer_stack = (struct yy_buffer_state **)yyalloc( + num_to_alloc * sizeof(struct yy_buffer_state *), yyscanner); + if (!yyg->yy_buffer_stack) + YY_FATAL_ERROR("out of dynamic memory in yyensure_buffer_stack()"); + memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state *)); - memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*)); + yyg->yy_buffer_stack_max = num_to_alloc; + yyg->yy_buffer_stack_top = 0; + return; + } - yyg->yy_buffer_stack_max = num_to_alloc; - yyg->yy_buffer_stack_top = 0; - return; - } + if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1) + { - if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){ + /* Increase the buffer to prepare for a possible push. */ + yy_size_t grow_size = 8 /* arbitrary grow size */; - /* Increase the buffer to prepare for a possible push. */ - yy_size_t grow_size = 8 /* arbitrary grow size */; + num_to_alloc = yyg->yy_buffer_stack_max + grow_size; + yyg->yy_buffer_stack = (struct yy_buffer_state **)yyrealloc( + yyg->yy_buffer_stack, num_to_alloc * sizeof(struct yy_buffer_state *), yyscanner); + if (!yyg->yy_buffer_stack) + YY_FATAL_ERROR("out of dynamic memory in yyensure_buffer_stack()"); - num_to_alloc = yyg->yy_buffer_stack_max + grow_size; - yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc - (yyg->yy_buffer_stack, - num_to_alloc * sizeof(struct yy_buffer_state*) - , yyscanner); - if ( ! yyg->yy_buffer_stack ) - YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); - - /* zero only the new slots.*/ - memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*)); - yyg->yy_buffer_stack_max = num_to_alloc; - } + /* zero only the new slots.*/ + memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, + grow_size * sizeof(struct yy_buffer_state *)); + yyg->yy_buffer_stack_max = num_to_alloc; + } } - - - - /** Setup the input buffer state to scan directly from a user-specified character buffer. * @param base the character buffer * @param size the size in bytes of the character buffer * @param yyscanner The scanner object. * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) +YY_BUFFER_STATE yy_scan_buffer(char *base, yy_size_t size, yyscan_t yyscanner) { - YY_BUFFER_STATE b; - - if ( size < 2 || - base[size-2] != YY_END_OF_BUFFER_CHAR || - base[size-1] != YY_END_OF_BUFFER_CHAR ) - /* They forgot to leave room for the EOB's. */ - return NULL; + YY_BUFFER_STATE b; - b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); + if (size < 2 || base[size - 2] != YY_END_OF_BUFFER_CHAR || + base[size - 1] != YY_END_OF_BUFFER_CHAR) + /* They forgot to leave room for the EOB's. */ + return NULL; - b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */ - b->yy_buf_pos = b->yy_ch_buf = base; - b->yy_is_our_buffer = 0; - b->yy_input_file = NULL; - b->yy_n_chars = b->yy_buf_size; - b->yy_is_interactive = 0; - b->yy_at_bol = 1; - b->yy_fill_buffer = 0; - b->yy_buffer_status = YY_BUFFER_NEW; + b = (YY_BUFFER_STATE)yyalloc(sizeof(struct yy_buffer_state), yyscanner); + if (!b) + YY_FATAL_ERROR("out of dynamic memory in yy_scan_buffer()"); - yy_switch_to_buffer( b , yyscanner ); + b->yy_buf_size = (int)(size - 2); /* "- 2" to take care of EOB's */ + b->yy_buf_pos = b->yy_ch_buf = base; + b->yy_is_our_buffer = 0; + b->yy_input_file = NULL; + b->yy_n_chars = b->yy_buf_size; + b->yy_is_interactive = 0; + b->yy_at_bol = 1; + b->yy_fill_buffer = 0; + b->yy_buffer_status = YY_BUFFER_NEW; - return b; + yy_switch_to_buffer(b, yyscanner); + + return b; } - - - /** Setup the input buffer state to scan a string. The next call to yylex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan @@ -2473,15 +2100,12 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscann * @note If you want to scan bytes that may contain NUL values, then use * yy_scan_bytes() instead. */ -YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner) +YY_BUFFER_STATE yy_scan_string(const char *yystr, yyscan_t yyscanner) { - - return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner); + + return yy_scan_bytes(yystr, (int)strlen(yystr), yyscanner); } - - - /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. * @param yybytes the byte buffer to scan @@ -2489,295 +2113,233 @@ YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner) * @param yyscanner The scanner object. * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len , yyscan_t yyscanner) +YY_BUFFER_STATE yy_scan_bytes(const char *yybytes, int _yybytes_len, yyscan_t yyscanner) { - YY_BUFFER_STATE b; - char *buf; - yy_size_t n; - int i; - - /* Get memory for full buffer, including space for trailing EOB's. */ - n = (yy_size_t) (_yybytes_len + 2); - buf = (char *) yyalloc( n , yyscanner ); - if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); + YY_BUFFER_STATE b; + char *buf; + yy_size_t n; + int i; - for ( i = 0; i < _yybytes_len; ++i ) - buf[i] = yybytes[i]; + /* Get memory for full buffer, including space for trailing EOB's. */ + n = (yy_size_t)(_yybytes_len + 2); + buf = (char *)yyalloc(n, yyscanner); + if (!buf) + YY_FATAL_ERROR("out of dynamic memory in yy_scan_bytes()"); - buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; + for (i = 0; i < _yybytes_len; ++i) + buf[i] = yybytes[i]; - b = yy_scan_buffer( buf, n , yyscanner); - if ( ! b ) - YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); + buf[_yybytes_len] = buf[_yybytes_len + 1] = YY_END_OF_BUFFER_CHAR; - /* It's okay to grow etc. this buffer, and we should throw it - * away when we're done. - */ - b->yy_is_our_buffer = 1; + b = yy_scan_buffer(buf, n, yyscanner); + if (!b) + YY_FATAL_ERROR("bad buffer in yy_scan_bytes()"); - return b; + /* It's okay to grow etc. this buffer, and we should throw it + * away when we're done. + */ + b->yy_is_our_buffer = 1; + + return b; } - - - - - - - - - - #ifndef YY_EXIT_FAILURE -#define YY_EXIT_FAILURE 2 +# define YY_EXIT_FAILURE 2 #endif -static void yynoreturn yy_fatal_error (const char* msg , yyscan_t yyscanner) +static void yynoreturn yy_fatal_error(const char *msg, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - (void)yyg; - fprintf( stderr, "%s\n", msg ); - exit( YY_EXIT_FAILURE ); + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + (void)yyg; + fprintf(stderr, "%s\n", msg); + exit(YY_EXIT_FAILURE); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - yytext[yyleng] = yyg->yy_hold_char; \ - yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ - yyg->yy_hold_char = *yyg->yy_c_buf_p; \ - *yyg->yy_c_buf_p = '\0'; \ - yyleng = yyless_macro_arg; \ - } \ - while ( 0 ) - - +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg); \ + yytext[yyleng] = yyg->yy_hold_char; \ + yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ + yyg->yy_hold_char = *yyg->yy_c_buf_p; \ + *yyg->yy_c_buf_p = '\0'; \ + yyleng = yyless_macro_arg; \ + } while (0) /* Accessor methods (get/set functions) to struct members. */ - /** Get the user-defined data for this scanner. * @param yyscanner The scanner object. */ -YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner) +YY_EXTRA_TYPE yyget_extra(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yyextra; } - - /** Get the current line number. * @param yyscanner The scanner object. */ -int yyget_lineno (yyscan_t yyscanner) +int yyget_lineno(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + + if (!YY_CURRENT_BUFFER) + return 0; - - if (! YY_CURRENT_BUFFER) - return 0; - return yylineno; } - - - /** Get the current column number. * @param yyscanner The scanner object. */ -int yyget_column (yyscan_t yyscanner) +int yyget_column(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + + if (!YY_CURRENT_BUFFER) + return 0; - - if (! YY_CURRENT_BUFFER) - return 0; - return yycolumn; } - - - /** Get the input stream. * @param yyscanner The scanner object. */ -FILE *yyget_in (yyscan_t yyscanner) +FILE *yyget_in(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yyin; } - - /** Get the output stream. * @param yyscanner The scanner object. */ -FILE *yyget_out (yyscan_t yyscanner) +FILE *yyget_out(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yyout; } - - /** Get the length of the current token. * @param yyscanner The scanner object. */ -int yyget_leng (yyscan_t yyscanner) +int yyget_leng(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yyleng; } - /** Get the current token. * @param yyscanner The scanner object. */ -char *yyget_text (yyscan_t yyscanner) +char *yyget_text(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yytext; } - - /** Set the user-defined data. This data is never touched by the scanner. * @param user_defined The data to be associated with this scanner. * @param yyscanner The scanner object. */ -void yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) +void yyset_extra(YY_EXTRA_TYPE user_defined, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyextra = user_defined ; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + yyextra = user_defined; } - - /** Set the current line number. * @param _line_number line number * @param yyscanner The scanner object. */ -void yyset_lineno (int _line_number , yyscan_t yyscanner) +void yyset_lineno(int _line_number, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + + /* lineno is only valid if an input buffer exists. */ + if (!YY_CURRENT_BUFFER) + YY_FATAL_ERROR("yyset_lineno called with no buffer"); - - /* lineno is only valid if an input buffer exists. */ - if (! YY_CURRENT_BUFFER ) - YY_FATAL_ERROR( "yyset_lineno called with no buffer" ); - yylineno = _line_number; } - - - /** Set the current column. * @param _column_no column number * @param yyscanner The scanner object. */ -void yyset_column (int _column_no , yyscan_t yyscanner) +void yyset_column(int _column_no, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + + /* column is only valid if an input buffer exists. */ + if (!YY_CURRENT_BUFFER) + YY_FATAL_ERROR("yyset_column called with no buffer"); - - /* column is only valid if an input buffer exists. */ - if (! YY_CURRENT_BUFFER ) - YY_FATAL_ERROR( "yyset_column called with no buffer" ); - yycolumn = _column_no; } - - - - /** Set the input stream. This does not discard the current * input buffer. * @param _in_str A readable stream. * @param yyscanner The scanner object. * @see yy_switch_to_buffer */ -void yyset_in (FILE * _in_str , yyscan_t yyscanner) +void yyset_in(FILE *_in_str, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyin = _in_str ; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + yyin = _in_str; } - - -void yyset_out (FILE * _out_str , yyscan_t yyscanner) +void yyset_out(FILE *_out_str, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyout = _out_str ; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + yyout = _out_str; } - - - -int yyget_debug (yyscan_t yyscanner) +int yyget_debug(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yy_flex_debug; } - - -void yyset_debug (int _bdebug , yyscan_t yyscanner) +void yyset_debug(int _bdebug, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yy_flex_debug = _bdebug ; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + yy_flex_debug = _bdebug; } - /* Accessor methods for yylval and yylloc */ - -YYSTYPE * yyget_lval (yyscan_t yyscanner) +YYSTYPE *yyget_lval(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yylval; } - - -void yyset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner) +void yyset_lval(YYSTYPE *yylval_param, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yylval = yylval_param; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + yylval = yylval_param; } - - - -YYLTYPE *yyget_lloc (yyscan_t yyscanner) +YYLTYPE *yyget_lloc(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yylloc; } - - -void yyset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner) +void yyset_lloc(YYLTYPE *yylloc_param, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yylloc = yylloc_param; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + yylloc = yylloc_param; } - - - - /* User-visible API */ @@ -2785,27 +2347,28 @@ void yyset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner) * the ONLY reentrant function that doesn't take the scanner as the last argument. * That's why we explicitly handle the declaration, instead of using our macros. */ -int yylex_init(yyscan_t* ptr_yy_globals) +int yylex_init(yyscan_t *ptr_yy_globals) { - if (ptr_yy_globals == NULL){ + if (ptr_yy_globals == NULL) + { errno = EINVAL; return 1; } - *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL ); + *ptr_yy_globals = (yyscan_t)yyalloc(sizeof(struct yyguts_t), NULL); - if (*ptr_yy_globals == NULL){ + if (*ptr_yy_globals == NULL) + { errno = ENOMEM; return 1; } /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ - memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); + memset(*ptr_yy_globals, 0x00, sizeof(struct yyguts_t)); - return yy_init_globals ( *ptr_yy_globals ); + return yy_init_globals(*ptr_yy_globals); } - /* yylex_init_extra has the same functionality as yylex_init, but follows the * convention of taking the scanner as the last argument. Note however, that * this is a *pointer* to a scanner, as it will be allocated by this call (and @@ -2813,65 +2376,59 @@ int yylex_init(yyscan_t* ptr_yy_globals) * The user defined value in the first argument will be available to yyalloc in * the yyextra field. */ -int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals ) +int yylex_init_extra(YY_EXTRA_TYPE yy_user_defined, yyscan_t *ptr_yy_globals) { struct yyguts_t dummy_yyguts; - yyset_extra (yy_user_defined, &dummy_yyguts); + yyset_extra(yy_user_defined, &dummy_yyguts); - if (ptr_yy_globals == NULL){ + if (ptr_yy_globals == NULL) + { errno = EINVAL; return 1; } - *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts ); + *ptr_yy_globals = (yyscan_t)yyalloc(sizeof(struct yyguts_t), &dummy_yyguts); - if (*ptr_yy_globals == NULL){ + if (*ptr_yy_globals == NULL) + { errno = ENOMEM; return 1; } /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ - memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); + memset(*ptr_yy_globals, 0x00, sizeof(struct yyguts_t)); - yyset_extra (yy_user_defined, *ptr_yy_globals); + yyset_extra(yy_user_defined, *ptr_yy_globals); - return yy_init_globals ( *ptr_yy_globals ); + return yy_init_globals(*ptr_yy_globals); } - -static int yy_init_globals (yyscan_t yyscanner) +static int yy_init_globals(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; /* Initialization is the same as for the non-reentrant scanner. * This function is called from yylex_destroy(), so don't allocate here. */ - - yyg->yy_buffer_stack = NULL; + yyg->yy_buffer_stack = NULL; yyg->yy_buffer_stack_top = 0; yyg->yy_buffer_stack_max = 0; - yyg->yy_c_buf_p = NULL; - yyg->yy_init = 0; - yyg->yy_start = 0; + yyg->yy_c_buf_p = NULL; + yyg->yy_init = 0; + yyg->yy_start = 0; - - yyg->yy_start_stack_ptr = 0; + yyg->yy_start_stack_ptr = 0; yyg->yy_start_stack_depth = 0; - yyg->yy_start_stack = NULL; - - - - - + yyg->yy_start_stack = NULL; /* Defined in main.c */ #ifdef YY_STDINIT - yyin = stdin; + yyin = stdin; yyout = stdout; #else - yyin = NULL; + yyin = NULL; yyout = NULL; #endif @@ -2881,122 +2438,100 @@ static int yy_init_globals (yyscan_t yyscanner) return 0; } - /* yylex_destroy is for both reentrant and non-reentrant scanners. */ -int yylex_destroy (yyscan_t yyscanner) +int yylex_destroy(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; /* Pop the buffer stack, destroying each element. */ - while(YY_CURRENT_BUFFER){ - yy_delete_buffer( YY_CURRENT_BUFFER , yyscanner ); - YY_CURRENT_BUFFER_LVALUE = NULL; - yypop_buffer_state(yyscanner); - } - - /* Destroy the stack itself. */ - yyfree(yyg->yy_buffer_stack , yyscanner); - yyg->yy_buffer_stack = NULL; + while (YY_CURRENT_BUFFER) + { + yy_delete_buffer(YY_CURRENT_BUFFER, yyscanner); + YY_CURRENT_BUFFER_LVALUE = NULL; + yypop_buffer_state(yyscanner); + } + /* Destroy the stack itself. */ + yyfree(yyg->yy_buffer_stack, yyscanner); + yyg->yy_buffer_stack = NULL; /* Destroy the start condition stack. */ - yyfree( yyg->yy_start_stack , yyscanner ); - yyg->yy_start_stack = NULL; - - - + yyfree(yyg->yy_start_stack, yyscanner); + yyg->yy_start_stack = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * yylex() is called, initialization will occur. */ - yy_init_globals( yyscanner); + yy_init_globals(yyscanner); /* Destroy the main struct (reentrant only). */ - yyfree ( yyscanner , yyscanner ); + yyfree(yyscanner, yyscanner); yyscanner = NULL; return 0; } - - /* * Internal utility routines. */ - - #ifndef yytext_ptr -static void yy_flex_strncpy (char* s1, const char * s2, int n , yyscan_t yyscanner) +static void yy_flex_strncpy(char *s1, const char *s2, int n, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - (void)yyg; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + (void)yyg; - int i; - for ( i = 0; i < n; ++i ) - s1[i] = s2[i]; + int i; + for (i = 0; i < n; ++i) + s1[i] = s2[i]; } #endif - - #ifdef YY_NEED_STRLEN -static int yy_flex_strlen (const char * s , yyscan_t yyscanner) +static int yy_flex_strlen(const char *s, yyscan_t yyscanner) { - int n; - for ( n = 0; s[n]; ++n ) - ; + int n; + for (n = 0; s[n]; ++n) + ; - return n; + return n; } #endif - - -void *yyalloc (yy_size_t size , yyscan_t yyscanner) +void *yyalloc(yy_size_t size, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - (void)yyg; - return malloc(size); + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + (void)yyg; + return malloc(size); } - - -void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner) +void *yyrealloc(void *ptr, yy_size_t size, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - (void)yyg; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + (void)yyg; - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return realloc(ptr, size); + /* The cast to (char *) in the following accommodates both + * implementations that use char* generic pointers, and those + * that use void* generic pointers. It works with the latter + * because both ANSI C and C++ allow castless assignment from + * any pointer type to void*, and deal with argument conversions + * as though doing an assignment. + */ + return realloc(ptr, size); } - - -void yyfree (void * ptr , yyscan_t yyscanner) +void yyfree(void *ptr, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - (void)yyg; - free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + (void)yyg; + free((char *)ptr); /* see yyrealloc() for (char *) cast */ } - #define YYTABLES_NAME "yytables" +namespace angle +{ - - - - - - -namespace angle { - -namespace pp { +namespace pp +{ Tokenizer::Tokenizer(Diagnostics *diagnostics) : mHandle(nullptr), mMaxTokenSize(256) { @@ -3008,7 +2543,7 @@ Tokenizer::~Tokenizer() destroyScanner(); } -bool Tokenizer::init(size_t count, const char * const string[], const int length[]) +bool Tokenizer::init(size_t count, const char *const string[], const int length[]) { if ((count > 0) && (string == 0)) return false; @@ -3050,8 +2585,7 @@ void Tokenizer::lex(Token *token) if (token->text.size() > mMaxTokenSize) { - mContext.diagnostics->report(Diagnostics::PP_TOKEN_TOO_LONG, - token->location, token->text); + mContext.diagnostics->report(Diagnostics::PP_TOKEN_TOO_LONG, token->location, token->text); token->text.erase(mMaxTokenSize); } @@ -3084,6 +2618,4 @@ void Tokenizer::destroyScanner() } // namespace pp -} // namespace angle - - +} // namespace angle diff --git a/src/compiler/preprocessor/preprocessor_tab_autogen.cpp b/src/compiler/preprocessor/preprocessor_tab_autogen.cpp index 16bf0a289..4711774cd 100644 --- a/src/compiler/preprocessor/preprocessor_tab_autogen.cpp +++ b/src/compiler/preprocessor/preprocessor_tab_autogen.cpp @@ -81,33 +81,31 @@ // preprocessor.y: // Parser for the OpenGL shading language preprocessor. -// clang-format off - #if defined(__GNUC__) // Triggered by the auto-generated pplval variable. -#if !defined(__clang__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) -#pragma GCC diagnostic ignored "-Wmaybe-uninitialized" -#else -#pragma GCC diagnostic ignored "-Wuninitialized" -#endif +# if !defined(__clang__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) +# pragma GCC diagnostic ignored "-Wmaybe-uninitialized" +# else +# pragma GCC diagnostic ignored "-Wuninitialized" +# endif #elif defined(_MSC_VER) -#pragma warning(disable: 4065 4244 4701 4702) +# pragma warning(disable : 4065 4244 4701 4702) #endif #if defined(__clang__) -#pragma clang diagnostic ignored "-Wunreachable-code" +# pragma clang diagnostic ignored "-Wunreachable-code" #endif #include "ExpressionParser.h" #if defined(_MSC_VER) -#include +# include #else -#include +# include #endif +#include #include #include -#include #include "DiagnosticsBase.h" #include "Lexer.h" @@ -122,13 +120,14 @@ typedef uint32_t UNSIGNED_TYPE; #define YYSTYPE_IS_TRIVIAL 1 #define YYSTYPE_IS_DECLARED 1 -namespace { +namespace +{ struct Context { angle::pp::Diagnostics *diagnostics; angle::pp::Lexer *lexer; angle::pp::Token *token; - int* result; + int *result; bool parsePresetToken; angle::pp::ExpressionParser::ErrorSettings errorSettings; @@ -143,35 +142,32 @@ struct Context }; } // namespace +static int yylex(YYSTYPE *lvalp, Context *context); +static void yyerror(Context *context, const char *reason); -static int yylex(YYSTYPE* lvalp, Context* context); -static void yyerror(Context* context, const char* reason); - - -# ifndef YY_NULLPTR -# if defined __cplusplus -# if 201103L <= __cplusplus -# define YY_NULLPTR nullptr -# else -# define YY_NULLPTR 0 -# endif -# else -# define YY_NULLPTR ((void*)0) -# endif -# endif +#ifndef YY_NULLPTR +# if defined __cplusplus +# if 201103L <= __cplusplus +# define YY_NULLPTR nullptr +# else +# define YY_NULLPTR 0 +# endif +# else +# define YY_NULLPTR ((void *)0) +# endif +#endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE -# undef YYERROR_VERBOSE -# define YYERROR_VERBOSE 1 +# undef YYERROR_VERBOSE +# define YYERROR_VERBOSE 1 #else -# define YYERROR_VERBOSE 0 +# define YYERROR_VERBOSE 0 #endif - /* Debug traces. */ #ifndef YYDEBUG -# define YYDEBUG 0 +# define YYDEBUG 0 #endif #if YYDEBUG extern int ppdebug; @@ -179,40 +175,34 @@ extern int ppdebug; /* Token type. */ #ifndef YYTOKENTYPE -# define YYTOKENTYPE - enum yytokentype - { - TOK_CONST_INT = 258, +# define YYTOKENTYPE +enum yytokentype +{ + TOK_CONST_INT = 258, TOK_IDENTIFIER = 259, - TOK_OP_OR = 260, - TOK_OP_AND = 261, - TOK_OP_EQ = 262, - TOK_OP_NE = 263, - TOK_OP_LE = 264, - TOK_OP_GE = 265, - TOK_OP_LEFT = 266, - TOK_OP_RIGHT = 267, - TOK_UNARY = 268 - }; + TOK_OP_OR = 260, + TOK_OP_AND = 261, + TOK_OP_EQ = 262, + TOK_OP_NE = 263, + TOK_OP_LE = 264, + TOK_OP_GE = 265, + TOK_OP_LEFT = 266, + TOK_OP_RIGHT = 267, + TOK_UNARY = 268 +}; #endif /* Value type. */ -#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED +#if !defined YYSTYPE && !defined YYSTYPE_IS_DECLARED typedef int YYSTYPE; -# define YYSTYPE_IS_TRIVIAL 1 -# define YYSTYPE_IS_DECLARED 1 +# define YYSTYPE_IS_TRIVIAL 1 +# define YYSTYPE_IS_DECLARED 1 #endif - - -int ppparse (Context *context); - - - - +int ppparse(Context *context); #ifdef short -# undef short +# undef short #endif #ifdef YYTYPE_UINT8 @@ -240,516 +230,421 @@ typedef short yytype_int16; #endif #ifndef YYSIZE_T -# ifdef __SIZE_TYPE__ -# define YYSIZE_T __SIZE_TYPE__ -# elif defined size_t -# define YYSIZE_T size_t -# elif ! defined YYSIZE_T -# include /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t -# else -# define YYSIZE_T unsigned -# endif +# ifdef __SIZE_TYPE__ +# define YYSIZE_T __SIZE_TYPE__ +# elif defined size_t +# define YYSIZE_T size_t +# elif !defined YYSIZE_T +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# else +# define YYSIZE_T unsigned +# endif #endif -#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) +#define YYSIZE_MAXIMUM ((YYSIZE_T)-1) #ifndef YY_ -# if defined YYENABLE_NLS && YYENABLE_NLS -# if ENABLE_NLS -# include /* INFRINGES ON USER NAME SPACE */ -# define YY_(Msgid) dgettext ("bison-runtime", Msgid) -# endif -# endif -# ifndef YY_ -# define YY_(Msgid) Msgid -# endif +# if defined YYENABLE_NLS && YYENABLE_NLS +# if ENABLE_NLS +# include /* INFRINGES ON USER NAME SPACE */ +# define YY_(Msgid) dgettext("bison-runtime", Msgid) +# endif +# endif +# ifndef YY_ +# define YY_(Msgid) Msgid +# endif #endif #ifndef YY_ATTRIBUTE -# if (defined __GNUC__ \ - && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ - || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C -# define YY_ATTRIBUTE(Spec) __attribute__(Spec) -# else -# define YY_ATTRIBUTE(Spec) /* empty */ -# endif +# if (defined __GNUC__ && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) || \ + defined __SUNPRO_C && 0x5110 <= __SUNPRO_C +# define YY_ATTRIBUTE(Spec) __attribute__(Spec) +# else +# define YY_ATTRIBUTE(Spec) /* empty */ +# endif #endif #ifndef YY_ATTRIBUTE_PURE -# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) +# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE((__pure__)) #endif #ifndef YY_ATTRIBUTE_UNUSED -# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) +# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE((__unused__)) #endif /* Suppress unused-variable warnings by "using" E. */ -#if ! defined lint || defined __GNUC__ -# define YYUSE(E) ((void) (E)) +#if !defined lint || defined __GNUC__ +# define YYUSE(E) ((void)(E)) #else -# define YYUSE(E) /* empty */ +# define YYUSE(E) /* empty */ #endif -#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ +#if defined __GNUC__ && !defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ - _Pragma ("GCC diagnostic push") \ - _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ - _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") -# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ - _Pragma ("GCC diagnostic pop") +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wuninitialized\"") \ + _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") +# define YY_IGNORE_MAYBE_UNINITIALIZED_END _Pragma("GCC diagnostic pop") #else -# define YY_INITIAL_VALUE(Value) Value +# define YY_INITIAL_VALUE(Value) Value #endif #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN -# define YY_IGNORE_MAYBE_UNINITIALIZED_END +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN +# define YY_IGNORE_MAYBE_UNINITIALIZED_END #endif #ifndef YY_INITIAL_VALUE -# define YY_INITIAL_VALUE(Value) /* Nothing. */ +# define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif - -#if ! defined yyoverflow || YYERROR_VERBOSE +#if !defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ -# ifdef YYSTACK_USE_ALLOCA -# if YYSTACK_USE_ALLOCA -# ifdef __GNUC__ -# define YYSTACK_ALLOC __builtin_alloca -# elif defined __BUILTIN_VA_ARG_INCR -# include /* INFRINGES ON USER NAME SPACE */ -# elif defined _AIX -# define YYSTACK_ALLOC __alloca -# elif defined _MSC_VER -# include /* INFRINGES ON USER NAME SPACE */ -# define alloca _alloca -# else -# define YYSTACK_ALLOC alloca -# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS -# include /* INFRINGES ON USER NAME SPACE */ - /* Use EXIT_SUCCESS as a witness for stdlib.h. */ -# ifndef EXIT_SUCCESS -# define EXIT_SUCCESS 0 -# endif +# ifdef YYSTACK_USE_ALLOCA +# if YYSTACK_USE_ALLOCA +# ifdef __GNUC__ +# define YYSTACK_ALLOC __builtin_alloca +# elif defined __BUILTIN_VA_ARG_INCR +# include /* INFRINGES ON USER NAME SPACE */ +# elif defined _AIX +# define YYSTACK_ALLOC __alloca +# elif defined _MSC_VER +# include /* INFRINGES ON USER NAME SPACE */ +# define alloca _alloca +# else +# define YYSTACK_ALLOC alloca +# if !defined _ALLOCA_H && !defined EXIT_SUCCESS +# include /* INFRINGES ON USER NAME SPACE */ +/* Use EXIT_SUCCESS as a witness for stdlib.h. */ +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 +# endif +# endif +# endif +# endif # endif -# endif -# endif -# endif -# ifdef YYSTACK_ALLOC - /* Pacify GCC's 'empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) -# ifndef YYSTACK_ALLOC_MAXIMUM - /* The OS might guarantee only one guard page at the bottom of the stack, - and a page size can be as small as 4096 bytes. So we cannot safely - invoke alloca (N) if N exceeds 4096. Use a slightly smaller number - to allow for a few compiler-allocated temporary stack slots. */ -# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ -# endif -# else -# define YYSTACK_ALLOC YYMALLOC -# define YYSTACK_FREE YYFREE -# ifndef YYSTACK_ALLOC_MAXIMUM -# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM -# endif -# if (defined __cplusplus && ! defined EXIT_SUCCESS \ - && ! ((defined YYMALLOC || defined malloc) \ - && (defined YYFREE || defined free))) -# include /* INFRINGES ON USER NAME SPACE */ -# ifndef EXIT_SUCCESS -# define EXIT_SUCCESS 0 -# endif -# endif -# ifndef YYMALLOC -# define YYMALLOC malloc -# if ! defined malloc && ! defined EXIT_SUCCESS -void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# ifndef YYFREE -# define YYFREE free -# if ! defined free && ! defined EXIT_SUCCESS -void free (void *); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# endif +# ifdef YYSTACK_ALLOC +/* Pacify GCC's 'empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) \ + do \ + { /* empty */ \ + ; \ + } while (0) +# ifndef YYSTACK_ALLOC_MAXIMUM +/* The OS might guarantee only one guard page at the bottom of the stack, + and a page size can be as small as 4096 bytes. So we cannot safely + invoke alloca (N) if N exceeds 4096. Use a slightly smaller number + to allow for a few compiler-allocated temporary stack slots. */ +# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ +# endif +# else +# define YYSTACK_ALLOC YYMALLOC +# define YYSTACK_FREE YYFREE +# ifndef YYSTACK_ALLOC_MAXIMUM +# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM +# endif +# if (defined __cplusplus && !defined EXIT_SUCCESS && \ + !((defined YYMALLOC || defined malloc) && (defined YYFREE || defined free))) +# include /* INFRINGES ON USER NAME SPACE */ +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 +# endif +# endif +# ifndef YYMALLOC +# define YYMALLOC malloc +# if !defined malloc && !defined EXIT_SUCCESS +void *malloc(YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# ifndef YYFREE +# define YYFREE free +# if !defined free && !defined EXIT_SUCCESS +void free(void *); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# endif #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ - -#if (! defined yyoverflow \ - && (! defined __cplusplus \ - || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) +#if (!defined yyoverflow && \ + (!defined __cplusplus || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { - yytype_int16 yyss_alloc; - YYSTYPE yyvs_alloc; + yytype_int16 yyss_alloc; + YYSTYPE yyvs_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ -# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) +# define YYSTACK_GAP_MAXIMUM (sizeof(union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ -# define YYSTACK_BYTES(N) \ - ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ - + YYSTACK_GAP_MAXIMUM) +# define YYSTACK_BYTES(N) ((N) * (sizeof(yytype_int16) + sizeof(YYSTYPE)) + YYSTACK_GAP_MAXIMUM) -# define YYCOPY_NEEDED 1 +# define YYCOPY_NEEDED 1 /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ -# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ - do \ - { \ - YYSIZE_T yynewbytes; \ - YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ - Stack = &yyptr->Stack_alloc; \ - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / sizeof (*yyptr); \ - } \ - while (0) +# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ + do \ + { \ + YYSIZE_T yynewbytes; \ + YYCOPY(&yyptr->Stack_alloc, Stack, yysize); \ + Stack = &yyptr->Stack_alloc; \ + yynewbytes = yystacksize * sizeof(*Stack) + YYSTACK_GAP_MAXIMUM; \ + yyptr += yynewbytes / sizeof(*yyptr); \ + } while (0) #endif #if defined YYCOPY_NEEDED && YYCOPY_NEEDED /* Copy COUNT objects from SRC to DST. The source and destination do not overlap. */ -# ifndef YYCOPY -# if defined __GNUC__ && 1 < __GNUC__ -# define YYCOPY(Dst, Src, Count) \ - __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) -# else -# define YYCOPY(Dst, Src, Count) \ - do \ - { \ - YYSIZE_T yyi; \ - for (yyi = 0; yyi < (Count); yyi++) \ - (Dst)[yyi] = (Src)[yyi]; \ - } \ - while (0) -# endif -# endif +# ifndef YYCOPY +# if defined __GNUC__ && 1 < __GNUC__ +# define YYCOPY(Dst, Src, Count) __builtin_memcpy(Dst, Src, (Count) * sizeof(*(Src))) +# else +# define YYCOPY(Dst, Src, Count) \ + do \ + { \ + YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (Dst)[yyi] = (Src)[yyi]; \ + } while (0) +# endif +# endif #endif /* !YYCOPY_NEEDED */ /* YYFINAL -- State number of the termination state. */ -#define YYFINAL 15 +#define YYFINAL 15 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 176 +#define YYLAST 176 /* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 28 +#define YYNTOKENS 28 /* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 5 +#define YYNNTS 5 /* YYNRULES -- Number of rules. */ -#define YYNRULES 29 +#define YYNRULES 29 /* YYNSTATES -- Number of states. */ -#define YYNSTATES 55 +#define YYNSTATES 55 -#define YYUNDEFTOK 2 -#define YYMAXUTOK 268 +#define YYUNDEFTOK 2 +#define YYMAXUTOK 268 /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM as returned by yylex, with out-of-bounds checking. */ -#define YYTRANSLATE(YYX) \ - ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) +#define YYTRANSLATE(YYX) ((unsigned)(YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM as returned by yylex. */ -static const yytype_uint8 yytranslate[] = -{ - 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 24, 2, 2, 2, 22, 9, 2, - 26, 27, 20, 18, 2, 19, 2, 21, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 12, 2, 13, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 8, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 7, 2, 25, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, - 5, 6, 10, 11, 14, 15, 16, 17, 23 -}; +static const yytype_uint8 yytranslate[] = { + 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 24, 2, 2, 2, 22, 9, 2, 26, 27, 20, 18, 2, 19, 2, 21, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 12, 2, 13, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 8, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 7, 2, 25, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 10, 11, 14, 15, 16, 17, 23}; #if YYDEBUG - /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ -static const yytype_uint16 yyrline[] = -{ - 0, 115, 115, 122, 123, 134, 134, 155, 155, 176, - 179, 182, 185, 188, 191, 194, 197, 200, 203, 228, - 250, 253, 256, 282, 309, 312, 315, 318, 330, 333 -}; +/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ +static const yytype_uint16 yyrline[] = {0, 113, 113, 120, 121, 132, 132, 153, 153, 174, + 177, 180, 183, 186, 189, 192, 195, 198, 201, 226, + 248, 251, 254, 280, 307, 310, 313, 316, 328, 331}; #endif #if YYDEBUG || YYERROR_VERBOSE || 0 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ -static const char *const yytname[] = -{ - "$end", "error", "$undefined", "TOK_CONST_INT", "TOK_IDENTIFIER", - "TOK_OP_OR", "TOK_OP_AND", "'|'", "'^'", "'&'", "TOK_OP_EQ", "TOK_OP_NE", - "'<'", "'>'", "TOK_OP_LE", "TOK_OP_GE", "TOK_OP_LEFT", "TOK_OP_RIGHT", - "'+'", "'-'", "'*'", "'/'", "'%'", "TOK_UNARY", "'!'", "'~'", "'('", - "')'", "$accept", "input", "expression", "$@1", "$@2", YY_NULLPTR -}; +static const char *const yytname[] = { + "$end", "error", "$undefined", "TOK_CONST_INT", "TOK_IDENTIFIER", + "TOK_OP_OR", "TOK_OP_AND", "'|'", "'^'", "'&'", + "TOK_OP_EQ", "TOK_OP_NE", "'<'", "'>'", "TOK_OP_LE", + "TOK_OP_GE", "TOK_OP_LEFT", "TOK_OP_RIGHT", "'+'", "'-'", + "'*'", "'/'", "'%'", "TOK_UNARY", "'!'", + "'~'", "'('", "')'", "$accept", "input", + "expression", "$@1", "$@2", YY_NULLPTR}; #endif -# ifdef YYPRINT +#ifdef YYPRINT /* YYTOKNUM[NUM] -- (External) token number corresponding to the (internal) symbol number NUM (which must be that of a token). */ -static const yytype_uint16 yytoknum[] = -{ - 0, 256, 257, 258, 259, 260, 261, 124, 94, 38, - 262, 263, 60, 62, 264, 265, 266, 267, 43, 45, - 42, 47, 37, 268, 33, 126, 40, 41 -}; -# endif +static const yytype_uint16 yytoknum[] = {0, 256, 257, 258, 259, 260, 261, 124, 94, 38, + 262, 263, 60, 62, 264, 265, 266, 267, 43, 45, + 42, 47, 37, 268, 33, 126, 40, 41}; +#endif #define YYPACT_NINF -12 -#define yypact_value_is_default(Yystate) \ - (!!((Yystate) == (-12))) +#define yypact_value_is_default(Yystate) (!!((Yystate) == (-12))) #define YYTABLE_NINF -1 -#define yytable_value_is_error(Yytable_value) \ - 0 +#define yytable_value_is_error(Yytable_value) 0 - /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing - STATE-NUM. */ -static const yytype_int16 yypact[] = -{ - 31, -12, -12, 31, 31, 31, 31, 31, 51, 76, - -12, -12, -12, -12, 53, -12, -12, -12, 31, 31, - 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, - 31, 31, 31, 31, -12, 31, 31, 124, 138, 26, - 149, 149, -11, -11, -11, -11, 154, 154, -8, -8, - -12, -12, -12, 93, 109 -}; +/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing + STATE-NUM. */ +static const yytype_int16 yypact[] = { + 31, -12, -12, 31, 31, 31, 31, 31, 51, 76, -12, -12, -12, -12, 53, -12, -12, -12, 31, + 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, -12, 31, 31, 124, + 138, 26, 149, 149, -11, -11, -11, -11, 154, 154, -8, -8, -12, -12, -12, 93, 109}; - /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. - Performed when YYTABLE does not specify something else to do. Zero - means the default is an error. */ -static const yytype_uint8 yydefact[] = -{ - 0, 3, 4, 0, 0, 0, 0, 0, 0, 2, - 28, 27, 25, 26, 0, 1, 5, 7, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 29, 0, 0, 9, 10, 11, - 13, 12, 17, 16, 15, 14, 19, 18, 21, 20, - 24, 23, 22, 6, 8 -}; +/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. + Performed when YYTABLE does not specify something else to do. Zero + means the default is an error. */ +static const yytype_uint8 yydefact[] = {0, 3, 4, 0, 0, 0, 0, 0, 0, 2, 28, 27, 25, 26, + 0, 1, 5, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 29, 0, 0, 9, 10, 11, 13, 12, + 17, 16, 15, 14, 19, 18, 21, 20, 24, 23, 22, 6, 8}; - /* YYPGOTO[NTERM-NUM]. */ -static const yytype_int8 yypgoto[] = -{ - -12, -12, -3, -12, -12 -}; +/* YYPGOTO[NTERM-NUM]. */ +static const yytype_int8 yypgoto[] = {-12, -12, -3, -12, -12}; - /* YYDEFGOTO[NTERM-NUM]. */ -static const yytype_int8 yydefgoto[] = -{ - -1, 8, 9, 35, 36 -}; +/* YYDEFGOTO[NTERM-NUM]. */ +static const yytype_int8 yydefgoto[] = {-1, 8, 9, 35, 36}; - /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If - positive, shift that token. If negative, reduce the rule whose - number is the opposite. If YYTABLE_NINF, syntax error. */ -static const yytype_uint8 yytable[] = -{ - 10, 11, 12, 13, 14, 27, 28, 29, 30, 31, - 32, 33, 31, 32, 33, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, - 52, 0, 53, 54, 1, 2, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 3, - 4, 15, 0, 0, 0, 5, 6, 7, 16, 17, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 0, 0, 0, 0, - 34, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 17, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 18, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 19, 20, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 29, 30, 31, 32, 33 -}; +/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If + positive, shift that token. If negative, reduce the rule whose + number is the opposite. If YYTABLE_NINF, syntax error. */ +static const yytype_uint8 yytable[] = { + 10, 11, 12, 13, 14, 27, 28, 29, 30, 31, 32, 33, 31, 32, 33, 37, 38, 39, 40, 41, 42, 43, 44, + 45, 46, 47, 48, 49, 50, 51, 52, 0, 53, 54, 1, 2, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 3, 4, 15, 0, 0, 0, 5, 6, 7, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 0, 0, 0, 0, 34, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, + 27, 28, 29, 30, 31, 32, 33, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 29, 30, 31, 32, 33}; -static const yytype_int8 yycheck[] = -{ - 3, 4, 5, 6, 7, 16, 17, 18, 19, 20, - 21, 22, 20, 21, 22, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, -1, 35, 36, 3, 4, 10, 11, 12, 13, - 14, 15, 16, 17, 18, 19, 20, 21, 22, 18, - 19, 0, -1, -1, -1, 24, 25, 26, 5, 6, - 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, -1, -1, -1, -1, - 27, 5, 6, 7, 8, 9, 10, 11, 12, 13, - 14, 15, 16, 17, 18, 19, 20, 21, 22, 6, - 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 7, 8, 9, 10, - 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, - 21, 22, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 22, 9, 10, 11, - 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, - 22, 12, 13, 14, 15, 16, 17, 18, 19, 20, - 21, 22, 18, 19, 20, 21, 22 -}; +static const yytype_int8 yycheck[] = { + 3, 4, 5, 6, 7, 16, 17, 18, 19, 20, 21, 22, 20, 21, 22, 18, 19, 20, 21, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, -1, 35, 36, 3, 4, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 18, 19, 0, -1, -1, -1, 24, 25, 26, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 16, 17, 18, 19, 20, 21, 22, -1, -1, -1, -1, 27, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 16, 17, 18, 19, 20, 21, 22, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, + 22, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 8, 9, 10, 11, 12, 13, + 14, 15, 16, 17, 18, 19, 20, 21, 22, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, + 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 18, 19, 20, 21, 22}; - /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing - symbol of state STATE-NUM. */ -static const yytype_uint8 yystos[] = -{ - 0, 3, 4, 18, 19, 24, 25, 26, 29, 30, - 30, 30, 30, 30, 30, 0, 5, 6, 7, 8, - 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 27, 31, 32, 30, 30, 30, - 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, - 30, 30, 30, 30, 30 -}; +/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing + symbol of state STATE-NUM. */ +static const yytype_uint8 yystos[] = {0, 3, 4, 18, 19, 24, 25, 26, 29, 30, 30, 30, 30, 30, + 30, 0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, + 17, 18, 19, 20, 21, 22, 27, 31, 32, 30, 30, 30, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30}; - /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const yytype_uint8 yyr1[] = -{ - 0, 28, 29, 30, 30, 31, 30, 32, 30, 30, - 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, - 30, 30, 30, 30, 30, 30, 30, 30, 30, 30 -}; +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +static const yytype_uint8 yyr1[] = {0, 28, 29, 30, 30, 31, 30, 32, 30, 30, 30, 30, 30, 30, 30, + 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30}; - /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ -static const yytype_uint8 yyr2[] = -{ - 0, 2, 1, 1, 1, 0, 4, 0, 4, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 2, 2, 2, 2, 3 -}; +/* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ +static const yytype_uint8 yyr2[] = {0, 2, 1, 1, 1, 0, 4, 0, 4, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 3}; +#define yyerrok (yyerrstatus = 0) +#define yyclearin (yychar = YYEMPTY) +#define YYEMPTY (-2) +#define YYEOF 0 -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) -#define YYEMPTY (-2) -#define YYEOF 0 +#define YYACCEPT goto yyacceptlab +#define YYABORT goto yyabortlab +#define YYERROR goto yyerrorlab -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrorlab +#define YYRECOVERING() (!!yyerrstatus) - -#define YYRECOVERING() (!!yyerrstatus) - -#define YYBACKUP(Token, Value) \ - do \ - if (yychar == YYEMPTY) \ - { \ - yychar = (Token); \ - yylval = (Value); \ - YYPOPSTACK (yylen); \ - yystate = *yyssp; \ - goto yybackup; \ - } \ - else \ - { \ - yyerror (context, YY_("syntax error: cannot back up")); \ - YYERROR; \ - } \ - while (0) +#define YYBACKUP(Token, Value) \ + do \ + if (yychar == YYEMPTY) \ + { \ + yychar = (Token); \ + yylval = (Value); \ + YYPOPSTACK(yylen); \ + yystate = *yyssp; \ + goto yybackup; \ + } \ + else \ + { \ + yyerror(context, YY_("syntax error: cannot back up")); \ + YYERROR; \ + } \ + while (0) /* Error token number */ -#define YYTERROR 1 -#define YYERRCODE 256 - - +#define YYTERROR 1 +#define YYERRCODE 256 /* Enable debugging if requested. */ #if YYDEBUG -# ifndef YYFPRINTF -# include /* INFRINGES ON USER NAME SPACE */ -# define YYFPRINTF fprintf -# endif +# ifndef YYFPRINTF +# include /* INFRINGES ON USER NAME SPACE */ +# define YYFPRINTF fprintf +# endif -# define YYDPRINTF(Args) \ -do { \ - if (yydebug) \ - YYFPRINTF Args; \ -} while (0) +# define YYDPRINTF(Args) \ + do \ + { \ + if (yydebug) \ + YYFPRINTF Args; \ + } while (0) /* This macro is provided for backward compatibility. */ -#ifndef YY_LOCATION_PRINT -# define YY_LOCATION_PRINT(File, Loc) ((void) 0) -#endif - - -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ -do { \ - if (yydebug) \ - { \ - YYFPRINTF (stderr, "%s ", Title); \ - yy_symbol_print (stderr, \ - Type, Value, context); \ - YYFPRINTF (stderr, "\n"); \ - } \ -} while (0) +# ifndef YY_LOCATION_PRINT +# define YY_LOCATION_PRINT(File, Loc) ((void)0) +# endif +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ + do \ + { \ + if (yydebug) \ + { \ + YYFPRINTF(stderr, "%s ", Title); \ + yy_symbol_print(stderr, Type, Value, context); \ + YYFPRINTF(stderr, "\n"); \ + } \ + } while (0) /*-----------------------------------. | Print this symbol's value on YYO. | `-----------------------------------*/ -static void -yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, Context *context) +static void yy_symbol_value_print(FILE *yyo, + int yytype, + YYSTYPE const *const yyvaluep, + Context *context) { - FILE *yyoutput = yyo; - YYUSE (yyoutput); - YYUSE (context); - if (!yyvaluep) - return; -# ifdef YYPRINT - if (yytype < YYNTOKENS) - YYPRINT (yyo, yytoknum[yytype], *yyvaluep); -# endif - YYUSE (yytype); + FILE *yyoutput = yyo; + YYUSE(yyoutput); + YYUSE(context); + if (!yyvaluep) + return; +# ifdef YYPRINT + if (yytype < YYNTOKENS) + YYPRINT(yyo, yytoknum[yytype], *yyvaluep); +# endif + YYUSE(yytype); } - /*---------------------------. | Print this symbol on YYO. | `---------------------------*/ -static void -yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, Context *context) +static void yy_symbol_print(FILE *yyo, int yytype, YYSTYPE const *const yyvaluep, Context *context) { - YYFPRINTF (yyo, "%s %s (", - yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); + YYFPRINTF(yyo, "%s %s (", yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); - yy_symbol_value_print (yyo, yytype, yyvaluep, context); - YYFPRINTF (yyo, ")"); + yy_symbol_value_print(yyo, yytype, yyvaluep, context); + YYFPRINTF(yyo, ")"); } /*------------------------------------------------------------------. @@ -757,69 +652,64 @@ yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, Context | TOP (included). | `------------------------------------------------------------------*/ -static void -yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) +static void yy_stack_print(yytype_int16 *yybottom, yytype_int16 *yytop) { - YYFPRINTF (stderr, "Stack now"); - for (; yybottom <= yytop; yybottom++) + YYFPRINTF(stderr, "Stack now"); + for (; yybottom <= yytop; yybottom++) { - int yybot = *yybottom; - YYFPRINTF (stderr, " %d", yybot); + int yybot = *yybottom; + YYFPRINTF(stderr, " %d", yybot); } - YYFPRINTF (stderr, "\n"); + YYFPRINTF(stderr, "\n"); } -# define YY_STACK_PRINT(Bottom, Top) \ -do { \ - if (yydebug) \ - yy_stack_print ((Bottom), (Top)); \ -} while (0) - +# define YY_STACK_PRINT(Bottom, Top) \ + do \ + { \ + if (yydebug) \ + yy_stack_print((Bottom), (Top)); \ + } while (0) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ -static void -yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule, Context *context) +static void yy_reduce_print(yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule, Context *context) { - unsigned long yylno = yyrline[yyrule]; - int yynrhs = yyr2[yyrule]; - int yyi; - YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", - yyrule - 1, yylno); - /* The symbols being reduced. */ - for (yyi = 0; yyi < yynrhs; yyi++) + unsigned long yylno = yyrline[yyrule]; + int yynrhs = yyr2[yyrule]; + int yyi; + YYFPRINTF(stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); + /* The symbols being reduced. */ + for (yyi = 0; yyi < yynrhs; yyi++) { - YYFPRINTF (stderr, " $%d = ", yyi + 1); - yy_symbol_print (stderr, - yystos[yyssp[yyi + 1 - yynrhs]], - &yyvsp[(yyi + 1) - (yynrhs)] - , context); - YYFPRINTF (stderr, "\n"); + YYFPRINTF(stderr, " $%d = ", yyi + 1); + yy_symbol_print(stderr, yystos[yyssp[yyi + 1 - yynrhs]], &yyvsp[(yyi + 1) - (yynrhs)], + context); + YYFPRINTF(stderr, "\n"); } } -# define YY_REDUCE_PRINT(Rule) \ -do { \ - if (yydebug) \ - yy_reduce_print (yyssp, yyvsp, Rule, context); \ -} while (0) +# define YY_REDUCE_PRINT(Rule) \ + do \ + { \ + if (yydebug) \ + yy_reduce_print(yyssp, yyvsp, Rule, context); \ + } while (0) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ -# define YYDPRINTF(Args) -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) -# define YY_STACK_PRINT(Bottom, Top) -# define YY_REDUCE_PRINT(Rule) +# define YYDPRINTF(Args) +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) +# define YY_STACK_PRINT(Bottom, Top) +# define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ - /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH -# define YYINITDEPTH 200 +# define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only @@ -830,49 +720,46 @@ int yydebug; evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH -# define YYMAXDEPTH 10000 +# define YYMAXDEPTH 10000 #endif - #if YYERROR_VERBOSE -# ifndef yystrlen -# if defined __GLIBC__ && defined _STRING_H -# define yystrlen strlen -# else +# ifndef yystrlen +# if defined __GLIBC__ && defined _STRING_H +# define yystrlen strlen +# else /* Return the length of YYSTR. */ -static YYSIZE_T -yystrlen (const char *yystr) +static YYSIZE_T yystrlen(const char *yystr) { - YYSIZE_T yylen; - for (yylen = 0; yystr[yylen]; yylen++) - continue; - return yylen; + YYSIZE_T yylen; + for (yylen = 0; yystr[yylen]; yylen++) + continue; + return yylen; } -# endif -# endif +# endif +# endif -# ifndef yystpcpy -# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE -# define yystpcpy stpcpy -# else +# ifndef yystpcpy +# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE +# define yystpcpy stpcpy +# else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ -static char * -yystpcpy (char *yydest, const char *yysrc) +static char *yystpcpy(char *yydest, const char *yysrc) { - char *yyd = yydest; - const char *yys = yysrc; + char *yyd = yydest; + const char *yys = yysrc; - while ((*yyd++ = *yys++) != '\0') - continue; + while ((*yyd++ = *yys++) != '\0') + continue; - return yyd - 1; + return yyd - 1; } -# endif -# endif +# endif +# endif -# ifndef yytnamerr +# ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string @@ -880,48 +767,47 @@ yystpcpy (char *yydest, const char *yysrc) backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ -static YYSIZE_T -yytnamerr (char *yyres, const char *yystr) +static YYSIZE_T yytnamerr(char *yyres, const char *yystr) { - if (*yystr == '"') + if (*yystr == '"') { - YYSIZE_T yyn = 0; - char const *yyp = yystr; + YYSIZE_T yyn = 0; + char const *yyp = yystr; - for (;;) - switch (*++yyp) - { - case '\'': - case ',': - goto do_not_strip_quotes; + for (;;) + switch (*++yyp) + { + case '\'': + case ',': + goto do_not_strip_quotes; - case '\\': - if (*++yyp != '\\') - goto do_not_strip_quotes; - else - goto append; + case '\\': + if (*++yyp != '\\') + goto do_not_strip_quotes; + else + goto append; - append: - default: - if (yyres) - yyres[yyn] = *yyp; - yyn++; - break; + append: + default: + if (yyres) + yyres[yyn] = *yyp; + yyn++; + break; - case '"': - if (yyres) - yyres[yyn] = '\0'; - return yyn; - } - do_not_strip_quotes: ; + case '"': + if (yyres) + yyres[yyn] = '\0'; + return yyn; + } + do_not_strip_quotes:; } - if (! yyres) - return yystrlen (yystr); + if (!yyres) + return yystrlen(yystr); - return (YYSIZE_T) (yystpcpy (yyres, yystr) - yyres); + return (YYSIZE_T)(yystpcpy(yyres, yystr) - yyres); } -# endif +# endif /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message about the unexpected token YYTOKEN for the state stack whose top is @@ -931,133 +817,133 @@ yytnamerr (char *yyres, const char *yystr) not large enough to hold the message. In that case, also set *YYMSG_ALLOC to the required number of bytes. Return 2 if the required number of bytes is too large to store. */ -static int -yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, - yytype_int16 *yyssp, int yytoken) +static int yysyntax_error(YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken) { - YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); - YYSIZE_T yysize = yysize0; - enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; - /* Internationalized format string. */ - const char *yyformat = YY_NULLPTR; - /* Arguments of yyformat. */ - char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; - /* Number of reported tokens (one for the "unexpected", one per - "expected"). */ - int yycount = 0; - - /* There are many possibilities here to consider: - - If this state is a consistent state with a default action, then - the only way this function was invoked is if the default action - is an error action. In that case, don't check for expected - tokens because there are none. - - The only way there can be no lookahead present (in yychar) is if - this state is a consistent state with a default action. Thus, - detecting the absence of a lookahead is sufficient to determine - that there is no unexpected or expected token to report. In that - case, just report a simple "syntax error". - - Don't assume there isn't a lookahead just because this state is a - consistent state with a default action. There might have been a - previous inconsistent state, consistent state with a non-default - action, or user semantic action that manipulated yychar. - - Of course, the expected token list depends on states to have - correct lookahead information, and it depends on the parser not - to perform extra reductions after fetching a lookahead from the - scanner and before detecting a syntax error. Thus, state merging - (from LALR or IELR) and default reductions corrupt the expected - token list. However, the list is correct for canonical LR with - one exception: it will still contain any token that will not be - accepted due to an error action in a later state. - */ - if (yytoken != YYEMPTY) + YYSIZE_T yysize0 = yytnamerr(YY_NULLPTR, yytname[yytoken]); + YYSIZE_T yysize = yysize0; + enum { - int yyn = yypact[*yyssp]; - yyarg[yycount++] = yytname[yytoken]; - if (!yypact_value_is_default (yyn)) - { - /* Start YYX at -YYN if negative to avoid negative indexes in - YYCHECK. In other words, skip the first -YYN actions for - this state because they are default actions. */ - int yyxbegin = yyn < 0 ? -yyn : 0; - /* Stay within bounds of both yycheck and yytname. */ - int yychecklim = YYLAST - yyn + 1; - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; - int yyx; + YYERROR_VERBOSE_ARGS_MAXIMUM = 5 + }; + /* Internationalized format string. */ + const char *yyformat = YY_NULLPTR; + /* Arguments of yyformat. */ + char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; + /* Number of reported tokens (one for the "unexpected", one per + "expected"). */ + int yycount = 0; - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR - && !yytable_value_is_error (yytable[yyx + yyn])) - { - if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) - { - yycount = 1; - yysize = yysize0; - break; - } - yyarg[yycount++] = yytname[yyx]; + /* There are many possibilities here to consider: + - If this state is a consistent state with a default action, then + the only way this function was invoked is if the default action + is an error action. In that case, don't check for expected + tokens because there are none. + - The only way there can be no lookahead present (in yychar) is if + this state is a consistent state with a default action. Thus, + detecting the absence of a lookahead is sufficient to determine + that there is no unexpected or expected token to report. In that + case, just report a simple "syntax error". + - Don't assume there isn't a lookahead just because this state is a + consistent state with a default action. There might have been a + previous inconsistent state, consistent state with a non-default + action, or user semantic action that manipulated yychar. + - Of course, the expected token list depends on states to have + correct lookahead information, and it depends on the parser not + to perform extra reductions after fetching a lookahead from the + scanner and before detecting a syntax error. Thus, state merging + (from LALR or IELR) and default reductions corrupt the expected + token list. However, the list is correct for canonical LR with + one exception: it will still contain any token that will not be + accepted due to an error action in a later state. + */ + if (yytoken != YYEMPTY) + { + int yyn = yypact[*yyssp]; + yyarg[yycount++] = yytname[yytoken]; + if (!yypact_value_is_default(yyn)) + { + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. In other words, skip the first -YYN actions for + this state because they are default actions. */ + int yyxbegin = yyn < 0 ? -yyn : 0; + /* Stay within bounds of both yycheck and yytname. */ + int yychecklim = YYLAST - yyn + 1; + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; + int yyx; + + for (yyx = yyxbegin; yyx < yyxend; ++yyx) + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR && + !yytable_value_is_error(yytable[yyx + yyn])) { - YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); - if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) - yysize = yysize1; - else - return 2; + if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) + { + yycount = 1; + yysize = yysize0; + break; + } + yyarg[yycount++] = yytname[yyx]; + { + YYSIZE_T yysize1 = yysize + yytnamerr(YY_NULLPTR, yytname[yyx]); + if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) + yysize = yysize1; + else + return 2; + } } - } } } - switch (yycount) + switch (yycount) { -# define YYCASE_(N, S) \ - case N: \ - yyformat = S; \ - break - default: /* Avoid compiler warnings. */ - YYCASE_(0, YY_("syntax error")); - YYCASE_(1, YY_("syntax error, unexpected %s")); - YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); - YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); - YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); - YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); -# undef YYCASE_ +# define YYCASE_(N, S) \ + case N: \ + yyformat = S; \ + break + default: /* Avoid compiler warnings. */ + YYCASE_(0, YY_("syntax error")); + YYCASE_(1, YY_("syntax error, unexpected %s")); + YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); + YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); + YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); + YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); +# undef YYCASE_ } - { - YYSIZE_T yysize1 = yysize + yystrlen (yyformat); - if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) - yysize = yysize1; - else - return 2; - } - - if (*yymsg_alloc < yysize) { - *yymsg_alloc = 2 * yysize; - if (! (yysize <= *yymsg_alloc - && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) - *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; - return 1; + YYSIZE_T yysize1 = yysize + yystrlen(yyformat); + if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) + yysize = yysize1; + else + return 2; } - /* Avoid sprintf, as that infringes on the user's name space. - Don't have undefined behavior even if the translation - produced a string with the wrong number of "%s"s. */ - { - char *yyp = *yymsg; - int yyi = 0; - while ((*yyp = *yyformat) != '\0') - if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) - { - yyp += yytnamerr (yyp, yyarg[yyi++]); - yyformat += 2; - } - else - { - yyp++; - yyformat++; - } - } - return 0; + if (*yymsg_alloc < yysize) + { + *yymsg_alloc = 2 * yysize; + if (!(yysize <= *yymsg_alloc && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) + *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; + return 1; + } + + /* Avoid sprintf, as that infringes on the user's name space. + Don't have undefined behavior even if the translation + produced a string with the wrong number of "%s"s. */ + { + char *yyp = *yymsg; + int yyi = 0; + while ((*yyp = *yyformat) != '\0') + if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) + { + yyp += yytnamerr(yyp, yyarg[yyi++]); + yyformat += 2; + } + else + { + yyp++; + yyformat++; + } + } + return 0; } #endif /* YYERROR_VERBOSE */ @@ -1065,39 +951,33 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, | Release the memory associated to this symbol. | `-----------------------------------------------*/ -static void -yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, Context *context) +static void yydestruct(const char *yymsg, int yytype, YYSTYPE *yyvaluep, Context *context) { - YYUSE (yyvaluep); - YYUSE (context); - if (!yymsg) - yymsg = "Deleting"; - YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); + YYUSE(yyvaluep); + YYUSE(context); + if (!yymsg) + yymsg = "Deleting"; + YY_SYMBOL_PRINT(yymsg, yytype, yyvaluep, yylocationp); - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YYUSE (yytype); - YY_IGNORE_MAYBE_UNINITIALIZED_END + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + YYUSE(yytype); + YY_IGNORE_MAYBE_UNINITIALIZED_END } - - - /*----------. | yyparse. | `----------*/ -int -yyparse (Context *context) +int yyparse(Context *context) { -/* The lookahead symbol. */ -int yychar; + /* The lookahead symbol. */ + int yychar; - -/* The semantic value of the lookahead symbol. */ -/* Default value used for initialization, for pacifying older GCCs - or non-GCC compilers. */ -YY_INITIAL_VALUE (static YYSTYPE yyval_default;) -YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); + /* The semantic value of the lookahead symbol. */ + /* Default value used for initialization, for pacifying older GCCs + or non-GCC compilers. */ + YY_INITIAL_VALUE(static YYSTYPE yyval_default;) + YYSTYPE yylval YY_INITIAL_VALUE(= yyval_default); /* Number of syntax errors so far. */ int yynerrs; @@ -1125,808 +1005,774 @@ YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); YYSIZE_T yystacksize; - int yyn; - int yyresult; - /* Lookahead token as an internal (translated) token number. */ - int yytoken = 0; - /* The variables used to return semantic value and location from the - action routines. */ - YYSTYPE yyval; + int yyn; + int yyresult; + /* Lookahead token as an internal (translated) token number. */ + int yytoken = 0; + /* The variables used to return semantic value and location from the + action routines. */ + YYSTYPE yyval; #if YYERROR_VERBOSE - /* Buffer for error messages, and its allocated size. */ - char yymsgbuf[128]; - char *yymsg = yymsgbuf; - YYSIZE_T yymsg_alloc = sizeof yymsgbuf; + /* Buffer for error messages, and its allocated size. */ + char yymsgbuf[128]; + char *yymsg = yymsgbuf; + YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif -#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) +#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) - /* The number of symbols on the RHS of the reduced rule. - Keep to zero when no symbol should be popped. */ - int yylen = 0; + /* The number of symbols on the RHS of the reduced rule. + Keep to zero when no symbol should be popped. */ + int yylen = 0; - yyssp = yyss = yyssa; - yyvsp = yyvs = yyvsa; - yystacksize = YYINITDEPTH; + yyssp = yyss = yyssa; + yyvsp = yyvs = yyvsa; + yystacksize = YYINITDEPTH; - YYDPRINTF ((stderr, "Starting parse\n")); - - yystate = 0; - yyerrstatus = 0; - yynerrs = 0; - yychar = YYEMPTY; /* Cause a token to be read. */ - goto yysetstate; + YYDPRINTF((stderr, "Starting parse\n")); + yystate = 0; + yyerrstatus = 0; + yynerrs = 0; + yychar = YYEMPTY; /* Cause a token to be read. */ + goto yysetstate; /*------------------------------------------------------------. | yynewstate -- push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: - /* In all cases, when you get here, the value and location stacks - have just been pushed. So pushing a state here evens the stacks. */ - yyssp++; - + /* In all cases, when you get here, the value and location stacks + have just been pushed. So pushing a state here evens the stacks. */ + yyssp++; /*--------------------------------------------------------------------. | yynewstate -- set current state (the top of the stack) to yystate. | `--------------------------------------------------------------------*/ yysetstate: - *yyssp = (yytype_int16) yystate; + *yyssp = (yytype_int16)yystate; - if (yyss + yystacksize - 1 <= yyssp) + if (yyss + yystacksize - 1 <= yyssp) #if !defined yyoverflow && !defined YYSTACK_RELOCATE - goto yyexhaustedlab; + goto yyexhaustedlab; #else { - /* Get the current used size of the three stacks, in elements. */ - YYSIZE_T yysize = (YYSIZE_T) (yyssp - yyss + 1); + /* Get the current used size of the three stacks, in elements. */ + YYSIZE_T yysize = (YYSIZE_T)(yyssp - yyss + 1); -# if defined yyoverflow - { - /* Give user a chance to reallocate the stack. Use copies of - these so that the &'s don't force the real ones into - memory. */ - YYSTYPE *yyvs1 = yyvs; - yytype_int16 *yyss1 = yyss; +# if defined yyoverflow + { + /* Give user a chance to reallocate the stack. Use copies of + these so that the &'s don't force the real ones into + memory. */ + YYSTYPE *yyvs1 = yyvs; + yytype_int16 *yyss1 = yyss; - /* Each stack pointer address is followed by the size of the - data in use in that stack, in bytes. This used to be a - conditional around just the two extra args, but that might - be undefined if yyoverflow is a macro. */ - yyoverflow (YY_("memory exhausted"), - &yyss1, yysize * sizeof (*yyssp), - &yyvs1, yysize * sizeof (*yyvsp), - &yystacksize); - yyss = yyss1; - yyvs = yyvs1; - } -# else /* defined YYSTACK_RELOCATE */ - /* Extend the stack our own way. */ - if (YYMAXDEPTH <= yystacksize) - goto yyexhaustedlab; - yystacksize *= 2; - if (YYMAXDEPTH < yystacksize) - yystacksize = YYMAXDEPTH; + /* Each stack pointer address is followed by the size of the + data in use in that stack, in bytes. This used to be a + conditional around just the two extra args, but that might + be undefined if yyoverflow is a macro. */ + yyoverflow(YY_("memory exhausted"), &yyss1, yysize * sizeof(*yyssp), &yyvs1, + yysize * sizeof(*yyvsp), &yystacksize); + yyss = yyss1; + yyvs = yyvs1; + } +# else /* defined YYSTACK_RELOCATE */ + /* Extend the stack our own way. */ + if (YYMAXDEPTH <= yystacksize) + goto yyexhaustedlab; + yystacksize *= 2; + if (YYMAXDEPTH < yystacksize) + yystacksize = YYMAXDEPTH; - { - yytype_int16 *yyss1 = yyss; - union yyalloc *yyptr = - (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); - if (! yyptr) - goto yyexhaustedlab; - YYSTACK_RELOCATE (yyss_alloc, yyss); - YYSTACK_RELOCATE (yyvs_alloc, yyvs); -# undef YYSTACK_RELOCATE - if (yyss1 != yyssa) - YYSTACK_FREE (yyss1); - } -# endif + { + yytype_int16 *yyss1 = yyss; + union yyalloc *yyptr = (union yyalloc *)YYSTACK_ALLOC(YYSTACK_BYTES(yystacksize)); + if (!yyptr) + goto yyexhaustedlab; + YYSTACK_RELOCATE(yyss_alloc, yyss); + YYSTACK_RELOCATE(yyvs_alloc, yyvs); +# undef YYSTACK_RELOCATE + if (yyss1 != yyssa) + YYSTACK_FREE(yyss1); + } +# endif - yyssp = yyss + yysize - 1; - yyvsp = yyvs + yysize - 1; + yyssp = yyss + yysize - 1; + yyvsp = yyvs + yysize - 1; - YYDPRINTF ((stderr, "Stack size increased to %lu\n", - (unsigned long) yystacksize)); + YYDPRINTF((stderr, "Stack size increased to %lu\n", (unsigned long)yystacksize)); - if (yyss + yystacksize - 1 <= yyssp) - YYABORT; + if (yyss + yystacksize - 1 <= yyssp) + YYABORT; } #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */ - YYDPRINTF ((stderr, "Entering state %d\n", yystate)); + YYDPRINTF((stderr, "Entering state %d\n", yystate)); - if (yystate == YYFINAL) - YYACCEPT; - - goto yybackup; + if (yystate == YYFINAL) + YYACCEPT; + goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: - /* Do appropriate processing given the current state. Read a - lookahead token if we need one and don't already have one. */ + /* Do appropriate processing given the current state. Read a + lookahead token if we need one and don't already have one. */ - /* First try to decide what to do without reference to lookahead token. */ - yyn = yypact[yystate]; - if (yypact_value_is_default (yyn)) - goto yydefault; + /* First try to decide what to do without reference to lookahead token. */ + yyn = yypact[yystate]; + if (yypact_value_is_default(yyn)) + goto yydefault; - /* Not known => get a lookahead token if don't already have one. */ + /* Not known => get a lookahead token if don't already have one. */ - /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ - if (yychar == YYEMPTY) + /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ + if (yychar == YYEMPTY) { - YYDPRINTF ((stderr, "Reading a token: ")); - yychar = yylex (&yylval, context); + YYDPRINTF((stderr, "Reading a token: ")); + yychar = yylex(&yylval, context); } - if (yychar <= YYEOF) + if (yychar <= YYEOF) { - yychar = yytoken = YYEOF; - YYDPRINTF ((stderr, "Now at end of input.\n")); + yychar = yytoken = YYEOF; + YYDPRINTF((stderr, "Now at end of input.\n")); } - else + else { - yytoken = YYTRANSLATE (yychar); - YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); + yytoken = YYTRANSLATE(yychar); + YY_SYMBOL_PRINT("Next token is", yytoken, &yylval, &yylloc); } - /* If the proper action on seeing token YYTOKEN is to reduce or to - detect an error, take that action. */ - yyn += yytoken; - if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) - goto yydefault; - yyn = yytable[yyn]; - if (yyn <= 0) + /* If the proper action on seeing token YYTOKEN is to reduce or to + detect an error, take that action. */ + yyn += yytoken; + if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) + goto yydefault; + yyn = yytable[yyn]; + if (yyn <= 0) { - if (yytable_value_is_error (yyn)) - goto yyerrlab; - yyn = -yyn; - goto yyreduce; + if (yytable_value_is_error(yyn)) + goto yyerrlab; + yyn = -yyn; + goto yyreduce; } - /* Count tokens shifted since error; after three, turn off error - status. */ - if (yyerrstatus) - yyerrstatus--; + /* Count tokens shifted since error; after three, turn off error + status. */ + if (yyerrstatus) + yyerrstatus--; - /* Shift the lookahead token. */ - YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); + /* Shift the lookahead token. */ + YY_SYMBOL_PRINT("Shifting", yytoken, &yylval, &yylloc); - /* Discard the shifted token. */ - yychar = YYEMPTY; + /* Discard the shifted token. */ + yychar = YYEMPTY; - yystate = yyn; - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - *++yyvsp = yylval; - YY_IGNORE_MAYBE_UNINITIALIZED_END - - goto yynewstate; + yystate = yyn; + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END + goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: - yyn = yydefact[yystate]; - if (yyn == 0) - goto yyerrlab; - goto yyreduce; - + yyn = yydefact[yystate]; + if (yyn == 0) + goto yyerrlab; + goto yyreduce; /*-----------------------------. | yyreduce -- do a reduction. | `-----------------------------*/ yyreduce: - /* yyn is the number of a rule to reduce with. */ - yylen = yyr2[yyn]; + /* yyn is the number of a rule to reduce with. */ + yylen = yyr2[yyn]; - /* If YYLEN is nonzero, implement the default value of the action: - '$$ = $1'. + /* If YYLEN is nonzero, implement the default value of the action: + '$$ = $1'. - Otherwise, the following line sets YYVAL to garbage. - This behavior is undocumented and Bison - users should not rely upon it. Assigning to YYVAL - unconditionally makes the parser a bit smaller, and it avoids a - GCC warning that YYVAL may be used uninitialized. */ - yyval = yyvsp[1-yylen]; + Otherwise, the following line sets YYVAL to garbage. + This behavior is undocumented and Bison + users should not rely upon it. Assigning to YYVAL + unconditionally makes the parser a bit smaller, and it avoids a + GCC warning that YYVAL may be used uninitialized. */ + yyval = yyvsp[1 - yylen]; - - YY_REDUCE_PRINT (yyn); - switch (yyn) + YY_REDUCE_PRINT(yyn); + switch (yyn) { case 2: - { - *(context->result) = static_cast(yyvsp[0]); - YYACCEPT; - } - - break; - - case 4: - - { - if (!context->isIgnoringErrors()) { - // This rule should be applied right after the token is lexed, so we can - // refer to context->token in the error message. - context->diagnostics->report(context->errorSettings.unexpectedIdentifier, - context->token->location, context->token->text); - *(context->valid) = false; + *(context->result) = static_cast(yyvsp[0]); + YYACCEPT; } - yyval = yyvsp[0]; - } - break; + break; - case 5: + case 4: - { - if (yyvsp[-1] != 0) - { - // Ignore errors in the short-circuited part of the expression. - // ESSL3.00 section 3.4: - // If an operand is not evaluated, the presence of undefined identifiers - // in the operand will not cause an error. - // Unevaluated division by zero should not cause an error either. - context->startIgnoreErrors(); - } - } - - break; - - case 6: - - { - if (yyvsp[-3] != 0) - { - context->endIgnoreErrors(); - yyval = static_cast(1); - } - else - { - yyval = yyvsp[-3] || yyvsp[0]; - } - } - - break; - - case 7: - - { - if (yyvsp[-1] == 0) - { - // Ignore errors in the short-circuited part of the expression. - // ESSL3.00 section 3.4: - // If an operand is not evaluated, the presence of undefined identifiers - // in the operand will not cause an error. - // Unevaluated division by zero should not cause an error either. - context->startIgnoreErrors(); - } - } - - break; - - case 8: - - { - if (yyvsp[-3] == 0) - { - context->endIgnoreErrors(); - yyval = static_cast(0); - } - else - { - yyval = yyvsp[-3] && yyvsp[0]; - } - } - - break; - - case 9: - - { - yyval = yyvsp[-2] | yyvsp[0]; - } - - break; - - case 10: - - { - yyval = yyvsp[-2] ^ yyvsp[0]; - } - - break; - - case 11: - - { - yyval = yyvsp[-2] & yyvsp[0]; - } - - break; - - case 12: - - { - yyval = yyvsp[-2] != yyvsp[0]; - } - - break; - - case 13: - - { - yyval = yyvsp[-2] == yyvsp[0]; - } - - break; - - case 14: - - { - yyval = yyvsp[-2] >= yyvsp[0]; - } - - break; - - case 15: - - { - yyval = yyvsp[-2] <= yyvsp[0]; - } - - break; - - case 16: - - { - yyval = yyvsp[-2] > yyvsp[0]; - } - - break; - - case 17: - - { - yyval = yyvsp[-2] < yyvsp[0]; - } - - break; - - case 18: - - { - if (yyvsp[0] < 0 || yyvsp[0] > 31) { if (!context->isIgnoringErrors()) { - std::ostringstream stream; - stream << yyvsp[-2] << " >> " << yyvsp[0]; - std::string text = stream.str(); - context->diagnostics->report(angle::pp::Diagnostics::PP_UNDEFINED_SHIFT, - context->token->location, - text.c_str()); + // This rule should be applied right after the token is lexed, so we can + // refer to context->token in the error message. + context->diagnostics->report(context->errorSettings.unexpectedIdentifier, + context->token->location, context->token->text); *(context->valid) = false; } - yyval = static_cast(0); + yyval = yyvsp[0]; } - else if (yyvsp[-2] < 0) - { - // Logical shift right. - yyval = static_cast(static_cast(yyvsp[-2]) >> yyvsp[0]); - } - else - { - yyval = yyvsp[-2] >> yyvsp[0]; - } - } - break; + break; - case 19: + case 5: - { - if (yyvsp[0] < 0 || yyvsp[0] > 31) { - if (!context->isIgnoringErrors()) + if (yyvsp[-1] != 0) { - std::ostringstream stream; - stream << yyvsp[-2] << " << " << yyvsp[0]; - std::string text = stream.str(); - context->diagnostics->report(angle::pp::Diagnostics::PP_UNDEFINED_SHIFT, - context->token->location, - text.c_str()); - *(context->valid) = false; + // Ignore errors in the short-circuited part of the expression. + // ESSL3.00 section 3.4: + // If an operand is not evaluated, the presence of undefined identifiers + // in the operand will not cause an error. + // Unevaluated division by zero should not cause an error either. + context->startIgnoreErrors(); } - yyval = static_cast(0); } - else + + break; + + case 6: + { - // Logical shift left. Casting to unsigned is needed to ensure there's no signed integer - // overflow, which some tools treat as an error. - yyval = static_cast(static_cast(yyvsp[-2]) << yyvsp[0]); - } - } - - break; - - case 20: - - { - yyval = gl::WrappingDiff(yyvsp[-2], yyvsp[0]); - } - - break; - - case 21: - - { - yyval = gl::WrappingSum(yyvsp[-2], yyvsp[0]); - } - - break; - - case 22: - - { - if (yyvsp[0] == 0) - { - if (!context->isIgnoringErrors()) + if (yyvsp[-3] != 0) { - std::ostringstream stream; - stream << yyvsp[-2] << " % " << yyvsp[0]; - std::string text = stream.str(); - context->diagnostics->report(angle::pp::Diagnostics::PP_DIVISION_BY_ZERO, - context->token->location, - text.c_str()); - *(context->valid) = false; + context->endIgnoreErrors(); + yyval = static_cast(1); } - yyval = static_cast(0); - } - else if ((yyvsp[-2] == std::numeric_limits::min()) && (yyvsp[0] == -1)) - { - // Check for the special case where the minimum representable number is - // divided by -1. If left alone this has undefined results. - yyval = 0; - } - else - { - yyval = yyvsp[-2] % yyvsp[0]; - } - } - - break; - - case 23: - - { - if (yyvsp[0] == 0) - { - if (!context->isIgnoringErrors()) + else { - std::ostringstream stream; - stream << yyvsp[-2] << " / " << yyvsp[0]; - std::string text = stream.str(); - context->diagnostics->report(angle::pp::Diagnostics::PP_DIVISION_BY_ZERO, - context->token->location, - text.c_str()); - *(context->valid) = false; + yyval = yyvsp[-3] || yyvsp[0]; } - yyval = static_cast(0); } - else if ((yyvsp[-2] == std::numeric_limits::min()) && (yyvsp[0] == -1)) + + break; + + case 7: + { - // Check for the special case where the minimum representable number is - // divided by -1. If left alone this leads to integer overflow in C++, which - // has undefined results. - yyval = std::numeric_limits::max(); + if (yyvsp[-1] == 0) + { + // Ignore errors in the short-circuited part of the expression. + // ESSL3.00 section 3.4: + // If an operand is not evaluated, the presence of undefined identifiers + // in the operand will not cause an error. + // Unevaluated division by zero should not cause an error either. + context->startIgnoreErrors(); + } } - else + + break; + + case 8: + { - yyval = yyvsp[-2] / yyvsp[0]; + if (yyvsp[-3] == 0) + { + context->endIgnoreErrors(); + yyval = static_cast(0); + } + else + { + yyval = yyvsp[-3] && yyvsp[0]; + } } - } - break; + break; - case 24: + case 9: - { - yyval = gl::WrappingMul(yyvsp[-2], yyvsp[0]); - } - - break; - - case 25: - - { - yyval = ! yyvsp[0]; - } - - break; - - case 26: - - { - yyval = ~ yyvsp[0]; - } - - break; - - case 27: - - { - // Check for negation of minimum representable integer to prevent undefined signed int - // overflow. - if (yyvsp[0] == std::numeric_limits::min()) { - yyval = std::numeric_limits::min(); + yyval = yyvsp[-2] | yyvsp[0]; } - else + + break; + + case 10: + { - yyval = -yyvsp[0]; + yyval = yyvsp[-2] ^ yyvsp[0]; } + + break; + + case 11: + + { + yyval = yyvsp[-2] & yyvsp[0]; + } + + break; + + case 12: + + { + yyval = yyvsp[-2] != yyvsp[0]; + } + + break; + + case 13: + + { + yyval = yyvsp[-2] == yyvsp[0]; + } + + break; + + case 14: + + { + yyval = yyvsp[-2] >= yyvsp[0]; + } + + break; + + case 15: + + { + yyval = yyvsp[-2] <= yyvsp[0]; + } + + break; + + case 16: + + { + yyval = yyvsp[-2] > yyvsp[0]; + } + + break; + + case 17: + + { + yyval = yyvsp[-2] < yyvsp[0]; + } + + break; + + case 18: + + { + if (yyvsp[0] < 0 || yyvsp[0] > 31) + { + if (!context->isIgnoringErrors()) + { + std::ostringstream stream; + stream << yyvsp[-2] << " >> " << yyvsp[0]; + std::string text = stream.str(); + context->diagnostics->report(angle::pp::Diagnostics::PP_UNDEFINED_SHIFT, + context->token->location, text.c_str()); + *(context->valid) = false; + } + yyval = static_cast(0); + } + else if (yyvsp[-2] < 0) + { + // Logical shift right. + yyval = static_cast(static_cast(yyvsp[-2]) >> yyvsp[0]); + } + else + { + yyval = yyvsp[-2] >> yyvsp[0]; + } + } + + break; + + case 19: + + { + if (yyvsp[0] < 0 || yyvsp[0] > 31) + { + if (!context->isIgnoringErrors()) + { + std::ostringstream stream; + stream << yyvsp[-2] << " << " << yyvsp[0]; + std::string text = stream.str(); + context->diagnostics->report(angle::pp::Diagnostics::PP_UNDEFINED_SHIFT, + context->token->location, text.c_str()); + *(context->valid) = false; + } + yyval = static_cast(0); + } + else + { + // Logical shift left. Casting to unsigned is needed to ensure there's no signed + // integer overflow, which some tools treat as an error. + yyval = static_cast(static_cast(yyvsp[-2]) << yyvsp[0]); + } + } + + break; + + case 20: + + { + yyval = gl::WrappingDiff(yyvsp[-2], yyvsp[0]); + } + + break; + + case 21: + + { + yyval = gl::WrappingSum(yyvsp[-2], yyvsp[0]); + } + + break; + + case 22: + + { + if (yyvsp[0] == 0) + { + if (!context->isIgnoringErrors()) + { + std::ostringstream stream; + stream << yyvsp[-2] << " % " << yyvsp[0]; + std::string text = stream.str(); + context->diagnostics->report(angle::pp::Diagnostics::PP_DIVISION_BY_ZERO, + context->token->location, text.c_str()); + *(context->valid) = false; + } + yyval = static_cast(0); + } + else if ((yyvsp[-2] == std::numeric_limits::min()) && (yyvsp[0] == -1)) + { + // Check for the special case where the minimum representable number is + // divided by -1. If left alone this has undefined results. + yyval = 0; + } + else + { + yyval = yyvsp[-2] % yyvsp[0]; + } + } + + break; + + case 23: + + { + if (yyvsp[0] == 0) + { + if (!context->isIgnoringErrors()) + { + std::ostringstream stream; + stream << yyvsp[-2] << " / " << yyvsp[0]; + std::string text = stream.str(); + context->diagnostics->report(angle::pp::Diagnostics::PP_DIVISION_BY_ZERO, + context->token->location, text.c_str()); + *(context->valid) = false; + } + yyval = static_cast(0); + } + else if ((yyvsp[-2] == std::numeric_limits::min()) && (yyvsp[0] == -1)) + { + // Check for the special case where the minimum representable number is + // divided by -1. If left alone this leads to integer overflow in C++, which + // has undefined results. + yyval = std::numeric_limits::max(); + } + else + { + yyval = yyvsp[-2] / yyvsp[0]; + } + } + + break; + + case 24: + + { + yyval = gl::WrappingMul(yyvsp[-2], yyvsp[0]); + } + + break; + + case 25: + + { + yyval = !yyvsp[0]; + } + + break; + + case 26: + + { + yyval = ~yyvsp[0]; + } + + break; + + case 27: + + { + // Check for negation of minimum representable integer to prevent undefined signed int + // overflow. + if (yyvsp[0] == std::numeric_limits::min()) + { + yyval = std::numeric_limits::min(); + } + else + { + yyval = -yyvsp[0]; + } + } + + break; + + case 28: + + { + yyval = +yyvsp[0]; + } + + break; + + case 29: + + { + yyval = yyvsp[-1]; + } + + break; + + default: + break; } + /* User semantic actions sometimes alter yychar, and that requires + that yytoken be updated with the new translation. We take the + approach of translating immediately before every use of yytoken. + One alternative is translating here after every semantic action, + but that translation would be missed if the semantic action invokes + YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or + if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an + incorrect destructor might then be invoked immediately. In the + case of YYERROR or YYBACKUP, subsequent parser actions might lead + to an incorrect destructor call or verbose syntax error message + before the lookahead is translated. */ + YY_SYMBOL_PRINT("-> $$ =", yyr1[yyn], &yyval, &yyloc); - break; + YYPOPSTACK(yylen); + yylen = 0; + YY_STACK_PRINT(yyss, yyssp); - case 28: + *++yyvsp = yyval; + /* Now 'shift' the result of the reduction. Determine what state + that goes to, based on the state we popped back to and the rule + number reduced by. */ { - yyval = + yyvsp[0]; + const int yylhs = yyr1[yyn] - YYNTOKENS; + const int yyi = yypgoto[yylhs] + *yyssp; + yystate = + (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp ? yytable[yyi] : yydefgoto[yylhs]); } - break; - - case 29: - - { - yyval = yyvsp[-1]; - } - - break; - - - - default: break; - } - /* User semantic actions sometimes alter yychar, and that requires - that yytoken be updated with the new translation. We take the - approach of translating immediately before every use of yytoken. - One alternative is translating here after every semantic action, - but that translation would be missed if the semantic action invokes - YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or - if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an - incorrect destructor might then be invoked immediately. In the - case of YYERROR or YYBACKUP, subsequent parser actions might lead - to an incorrect destructor call or verbose syntax error message - before the lookahead is translated. */ - YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); - - YYPOPSTACK (yylen); - yylen = 0; - YY_STACK_PRINT (yyss, yyssp); - - *++yyvsp = yyval; - - /* Now 'shift' the result of the reduction. Determine what state - that goes to, based on the state we popped back to and the rule - number reduced by. */ - { - const int yylhs = yyr1[yyn] - YYNTOKENS; - const int yyi = yypgoto[yylhs] + *yyssp; - yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp - ? yytable[yyi] - : yydefgoto[yylhs]); - } - - goto yynewstate; - + goto yynewstate; /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ yyerrlab: - /* Make sure we have latest lookahead translation. See comments at - user semantic actions for why this is necessary. */ - yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE(yychar); - /* If not already recovering from an error, report this error. */ - if (!yyerrstatus) + /* If not already recovering from an error, report this error. */ + if (!yyerrstatus) { - ++yynerrs; -#if ! YYERROR_VERBOSE - yyerror (context, YY_("syntax error")); + ++yynerrs; +#if !YYERROR_VERBOSE + yyerror(context, YY_("syntax error")); #else -# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ - yyssp, yytoken) - { - char const *yymsgp = YY_("syntax error"); - int yysyntax_error_status; - yysyntax_error_status = YYSYNTAX_ERROR; - if (yysyntax_error_status == 0) - yymsgp = yymsg; - else if (yysyntax_error_status == 1) - { - if (yymsg != yymsgbuf) - YYSTACK_FREE (yymsg); - yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); - if (!yymsg) - { - yymsg = yymsgbuf; - yymsg_alloc = sizeof yymsgbuf; - yysyntax_error_status = 2; - } - else - { - yysyntax_error_status = YYSYNTAX_ERROR; +# define YYSYNTAX_ERROR yysyntax_error(&yymsg_alloc, &yymsg, yyssp, yytoken) + { + char const *yymsgp = YY_("syntax error"); + int yysyntax_error_status; + yysyntax_error_status = YYSYNTAX_ERROR; + if (yysyntax_error_status == 0) yymsgp = yymsg; - } - } - yyerror (context, yymsgp); - if (yysyntax_error_status == 2) - goto yyexhaustedlab; - } -# undef YYSYNTAX_ERROR + else if (yysyntax_error_status == 1) + { + if (yymsg != yymsgbuf) + YYSTACK_FREE(yymsg); + yymsg = (char *)YYSTACK_ALLOC(yymsg_alloc); + if (!yymsg) + { + yymsg = yymsgbuf; + yymsg_alloc = sizeof yymsgbuf; + yysyntax_error_status = 2; + } + else + { + yysyntax_error_status = YYSYNTAX_ERROR; + yymsgp = yymsg; + } + } + yyerror(context, yymsgp); + if (yysyntax_error_status == 2) + goto yyexhaustedlab; + } +# undef YYSYNTAX_ERROR #endif } - - - if (yyerrstatus == 3) + if (yyerrstatus == 3) { - /* If just tried and failed to reuse lookahead token after an - error, discard it. */ + /* If just tried and failed to reuse lookahead token after an + error, discard it. */ - if (yychar <= YYEOF) + if (yychar <= YYEOF) { - /* Return failure if at end of input. */ - if (yychar == YYEOF) - YYABORT; + /* Return failure if at end of input. */ + if (yychar == YYEOF) + YYABORT; } - else + else { - yydestruct ("Error: discarding", - yytoken, &yylval, context); - yychar = YYEMPTY; + yydestruct("Error: discarding", yytoken, &yylval, context); + yychar = YYEMPTY; } } - /* Else will try to reuse lookahead token after shifting the error - token. */ - goto yyerrlab1; - + /* Else will try to reuse lookahead token after shifting the error + token. */ + goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: - /* Pacify compilers when the user code never invokes YYERROR and the - label yyerrorlab therefore never appears in user code. */ - if (0) - YYERROR; - - /* Do not reclaim the symbols of the rule whose action triggered - this YYERROR. */ - YYPOPSTACK (yylen); - yylen = 0; - YY_STACK_PRINT (yyss, yyssp); - yystate = *yyssp; - goto yyerrlab1; + /* Pacify compilers when the user code never invokes YYERROR and the + label yyerrorlab therefore never appears in user code. */ + if (0) + YYERROR; + /* Do not reclaim the symbols of the rule whose action triggered + this YYERROR. */ + YYPOPSTACK(yylen); + yylen = 0; + YY_STACK_PRINT(yyss, yyssp); + yystate = *yyssp; + goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: - yyerrstatus = 3; /* Each real token shifted decrements this. */ + yyerrstatus = 3; /* Each real token shifted decrements this. */ - for (;;) + for (;;) { - yyn = yypact[yystate]; - if (!yypact_value_is_default (yyn)) + yyn = yypact[yystate]; + if (!yypact_value_is_default(yyn)) { - yyn += YYTERROR; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) + yyn += YYTERROR; + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { - yyn = yytable[yyn]; - if (0 < yyn) - break; + yyn = yytable[yyn]; + if (0 < yyn) + break; } } - /* Pop the current state because it cannot handle the error token. */ - if (yyssp == yyss) - YYABORT; + /* Pop the current state because it cannot handle the error token. */ + if (yyssp == yyss) + YYABORT; - - yydestruct ("Error: popping", - yystos[yystate], yyvsp, context); - YYPOPSTACK (1); - yystate = *yyssp; - YY_STACK_PRINT (yyss, yyssp); + yydestruct("Error: popping", yystos[yystate], yyvsp, context); + YYPOPSTACK(1); + yystate = *yyssp; + YY_STACK_PRINT(yyss, yyssp); } - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - *++yyvsp = yylval; - YY_IGNORE_MAYBE_UNINITIALIZED_END + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END + /* Shift the error token. */ + YY_SYMBOL_PRINT("Shifting", yystos[yyn], yyvsp, yylsp); - /* Shift the error token. */ - YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); - - yystate = yyn; - goto yynewstate; - + yystate = yyn; + goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: - yyresult = 0; - goto yyreturn; - + yyresult = 0; + goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: - yyresult = 1; - goto yyreturn; - + yyresult = 1; + goto yyreturn; #if !defined yyoverflow || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: - yyerror (context, YY_("memory exhausted")); - yyresult = 2; - /* Fall through. */ + yyerror(context, YY_("memory exhausted")); + yyresult = 2; + /* Fall through. */ #endif - /*-----------------------------------------------------. | yyreturn -- parsing is finished, return the result. | `-----------------------------------------------------*/ yyreturn: - if (yychar != YYEMPTY) + if (yychar != YYEMPTY) { - /* Make sure we have latest lookahead translation. See comments at - user semantic actions for why this is necessary. */ - yytoken = YYTRANSLATE (yychar); - yydestruct ("Cleanup: discarding lookahead", - yytoken, &yylval, context); + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = YYTRANSLATE(yychar); + yydestruct("Cleanup: discarding lookahead", yytoken, &yylval, context); } - /* Do not reclaim the symbols of the rule whose action triggered - this YYABORT or YYACCEPT. */ - YYPOPSTACK (yylen); - YY_STACK_PRINT (yyss, yyssp); - while (yyssp != yyss) + /* Do not reclaim the symbols of the rule whose action triggered + this YYABORT or YYACCEPT. */ + YYPOPSTACK(yylen); + YY_STACK_PRINT(yyss, yyssp); + while (yyssp != yyss) { - yydestruct ("Cleanup: popping", - yystos[*yyssp], yyvsp, context); - YYPOPSTACK (1); + yydestruct("Cleanup: popping", yystos[*yyssp], yyvsp, context); + YYPOPSTACK(1); } #ifndef yyoverflow - if (yyss != yyssa) - YYSTACK_FREE (yyss); + if (yyss != yyssa) + YYSTACK_FREE(yyss); #endif #if YYERROR_VERBOSE - if (yymsg != yymsgbuf) - YYSTACK_FREE (yymsg); + if (yymsg != yymsgbuf) + YYSTACK_FREE(yymsg); #endif - return yyresult; + return yyresult; } - - int yylex(YYSTYPE *lvalp, Context *context) { angle::pp::Token *token = context->token; @@ -1940,67 +1786,69 @@ int yylex(YYSTYPE *lvalp, Context *context) switch (token->type) { - case angle::pp::Token::CONST_INT: { - unsigned int val = 0; - int testVal = 0; - if (!token->uValue(&val) || (!token->iValue(&testVal) && - context->errorSettings.integerLiteralsMustFit32BitSignedRange)) + case angle::pp::Token::CONST_INT: { - context->diagnostics->report(angle::pp::Diagnostics::PP_INTEGER_OVERFLOW, - token->location, token->text); - *(context->valid) = false; + unsigned int val = 0; + int testVal = 0; + if (!token->uValue(&val) || + (!token->iValue(&testVal) && + context->errorSettings.integerLiteralsMustFit32BitSignedRange)) + { + context->diagnostics->report(angle::pp::Diagnostics::PP_INTEGER_OVERFLOW, + token->location, token->text); + *(context->valid) = false; + } + *lvalp = static_cast(val); + type = TOK_CONST_INT; + break; } - *lvalp = static_cast(val); - type = TOK_CONST_INT; - break; - } - case angle::pp::Token::IDENTIFIER: - *lvalp = static_cast(-1); - type = TOK_IDENTIFIER; - break; - case angle::pp::Token::OP_OR: - type = TOK_OP_OR; - break; - case angle::pp::Token::OP_AND: - type = TOK_OP_AND; - break; - case angle::pp::Token::OP_NE: - type = TOK_OP_NE; - break; - case angle::pp::Token::OP_EQ: - type = TOK_OP_EQ; - break; - case angle::pp::Token::OP_GE: - type = TOK_OP_GE; - break; - case angle::pp::Token::OP_LE: - type = TOK_OP_LE; - break; - case angle::pp::Token::OP_RIGHT: - type = TOK_OP_RIGHT; - break; - case angle::pp::Token::OP_LEFT: - type = TOK_OP_LEFT; - break; - case '|': - case '^': - case '&': - case '>': - case '<': - case '-': - case '+': - case '%': - case '/': - case '*': - case '!': - case '~': - case '(': - case ')': - type = token->type; - break; + case angle::pp::Token::IDENTIFIER: + *lvalp = static_cast(-1); + type = TOK_IDENTIFIER; + break; + case angle::pp::Token::OP_OR: + type = TOK_OP_OR; + break; + case angle::pp::Token::OP_AND: + type = TOK_OP_AND; + break; + case angle::pp::Token::OP_NE: + type = TOK_OP_NE; + break; + case angle::pp::Token::OP_EQ: + type = TOK_OP_EQ; + break; + case angle::pp::Token::OP_GE: + type = TOK_OP_GE; + break; + case angle::pp::Token::OP_LE: + type = TOK_OP_LE; + break; + case angle::pp::Token::OP_RIGHT: + type = TOK_OP_RIGHT; + break; + case angle::pp::Token::OP_LEFT: + type = TOK_OP_LEFT; + break; + case '|': + case '^': + case '&': + case '>': + case '<': + case '-': + case '+': + case '%': + case '/': + case '*': + case '!': + case '~': + case '(': + case ')': + type = token->type; + break; - default: - break; + default: + break; } return type; @@ -2009,19 +1857,18 @@ int yylex(YYSTYPE *lvalp, Context *context) void yyerror(Context *context, const char *reason) { context->diagnostics->report(angle::pp::Diagnostics::PP_INVALID_EXPRESSION, - context->token->location, - reason); + context->token->location, reason); } -namespace angle { +namespace angle +{ -namespace pp { +namespace pp +{ ExpressionParser::ExpressionParser(Lexer *lexer, Diagnostics *diagnostics) - : mLexer(lexer), - mDiagnostics(diagnostics) -{ -} + : mLexer(lexer), mDiagnostics(diagnostics) +{} bool ExpressionParser::parse(Token *token, int *result, @@ -2030,29 +1877,29 @@ bool ExpressionParser::parse(Token *token, bool *valid) { Context context; - context.diagnostics = mDiagnostics; - context.lexer = mLexer; - context.token = token; - context.result = result; - context.ignoreErrors = 0; + context.diagnostics = mDiagnostics; + context.lexer = mLexer; + context.token = token; + context.result = result; + context.ignoreErrors = 0; context.parsePresetToken = parsePresetToken; context.errorSettings = errorSettings; context.valid = valid; - int ret = yyparse(&context); + int ret = yyparse(&context); switch (ret) { - case 0: - case 1: - break; + case 0: + case 1: + break; - case 2: - mDiagnostics->report(Diagnostics::PP_OUT_OF_MEMORY, token->location, ""); - break; + case 2: + mDiagnostics->report(Diagnostics::PP_OUT_OF_MEMORY, token->location, ""); + break; - default: - assert(false); - mDiagnostics->report(Diagnostics::PP_INTERNAL_ERROR, token->location, ""); - break; + default: + assert(false); + mDiagnostics->report(Diagnostics::PP_INTERNAL_ERROR, token->location, ""); + break; } return ret == 0; diff --git a/src/compiler/translator/glslang.l b/src/compiler/translator/glslang.l index b4a846091..9bdc33087 100644 --- a/src/compiler/translator/glslang.l +++ b/src/compiler/translator/glslang.l @@ -24,8 +24,6 @@ WHICH GENERATES THE GLSL ES LEXER (glslang_lex_autogen.cpp). // glslang.l: // Lexer for the OpenGL shading language. -// clang-format off - // Ignore errors in auto-generated code. #if defined(__GNUC__) #pragma GCC diagnostic ignored "-Wswitch-enum" @@ -251,7 +249,7 @@ O [0-7] "iimage3D" { return ES3_reserved_ES3_1_keyword(context, IIMAGE3D); } "iimageCube" { return ES3_reserved_ES3_1_keyword(context, IIMAGECUBE); } "uimageCube" { return ES3_reserved_ES3_1_keyword(context, UIMAGECUBE); } -"imageCube" { return ES3_reserved_ES3_1_keyword(context, IMAGECUBE); } +"imageCube" { return ES3_reserved_ES3_1_keyword(context, IMAGECUBE); } "readonly" { return ES3_reserved_ES3_1_keyword(context, READONLY); } "writeonly" { return ES3_reserved_ES3_1_keyword(context, WRITEONLY); } "coherent" { return ES3_reserved_ES3_1_keyword(context, COHERENT); } diff --git a/src/compiler/translator/glslang.y b/src/compiler/translator/glslang.y index b59cae73b..93a457163 100644 --- a/src/compiler/translator/glslang.y +++ b/src/compiler/translator/glslang.y @@ -24,8 +24,6 @@ WHICH GENERATES THE GLSL ES PARSER (glslang_tab_autogen.cpp AND glslang_tab_auto // glslang.y: // Parser for the OpenGL shading language. -// clang-format off - // Ignore errors in auto-generated code. #if defined(__GNUC__) #pragma GCC diagnostic ignored "-Wunused-function" diff --git a/src/compiler/translator/glslang_lex_autogen.cpp b/src/compiler/translator/glslang_lex_autogen.cpp index 55de63041..8341e959f 100644 --- a/src/compiler/translator/glslang_lex_autogen.cpp +++ b/src/compiler/translator/glslang_lex_autogen.cpp @@ -9,239 +9,171 @@ // glslang.l: // Lexer for the OpenGL shading language. -// clang-format off - // Ignore errors in auto-generated code. #if defined(__GNUC__) -#pragma GCC diagnostic ignored "-Wswitch-enum" -#pragma GCC diagnostic ignored "-Wunused-function" -#pragma GCC diagnostic ignored "-Wunused-variable" +# pragma GCC diagnostic ignored "-Wswitch-enum" +# pragma GCC diagnostic ignored "-Wunused-function" +# pragma GCC diagnostic ignored "-Wunused-variable" #elif defined(_MSC_VER) -#pragma warning(disable: 4005) -#pragma warning(disable: 4065) -#pragma warning(disable: 4189) -#pragma warning(disable: 4244) -#pragma warning(disable: 4505) -#pragma warning(disable: 4701) -#pragma warning(disable: 4702) +# pragma warning(disable : 4005) +# pragma warning(disable : 4065) +# pragma warning(disable : 4189) +# pragma warning(disable : 4244) +# pragma warning(disable : 4505) +# pragma warning(disable : 4701) +# pragma warning(disable : 4702) #endif #if defined(__clang__) -#pragma clang diagnostic ignored "-Wimplicit-fallthrough" -#if defined(__APPLE__) +# pragma clang diagnostic ignored "-Wimplicit-fallthrough" +# if defined(__APPLE__) // Older clang versions don't have -Wextra-semi-stmt, and detecting Apple clang versions is // difficult because they use different yet overlapping version numbers vs. regular clang. -#pragma clang diagnostic ignored "-Wunknown-warning-option" -#endif +# pragma clang diagnostic ignored "-Wunknown-warning-option" +# endif // Flex isn't semi-colon clean. -#pragma clang diagnostic ignored "-Wextra-semi-stmt" -#pragma clang diagnostic ignored "-Wunreachable-code" +# pragma clang diagnostic ignored "-Wextra-semi-stmt" +# pragma clang diagnostic ignored "-Wunreachable-code" #endif - - -#define YY_INT_ALIGNED short int +#define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ - - - - - - - - - #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 6 #define YY_FLEX_SUBMINOR_VERSION 4 #if YY_FLEX_SUBMINOR_VERSION > 0 -#define FLEX_BETA +# define FLEX_BETA #endif - - - - - - - - - - - - - - - - - #ifdef yyget_lval -#define yyget_lval_ALREADY_DEFINED +# define yyget_lval_ALREADY_DEFINED #else -#define yyget_lval yyget_lval +# define yyget_lval yyget_lval #endif - #ifdef yyset_lval -#define yyset_lval_ALREADY_DEFINED +# define yyset_lval_ALREADY_DEFINED #else -#define yyset_lval yyset_lval +# define yyset_lval yyset_lval #endif - - - - #ifdef yyget_lloc -#define yyget_lloc_ALREADY_DEFINED +# define yyget_lloc_ALREADY_DEFINED #else -#define yyget_lloc yyget_lloc +# define yyget_lloc yyget_lloc #endif - #ifdef yyset_lloc -#define yyset_lloc_ALREADY_DEFINED +# define yyset_lloc_ALREADY_DEFINED #else -#define yyset_lloc yyset_lloc +# define yyset_lloc yyset_lloc #endif - - - - - - - - - - /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ -#include -#include #include +#include #include +#include /* end standard C headers. */ /* flex integer type definitions */ #ifndef FLEXINT_H -#define FLEXINT_H +# define FLEXINT_H /* C99 systems have . Non-C99 systems may or may not. */ -#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L +# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, - * if you want the limit (max/min) macros for int types. + * if you want the limit (max/min) macros for int types. */ -#ifndef __STDC_LIMIT_MACROS -#define __STDC_LIMIT_MACROS 1 -#endif +# ifndef __STDC_LIMIT_MACROS +# define __STDC_LIMIT_MACROS 1 +# endif -#include +# include typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; -#else +# else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; -typedef unsigned char flex_uint8_t; +typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* Limits of integral types. */ -#ifndef INT8_MIN -#define INT8_MIN (-128) -#endif -#ifndef INT16_MIN -#define INT16_MIN (-32767-1) -#endif -#ifndef INT32_MIN -#define INT32_MIN (-2147483647-1) -#endif -#ifndef INT8_MAX -#define INT8_MAX (127) -#endif -#ifndef INT16_MAX -#define INT16_MAX (32767) -#endif -#ifndef INT32_MAX -#define INT32_MAX (2147483647) -#endif -#ifndef UINT8_MAX -#define UINT8_MAX (255U) -#endif -#ifndef UINT16_MAX -#define UINT16_MAX (65535U) -#endif -#ifndef UINT32_MAX -#define UINT32_MAX (4294967295U) -#endif +# ifndef INT8_MIN +# define INT8_MIN (-128) +# endif +# ifndef INT16_MIN +# define INT16_MIN (-32767 - 1) +# endif +# ifndef INT32_MIN +# define INT32_MIN (-2147483647 - 1) +# endif +# ifndef INT8_MAX +# define INT8_MAX (127) +# endif +# ifndef INT16_MAX +# define INT16_MAX (32767) +# endif +# ifndef INT32_MAX +# define INT32_MAX (2147483647) +# endif +# ifndef UINT8_MAX +# define UINT8_MAX (255U) +# endif +# ifndef UINT16_MAX +# define UINT16_MAX (65535U) +# endif +# ifndef UINT32_MAX +# define UINT32_MAX (4294967295U) +# endif -#ifndef SIZE_MAX -#define SIZE_MAX (~(size_t)0) -#endif +# ifndef SIZE_MAX +# define SIZE_MAX (~(size_t)0) +# endif -#endif /* ! C99 */ +# endif /* ! C99 */ #endif /* ! FLEXINT_H */ - /* begin standard C++ headers. */ /* TODO: this is always defined, so inline it */ #define yyconst const #if defined(__GNUC__) && __GNUC__ >= 3 -#define yynoreturn __attribute__((__noreturn__)) +# define yynoreturn __attribute__((__noreturn__)) #else -#define yynoreturn +# define yynoreturn #endif /* Returned upon end-of-file. */ #define YY_NULL 0 - /* Promotes a possibly negative, possibly signed char to an * integer in range [0..255] for use as an array index. */ -#define YY_SC_TO_UI(c) ((YY_CHAR) (c)) - - - - +#define YY_SC_TO_UI(c) ((YY_CHAR)(c)) /* An opaque pointer. */ #ifndef YY_TYPEDEF_YY_SCANNER_T -#define YY_TYPEDEF_YY_SCANNER_T -typedef void* yyscan_t; +# define YY_TYPEDEF_YY_SCANNER_T +typedef void *yyscan_t; #endif - - - - - - - - - - - - - - - - /* For convenience, these vars (plus the bison vars far below) are macros in the reentrant scanner. */ #define yyin yyg->yyin_r @@ -253,18 +185,6 @@ typedef void* yyscan_t; #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) #define yy_flex_debug yyg->yy_flex_debug_r - - - - - - - - - - - - /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. @@ -279,899 +199,635 @@ typedef void* yyscan_t; /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ -#define YY_NEW_FILE yyrestart( yyin , yyscanner ) +#define YY_NEW_FILE yyrestart(yyin, yyscanner) #define YY_END_OF_BUFFER_CHAR 0 - /* Size of default input buffer. */ #ifndef YY_BUF_SIZE -#ifdef __ia64__ +# 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__ */ +# define YY_BUF_SIZE 32768 +# else +# define YY_BUF_SIZE 16384 +# endif /* __ia64__ */ #endif - /* The state buf must be large enough to hold one state per character in the main buffer. */ -#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) - - +#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE -#define YY_TYPEDEF_YY_BUFFER_STATE +# define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif #ifndef YY_TYPEDEF_YY_SIZE_T -#define YY_TYPEDEF_YY_SIZE_T +# define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif - - - #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 - - /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires - * access to the local variable yy_act. Since yyless() is a macro, it would break - * existing scanners that call yyless() from OUTSIDE yylex. - * One obvious solution it to make yy_act a global. I tried that, and saw - * a 5% performance hit in a non-yylineno scanner, because yy_act is - * normally declared as a register variable-- so it is not worth it. - */ - #define YY_LESS_LINENO(n) \ - do { \ - int yyl;\ - for ( yyl = n; yyl < yyleng; ++yyl )\ - if ( yytext[yyl] == '\n' )\ - --yylineno;\ - }while(0) - #define YY_LINENO_REWIND_TO(dst) \ - do {\ - const char *p;\ - for ( p = yy_cp-1; p >= (dst); --p)\ - if ( *p == '\n' )\ - --yylineno;\ - }while(0) - -/* Return all but the first "n" matched characters back to the input stream. */ -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - *yy_cp = yyg->yy_hold_char; \ - YY_RESTORE_YY_MORE_OFFSET \ - yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ - YY_DO_BEFORE_ACTION; /* set up yytext again */ \ - } \ - while ( 0 ) -#define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner ) +/* Note: We specifically omit the test for yy_rule_can_match_eol because it requires + * access to the local variable yy_act. Since yyless() is a macro, it would break + * existing scanners that call yyless() from OUTSIDE yylex. + * One obvious solution it to make yy_act a global. I tried that, and saw + * a 5% performance hit in a non-yylineno scanner, because yy_act is + * normally declared as a register variable-- so it is not worth it. + */ +#define YY_LESS_LINENO(n) \ + do \ + { \ + int yyl; \ + for (yyl = n; yyl < yyleng; ++yyl) \ + if (yytext[yyl] == '\n') \ + --yylineno; \ + } while (0) +#define YY_LINENO_REWIND_TO(dst) \ + do \ + { \ + const char *p; \ + for (p = yy_cp - 1; p >= (dst); --p) \ + if (*p == '\n') \ + --yylineno; \ + } while (0) + +/* Return all but the first "n" matched characters back to the input stream. */ +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg); \ + *yy_cp = yyg->yy_hold_char; \ + YY_RESTORE_YY_MORE_OFFSET \ + yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ + YY_DO_BEFORE_ACTION; /* set up yytext again */ \ + } while (0) +#define unput(c) yyunput(c, yyg->yytext_ptr, yyscanner) #ifndef YY_STRUCT_YY_BUFFER_STATE -#define YY_STRUCT_YY_BUFFER_STATE +# define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state - { - FILE *yy_input_file; +{ + FILE *yy_input_file; + char *yy_ch_buf; /* input buffer */ + char *yy_buf_pos; /* current position in input buffer */ + /* Size of input buffer in bytes, not including room for EOB + * characters. + */ + int yy_buf_size; - char *yy_ch_buf; /* input buffer */ - char *yy_buf_pos; /* current position in input buffer */ + /* Number of characters read into yy_ch_buf, not including EOB + * characters. + */ + int yy_n_chars; - /* Size of input buffer in bytes, not including room for EOB - * characters. - */ - int yy_buf_size; + /* Whether we "own" the buffer - i.e., we know we created it, + * and can realloc() it to grow it, and should free() it to + * delete it. + */ + int yy_is_our_buffer; - /* Number of characters read into yy_ch_buf, not including EOB - * characters. - */ - int yy_n_chars; + /* Whether this is an "interactive" input source; if so, and + * if we're using stdio for input, then we want to use getc() + * instead of fread(), to make sure we stop fetching input after + * each newline. + */ + int yy_is_interactive; - /* Whether we "own" the buffer - i.e., we know we created it, - * and can realloc() it to grow it, and should free() it to - * delete it. - */ - int yy_is_our_buffer; - - /* Whether this is an "interactive" input source; if so, and - * if we're using stdio for input, then we want to use getc() - * instead of fread(), to make sure we stop fetching input after - * each newline. - */ - int yy_is_interactive; - - /* Whether we're considered to be at the beginning of a line. - * If so, '^' rules will be active on the next match, otherwise - * not. - */ - int yy_at_bol; + /* Whether we're considered to be at the beginning of a line. + * If so, '^' rules will be active on the next match, otherwise + * not. + */ + int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ + /* Whether to try to fill the input buffer when we reach the + * end of it. + */ + int yy_fill_buffer; - /* Whether to try to fill the input buffer when we reach the - * end of it. - */ - int yy_fill_buffer; + int yy_buffer_status; - int yy_buffer_status; - -#define YY_BUFFER_NEW 0 -#define YY_BUFFER_NORMAL 1 - /* When an EOF's been seen but there's still some text to process - * then we mark the buffer as YY_EOF_PENDING, to indicate that we - * shouldn't try reading from the input source any more. We might - * still have a bunch of tokens to match, though, because of - * possible backing-up. - * - * When we actually see the EOF, we change the status to "new" - * (via yyrestart()), so that the user can continue scanning by - * just pointing yyin at a new input file. - */ -#define YY_BUFFER_EOF_PENDING 2 - - }; +# define YY_BUFFER_NEW 0 +# define YY_BUFFER_NORMAL 1 + /* When an EOF's been seen but there's still some text to process + * then we mark the buffer as YY_EOF_PENDING, to indicate that we + * shouldn't try reading from the input source any more. We might + * still have a bunch of tokens to match, though, because of + * possible backing-up. + * + * When we actually see the EOF, we change the status to "new" + * (via yyrestart()), so that the user can continue scanning by + * just pointing yyin at a new input file. + */ +# define YY_BUFFER_EOF_PENDING 2 +}; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ - - - /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". * * Returns the top of the stack, or NULL. */ -#define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \ - ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \ - : NULL) +#define YY_CURRENT_BUFFER \ + (yyg->yy_buffer_stack ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] : NULL) /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] +void yyrestart(FILE *input_file, yyscan_t yyscanner); +void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner); +YY_BUFFER_STATE yy_create_buffer(FILE *file, int size, yyscan_t yyscanner); +void yy_delete_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner); +void yy_flush_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner); +void yypush_buffer_state(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner); +void yypop_buffer_state(yyscan_t yyscanner); +static void yyensure_buffer_stack(yyscan_t yyscanner); +static void yy_load_buffer_state(yyscan_t yyscanner); +static void yy_init_buffer(YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner); +#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER, yyscanner) +YY_BUFFER_STATE yy_scan_buffer(char *base, yy_size_t size, yyscan_t yyscanner); +YY_BUFFER_STATE yy_scan_string(const char *yy_str, yyscan_t yyscanner); +YY_BUFFER_STATE yy_scan_bytes(const char *bytes, int len, yyscan_t yyscanner); - -void yyrestart ( FILE *input_file , yyscan_t yyscanner ); -void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner ); -YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size , yyscan_t yyscanner ); -void yy_delete_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner ); -void yy_flush_buffer ( YY_BUFFER_STATE b , yyscan_t yyscanner ); -void yypush_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner ); -void yypop_buffer_state ( yyscan_t yyscanner ); - - -static void yyensure_buffer_stack ( yyscan_t yyscanner ); -static void yy_load_buffer_state ( yyscan_t yyscanner ); -static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file , yyscan_t yyscanner ); -#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER , yyscanner) - - -YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size , yyscan_t yyscanner ); -YY_BUFFER_STATE yy_scan_string ( const char *yy_str , yyscan_t yyscanner ); -YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len , yyscan_t yyscanner ); - - -void *yyalloc ( yy_size_t , yyscan_t yyscanner ); -void *yyrealloc ( void *, yy_size_t , yyscan_t yyscanner ); -void yyfree ( void * , yyscan_t yyscanner ); - +void *yyalloc(yy_size_t, yyscan_t yyscanner); +void *yyrealloc(void *, yy_size_t, yyscan_t yyscanner); +void yyfree(void *, yyscan_t yyscanner); #define yy_new_buffer yy_create_buffer -#define yy_set_interactive(is_interactive) \ - { \ - if ( ! YY_CURRENT_BUFFER ){ \ - yyensure_buffer_stack (yyscanner); \ - YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ - } -#define yy_set_bol(at_bol) \ - { \ - if ( ! YY_CURRENT_BUFFER ){\ - yyensure_buffer_stack (yyscanner); \ - YY_CURRENT_BUFFER_LVALUE = \ - yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); \ - } \ - YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ - } +#define yy_set_interactive(is_interactive) \ + { \ + if (!YY_CURRENT_BUFFER) \ + { \ + yyensure_buffer_stack(yyscanner); \ + YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ + } +#define yy_set_bol(at_bol) \ + { \ + if (!YY_CURRENT_BUFFER) \ + { \ + yyensure_buffer_stack(yyscanner); \ + YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner); \ + } \ + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ + } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) - /* Begin user sect3 */ -#define yywrap(yyscanner) (/*CONSTCOND*/1) +#define yywrap(yyscanner) (/*CONSTCOND*/ 1) #define YY_SKIP_YYWRAP typedef flex_uint8_t YY_CHAR; - typedef int yy_state_type; #define yytext_ptr yytext_r - - - - - -static yy_state_type yy_get_previous_state ( yyscan_t yyscanner ); -static yy_state_type yy_try_NUL_trans ( yy_state_type current_state , yyscan_t yyscanner); -static int yy_get_next_buffer ( yyscan_t yyscanner ); -static void yynoreturn yy_fatal_error ( const char* msg , yyscan_t yyscanner ); - - - +static yy_state_type yy_get_previous_state(yyscan_t yyscanner); +static yy_state_type yy_try_NUL_trans(yy_state_type current_state, yyscan_t yyscanner); +static int yy_get_next_buffer(yyscan_t yyscanner); +static void yynoreturn yy_fatal_error(const char *msg, yyscan_t yyscanner); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ -#define YY_DO_BEFORE_ACTION \ - yyg->yytext_ptr = yy_bp; \ - yyleng = (int) (yy_cp - yy_bp); \ - yyg->yy_hold_char = *yy_cp; \ - *yy_cp = '\0'; \ - yyg->yy_c_buf_p = yy_cp; +#define YY_DO_BEFORE_ACTION \ + yyg->yytext_ptr = yy_bp; \ + yyleng = (int)(yy_cp - yy_bp); \ + yyg->yy_hold_char = *yy_cp; \ + *yy_cp = '\0'; \ + yyg->yy_c_buf_p = yy_cp; #define YY_NUM_RULES 248 #define YY_END_OF_BUFFER 249 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info - { - flex_int32_t yy_verify; - flex_int32_t yy_nxt; - }; -static const flex_int16_t yy_accept[892] = - { 0, - 0, 0, 0, 0, 249, 247, 246, 246, 230, 236, - 241, 225, 226, 234, 233, 222, 231, 229, 235, 188, - 188, 223, 219, 237, 224, 238, 242, 185, 227, 228, - 240, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 220, 239, 221, 232, 245, 244, 248, - 243, 216, 202, 221, 210, 205, 200, 208, 198, 209, - 199, 194, 201, 193, 187, 188, 0, 191, 0, 228, - 220, 227, 217, 213, 215, 214, 218, 185, 206, 212, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, +{ + flex_int32_t yy_verify; + flex_int32_t yy_nxt; +}; +static const flex_int16_t yy_accept[892] = { + 0, 0, 0, 0, 0, 249, 247, 246, 246, 230, 236, 241, 225, 226, 234, 233, 222, 231, 229, + 235, 188, 188, 223, 219, 237, 224, 238, 242, 185, 227, 228, 240, 185, 185, 185, 185, 185, 185, + 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 220, 239, 221, + 232, 245, 244, 248, 243, 216, 202, 221, 210, 205, 200, 208, 198, 209, 199, 194, 201, 193, 187, + 188, 0, 191, 0, 228, 220, 227, 217, 213, 215, 214, 218, 185, 206, 212, 185, 185, 185, 185, + 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 13, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 16, 185, - 185, 24, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 207, 211, 243, - 0, 197, 193, 0, 196, 190, 0, 192, 186, 203, - 204, 185, 185, 145, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 14, 185, + 185, 185, 185, 185, 13, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 16, + 185, 185, 24, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, + 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, + 207, 211, 243, 0, 197, 193, 0, 196, 190, 0, 192, 186, 203, 204, 185, 185, 145, 185, 185, + 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, + 185, 185, 185, 14, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 29, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 25, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 0, - 194, 0, 193, 195, 189, 185, 185, 185, 185, 32, - 185, 185, 185, 19, 182, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 17, 148, 185, 185, 185, - 185, 22, 185, 185, 152, 163, 185, 185, 185, 185, + 185, 185, 185, 185, 185, 185, 185, 185, 185, 29, 185, 185, 185, 185, 185, 185, 185, 185, 185, + 185, 185, 185, 25, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, + 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, + 185, 185, 0, 194, 0, 193, 195, 189, 185, 185, 185, 185, 32, 185, 185, 185, 19, 182, 185, + 185, 185, 185, 185, 185, 185, 185, 185, 185, 17, 148, 185, 185, 185, 185, 22, 185, 185, 152, + 163, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 160, - 4, 37, 38, 39, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 151, - 33, 185, 185, 30, 185, 185, 185, 185, 185, 185, - 185, 49, 50, 51, 31, 185, 185, 185, 185, 185, - 185, 185, 185, 11, 185, 55, 56, 57, 185, 146, - 185, 185, 7, 185, 185, 185, 185, 172, 173, 174, - 185, 34, 185, 164, 28, 175, 176, 177, 2, 169, - 170, 171, 185, 185, 185, 26, 167, 185, 185, 185, + 185, 185, 185, 185, 185, 185, 185, 185, 185, 160, 4, 37, 38, 39, 185, 185, 185, 185, 185, + 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, + 185, 151, 33, 185, 185, 30, 185, 185, 185, 185, 185, 185, 185, 49, 50, 51, 31, 185, 185, + 185, 185, 185, 185, 185, 185, 11, 185, 55, 56, 57, 185, 146, 185, 185, 7, 185, 185, 185, + 185, 172, 173, 174, 185, 34, 185, 164, 28, 175, 176, 177, 2, 169, 170, 171, 185, 185, 185, + 26, 167, 185, 185, 185, - 185, 185, 52, 53, 54, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 113, 185, 185, 185, - 185, 185, 185, 185, 185, 161, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 147, 185, 185, - 184, 58, 59, 60, 185, 185, 15, 185, 185, 185, - 118, 185, 185, 9, 185, 185, 116, 185, 185, 185, - 162, 157, 119, 185, 185, 185, 185, 185, 185, 153, - 185, 185, 185, 185, 185, 87, 40, 43, 45, 44, - 41, 47, 46, 48, 42, 185, 185, 185, 185, 168, - 144, 185, 185, 155, 185, 185, 185, 36, 114, 27, + 185, 185, 52, 53, 54, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 113, 185, 185, + 185, 185, 185, 185, 185, 185, 161, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 147, + 185, 185, 184, 58, 59, 60, 185, 185, 15, 185, 185, 185, 118, 185, 185, 9, 185, 185, 116, + 185, 185, 185, 162, 157, 119, 185, 185, 185, 185, 185, 185, 153, 185, 185, 185, 185, 185, 87, + 40, 43, 45, 44, 41, 47, 46, 48, 42, 185, 185, 185, 185, 168, 144, 185, 185, 155, 185, + 185, 185, 36, 114, 27, - 181, 23, 156, 86, 185, 166, 18, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 20, 35, 185, 185, 185, 185, 185, - 185, 120, 92, 98, 185, 185, 185, 185, 185, 89, - 91, 3, 185, 185, 185, 185, 110, 185, 185, 185, - 185, 185, 185, 185, 149, 185, 185, 185, 185, 185, - 8, 185, 185, 10, 185, 185, 185, 185, 185, 185, - 21, 106, 12, 158, 121, 93, 100, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 154, 185, 185, 185, 104, 111, 107, 185, 185, 185, + 181, 23, 156, 86, 185, 166, 18, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, + 185, 185, 185, 185, 20, 35, 185, 185, 185, 185, 185, 185, 120, 92, 98, 185, 185, 185, 185, + 185, 89, 91, 3, 185, 185, 185, 185, 110, 185, 185, 185, 185, 185, 185, 185, 149, 185, 185, + 185, 185, 185, 8, 185, 185, 10, 185, 185, 185, 185, 185, 185, 21, 106, 12, 158, 121, 93, + 100, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 154, 185, 185, 185, 104, + 111, 107, 185, 185, 185, - 185, 185, 185, 185, 150, 122, 94, 99, 185, 185, - 165, 185, 108, 185, 185, 185, 185, 6, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 103, 159, 1, - 185, 185, 185, 185, 185, 185, 183, 185, 117, 5, - 178, 61, 64, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 105, 185, 185, 185, - 185, 185, 185, 101, 185, 185, 185, 185, 185, 135, - 69, 70, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 115, 185, 185, 185, - 102, 137, 74, 75, 185, 185, 185, 185, 109, 185, + 185, 185, 185, 185, 150, 122, 94, 99, 185, 185, 165, 185, 108, 185, 185, 185, 185, 6, 185, + 185, 185, 185, 185, 185, 185, 185, 185, 103, 159, 1, 185, 185, 185, 185, 185, 185, 183, 185, + 117, 5, 178, 61, 64, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 105, + 185, 185, 185, 185, 185, 185, 101, 185, 185, 185, 185, 185, 135, 69, 70, 185, 185, 185, 185, + 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 115, 185, 185, 185, 102, 137, 74, 75, 185, + 185, 185, 185, 109, 185, - 185, 185, 185, 185, 185, 185, 130, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 68, 185, - 185, 185, 185, 62, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 131, 123, - 185, 95, 185, 185, 185, 73, 185, 185, 71, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 132, 185, 185, 78, 185, 185, 76, - 185, 185, 124, 96, 185, 126, 185, 127, 185, 185, - 185, 185, 185, 185, 112, 185, 185, 185, 185, 66, - 185, 65, 141, 185, 185, 125, 97, 185, 185, 185, + 185, 185, 185, 185, 185, 185, 130, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 68, + 185, 185, 185, 185, 62, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, + 131, 123, 185, 95, 185, 185, 185, 73, 185, 185, 71, 185, 185, 185, 185, 185, 185, 185, 185, + 185, 185, 185, 185, 185, 185, 132, 185, 185, 78, 185, 185, 76, 185, 185, 124, 96, 185, 126, + 185, 127, 185, 185, 185, 185, 185, 185, 112, 185, 185, 185, 185, 66, 185, 65, 141, 185, 185, + 125, 97, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 139, - 142, 185, 133, 185, 67, 185, 185, 185, 185, 185, - 185, 185, 185, 140, 143, 185, 185, 185, 185, 136, - 72, 185, 185, 185, 179, 185, 185, 185, 79, 185, - 185, 138, 77, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 83, 185, 185, 185, 185, 185, 185, 185, - 185, 84, 185, 185, 185, 185, 80, 185, 85, 88, - 185, 128, 129, 90, 185, 185, 185, 63, 185, 185, - 185, 180, 185, 134, 81, 185, 185, 185, 185, 82, - 0 + 185, 185, 185, 185, 185, 185, 185, 185, 185, 139, 142, 185, 133, 185, 67, 185, 185, 185, 185, + 185, 185, 185, 185, 140, 143, 185, 185, 185, 185, 136, 72, 185, 185, 185, 179, 185, 185, 185, + 79, 185, 185, 138, 77, 185, 185, 185, 185, 185, 185, 185, 185, 185, 83, 185, 185, 185, 185, + 185, 185, 185, 185, 84, 185, 185, 185, 185, 80, 185, 85, 88, 185, 128, 129, 90, 185, 185, + 185, 63, 185, 185, 185, 180, 185, 134, 81, 185, 185, 185, 185, 82, 0 - } ; +}; -static const YY_CHAR yy_ec[256] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, - 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 4, 1, 1, 1, 5, 6, 1, 7, - 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 1, 31, 32, 33, 34, 35, 36, - 37, 37, 37, 37, 37, 37, 38, 37, 39, 37, - 37, 40, 41, 42, 43, 37, 37, 44, 45, 37, - 46, 1, 47, 48, 49, 1, 50, 51, 52, 53, +static const YY_CHAR yy_ec[256] = { + 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 4, 1, 1, 1, 5, 6, 1, 7, 8, + 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 1, 31, 32, 33, 34, 35, 36, 37, 37, 37, 37, 37, 37, 38, 37, 39, 37, 37, 40, 41, + 42, 43, 37, 37, 44, 45, 37, 46, 1, 47, 48, 49, 1, 50, 51, 52, 53, - 54, 55, 56, 57, 58, 37, 59, 60, 61, 62, - 63, 64, 37, 65, 66, 67, 68, 69, 70, 71, - 72, 73, 74, 75, 76, 77, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 54, 55, 56, 57, 58, 37, 59, 60, 61, 62, 63, 64, 37, 65, 66, 67, 68, 69, 70, 71, 72, + 73, 74, 75, 76, 77, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1 - } ; + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; -static const YY_CHAR yy_meta[78] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, - 1, 2, 3, 1, 4, 4, 4, 4, 4, 4, - 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, - 5, 5, 5, 5, 6, 7, 8, 8, 8, 8, - 8, 8, 9, 8, 8, 1, 1, 1, 8, 5, - 5, 5, 5, 6, 7, 8, 8, 8, 8, 8, - 8, 8, 8, 8, 8, 8, 8, 9, 8, 8, - 8, 8, 8, 1, 1, 1, 1 - } ; +static const YY_CHAR yy_meta[78] = {0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 3, 1, 4, 4, 4, 4, 4, + 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 5, 5, 5, 5, 6, 7, 8, 8, 8, + 8, 8, 8, 9, 8, 8, 1, 1, 1, 8, 5, 5, 5, 5, 6, 7, 8, 8, 8, 8, + 8, 8, 8, 8, 8, 8, 8, 8, 9, 8, 8, 8, 8, 8, 1, 1, 1, 1}; -static const flex_int16_t yy_base[901] = - { 0, - 0, 0, 77, 0, 1095, 1096, 1096, 1096, 1066, 127, - 151, 1096, 1096, 1065, 148, 1096, 147, 145, 1064, 167, - 158, 1062, 1096, 167, 1062, 145, 1096, 0, 1096, 1096, - 149, 1040, 147, 135, 155, 162, 146, 174, 1025, 172, - 178, 179, 169, 196, 1019, 198, 1032, 200, 197, 213, - 202, 113, 1017, 1096, 153, 1096, 1096, 1096, 1096, 1096, - 0, 1096, 1096, 1096, 1096, 1096, 1096, 1096, 1096, 1096, - 1096, 237, 1096, 241, 237, 271, 243, 1096, 0, 1096, - 1096, 1096, 1056, 1096, 1096, 1096, 1055, 0, 1096, 1096, - 1016, 1014, 1019, 197, 1016, 1024, 1022, 1022, 1009, 1012, +static const flex_int16_t yy_base[901] = { + 0, 0, 0, 77, 0, 1095, 1096, 1096, 1096, 1066, 127, 151, 1096, 1096, 1065, + 148, 1096, 147, 145, 1064, 167, 158, 1062, 1096, 167, 1062, 145, 1096, 0, 1096, + 1096, 149, 1040, 147, 135, 155, 162, 146, 174, 1025, 172, 178, 179, 169, 196, + 1019, 198, 1032, 200, 197, 213, 202, 113, 1017, 1096, 153, 1096, 1096, 1096, 1096, + 1096, 0, 1096, 1096, 1096, 1096, 1096, 1096, 1096, 1096, 1096, 1096, 237, 1096, 241, + 237, 271, 243, 1096, 0, 1096, 1096, 1096, 1056, 1096, 1096, 1096, 1055, 0, 1096, + 1096, 1016, 1014, 1019, 197, 1016, 1024, 1022, 1022, 1009, 1012, - 1023, 226, 1017, 1005, 1002, 1015, 1002, 999, 999, 1005, - 136, 235, 999, 1009, 995, 1001, 1004, 1005, 0, 997, - 1007, 230, 1006, 987, 1000, 981, 216, 985, 998, 989, - 243, 982, 237, 994, 996, 250, 985, 259, 972, 981, - 253, 259, 985, 981, 983, 972, 975, 250, 255, 269, - 984, 972, 984, 266, 977, 976, 964, 1096, 1096, 0, - 318, 1096, 296, 323, 1096, 1096, 325, 324, 206, 1096, - 1096, 982, 973, 0, 969, 964, 968, 977, 971, 973, - 298, 957, 957, 968, 960, 271, 970, 967, 967, 965, - 962, 954, 960, 947, 945, 957, 943, 959, 0, 956, + 1023, 226, 1017, 1005, 1002, 1015, 1002, 999, 999, 1005, 136, 235, 999, 1009, 995, + 1001, 1004, 1005, 0, 997, 1007, 230, 1006, 987, 1000, 981, 216, 985, 998, 989, + 243, 982, 237, 994, 996, 250, 985, 259, 972, 981, 253, 259, 985, 981, 983, + 972, 975, 250, 255, 269, 984, 972, 984, 266, 977, 976, 964, 1096, 1096, 0, + 318, 1096, 296, 323, 1096, 1096, 325, 324, 206, 1096, 1096, 982, 973, 0, 969, + 964, 968, 977, 971, 973, 298, 957, 957, 968, 960, 271, 970, 967, 967, 965, + 962, 954, 960, 947, 945, 957, 943, 959, 0, 956, - 944, 951, 948, 952, 953, 946, 943, 932, 931, 944, - 947, 935, 946, 942, 930, 936, 927, 336, 932, 935, - 926, 933, 922, 926, 917, 931, 930, 921, 927, 294, - 911, 914, 912, 911, 921, 911, 906, 904, 906, 916, - 902, 904, 901, 912, 911, 914, 896, 301, 904, 900, - 898, 907, 886, 349, 904, 906, 895, 887, 920, 354, - 370, 368, 383, 1096, 1096, 891, 882, 892, 891, 0, - 889, 893, 379, 0, 0, 881, 879, 879, 880, 875, - 883, 872, 889, 878, 382, 0, 0, 872, 882, 881, - 881, 0, 866, 385, 0, 0, 868, 390, 875, 876, + 944, 951, 948, 952, 953, 946, 943, 932, 931, 944, 947, 935, 946, 942, 930, + 936, 927, 336, 932, 935, 926, 933, 922, 926, 917, 931, 930, 921, 927, 294, + 911, 914, 912, 911, 921, 911, 906, 904, 906, 916, 902, 904, 901, 912, 911, + 914, 896, 301, 904, 900, 898, 907, 886, 349, 904, 906, 895, 887, 920, 354, + 370, 368, 383, 1096, 1096, 891, 882, 892, 891, 0, 889, 893, 379, 0, 0, + 881, 879, 879, 880, 875, 883, 872, 889, 878, 382, 0, 0, 872, 882, 881, + 881, 0, 866, 385, 0, 0, 868, 390, 875, 876, - 867, 861, 860, 861, 860, 860, 337, 393, 855, 0, - 0, 851, 850, 849, 851, 852, 857, 851, 847, 860, - 855, 855, 853, 852, 846, 840, 842, 841, 845, 850, - 836, 839, 834, 842, 847, 835, 832, 844, 835, 0, - 0, 841, 837, 0, 829, 829, 834, 825, 832, 396, - 829, 0, 0, 0, 0, 819, 831, 830, 817, 818, - 827, 828, 828, 0, 813, 0, 0, 0, 814, 0, - 822, 813, 0, 812, 813, 807, 817, 0, 0, 0, - 808, 0, 804, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 814, 400, 813, 0, 0, 811, 807, 804, + 867, 861, 860, 861, 860, 860, 337, 393, 855, 0, 0, 851, 850, 849, 851, + 852, 857, 851, 847, 860, 855, 855, 853, 852, 846, 840, 842, 841, 845, 850, + 836, 839, 834, 842, 847, 835, 832, 844, 835, 0, 0, 841, 837, 0, 829, + 829, 834, 825, 832, 396, 829, 0, 0, 0, 0, 819, 831, 830, 817, 818, + 827, 828, 828, 0, 813, 0, 0, 0, 814, 0, 822, 813, 0, 812, 813, + 807, 817, 0, 0, 0, 808, 0, 804, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 814, 400, 813, 0, 0, 811, 807, 804, - 848, 847, 0, 0, 0, 794, 403, 409, 412, 799, - 795, 800, 791, 789, 802, 787, 0, 787, 800, 789, - 785, 791, 786, 793, 793, 0, 790, 787, 791, 775, - 773, 776, 782, 788, 783, 782, 770, 0, 772, 773, - 0, 0, 0, 0, 770, 773, 0, 767, 777, 768, - 0, 778, 758, 0, 767, 762, 0, 755, 755, 768, - 0, 770, 0, 418, 785, 784, 783, 748, 747, 0, - 764, 763, 758, 795, 786, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 745, 758, 745, 742, 0, - 0, 747, 383, 0, 744, 751, 750, 0, 736, 0, + 848, 847, 0, 0, 0, 794, 403, 409, 412, 799, 795, 800, 791, 789, 802, + 787, 0, 787, 800, 789, 785, 791, 786, 793, 793, 0, 790, 787, 791, 775, + 773, 776, 782, 788, 783, 782, 770, 0, 772, 773, 0, 0, 0, 0, 770, + 773, 0, 767, 777, 768, 0, 778, 758, 0, 767, 762, 0, 755, 755, 768, + 0, 770, 0, 418, 785, 784, 783, 748, 747, 0, 764, 763, 758, 795, 786, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 745, 758, 745, 742, 0, + 0, 747, 383, 0, 744, 751, 750, 0, 736, 0, - 0, 0, 0, 0, 733, 0, 0, 732, 743, 426, - 736, 742, 741, 738, 733, 730, 750, 736, 721, 721, - 734, 719, 731, 0, 0, 724, 749, 748, 747, 712, - 711, 408, 414, 0, 723, 726, 724, 713, 709, 724, - 0, 0, 720, 717, 716, 706, 0, 705, 695, 712, - 698, 430, 706, 709, 0, 728, 727, 726, 691, 690, - 0, 704, 691, 0, 701, 694, 686, 687, 693, 696, - 0, 0, 0, 0, 718, 717, 0, 692, 695, 680, - 687, 678, 685, 686, 686, 685, 671, 436, 682, 682, - 0, 683, 672, 671, 0, 0, 0, 698, 697, 696, + 0, 0, 0, 0, 733, 0, 0, 732, 743, 426, 736, 742, 741, 738, 733, + 730, 750, 736, 721, 721, 734, 719, 731, 0, 0, 724, 749, 748, 747, 712, + 711, 408, 414, 0, 723, 726, 724, 713, 709, 724, 0, 0, 720, 717, 716, + 706, 0, 705, 695, 712, 698, 430, 706, 709, 0, 728, 727, 726, 691, 690, + 0, 704, 691, 0, 701, 694, 686, 687, 693, 696, 0, 0, 0, 0, 718, + 717, 0, 692, 695, 680, 687, 678, 685, 686, 686, 685, 671, 436, 682, 682, + 0, 683, 672, 671, 0, 0, 0, 698, 697, 696, - 661, 660, 656, 664, 0, 694, 693, 0, 668, 671, - 0, 454, 0, 649, 670, 684, 656, 0, 652, 651, - 660, 660, 648, 662, 646, 660, 655, 0, 0, 0, - 674, 673, 672, 637, 636, 635, 0, 635, 0, 0, - 425, 436, 661, 645, 648, 631, 643, 631, 630, 639, - 639, 658, 657, 656, 621, 620, 0, 625, 615, 618, - 619, 618, 628, 0, 631, 627, 629, 625, 612, 645, - 442, 0, 620, 623, 613, 614, 606, 613, 604, 627, - 613, 609, 611, 609, 609, 608, 0, 596, 595, 605, - 0, 627, 450, 0, 602, 605, 602, 587, 0, 603, + 661, 660, 656, 664, 0, 694, 693, 0, 668, 671, 0, 454, 0, 649, 670, + 684, 656, 0, 652, 651, 660, 660, 648, 662, 646, 660, 655, 0, 0, 0, + 674, 673, 672, 637, 636, 635, 0, 635, 0, 0, 425, 436, 661, 645, 648, + 631, 643, 631, 630, 639, 639, 658, 657, 656, 621, 620, 0, 625, 615, 618, + 619, 618, 628, 0, 631, 627, 629, 625, 612, 645, 442, 0, 620, 623, 613, + 614, 606, 613, 604, 627, 613, 609, 611, 609, 609, 608, 0, 596, 595, 605, + 0, 627, 450, 0, 602, 605, 602, 587, 0, 603, - 602, 586, 578, 586, 576, 584, 0, 581, 580, 603, - 589, 587, 587, 580, 570, 573, 587, 571, 604, 582, - 583, 580, 577, 589, 564, 578, 577, 561, 560, 559, - 582, 568, 566, 566, 569, 564, 545, 544, 0, 574, - 544, 572, 542, 546, 545, 578, 556, 553, 0, 557, - 551, 553, 547, 543, 524, 518, 517, 502, 502, 170, - 253, 248, 257, 0, 297, 298, 350, 342, 351, 0, - 358, 359, 0, 0, 383, 0, 400, 0, 410, 411, - 399, 408, 413, 414, 0, 411, 421, 413, 424, 450, - 429, 0, 0, 443, 444, 0, 0, 445, 446, 432, + 602, 586, 578, 586, 576, 584, 0, 581, 580, 603, 589, 587, 587, 580, 570, + 573, 587, 571, 604, 582, 583, 580, 577, 589, 564, 578, 577, 561, 560, 559, + 582, 568, 566, 566, 569, 564, 545, 544, 0, 574, 544, 572, 542, 546, 545, + 578, 556, 553, 0, 557, 551, 553, 547, 543, 524, 518, 517, 502, 502, 170, + 253, 248, 257, 0, 297, 298, 350, 342, 351, 0, 358, 359, 0, 0, 383, + 0, 400, 0, 410, 411, 399, 408, 413, 414, 0, 411, 421, 413, 424, 450, + 429, 0, 0, 443, 444, 0, 0, 445, 446, 432, - 431, 434, 447, 439, 452, 453, 432, 433, 441, 0, - 0, 457, 467, 439, 469, 461, 455, 443, 461, 455, - 444, 445, 453, 0, 0, 484, 470, 468, 469, 0, - 0, 473, 462, 468, 0, 469, 455, 478, 0, 466, - 491, 0, 0, 481, 488, 473, 471, 472, 464, 481, - 488, 489, 0, 487, 471, 507, 471, 502, 528, 476, - 477, 0, 494, 496, 497, 488, 0, 511, 0, 0, - 519, 0, 0, 0, 491, 492, 486, 0, 512, 488, - 489, 0, 543, 0, 0, 516, 527, 519, 522, 0, - 1096, 562, 568, 574, 580, 584, 590, 591, 597, 600 + 431, 434, 447, 439, 452, 453, 432, 433, 441, 0, 0, 457, 467, 439, 469, + 461, 455, 443, 461, 455, 444, 445, 453, 0, 0, 484, 470, 468, 469, 0, + 0, 473, 462, 468, 0, 469, 455, 478, 0, 466, 491, 0, 0, 481, 488, + 473, 471, 472, 464, 481, 488, 489, 0, 487, 471, 507, 471, 502, 528, 476, + 477, 0, 494, 496, 497, 488, 0, 511, 0, 0, 519, 0, 0, 0, 491, + 492, 486, 0, 512, 488, 489, 0, 543, 0, 0, 516, 527, 519, 522, 0, + 1096, 562, 568, 574, 580, 584, 590, 591, 597, 600 - } ; +}; -static const flex_int16_t yy_def[901] = - { 0, - 891, 1, 891, 3, 891, 891, 891, 891, 891, 891, - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 892, 891, 891, 891, 891, 891, 891, 893, 891, 891, - 891, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 891, 891, 891, 891, 891, 891, 891, - 894, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 895, 891, 896, 20, 892, 897, 891, 898, 891, - 891, 891, 891, 891, 891, 891, 891, 893, 891, 891, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, +static const flex_int16_t yy_def[901] = { + 0, 891, 1, 891, 3, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, + 891, 891, 891, 891, 892, 891, 891, 891, 891, 891, 891, 893, 891, 891, 891, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 891, 891, 891, 891, 891, 891, 891, 894, 891, 891, 891, 891, 891, 891, + 891, 891, 891, 891, 895, 891, 896, 20, 892, 897, 891, 898, 891, 891, 891, 891, 891, + 891, 891, 891, 893, 891, 891, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 891, 891, 894, - 899, 891, 896, 900, 891, 891, 891, 897, 898, 891, - 891, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 891, 891, 894, 899, 891, 896, 900, 891, 891, 891, 897, + 898, 891, 891, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 891, - 899, 891, 900, 891, 891, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 891, 899, 891, 900, 891, 891, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, - 0, 891, 891, 891, 891, 891, 891, 891, 891, 891 + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, 893, + 893, 893, 893, 893, 893, 0, 891, 891, 891, 891, 891, 891, 891, 891, 891 - } ; +}; -static const flex_int16_t yy_nxt[1174] = - { 0, - 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, 18, 19, 20, 21, 21, 21, 21, 21, - 21, 21, 21, 21, 22, 23, 24, 25, 26, 27, - 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, - 28, 28, 28, 28, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 28, 42, - 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, - 28, 53, 28, 54, 55, 56, 57, 58, 59, 60, - 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, - 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, +static const flex_int16_t yy_nxt[1174] = { + 0, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 21, 21, + 21, 21, 21, 21, 21, 21, 22, 23, 24, 25, 26, 27, 28, 28, 28, 28, 28, 28, 28, + 28, 28, 28, 28, 28, 28, 28, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, 41, 28, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 28, 53, 28, 54, 55, + 56, 57, 58, 59, 60, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, + 58, 58, 58, 58, 58, 58, - 58, 58, 58, 58, 58, 58, 58, 61, 61, 61, - 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, - 61, 61, 58, 58, 58, 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, - 58, 58, 58, 58, 63, 64, 65, 68, 70, 72, - 72, 72, 72, 72, 72, 72, 72, 72, 72, 155, - 74, 81, 86, 87, 71, 69, 89, 156, 66, 74, - 158, 75, 75, 75, 75, 75, 75, 75, 75, 76, - 76, 82, 77, 83, 84, 195, 90, 95, 92, 96, + 58, 58, 58, 58, 58, 58, 58, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, 61, + 61, 61, 61, 58, 58, 58, 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, 58, 58, 58, 58, 63, 64, 65, + 68, 70, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 155, 74, 81, 86, 87, 71, 69, + 89, 156, 66, 74, 158, 75, 75, 75, 75, 75, 75, 75, 75, 76, 76, 82, 77, 83, 84, + 195, 90, 95, 92, 96, - 78, 77, 97, 98, 99, 107, 196, 108, 100, 78, - 79, 77, 93, 94, 101, 103, 109, 102, 128, 104, - 77, 116, 129, 110, 105, 78, 794, 159, 126, 117, - 106, 111, 119, 112, 78, 120, 113, 79, 121, 122, - 118, 127, 114, 123, 124, 130, 125, 133, 265, 137, - 144, 152, 167, 145, 167, 153, 138, 139, 131, 175, - 140, 146, 134, 176, 154, 135, 141, 142, 147, 143, - 148, 161, 162, 265, 149, 164, 165, 216, 150, 166, - 891, 151, 184, 74, 197, 217, 185, 186, 224, 207, - 161, 162, 208, 209, 164, 165, 210, 198, 211, 229, + 78, 77, 97, 98, 99, 107, 196, 108, 100, 78, 79, 77, 93, 94, 101, 103, 109, 102, 128, + 104, 77, 116, 129, 110, 105, 78, 794, 159, 126, 117, 106, 111, 119, 112, 78, 120, 113, 79, + 121, 122, 118, 127, 114, 123, 124, 130, 125, 133, 265, 137, 144, 152, 167, 145, 167, 153, 138, + 139, 131, 175, 140, 146, 134, 176, 154, 135, 141, 142, 147, 143, 148, 161, 162, 265, 149, 164, + 165, 216, 150, 166, 891, 151, 184, 74, 197, 217, 185, 186, 224, 207, 161, 162, 208, 209, 164, + 165, 210, 198, 211, 229, - 221, 225, 237, 226, 166, 77, 222, 891, 233, 239, - 246, 247, 248, 78, 795, 230, 231, 238, 250, 796, - 249, 234, 240, 255, 77, 256, 251, 260, 797, 260, - 164, 165, 262, 891, 262, 891, 280, 281, 78, 168, - 168, 168, 168, 168, 168, 168, 168, 168, 168, 164, - 165, 274, 312, 313, 314, 345, 326, 401, 402, 264, - 327, 798, 799, 346, 275, 352, 353, 354, 261, 261, - 261, 261, 261, 261, 261, 261, 261, 261, 264, 891, - 800, 891, 263, 263, 263, 263, 263, 263, 263, 263, - 263, 263, 891, 801, 891, 366, 367, 368, 378, 379, + 221, 225, 237, 226, 166, 77, 222, 891, 233, 239, 246, 247, 248, 78, 795, 230, 231, 238, 250, + 796, 249, 234, 240, 255, 77, 256, 251, 260, 797, 260, 164, 165, 262, 891, 262, 891, 280, 281, + 78, 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 164, 165, 274, 312, 313, 314, 345, 326, + 401, 402, 264, 327, 798, 799, 346, 275, 352, 353, 354, 261, 261, 261, 261, 261, 261, 261, 261, + 261, 261, 264, 891, 800, 891, 263, 263, 263, 263, 263, 263, 263, 263, 263, 263, 891, 801, 891, + 366, 367, 368, 378, 379, - 380, 386, 387, 388, 802, 162, 390, 391, 392, 403, - 404, 405, 442, 443, 444, 465, 466, 467, 165, 477, - 478, 479, 803, 804, 162, 480, 481, 482, 483, 484, - 485, 468, 469, 527, 528, 529, 547, 165, 580, 805, - 548, 556, 557, 558, 582, 598, 599, 600, 581, 530, - 531, 631, 632, 633, 583, 677, 806, 559, 560, 807, - 808, 601, 602, 809, 603, 678, 679, 634, 635, 652, - 653, 654, 709, 680, 810, 681, 682, 811, 812, 710, - 730, 711, 813, 814, 815, 655, 656, 731, 816, 732, - 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, + 380, 386, 387, 388, 802, 162, 390, 391, 392, 403, 404, 405, 442, 443, 444, 465, 466, 467, 165, + 477, 478, 479, 803, 804, 162, 480, 481, 482, 483, 484, 485, 468, 469, 527, 528, 529, 547, 165, + 580, 805, 548, 556, 557, 558, 582, 598, 599, 600, 581, 530, 531, 631, 632, 633, 583, 677, 806, + 559, 560, 807, 808, 601, 602, 809, 603, 678, 679, 634, 635, 652, 653, 654, 709, 680, 810, 681, + 682, 811, 812, 710, 730, 711, 813, 814, 815, 655, 656, 731, 816, 732, 817, 818, 819, 820, 821, + 822, 823, 824, 825, 826, - 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, - 837, 838, 839, 840, 841, 842, 843, 844, 845, 846, - 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, - 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, - 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, - 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, - 887, 888, 889, 890, 76, 76, 793, 76, 792, 791, - 76, 88, 88, 88, 88, 88, 88, 160, 160, 160, - 160, 160, 160, 72, 790, 72, 72, 163, 789, 163, - 163, 168, 788, 168, 169, 169, 169, 169, 261, 787, + 827, 828, 829, 830, 831, 832, 833, 834, 835, 836, 837, 838, 839, 840, 841, 842, 843, 844, 845, + 846, 847, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, + 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, + 884, 885, 886, 887, 888, 889, 890, 76, 76, 793, 76, 792, 791, 76, 88, 88, 88, 88, 88, + 88, 160, 160, 160, 160, 160, 160, 72, 790, 72, 72, 163, 789, 163, 163, 168, 788, 168, 169, + 169, 169, 169, 261, 787, - 261, 263, 786, 263, 785, 784, 783, 782, 781, 780, - 779, 778, 777, 776, 775, 774, 773, 772, 771, 770, - 769, 768, 767, 766, 765, 764, 763, 762, 761, 760, - 759, 758, 757, 756, 755, 754, 753, 752, 751, 750, - 749, 748, 747, 746, 745, 744, 743, 742, 741, 740, - 739, 738, 737, 736, 735, 734, 733, 729, 728, 727, - 726, 725, 724, 723, 722, 721, 720, 719, 718, 717, - 716, 715, 714, 713, 712, 708, 707, 706, 705, 704, - 703, 702, 701, 700, 699, 698, 697, 696, 695, 694, - 693, 692, 691, 690, 689, 688, 687, 686, 685, 684, + 261, 263, 786, 263, 785, 784, 783, 782, 781, 780, 779, 778, 777, 776, 775, 774, 773, 772, 771, + 770, 769, 768, 767, 766, 765, 764, 763, 762, 761, 760, 759, 758, 757, 756, 755, 754, 753, 752, + 751, 750, 749, 748, 747, 746, 745, 744, 743, 742, 741, 740, 739, 738, 737, 736, 735, 734, 733, + 729, 728, 727, 726, 725, 724, 723, 722, 721, 720, 719, 718, 717, 716, 715, 714, 713, 712, 708, + 707, 706, 705, 704, 703, 702, 701, 700, 699, 698, 697, 696, 695, 694, 693, 692, 691, 690, 689, + 688, 687, 686, 685, 684, - 683, 676, 675, 674, 673, 672, 671, 670, 669, 668, - 667, 666, 665, 664, 663, 662, 661, 660, 659, 658, - 657, 651, 650, 649, 648, 647, 646, 645, 644, 643, - 642, 641, 640, 639, 638, 637, 636, 630, 629, 628, - 627, 626, 625, 624, 623, 622, 621, 620, 619, 618, - 617, 616, 615, 614, 613, 612, 611, 610, 609, 608, - 607, 606, 605, 604, 597, 596, 595, 594, 593, 592, - 591, 590, 589, 588, 587, 586, 585, 584, 579, 578, - 577, 576, 575, 574, 573, 572, 571, 570, 569, 568, - 567, 566, 565, 564, 563, 562, 561, 555, 554, 553, + 683, 676, 675, 674, 673, 672, 671, 670, 669, 668, 667, 666, 665, 664, 663, 662, 661, 660, 659, + 658, 657, 651, 650, 649, 648, 647, 646, 645, 644, 643, 642, 641, 640, 639, 638, 637, 636, 630, + 629, 628, 627, 626, 625, 624, 623, 622, 621, 620, 619, 618, 617, 616, 615, 614, 613, 612, 611, + 610, 609, 608, 607, 606, 605, 604, 597, 596, 595, 594, 593, 592, 591, 590, 589, 588, 587, 586, + 585, 584, 579, 578, 577, 576, 575, 574, 573, 572, 571, 570, 569, 568, 567, 566, 565, 564, 563, + 562, 561, 555, 554, 553, - 552, 551, 550, 549, 546, 545, 544, 543, 542, 541, - 540, 539, 538, 537, 536, 535, 534, 533, 532, 526, - 525, 524, 523, 522, 521, 520, 519, 518, 517, 516, - 515, 514, 513, 512, 511, 510, 509, 508, 507, 506, - 505, 504, 503, 502, 501, 500, 499, 498, 497, 496, - 495, 494, 493, 492, 491, 490, 489, 488, 487, 486, - 476, 475, 474, 473, 472, 471, 470, 464, 463, 462, - 461, 460, 459, 458, 457, 456, 455, 454, 453, 452, - 451, 450, 449, 448, 447, 446, 445, 441, 440, 439, - 438, 437, 436, 435, 434, 433, 432, 431, 430, 429, + 552, 551, 550, 549, 546, 545, 544, 543, 542, 541, 540, 539, 538, 537, 536, 535, 534, 533, 532, + 526, 525, 524, 523, 522, 521, 520, 519, 518, 517, 516, 515, 514, 513, 512, 511, 510, 509, 508, + 507, 506, 505, 504, 503, 502, 501, 500, 499, 498, 497, 496, 495, 494, 493, 492, 491, 490, 489, + 488, 487, 486, 476, 475, 474, 473, 472, 471, 470, 464, 463, 462, 461, 460, 459, 458, 457, 456, + 455, 454, 453, 452, 451, 450, 449, 448, 447, 446, 445, 441, 440, 439, 438, 437, 436, 435, 434, + 433, 432, 431, 430, 429, - 428, 427, 426, 425, 424, 423, 422, 421, 420, 419, - 418, 417, 416, 415, 414, 413, 412, 411, 410, 409, - 408, 407, 406, 400, 399, 398, 397, 396, 395, 394, - 393, 389, 385, 384, 383, 382, 381, 377, 376, 375, - 374, 373, 372, 371, 370, 369, 365, 364, 363, 362, - 361, 360, 359, 358, 357, 356, 355, 351, 350, 349, - 348, 347, 344, 343, 342, 341, 340, 339, 338, 337, - 336, 335, 334, 333, 332, 331, 330, 329, 328, 325, - 324, 323, 322, 321, 320, 319, 318, 317, 316, 315, - 311, 310, 309, 308, 307, 306, 305, 304, 303, 302, + 428, 427, 426, 425, 424, 423, 422, 421, 420, 419, 418, 417, 416, 415, 414, 413, 412, 411, 410, + 409, 408, 407, 406, 400, 399, 398, 397, 396, 395, 394, 393, 389, 385, 384, 383, 382, 381, 377, + 376, 375, 374, 373, 372, 371, 370, 369, 365, 364, 363, 362, 361, 360, 359, 358, 357, 356, 355, + 351, 350, 349, 348, 347, 344, 343, 342, 341, 340, 339, 338, 337, 336, 335, 334, 333, 332, 331, + 330, 329, 328, 325, 324, 323, 322, 321, 320, 319, 318, 317, 316, 315, 311, 310, 309, 308, 307, + 306, 305, 304, 303, 302, - 301, 300, 299, 298, 297, 296, 295, 294, 293, 292, - 291, 290, 289, 288, 287, 286, 285, 284, 283, 282, - 279, 278, 277, 276, 273, 272, 271, 270, 269, 268, - 267, 266, 259, 258, 257, 254, 253, 252, 245, 244, - 243, 242, 241, 236, 235, 232, 228, 227, 223, 220, - 219, 218, 215, 214, 213, 212, 206, 205, 204, 203, - 202, 201, 200, 199, 194, 193, 192, 191, 190, 189, - 188, 187, 183, 182, 181, 180, 179, 178, 177, 174, - 173, 172, 171, 170, 157, 136, 132, 115, 91, 85, - 80, 73, 67, 62, 891, 5, 891, 891, 891, 891, + 301, 300, 299, 298, 297, 296, 295, 294, 293, 292, 291, 290, 289, 288, 287, 286, 285, 284, 283, + 282, 279, 278, 277, 276, 273, 272, 271, 270, 269, 268, 267, 266, 259, 258, 257, 254, 253, 252, + 245, 244, 243, 242, 241, 236, 235, 232, 228, 227, 223, 220, 219, 218, 215, 214, 213, 212, 206, + 205, 204, 203, 202, 201, 200, 199, 194, 193, 192, 191, 190, 189, 188, 187, 183, 182, 181, 180, + 179, 178, 177, 174, 173, 172, 171, 170, 157, 136, 132, 115, 91, 85, 80, 73, 67, 62, 891, + 5, 891, 891, 891, 891, - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 891, 891 - } ; + 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, + 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, + 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, + 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891}; -static const flex_int16_t yy_chk[1174] = - { 0, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, +static const flex_int16_t yy_chk[1174] = { + 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 10, 10, 11, 15, 17, 18, - 18, 18, 18, 18, 18, 18, 18, 18, 18, 52, - 21, 24, 26, 26, 17, 15, 31, 52, 11, 20, - 55, 20, 20, 20, 20, 20, 20, 20, 20, 20, - 20, 24, 21, 24, 24, 111, 31, 34, 33, 34, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 10, 10, 11, + 15, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 52, 21, 24, 26, 26, 17, 15, + 31, 52, 11, 20, 55, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 24, 21, 24, 24, + 111, 31, 34, 33, 34, - 21, 20, 34, 34, 35, 37, 111, 37, 35, 20, - 20, 21, 33, 33, 35, 36, 37, 35, 43, 36, - 20, 40, 43, 38, 36, 21, 760, 55, 42, 40, - 36, 38, 41, 38, 20, 41, 38, 20, 41, 41, - 40, 42, 38, 41, 41, 44, 41, 46, 169, 48, - 49, 51, 77, 49, 77, 51, 48, 48, 44, 94, - 48, 49, 46, 94, 51, 46, 48, 48, 49, 48, - 50, 72, 72, 169, 50, 74, 74, 127, 50, 75, - 75, 50, 102, 76, 112, 127, 102, 102, 133, 122, - 72, 72, 122, 122, 74, 74, 122, 112, 122, 136, + 21, 20, 34, 34, 35, 37, 111, 37, 35, 20, 20, 21, 33, 33, 35, 36, 37, 35, 43, + 36, 20, 40, 43, 38, 36, 21, 760, 55, 42, 40, 36, 38, 41, 38, 20, 41, 38, 20, + 41, 41, 40, 42, 38, 41, 41, 44, 41, 46, 169, 48, 49, 51, 77, 49, 77, 51, 48, + 48, 44, 94, 48, 49, 46, 94, 51, 46, 48, 48, 49, 48, 50, 72, 72, 169, 50, 74, + 74, 127, 50, 75, 75, 50, 102, 76, 112, 127, 102, 102, 133, 122, 72, 72, 122, 122, 74, + 74, 122, 112, 122, 136, - 131, 133, 141, 133, 75, 76, 131, 75, 138, 142, - 148, 148, 149, 76, 761, 136, 136, 141, 150, 762, - 149, 138, 142, 154, 76, 154, 150, 161, 763, 161, - 163, 163, 164, 168, 164, 168, 186, 186, 76, 167, - 167, 167, 167, 167, 167, 167, 167, 167, 167, 163, - 163, 181, 218, 218, 218, 248, 230, 307, 307, 168, - 230, 765, 766, 248, 181, 254, 254, 254, 260, 260, - 260, 260, 260, 260, 260, 260, 260, 260, 168, 261, - 767, 261, 262, 262, 262, 262, 262, 262, 262, 262, - 262, 262, 263, 768, 263, 273, 273, 273, 285, 285, + 131, 133, 141, 133, 75, 76, 131, 75, 138, 142, 148, 148, 149, 76, 761, 136, 136, 141, 150, + 762, 149, 138, 142, 154, 76, 154, 150, 161, 763, 161, 163, 163, 164, 168, 164, 168, 186, 186, + 76, 167, 167, 167, 167, 167, 167, 167, 167, 167, 167, 163, 163, 181, 218, 218, 218, 248, 230, + 307, 307, 168, 230, 765, 766, 248, 181, 254, 254, 254, 260, 260, 260, 260, 260, 260, 260, 260, + 260, 260, 168, 261, 767, 261, 262, 262, 262, 262, 262, 262, 262, 262, 262, 262, 263, 768, 263, + 273, 273, 273, 285, 285, - 285, 294, 294, 294, 769, 261, 298, 298, 298, 308, - 308, 308, 350, 350, 350, 394, 394, 394, 263, 407, - 407, 407, 771, 772, 261, 408, 408, 408, 409, 409, - 409, 394, 394, 464, 464, 464, 493, 263, 532, 775, - 493, 510, 510, 510, 533, 552, 552, 552, 532, 464, - 464, 588, 588, 588, 533, 641, 777, 510, 510, 779, - 780, 552, 552, 781, 552, 641, 642, 588, 588, 612, - 612, 612, 671, 642, 782, 642, 642, 783, 784, 671, - 693, 671, 786, 787, 788, 612, 612, 693, 789, 693, - 790, 791, 794, 795, 798, 799, 800, 801, 802, 803, + 285, 294, 294, 294, 769, 261, 298, 298, 298, 308, 308, 308, 350, 350, 350, 394, 394, 394, 263, + 407, 407, 407, 771, 772, 261, 408, 408, 408, 409, 409, 409, 394, 394, 464, 464, 464, 493, 263, + 532, 775, 493, 510, 510, 510, 533, 552, 552, 552, 532, 464, 464, 588, 588, 588, 533, 641, 777, + 510, 510, 779, 780, 552, 552, 781, 552, 641, 642, 588, 588, 612, 612, 612, 671, 642, 782, 642, + 642, 783, 784, 671, 693, 671, 786, 787, 788, 612, 612, 693, 789, 693, 790, 791, 794, 795, 798, + 799, 800, 801, 802, 803, - 804, 805, 806, 807, 808, 809, 812, 813, 814, 815, - 816, 817, 818, 819, 820, 821, 822, 823, 826, 827, - 828, 829, 832, 833, 834, 836, 837, 838, 840, 841, - 844, 845, 846, 847, 848, 849, 850, 851, 852, 854, - 855, 856, 857, 858, 859, 860, 861, 863, 864, 865, - 866, 868, 871, 875, 876, 877, 879, 880, 881, 883, - 886, 887, 888, 889, 892, 892, 759, 892, 758, 757, - 892, 893, 893, 893, 893, 893, 893, 894, 894, 894, - 894, 894, 894, 895, 756, 895, 895, 896, 755, 896, - 896, 897, 754, 897, 898, 898, 898, 898, 899, 753, + 804, 805, 806, 807, 808, 809, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 826, + 827, 828, 829, 832, 833, 834, 836, 837, 838, 840, 841, 844, 845, 846, 847, 848, 849, 850, 851, + 852, 854, 855, 856, 857, 858, 859, 860, 861, 863, 864, 865, 866, 868, 871, 875, 876, 877, 879, + 880, 881, 883, 886, 887, 888, 889, 892, 892, 759, 892, 758, 757, 892, 893, 893, 893, 893, 893, + 893, 894, 894, 894, 894, 894, 894, 895, 756, 895, 895, 896, 755, 896, 896, 897, 754, 897, 898, + 898, 898, 898, 899, 753, - 899, 900, 752, 900, 751, 750, 748, 747, 746, 745, - 744, 743, 742, 741, 740, 738, 737, 736, 735, 734, - 733, 732, 731, 730, 729, 728, 727, 726, 725, 724, - 723, 722, 721, 720, 719, 718, 717, 716, 715, 714, - 713, 712, 711, 710, 709, 708, 706, 705, 704, 703, - 702, 701, 700, 698, 697, 696, 695, 692, 690, 689, - 688, 686, 685, 684, 683, 682, 681, 680, 679, 678, - 677, 676, 675, 674, 673, 670, 669, 668, 667, 666, - 665, 663, 662, 661, 660, 659, 658, 656, 655, 654, - 653, 652, 651, 650, 649, 648, 647, 646, 645, 644, + 899, 900, 752, 900, 751, 750, 748, 747, 746, 745, 744, 743, 742, 741, 740, 738, 737, 736, 735, + 734, 733, 732, 731, 730, 729, 728, 727, 726, 725, 724, 723, 722, 721, 720, 719, 718, 717, 716, + 715, 714, 713, 712, 711, 710, 709, 708, 706, 705, 704, 703, 702, 701, 700, 698, 697, 696, 695, + 692, 690, 689, 688, 686, 685, 684, 683, 682, 681, 680, 679, 678, 677, 676, 675, 674, 673, 670, + 669, 668, 667, 666, 665, 663, 662, 661, 660, 659, 658, 656, 655, 654, 653, 652, 651, 650, 649, + 648, 647, 646, 645, 644, - 643, 638, 636, 635, 634, 633, 632, 631, 627, 626, - 625, 624, 623, 622, 621, 620, 619, 617, 616, 615, - 614, 610, 609, 607, 606, 604, 603, 602, 601, 600, - 599, 598, 594, 593, 592, 590, 589, 587, 586, 585, - 584, 583, 582, 581, 580, 579, 578, 576, 575, 570, - 569, 568, 567, 566, 565, 563, 562, 560, 559, 558, - 557, 556, 554, 553, 551, 550, 549, 548, 546, 545, - 544, 543, 540, 539, 538, 537, 536, 535, 531, 530, - 529, 528, 527, 526, 523, 522, 521, 520, 519, 518, - 517, 516, 515, 514, 513, 512, 511, 509, 508, 505, + 643, 638, 636, 635, 634, 633, 632, 631, 627, 626, 625, 624, 623, 622, 621, 620, 619, 617, 616, + 615, 614, 610, 609, 607, 606, 604, 603, 602, 601, 600, 599, 598, 594, 593, 592, 590, 589, 587, + 586, 585, 584, 583, 582, 581, 580, 579, 578, 576, 575, 570, 569, 568, 567, 566, 565, 563, 562, + 560, 559, 558, 557, 556, 554, 553, 551, 550, 549, 548, 546, 545, 544, 543, 540, 539, 538, 537, + 536, 535, 531, 530, 529, 528, 527, 526, 523, 522, 521, 520, 519, 518, 517, 516, 515, 514, 513, + 512, 511, 509, 508, 505, - 499, 497, 496, 495, 492, 489, 488, 487, 486, 475, - 474, 473, 472, 471, 469, 468, 467, 466, 465, 462, - 460, 459, 458, 456, 455, 453, 452, 450, 449, 448, - 446, 445, 440, 439, 437, 436, 435, 434, 433, 432, - 431, 430, 429, 428, 427, 425, 424, 423, 422, 421, - 420, 419, 418, 416, 415, 414, 413, 412, 411, 410, - 406, 402, 401, 400, 399, 398, 395, 393, 383, 381, - 377, 376, 375, 374, 372, 371, 369, 365, 363, 362, - 361, 360, 359, 358, 357, 356, 351, 349, 348, 347, - 346, 345, 343, 342, 339, 338, 337, 336, 335, 334, + 499, 497, 496, 495, 492, 489, 488, 487, 486, 475, 474, 473, 472, 471, 469, 468, 467, 466, 465, + 462, 460, 459, 458, 456, 455, 453, 452, 450, 449, 448, 446, 445, 440, 439, 437, 436, 435, 434, + 433, 432, 431, 430, 429, 428, 427, 425, 424, 423, 422, 421, 420, 419, 418, 416, 415, 414, 413, + 412, 411, 410, 406, 402, 401, 400, 399, 398, 395, 393, 383, 381, 377, 376, 375, 374, 372, 371, + 369, 365, 363, 362, 361, 360, 359, 358, 357, 356, 351, 349, 348, 347, 346, 345, 343, 342, 339, + 338, 337, 336, 335, 334, - 333, 332, 331, 330, 329, 328, 327, 326, 325, 324, - 323, 322, 321, 320, 319, 318, 317, 316, 315, 314, - 313, 312, 309, 306, 305, 304, 303, 302, 301, 300, - 299, 297, 293, 291, 290, 289, 288, 284, 283, 282, - 281, 280, 279, 278, 277, 276, 272, 271, 269, 268, - 267, 266, 259, 258, 257, 256, 255, 253, 252, 251, - 250, 249, 247, 246, 245, 244, 243, 242, 241, 240, - 239, 238, 237, 236, 235, 234, 233, 232, 231, 229, - 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, - 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, + 333, 332, 331, 330, 329, 328, 327, 326, 325, 324, 323, 322, 321, 320, 319, 318, 317, 316, 315, + 314, 313, 312, 309, 306, 305, 304, 303, 302, 301, 300, 299, 297, 293, 291, 290, 289, 288, 284, + 283, 282, 281, 280, 279, 278, 277, 276, 272, 271, 269, 268, 267, 266, 259, 258, 257, 256, 255, + 253, 252, 251, 250, 249, 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, + 233, 232, 231, 229, 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, 217, 216, 215, 214, 213, + 212, 211, 210, 209, 208, - 207, 206, 205, 204, 203, 202, 201, 200, 198, 197, - 196, 195, 194, 193, 192, 191, 190, 189, 188, 187, - 185, 184, 183, 182, 180, 179, 178, 177, 176, 175, - 173, 172, 157, 156, 155, 153, 152, 151, 147, 146, - 145, 144, 143, 140, 139, 137, 135, 134, 132, 130, - 129, 128, 126, 125, 124, 123, 121, 120, 118, 117, - 116, 115, 114, 113, 110, 109, 108, 107, 106, 105, - 104, 103, 101, 100, 99, 98, 97, 96, 95, 93, - 92, 91, 87, 83, 53, 47, 45, 39, 32, 25, - 22, 19, 14, 9, 5, 891, 891, 891, 891, 891, - - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, - 891, 891, 891 - } ; + 207, 206, 205, 204, 203, 202, 201, 200, 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, + 187, 185, 184, 183, 182, 180, 179, 178, 177, 176, 175, 173, 172, 157, 156, 155, 153, 152, 151, + 147, 146, 145, 144, 143, 140, 139, 137, 135, 134, 132, 130, 129, 128, 126, 125, 124, 123, 121, + 120, 118, 117, 116, 115, 114, 113, 110, 109, 108, 107, 106, 105, 104, 103, 101, 100, 99, 98, + 97, 96, 95, 93, 92, 91, 87, 83, 53, 47, 45, 39, 32, 25, 22, 19, 14, 9, 5, + 891, 891, 891, 891, 891, + 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, + 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, + 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, + 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891, 891}; /* Table of booleans, true if rule could match eol. */ -static const flex_int32_t yy_rule_can_match_eol[249] = - { 0, -0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 1, 0, 0, }; +static const flex_int32_t yy_rule_can_match_eol[249] = { + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, +}; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. @@ -1195,11 +851,11 @@ IF YOU MODIFY THIS FILE YOU ALSO NEED TO RUN scripts/run_code_generation.py WHICH GENERATES THE GLSL ES LEXER (glslang_lex_autogen.cpp). */ -#include "compiler/translator/glslang.h" -#include "compiler/translator/ParseContext.h" #include "compiler/preprocessor/Token.h" -#include "compiler/translator/util.h" +#include "compiler/translator/ParseContext.h" +#include "compiler/translator/glslang.h" #include "compiler/translator/length_limits.h" +#include "compiler/translator/util.h" using namespace sh; @@ -1207,14 +863,14 @@ using namespace sh; /* windows only pragma */ #ifdef _MSC_VER -#pragma warning(disable : 4102) +# pragma warning(disable : 4102) #endif // Workaround for flex using the register keyword, deprecated in C++11. #ifdef __cplusplus -#if __cplusplus > 199711L -#define register -#endif +# if __cplusplus > 199711L +# define register +# endif #endif #define YY_NO_INPUT @@ -1222,15 +878,17 @@ using namespace sh; yylloc->first_file = yylloc->last_file = yycolumn; \ yylloc->first_line = yylloc->last_line = yylineno; -#define YY_INPUT(buf, result, max_size) \ - result = string_input(buf, max_size, yyscanner); +#define YY_INPUT(buf, result, max_size) result = string_input(buf, max_size, yyscanner); -static yy_size_t string_input(char* buf, yy_size_t max_size, yyscan_t yyscanner); +static yy_size_t string_input(char *buf, yy_size_t max_size, yyscan_t yyscanner); static int check_type(yyscan_t yyscanner); static int reserved_word(yyscan_t yyscanner); -// Tests if an extension is enabled. If the extension is promoted to core, this function returns true. +// Tests if an extension is enabled. If the extension is promoted to core, this function returns +// true. static bool is_extension_enabled_or_is_core(TParseContext *context, - int extension_version, TExtension extension, int promotion_version); + int extension_version, + TExtension extension, + int promotion_version); // Helpers to determine if a symbol is reserved, keyword in extension or core, or identifier. // Formatted as: // @@ -1245,45 +903,42 @@ static int ES3_keyword(TParseContext *context, int token); static int ES3_reserved_ES3_1_keyword(TParseContext *context, int token); static int ES2_reserved_ES3_1_keyword(TParseContext *context, int token); static int ES3_1_keyword(TParseContext *context, int token); -static int ES2_reserved_ES2_extension_ES3_keyword(TParseContext *context, TExtension extension, int token); +static int ES2_reserved_ES2_extension_ES3_keyword(TParseContext *context, + TExtension extension, + int token); static int ES3_extension(TParseContext *context, TExtension extension, int token); -static int ES3_reserved_ES3_1_extension_ES3_2_keyword(TParseContext *context, TExtension extension, int token); -static int ES3_reserved_ES3_extension_ES3_1_keyword(TParseContext *context, TExtension extension, int token); -static int ES3_1_reserved_ES3_1_extension_ES3_2_keyword(TParseContext *context, TExtension extension, int token); +static int ES3_reserved_ES3_1_extension_ES3_2_keyword(TParseContext *context, + TExtension extension, + int token); +static int ES3_reserved_ES3_extension_ES3_1_keyword(TParseContext *context, + TExtension extension, + int token); +static int ES3_1_reserved_ES3_1_extension_ES3_2_keyword(TParseContext *context, + TExtension extension, + int token); static int uint_constant(TParseContext *context); static int int_constant(TParseContext *context); static int float_constant(yyscan_t yyscanner); -static int floatsuffix_check(TParseContext* context); +static int floatsuffix_check(TParseContext *context); static int yuvcscstandardext_constant(TParseContext *context); - - - #define INITIAL 0 #define FIELDS 1 - - - - - -#define YY_EXTRA_TYPE TParseContext* - - - +#define YY_EXTRA_TYPE TParseContext * /* Holds the entire state of the reentrant scanner. */ struct yyguts_t - { +{ /* User-defined. Not touched by flex. */ YY_EXTRA_TYPE yyextra_r; /* The rest are the same as the globals declared in the non-reentrant scanner. */ FILE *yyin_r, *yyout_r; - size_t yy_buffer_stack_top; /**< index of top of stack. */ - size_t yy_buffer_stack_max; /**< capacity of stack. */ - YY_BUFFER_STATE * yy_buffer_stack; /**< Stack as an array. */ + size_t yy_buffer_stack_top; /**< index of top of stack. */ + size_t yy_buffer_stack_max; /**< capacity of stack. */ + YY_BUFFER_STATE *yy_buffer_stack; /**< Stack as an array. */ char yy_hold_char; int yy_n_chars; int yyleng_r; @@ -1295,1740 +950,1497 @@ struct yyguts_t int yy_start_stack_depth; int *yy_start_stack; yy_state_type yy_last_accepting_state; - char* yy_last_accepting_cpos; + char *yy_last_accepting_cpos; int yylineno_r; int yy_flex_debug_r; - - - char *yytext_r; int yy_more_flag; int yy_more_len; + YYSTYPE *yylval_r; + YYLTYPE *yylloc_r; - YYSTYPE * yylval_r; +}; /* end struct yyguts_t */ +static int yy_init_globals(yyscan_t yyscanner); +/* This must go here because YYSTYPE and YYLTYPE are included + * from bison output in section 1.*/ +#define yylval yyg->yylval_r - YYLTYPE * yylloc_r; - - - }; /* end struct yyguts_t */ - - - - -static int yy_init_globals ( yyscan_t yyscanner ); - - - - - - /* This must go here because YYSTYPE and YYLTYPE are included - * from bison output in section 1.*/ - # define yylval yyg->yylval_r - - - - # define yylloc yyg->yylloc_r - - - -int yylex_init (yyscan_t* scanner); - -int yylex_init_extra ( YY_EXTRA_TYPE user_defined, yyscan_t* scanner); +#define yylloc yyg->yylloc_r +int yylex_init(yyscan_t *scanner); +int yylex_init_extra(YY_EXTRA_TYPE user_defined, yyscan_t *scanner); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ +int yylex_destroy(yyscan_t yyscanner); -int yylex_destroy ( yyscan_t yyscanner ); +int yyget_debug(yyscan_t yyscanner); +void yyset_debug(int debug_flag, yyscan_t yyscanner); +YY_EXTRA_TYPE yyget_extra(yyscan_t yyscanner); -int yyget_debug ( yyscan_t yyscanner ); +void yyset_extra(YY_EXTRA_TYPE user_defined, yyscan_t yyscanner); +FILE *yyget_in(yyscan_t yyscanner); +void yyset_in(FILE *_in_str, yyscan_t yyscanner); -void yyset_debug ( int debug_flag , yyscan_t yyscanner ); +FILE *yyget_out(yyscan_t yyscanner); +void yyset_out(FILE *_out_str, yyscan_t yyscanner); +int yyget_leng(yyscan_t yyscanner); -YY_EXTRA_TYPE yyget_extra ( yyscan_t yyscanner ); +char *yyget_text(yyscan_t yyscanner); +int yyget_lineno(yyscan_t yyscanner); +void yyset_lineno(int _line_number, yyscan_t yyscanner); -void yyset_extra ( YY_EXTRA_TYPE user_defined , yyscan_t yyscanner ); +int yyget_column(yyscan_t yyscanner); +void yyset_column(int _column_no, yyscan_t yyscanner); +YYSTYPE *yyget_lval(yyscan_t yyscanner); -FILE *yyget_in ( yyscan_t yyscanner ); +void yyset_lval(YYSTYPE *yylval_param, yyscan_t yyscanner); +YYLTYPE *yyget_lloc(yyscan_t yyscanner); - -void yyset_in ( FILE * _in_str , yyscan_t yyscanner ); - - - -FILE *yyget_out ( yyscan_t yyscanner ); - - - -void yyset_out ( FILE * _out_str , yyscan_t yyscanner ); - - - - int yyget_leng ( yyscan_t yyscanner ); - - - -char *yyget_text ( yyscan_t yyscanner ); - - - -int yyget_lineno ( yyscan_t yyscanner ); - - - -void yyset_lineno ( int _line_number , yyscan_t yyscanner ); - - - - -int yyget_column ( yyscan_t yyscanner ); - - - - - -void yyset_column ( int _column_no , yyscan_t yyscanner ); - - - - -YYSTYPE * yyget_lval ( yyscan_t yyscanner ); - - -void yyset_lval ( YYSTYPE * yylval_param , yyscan_t yyscanner ); - - - - YYLTYPE *yyget_lloc ( yyscan_t yyscanner ); - - - - void yyset_lloc ( YYLTYPE * yylloc_param , yyscan_t yyscanner ); - - +void yyset_lloc(YYLTYPE *yylloc_param, yyscan_t yyscanner); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP -#ifdef __cplusplus -extern "C" int yywrap ( yyscan_t yyscanner ); -#else -extern int yywrap ( yyscan_t yyscanner ); -#endif +# ifdef __cplusplus +extern "C" int yywrap(yyscan_t yyscanner); +# else +extern int yywrap(yyscan_t yyscanner); +# endif #endif #ifndef YY_NO_UNPUT - + #endif - #ifndef yytext_ptr -static void yy_flex_strncpy ( char *, const char *, int , yyscan_t yyscanner); +static void yy_flex_strncpy(char *, const char *, int, yyscan_t yyscanner); #endif #ifdef YY_NEED_STRLEN -static int yy_flex_strlen ( const char * , yyscan_t yyscanner); +static int yy_flex_strlen(const char *, yyscan_t yyscanner); #endif #ifndef YY_NO_INPUT -#ifdef __cplusplus -static int yyinput ( yyscan_t yyscanner ); -#else -static int input ( yyscan_t yyscanner ); -#endif +# ifdef __cplusplus +static int yyinput(yyscan_t yyscanner); +# else +static int input(yyscan_t yyscanner); +# endif #endif - - - - - - - /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE -#ifdef __ia64__ +# 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__ */ +# define YY_READ_BUF_SIZE 16384 +# else +# define YY_READ_BUF_SIZE 8192 +# endif /* __ia64__ */ #endif - /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0) +# define ECHO \ + do \ + { \ + if (fwrite(yytext, (size_t)yyleng, 1, yyout)) \ + { \ + } \ + } while (0) #endif - - /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT -#define YY_INPUT(buf,result,max_size) \ - if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ - { \ - int c = '*'; \ - int n; \ - for ( n = 0; n < max_size && \ - (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ - buf[n] = (char) c; \ - if ( c == '\n' ) \ - buf[n++] = (char) c; \ - if ( c == EOF && ferror( yyin ) ) \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - result = n; \ - } \ - else \ - { \ - errno=0; \ - while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \ - { \ - if( errno != EINTR) \ - { \ - YY_FATAL_ERROR( "input in flex scanner failed" ); \ - break; \ - } \ - errno=0; \ - clearerr(yyin); \ - } \ - }\ -\ +# define YY_INPUT(buf, result, max_size) \ + if (YY_CURRENT_BUFFER_LVALUE->yy_is_interactive) \ + { \ + int c = '*'; \ + int n; \ + for (n = 0; n < max_size && (c = getc(yyin)) != EOF && c != '\n'; ++n) \ + buf[n] = (char)c; \ + if (c == '\n') \ + buf[n++] = (char)c; \ + if (c == EOF && ferror(yyin)) \ + YY_FATAL_ERROR("input in flex scanner failed"); \ + result = n; \ + } \ + else \ + { \ + errno = 0; \ + while ((result = (int)fread(buf, 1, (yy_size_t)max_size, yyin)) == 0 && ferror(yyin)) \ + { \ + if (errno != EINTR) \ + { \ + YY_FATAL_ERROR("input in flex scanner failed"); \ + break; \ + } \ + errno = 0; \ + clearerr(yyin); \ + } \ + } #endif - - /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate -#define yyterminate() return YY_NULL +# define yyterminate() return YY_NULL #endif - /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR -#define YY_START_STACK_INCR 25 +# define YY_START_STACK_INCR 25 #endif - /* Report a fatal error. */ #ifndef YY_FATAL_ERROR -#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) +# define YY_FATAL_ERROR(msg) yy_fatal_error(msg, yyscanner) #endif - - /* end tables serialization structures and prototypes */ - - /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL -#define YY_DECL_IS_OURS 1 +# define YY_DECL_IS_OURS 1 +extern int yylex(YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner); - - - - - - - - - - - - - - - -extern int yylex \ - (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner); - -#define YY_DECL int yylex \ - (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner) +# define YY_DECL int yylex(YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner) #endif /* !YY_DECL */ - /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION -#define YY_USER_ACTION +# define YY_USER_ACTION #endif - - /* Code executed at the end of each rule. */ #ifndef YY_BREAK -#define YY_BREAK /*LINTED*/break; +# define YY_BREAK /*LINTED*/ break; #endif - - -#define YY_RULE_SETUP \ - YY_USER_ACTION - +#define YY_RULE_SETUP YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { - yy_state_type yy_current_state; - char *yy_cp, *yy_bp; - int yy_act; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - - - + yy_state_type yy_current_state; + char *yy_cp, *yy_bp; + int yy_act; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; yylval = yylval_param; - - yylloc = yylloc_param; - - if ( !yyg->yy_init ) - { - yyg->yy_init = 1; + if (!yyg->yy_init) + { + yyg->yy_init = 1; #ifdef YY_USER_INIT - YY_USER_INIT; + YY_USER_INIT; #endif + if (!yyg->yy_start) + yyg->yy_start = 1; /* first start state */ + if (!yyin) + yyin = stdin; - if ( ! yyg->yy_start ) - yyg->yy_start = 1; /* first start state */ + if (!yyout) + yyout = stdout; - if ( ! yyin ) - yyin = stdin; + if (!YY_CURRENT_BUFFER) + { + yyensure_buffer_stack(yyscanner); + YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner); + } - if ( ! yyout ) - yyout = stdout; - - if ( ! YY_CURRENT_BUFFER ) { - yyensure_buffer_stack (yyscanner); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); - } - - yy_load_buffer_state( yyscanner ); - } - - { - - - - TParseContext* context = yyextra; - - - - while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */ - { - yy_cp = yyg->yy_c_buf_p; - - /* Support of yytext. */ - *yy_cp = yyg->yy_hold_char; - - /* yy_bp points to the position in yy_ch_buf of the start of - * the current run. - */ - yy_bp = yy_cp; - - yy_current_state = yyg->yy_start; -yy_match: - do - { - YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ; - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 892 ) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - ++yy_cp; - } - while ( yy_current_state != 891 ); - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - -yy_find_action: - yy_act = yy_accept[yy_current_state]; - - YY_DO_BEFORE_ACTION; - - - if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] ) - { - int yyl; - for ( yyl = 0; yyl < yyleng; ++yyl ) - if ( yytext[yyl] == '\n' ) - - do{ yylineno++; - yycolumn=0; - }while(0) -; - } - - -do_action: /* This label is used only to access EOF actions. */ - - - switch ( yy_act ) - { /* beginning of action switch */ - case 0: /* must back up */ - /* undo the effects of YY_DO_BEFORE_ACTION */ - *yy_cp = yyg->yy_hold_char; - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - goto yy_find_action; - -case 1: -YY_RULE_SETUP -{ return INVARIANT; } - YY_BREAK -case 2: -YY_RULE_SETUP -{ return HIGH_PRECISION; } - YY_BREAK -case 3: -YY_RULE_SETUP -{ return MEDIUM_PRECISION; } - YY_BREAK -case 4: -YY_RULE_SETUP -{ return LOW_PRECISION; } - YY_BREAK -case 5: -YY_RULE_SETUP -{ return PRECISION; } - YY_BREAK -case 6: -YY_RULE_SETUP -{ return ES2_keyword_ES3_reserved(context, ATTRIBUTE); } - YY_BREAK -case 7: -YY_RULE_SETUP -{ return CONST_QUAL; } - YY_BREAK -case 8: -YY_RULE_SETUP -{ return UNIFORM; } - YY_BREAK -case 9: -YY_RULE_SETUP -{ return ES3_1_keyword(context, BUFFER); } - YY_BREAK -case 10: -YY_RULE_SETUP -{ return ES2_keyword_ES3_reserved(context, VARYING); } - YY_BREAK -case 11: -YY_RULE_SETUP -{ return BREAK; } - YY_BREAK -case 12: -YY_RULE_SETUP -{ return CONTINUE; } - YY_BREAK -case 13: -YY_RULE_SETUP -{ return DO; } - YY_BREAK -case 14: -YY_RULE_SETUP -{ return FOR; } - YY_BREAK -case 15: -YY_RULE_SETUP -{ return WHILE; } - YY_BREAK -case 16: -YY_RULE_SETUP -{ return IF; } - YY_BREAK -case 17: -YY_RULE_SETUP -{ return ELSE; } - YY_BREAK -case 18: -YY_RULE_SETUP -{ return ES2_reserved_ES3_keyword(context, SWITCH); } - YY_BREAK -case 19: -YY_RULE_SETUP -{ return ES3_keyword(context, CASE); } - YY_BREAK -case 20: -YY_RULE_SETUP -{ return ES2_reserved_ES3_keyword(context, DEFAULT); } - YY_BREAK -case 21: -YY_RULE_SETUP -{ return ES3_keyword(context, CENTROID); } - YY_BREAK -case 22: -YY_RULE_SETUP -{ return ES2_reserved_ES3_keyword(context, FLAT); } - YY_BREAK -case 23: -YY_RULE_SETUP -{ return ES3_keyword(context, SMOOTH); } - YY_BREAK -case 24: -YY_RULE_SETUP -{ return IN_QUAL; } - YY_BREAK -case 25: -YY_RULE_SETUP -{ return OUT_QUAL; } - YY_BREAK -case 26: -YY_RULE_SETUP -{ return INOUT_QUAL; } - YY_BREAK -case 27: -YY_RULE_SETUP -{ return ES3_1_keyword(context, SHARED); } - YY_BREAK -case 28: -YY_RULE_SETUP -{ return FLOAT_TYPE; } - YY_BREAK -case 29: -YY_RULE_SETUP -{ return INT_TYPE; } - YY_BREAK -case 30: -YY_RULE_SETUP -{ return ES3_keyword(context, UINT_TYPE); } - YY_BREAK -case 31: -YY_RULE_SETUP -{ return VOID_TYPE; } - YY_BREAK -case 32: -YY_RULE_SETUP -{ return BOOL_TYPE; } - YY_BREAK -case 33: -YY_RULE_SETUP -{ yylval->lex.b = true; return BOOLCONSTANT; } - YY_BREAK -case 34: -YY_RULE_SETUP -{ yylval->lex.b = false; return BOOLCONSTANT; } - YY_BREAK -case 35: -YY_RULE_SETUP -{ return DISCARD; } - YY_BREAK -case 36: -YY_RULE_SETUP -{ return RETURN; } - YY_BREAK -case 37: -YY_RULE_SETUP -{ return MATRIX2; } - YY_BREAK -case 38: -YY_RULE_SETUP -{ return MATRIX3; } - YY_BREAK -case 39: -YY_RULE_SETUP -{ return MATRIX4; } - YY_BREAK -case 40: -YY_RULE_SETUP -{ return ES3_keyword(context, MATRIX2); } - YY_BREAK -case 41: -YY_RULE_SETUP -{ return ES3_keyword(context, MATRIX3); } - YY_BREAK -case 42: -YY_RULE_SETUP -{ return ES3_keyword(context, MATRIX4); } - YY_BREAK -case 43: -YY_RULE_SETUP -{ return ES3_keyword(context, MATRIX2x3); } - YY_BREAK -case 44: -YY_RULE_SETUP -{ return ES3_keyword(context, MATRIX3x2); } - YY_BREAK -case 45: -YY_RULE_SETUP -{ return ES3_keyword(context, MATRIX2x4); } - YY_BREAK -case 46: -YY_RULE_SETUP -{ return ES3_keyword(context, MATRIX4x2); } - YY_BREAK -case 47: -YY_RULE_SETUP -{ return ES3_keyword(context, MATRIX3x4); } - YY_BREAK -case 48: -YY_RULE_SETUP -{ return ES3_keyword(context, MATRIX4x3); } - YY_BREAK -case 49: -YY_RULE_SETUP -{ return VEC2; } - YY_BREAK -case 50: -YY_RULE_SETUP -{ return VEC3; } - YY_BREAK -case 51: -YY_RULE_SETUP -{ return VEC4; } - YY_BREAK -case 52: -YY_RULE_SETUP -{ return IVEC2; } - YY_BREAK -case 53: -YY_RULE_SETUP -{ return IVEC3; } - YY_BREAK -case 54: -YY_RULE_SETUP -{ return IVEC4; } - YY_BREAK -case 55: -YY_RULE_SETUP -{ return BVEC2; } - YY_BREAK -case 56: -YY_RULE_SETUP -{ return BVEC3; } - YY_BREAK -case 57: -YY_RULE_SETUP -{ return BVEC4; } - YY_BREAK -case 58: -YY_RULE_SETUP -{ return ES3_keyword(context, UVEC2); } - YY_BREAK -case 59: -YY_RULE_SETUP -{ return ES3_keyword(context, UVEC3); } - YY_BREAK -case 60: -YY_RULE_SETUP -{ return ES3_keyword(context, UVEC4); } - YY_BREAK -case 61: -YY_RULE_SETUP -{ return SAMPLER2D; } - YY_BREAK -case 62: -YY_RULE_SETUP -{ return SAMPLERCUBE; } - YY_BREAK -case 63: -YY_RULE_SETUP -{ return SAMPLER_EXTERNAL_OES; } - YY_BREAK -case 64: -YY_RULE_SETUP -{ return ES2_reserved_ES2_extension_ES3_keyword(context, TExtension::OES_texture_3D, SAMPLER3D); } - YY_BREAK -case 65: -YY_RULE_SETUP -{ return ES2_reserved_ES3_keyword(context, SAMPLER3DRECT); } - YY_BREAK -case 66: -YY_RULE_SETUP -{ return SAMPLER2DRECT; } - YY_BREAK -case 67: -YY_RULE_SETUP -{ return ES3_keyword(context, SAMPLER2DARRAY); } - YY_BREAK -case 68: -YY_RULE_SETUP -{ return ES3_reserved_ES3_extension_ES3_1_keyword(context, TExtension::ANGLE_texture_multisample, SAMPLER2DMS); } - YY_BREAK -case 69: -YY_RULE_SETUP -{ return ES3_keyword(context, ISAMPLER2D); } - YY_BREAK -case 70: -YY_RULE_SETUP -{ return ES3_keyword(context, ISAMPLER3D); } - YY_BREAK -case 71: -YY_RULE_SETUP -{ return ES3_keyword(context, ISAMPLERCUBE); } - YY_BREAK -case 72: -YY_RULE_SETUP -{ return ES3_keyword(context, ISAMPLER2DARRAY); } - YY_BREAK -case 73: -YY_RULE_SETUP -{ return ES3_reserved_ES3_extension_ES3_1_keyword(context, TExtension::ANGLE_texture_multisample, ISAMPLER2DMS); } - YY_BREAK -case 74: -YY_RULE_SETUP -{ return ES3_keyword(context, USAMPLER2D); } - YY_BREAK -case 75: -YY_RULE_SETUP -{ return ES3_keyword(context, USAMPLER3D); } - YY_BREAK -case 76: -YY_RULE_SETUP -{ return ES3_keyword(context, USAMPLERCUBE); } - YY_BREAK -case 77: -YY_RULE_SETUP -{ return ES3_keyword(context, USAMPLER2DARRAY); } - YY_BREAK -case 78: -YY_RULE_SETUP -{ return ES3_reserved_ES3_extension_ES3_1_keyword(context, TExtension::ANGLE_texture_multisample, USAMPLER2DMS); } - YY_BREAK -case 79: -YY_RULE_SETUP -{ return ES2_reserved_ES3_keyword(context, SAMPLER2DSHADOW); } - YY_BREAK -case 80: -YY_RULE_SETUP -{ return ES3_keyword(context, SAMPLERCUBESHADOW); } - YY_BREAK -case 81: -YY_RULE_SETUP -{ return ES3_keyword(context, SAMPLER2DARRAYSHADOW); } - YY_BREAK -case 82: -YY_RULE_SETUP -{ return ES3_extension(context, TExtension::EXT_YUV_target, SAMPLEREXTERNAL2DY2YEXT); } - YY_BREAK -case 83: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_extension_ES3_2_keyword(context, TExtension::OES_texture_storage_multisample_2d_array, SAMPLER2DMSARRAY); } - YY_BREAK -case 84: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_extension_ES3_2_keyword(context, TExtension::OES_texture_storage_multisample_2d_array, ISAMPLER2DMSARRAY); } - YY_BREAK -case 85: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_extension_ES3_2_keyword(context, TExtension::OES_texture_storage_multisample_2d_array, USAMPLER2DMSARRAY); } - YY_BREAK -case 86: -YY_RULE_SETUP -{ return STRUCT; } - YY_BREAK -case 87: -YY_RULE_SETUP -{ return ES3_keyword(context, LAYOUT); } - YY_BREAK -case 88: -YY_RULE_SETUP -{ return ES3_extension(context, TExtension::EXT_YUV_target, YUVCSCSTANDARDEXT); } - YY_BREAK -case 89: -YY_RULE_SETUP -{ return yuvcscstandardext_constant(context); } - YY_BREAK -case 90: -YY_RULE_SETUP -{ return yuvcscstandardext_constant(context); } - YY_BREAK -case 91: -YY_RULE_SETUP -{ return yuvcscstandardext_constant(context); } - YY_BREAK -case 92: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, IMAGE2D); } - YY_BREAK -case 93: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, IIMAGE2D); } - YY_BREAK -case 94: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, UIMAGE2D); } - YY_BREAK -case 95: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, IMAGE2DARRAY); } - YY_BREAK -case 96: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, IIMAGE2DARRAY); } - YY_BREAK -case 97: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, UIMAGE2DARRAY); } - YY_BREAK -case 98: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, IMAGE3D); } - YY_BREAK -case 99: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, UIMAGE3D); } - YY_BREAK -case 100: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, IIMAGE3D); } - YY_BREAK -case 101: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, IIMAGECUBE); } - YY_BREAK -case 102: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, UIMAGECUBE); } - YY_BREAK -case 103: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, IMAGECUBE); } - YY_BREAK -case 104: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, READONLY); } - YY_BREAK -case 105: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, WRITEONLY); } - YY_BREAK -case 106: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, COHERENT); } - YY_BREAK -case 107: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, RESTRICT); } - YY_BREAK -case 108: -YY_RULE_SETUP -{ return ES2_reserved_ES3_1_keyword(context, VOLATILE); } - YY_BREAK -case 109: -YY_RULE_SETUP -{ return ES3_reserved_ES3_1_keyword(context, ATOMICUINT); } - YY_BREAK -case 110: -YY_RULE_SETUP -{ return ES3_1_reserved_ES3_1_extension_ES3_2_keyword(context, TExtension::EXT_gpu_shader5, PRECISE); } - YY_BREAK -/* Reserved keywords for GLSL ES 3.00 that are not reserved for GLSL ES 1.00 */ -case 111: -case 112: -case 113: -case 114: -case 115: -case 116: -case 117: -case 118: -case 119: -case 120: -case 121: -case 122: -case 123: -case 124: -case 125: -case 126: -case 127: -case 128: -case 129: -case 130: -case 131: -case 132: -case 133: -case 134: -case 135: -case 136: -case 137: -case 138: -case 139: -case 140: -case 141: -case 142: -case 143: -YY_RULE_SETUP -{ - if (context->getShaderVersion() < 300) { - yylval->lex.string = AllocatePoolCharArray(yytext, yyleng); - return check_type(yyscanner); + yy_load_buffer_state(yyscanner); } - return reserved_word(yyscanner); -} - YY_BREAK -/* Reserved keywords in GLSL ES 1.00 that are not reserved in GLSL ES 3.00 */ -case 144: -YY_RULE_SETUP -{ - if (context->getShaderVersion() >= 300) + { - yylval->lex.string = AllocatePoolCharArray(yytext, yyleng); - return check_type(yyscanner); - } - return reserved_word(yyscanner); -} - YY_BREAK -/* Reserved keywords */ -case 145: -case 146: -case 147: -case 148: -case 149: -case 150: -case 151: -case 152: -case 153: -case 154: -case 155: -case 156: -case 157: -case 158: -case 159: -case 160: -case 161: -case 162: -case 163: -case 164: -case 165: -case 166: -case 167: -case 168: -case 169: -case 170: -case 171: -case 172: -case 173: -case 174: -case 175: -case 176: -case 177: -case 178: -case 179: -case 180: -case 181: -case 182: -case 183: -case 184: -YY_RULE_SETUP -{ return reserved_word(yyscanner); } - YY_BREAK -case 185: -YY_RULE_SETUP -{ - yylval->lex.string = AllocatePoolCharArray(yytext, yyleng); - return check_type(yyscanner); -} - YY_BREAK -case 186: -YY_RULE_SETUP -{ return int_constant(context); } - YY_BREAK -case 187: -YY_RULE_SETUP -{ return int_constant(context); } - YY_BREAK -case 188: -YY_RULE_SETUP -{ return int_constant(context); } - YY_BREAK -case 189: -YY_RULE_SETUP -{ return uint_constant(context); } - YY_BREAK -case 190: -YY_RULE_SETUP -{ return uint_constant(context); } - YY_BREAK -case 191: -YY_RULE_SETUP -{ return uint_constant(context); } - YY_BREAK -case 192: -YY_RULE_SETUP -{ return float_constant(yyscanner); } - YY_BREAK -case 193: -YY_RULE_SETUP -{ return float_constant(yyscanner); } - YY_BREAK -case 194: -YY_RULE_SETUP -{ return float_constant(yyscanner); } - YY_BREAK -case 195: -YY_RULE_SETUP -{ return floatsuffix_check(context); } - YY_BREAK -case 196: -YY_RULE_SETUP -{ return floatsuffix_check(context); } - YY_BREAK -case 197: -YY_RULE_SETUP -{ return floatsuffix_check(context); } - YY_BREAK -case 198: -YY_RULE_SETUP -{ return ADD_ASSIGN; } - YY_BREAK -case 199: -YY_RULE_SETUP -{ return SUB_ASSIGN; } - YY_BREAK -case 200: -YY_RULE_SETUP -{ return MUL_ASSIGN; } - YY_BREAK -case 201: -YY_RULE_SETUP -{ return DIV_ASSIGN; } - YY_BREAK -case 202: -YY_RULE_SETUP -{ return MOD_ASSIGN; } - YY_BREAK -case 203: -YY_RULE_SETUP -{ return LEFT_ASSIGN; } - YY_BREAK -case 204: -YY_RULE_SETUP -{ return RIGHT_ASSIGN; } - YY_BREAK -case 205: -YY_RULE_SETUP -{ return AND_ASSIGN; } - YY_BREAK -case 206: -YY_RULE_SETUP -{ return XOR_ASSIGN; } - YY_BREAK -case 207: -YY_RULE_SETUP -{ return OR_ASSIGN; } - YY_BREAK -case 208: -YY_RULE_SETUP -{ return INC_OP; } - YY_BREAK -case 209: -YY_RULE_SETUP -{ return DEC_OP; } - YY_BREAK -case 210: -YY_RULE_SETUP -{ return AND_OP; } - YY_BREAK -case 211: -YY_RULE_SETUP -{ return OR_OP; } - YY_BREAK -case 212: -YY_RULE_SETUP -{ return XOR_OP; } - YY_BREAK -case 213: -YY_RULE_SETUP -{ return LE_OP; } - YY_BREAK -case 214: -YY_RULE_SETUP -{ return GE_OP; } - YY_BREAK -case 215: -YY_RULE_SETUP -{ return EQ_OP; } - YY_BREAK -case 216: -YY_RULE_SETUP -{ return NE_OP; } - YY_BREAK -case 217: -YY_RULE_SETUP -{ return LEFT_OP; } - YY_BREAK -case 218: -YY_RULE_SETUP -{ return RIGHT_OP; } - YY_BREAK -case 219: -YY_RULE_SETUP -{ return SEMICOLON; } - YY_BREAK -case 220: -YY_RULE_SETUP -{ return LEFT_BRACE; } - YY_BREAK -case 221: -YY_RULE_SETUP -{ return RIGHT_BRACE; } - YY_BREAK -case 222: -YY_RULE_SETUP -{ return COMMA; } - YY_BREAK -case 223: -YY_RULE_SETUP -{ return COLON; } - YY_BREAK -case 224: -YY_RULE_SETUP -{ return EQUAL; } - YY_BREAK -case 225: -YY_RULE_SETUP -{ return LEFT_PAREN; } - YY_BREAK -case 226: -YY_RULE_SETUP -{ return RIGHT_PAREN; } - YY_BREAK -case 227: -YY_RULE_SETUP -{ return LEFT_BRACKET; } - YY_BREAK -case 228: -YY_RULE_SETUP -{ return RIGHT_BRACKET; } - YY_BREAK -case 229: -YY_RULE_SETUP -{ BEGIN(FIELDS); return DOT; } - YY_BREAK -case 230: -YY_RULE_SETUP -{ return BANG; } - YY_BREAK -case 231: -YY_RULE_SETUP -{ return DASH; } - YY_BREAK -case 232: -YY_RULE_SETUP -{ return TILDE; } - YY_BREAK -case 233: -YY_RULE_SETUP -{ return PLUS; } - YY_BREAK -case 234: -YY_RULE_SETUP -{ return STAR; } - YY_BREAK -case 235: -YY_RULE_SETUP -{ return SLASH; } - YY_BREAK -case 236: -YY_RULE_SETUP -{ return PERCENT; } - YY_BREAK -case 237: -YY_RULE_SETUP -{ return LEFT_ANGLE; } - YY_BREAK -case 238: -YY_RULE_SETUP -{ return RIGHT_ANGLE; } - YY_BREAK -case 239: -YY_RULE_SETUP -{ return VERTICAL_BAR; } - YY_BREAK -case 240: -YY_RULE_SETUP -{ return CARET; } - YY_BREAK -case 241: -YY_RULE_SETUP -{ return AMPERSAND; } - YY_BREAK -case 242: -YY_RULE_SETUP -{ return QUESTION; } - YY_BREAK -case 243: -YY_RULE_SETUP -{ - BEGIN(INITIAL); - yylval->lex.string = AllocatePoolCharArray(yytext, yyleng); - return FIELD_SELECTION; -} - YY_BREAK -case 244: -YY_RULE_SETUP -{} - YY_BREAK -case 245: -YY_RULE_SETUP -{ - yyextra->error(*yylloc, "Illegal character at fieldname start", yytext); - return 0; -} - YY_BREAK -case 246: -/* rule 246 can match eol */ -YY_RULE_SETUP -{ } - YY_BREAK -case YY_STATE_EOF(INITIAL): -case YY_STATE_EOF(FIELDS): -{ yyterminate(); } - YY_BREAK -case 247: -YY_RULE_SETUP -{ assert(false); return 0; } - YY_BREAK -case 248: -YY_RULE_SETUP -ECHO; - YY_BREAK + TParseContext *context = yyextra; - case YY_END_OF_BUFFER: - { - /* Amount of text matched not including the EOB char. */ - int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1; + while (/*CONSTCOND*/ 1) /* loops until end-of-file is reached */ + { + yy_cp = yyg->yy_c_buf_p; - /* Undo the effects of YY_DO_BEFORE_ACTION. */ - *yy_cp = yyg->yy_hold_char; - YY_RESTORE_YY_MORE_OFFSET + /* Support of yytext. */ + *yy_cp = yyg->yy_hold_char; - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) - { - /* We're scanning a new file or input source. It's - * possible that this happened because the user - * just pointed yyin at a new source and called - * yylex(). If so, then we have to assure - * consistency between YY_CURRENT_BUFFER and our - * globals. Here is the right place to do so, because - * this is the first action (other than possibly a - * back-up) that will match for the new input source. - */ - yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; - } + /* yy_bp points to the position in yy_ch_buf of the start of + * the current run. + */ + yy_bp = yy_cp; - /* Note that here we test for yy_c_buf_p "<=" to the position - * of the first EOB in the buffer, since yy_c_buf_p will - * already have been incremented past the NUL character - * (since all states make transitions on EOB to the - * end-of-buffer state). Contrast this with the test - * in input(). - */ - if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) - { /* This was really a NUL. */ - yy_state_type yy_next_state; + yy_current_state = yyg->yy_start; + yy_match: + do + { + YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; + if (yy_accept[yy_current_state]) + { + yyg->yy_last_accepting_state = yy_current_state; + yyg->yy_last_accepting_cpos = yy_cp; + } + while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) + { + yy_current_state = (int)yy_def[yy_current_state]; + if (yy_current_state >= 892) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + ++yy_cp; + } while (yy_current_state != 891); + yy_cp = yyg->yy_last_accepting_cpos; + yy_current_state = yyg->yy_last_accepting_state; - yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; + yy_find_action: + yy_act = yy_accept[yy_current_state]; - yy_current_state = yy_get_previous_state( yyscanner ); + YY_DO_BEFORE_ACTION; - /* Okay, we're now positioned to make the NUL - * transition. We couldn't have - * yy_get_previous_state() go ahead and do it - * for us because it doesn't know how to deal - * with the possibility of jamming (and we don't - * want to build jamming into it because then it - * will run more slowly). - */ + if (yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act]) + { + int yyl; + for (yyl = 0; yyl < yyleng; ++yyl) + if (yytext[yyl] == '\n') - yy_next_state = yy_try_NUL_trans( yy_current_state , yyscanner); + do + { + yylineno++; + yycolumn = 0; + } while (0); + } - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; + do_action: /* This label is used only to access EOF actions. */ - if ( yy_next_state ) - { - /* Consume the NUL. */ - yy_cp = ++yyg->yy_c_buf_p; - yy_current_state = yy_next_state; - goto yy_match; - } + switch (yy_act) + { /* beginning of action switch */ + case 0: /* must back up */ + /* undo the effects of YY_DO_BEFORE_ACTION */ + *yy_cp = yyg->yy_hold_char; + yy_cp = yyg->yy_last_accepting_cpos; + yy_current_state = yyg->yy_last_accepting_state; + goto yy_find_action; - else - { - yy_cp = yyg->yy_last_accepting_cpos; - yy_current_state = yyg->yy_last_accepting_state; - goto yy_find_action; - } - } + case 1: + YY_RULE_SETUP { return INVARIANT; } + YY_BREAK + case 2: + YY_RULE_SETUP { return HIGH_PRECISION; } + YY_BREAK + case 3: + YY_RULE_SETUP { return MEDIUM_PRECISION; } + YY_BREAK + case 4: + YY_RULE_SETUP { return LOW_PRECISION; } + YY_BREAK + case 5: + YY_RULE_SETUP { return PRECISION; } + YY_BREAK + case 6: + YY_RULE_SETUP { return ES2_keyword_ES3_reserved(context, ATTRIBUTE); } + YY_BREAK + case 7: + YY_RULE_SETUP { return CONST_QUAL; } + YY_BREAK + case 8: + YY_RULE_SETUP { return UNIFORM; } + YY_BREAK + case 9: + YY_RULE_SETUP { return ES3_1_keyword(context, BUFFER); } + YY_BREAK + case 10: + YY_RULE_SETUP { return ES2_keyword_ES3_reserved(context, VARYING); } + YY_BREAK + case 11: + YY_RULE_SETUP { return BREAK; } + YY_BREAK + case 12: + YY_RULE_SETUP { return CONTINUE; } + YY_BREAK + case 13: + YY_RULE_SETUP { return DO; } + YY_BREAK + case 14: + YY_RULE_SETUP { return FOR; } + YY_BREAK + case 15: + YY_RULE_SETUP { return WHILE; } + YY_BREAK + case 16: + YY_RULE_SETUP { return IF; } + YY_BREAK + case 17: + YY_RULE_SETUP { return ELSE; } + YY_BREAK + case 18: + YY_RULE_SETUP { return ES2_reserved_ES3_keyword(context, SWITCH); } + YY_BREAK + case 19: + YY_RULE_SETUP { return ES3_keyword(context, CASE); } + YY_BREAK + case 20: + YY_RULE_SETUP { return ES2_reserved_ES3_keyword(context, DEFAULT); } + YY_BREAK + case 21: + YY_RULE_SETUP { return ES3_keyword(context, CENTROID); } + YY_BREAK + case 22: + YY_RULE_SETUP { return ES2_reserved_ES3_keyword(context, FLAT); } + YY_BREAK + case 23: + YY_RULE_SETUP { return ES3_keyword(context, SMOOTH); } + YY_BREAK + case 24: + YY_RULE_SETUP { return IN_QUAL; } + YY_BREAK + case 25: + YY_RULE_SETUP { return OUT_QUAL; } + YY_BREAK + case 26: + YY_RULE_SETUP { return INOUT_QUAL; } + YY_BREAK + case 27: + YY_RULE_SETUP { return ES3_1_keyword(context, SHARED); } + YY_BREAK + case 28: + YY_RULE_SETUP { return FLOAT_TYPE; } + YY_BREAK + case 29: + YY_RULE_SETUP { return INT_TYPE; } + YY_BREAK + case 30: + YY_RULE_SETUP { return ES3_keyword(context, UINT_TYPE); } + YY_BREAK + case 31: + YY_RULE_SETUP { return VOID_TYPE; } + YY_BREAK + case 32: + YY_RULE_SETUP { return BOOL_TYPE; } + YY_BREAK + case 33: + YY_RULE_SETUP + { + yylval->lex.b = true; + return BOOLCONSTANT; + } + YY_BREAK + case 34: + YY_RULE_SETUP + { + yylval->lex.b = false; + return BOOLCONSTANT; + } + YY_BREAK + case 35: + YY_RULE_SETUP { return DISCARD; } + YY_BREAK + case 36: + YY_RULE_SETUP { return RETURN; } + YY_BREAK + case 37: + YY_RULE_SETUP { return MATRIX2; } + YY_BREAK + case 38: + YY_RULE_SETUP { return MATRIX3; } + YY_BREAK + case 39: + YY_RULE_SETUP { return MATRIX4; } + YY_BREAK + case 40: + YY_RULE_SETUP { return ES3_keyword(context, MATRIX2); } + YY_BREAK + case 41: + YY_RULE_SETUP { return ES3_keyword(context, MATRIX3); } + YY_BREAK + case 42: + YY_RULE_SETUP { return ES3_keyword(context, MATRIX4); } + YY_BREAK + case 43: + YY_RULE_SETUP { return ES3_keyword(context, MATRIX2x3); } + YY_BREAK + case 44: + YY_RULE_SETUP { return ES3_keyword(context, MATRIX3x2); } + YY_BREAK + case 45: + YY_RULE_SETUP { return ES3_keyword(context, MATRIX2x4); } + YY_BREAK + case 46: + YY_RULE_SETUP { return ES3_keyword(context, MATRIX4x2); } + YY_BREAK + case 47: + YY_RULE_SETUP { return ES3_keyword(context, MATRIX3x4); } + YY_BREAK + case 48: + YY_RULE_SETUP { return ES3_keyword(context, MATRIX4x3); } + YY_BREAK + case 49: + YY_RULE_SETUP { return VEC2; } + YY_BREAK + case 50: + YY_RULE_SETUP { return VEC3; } + YY_BREAK + case 51: + YY_RULE_SETUP { return VEC4; } + YY_BREAK + case 52: + YY_RULE_SETUP { return IVEC2; } + YY_BREAK + case 53: + YY_RULE_SETUP { return IVEC3; } + YY_BREAK + case 54: + YY_RULE_SETUP { return IVEC4; } + YY_BREAK + case 55: + YY_RULE_SETUP { return BVEC2; } + YY_BREAK + case 56: + YY_RULE_SETUP { return BVEC3; } + YY_BREAK + case 57: + YY_RULE_SETUP { return BVEC4; } + YY_BREAK + case 58: + YY_RULE_SETUP { return ES3_keyword(context, UVEC2); } + YY_BREAK + case 59: + YY_RULE_SETUP { return ES3_keyword(context, UVEC3); } + YY_BREAK + case 60: + YY_RULE_SETUP { return ES3_keyword(context, UVEC4); } + YY_BREAK + case 61: + YY_RULE_SETUP { return SAMPLER2D; } + YY_BREAK + case 62: + YY_RULE_SETUP { return SAMPLERCUBE; } + YY_BREAK + case 63: + YY_RULE_SETUP { return SAMPLER_EXTERNAL_OES; } + YY_BREAK + case 64: + YY_RULE_SETUP + { + return ES2_reserved_ES2_extension_ES3_keyword( + context, TExtension::OES_texture_3D, SAMPLER3D); + } + YY_BREAK + case 65: + YY_RULE_SETUP { return ES2_reserved_ES3_keyword(context, SAMPLER3DRECT); } + YY_BREAK + case 66: + YY_RULE_SETUP { return SAMPLER2DRECT; } + YY_BREAK + case 67: + YY_RULE_SETUP { return ES3_keyword(context, SAMPLER2DARRAY); } + YY_BREAK + case 68: + YY_RULE_SETUP + { + return ES3_reserved_ES3_extension_ES3_1_keyword( + context, TExtension::ANGLE_texture_multisample, SAMPLER2DMS); + } + YY_BREAK + case 69: + YY_RULE_SETUP { return ES3_keyword(context, ISAMPLER2D); } + YY_BREAK + case 70: + YY_RULE_SETUP { return ES3_keyword(context, ISAMPLER3D); } + YY_BREAK + case 71: + YY_RULE_SETUP { return ES3_keyword(context, ISAMPLERCUBE); } + YY_BREAK + case 72: + YY_RULE_SETUP { return ES3_keyword(context, ISAMPLER2DARRAY); } + YY_BREAK + case 73: + YY_RULE_SETUP + { + return ES3_reserved_ES3_extension_ES3_1_keyword( + context, TExtension::ANGLE_texture_multisample, ISAMPLER2DMS); + } + YY_BREAK + case 74: + YY_RULE_SETUP { return ES3_keyword(context, USAMPLER2D); } + YY_BREAK + case 75: + YY_RULE_SETUP { return ES3_keyword(context, USAMPLER3D); } + YY_BREAK + case 76: + YY_RULE_SETUP { return ES3_keyword(context, USAMPLERCUBE); } + YY_BREAK + case 77: + YY_RULE_SETUP { return ES3_keyword(context, USAMPLER2DARRAY); } + YY_BREAK + case 78: + YY_RULE_SETUP + { + return ES3_reserved_ES3_extension_ES3_1_keyword( + context, TExtension::ANGLE_texture_multisample, USAMPLER2DMS); + } + YY_BREAK + case 79: + YY_RULE_SETUP { return ES2_reserved_ES3_keyword(context, SAMPLER2DSHADOW); } + YY_BREAK + case 80: + YY_RULE_SETUP { return ES3_keyword(context, SAMPLERCUBESHADOW); } + YY_BREAK + case 81: + YY_RULE_SETUP { return ES3_keyword(context, SAMPLER2DARRAYSHADOW); } + YY_BREAK + case 82: + YY_RULE_SETUP + { + return ES3_extension(context, TExtension::EXT_YUV_target, + SAMPLEREXTERNAL2DY2YEXT); + } + YY_BREAK + case 83: + YY_RULE_SETUP + { + return ES3_reserved_ES3_1_extension_ES3_2_keyword( + context, TExtension::OES_texture_storage_multisample_2d_array, + SAMPLER2DMSARRAY); + } + YY_BREAK + case 84: + YY_RULE_SETUP + { + return ES3_reserved_ES3_1_extension_ES3_2_keyword( + context, TExtension::OES_texture_storage_multisample_2d_array, + ISAMPLER2DMSARRAY); + } + YY_BREAK + case 85: + YY_RULE_SETUP + { + return ES3_reserved_ES3_1_extension_ES3_2_keyword( + context, TExtension::OES_texture_storage_multisample_2d_array, + USAMPLER2DMSARRAY); + } + YY_BREAK + case 86: + YY_RULE_SETUP { return STRUCT; } + YY_BREAK + case 87: + YY_RULE_SETUP { return ES3_keyword(context, LAYOUT); } + YY_BREAK + case 88: + YY_RULE_SETUP + { + return ES3_extension(context, TExtension::EXT_YUV_target, + YUVCSCSTANDARDEXT); + } + YY_BREAK + case 89: + YY_RULE_SETUP { return yuvcscstandardext_constant(context); } + YY_BREAK + case 90: + YY_RULE_SETUP { return yuvcscstandardext_constant(context); } + YY_BREAK + case 91: + YY_RULE_SETUP { return yuvcscstandardext_constant(context); } + YY_BREAK + case 92: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, IMAGE2D); } + YY_BREAK + case 93: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, IIMAGE2D); } + YY_BREAK + case 94: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, UIMAGE2D); } + YY_BREAK + case 95: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, IMAGE2DARRAY); } + YY_BREAK + case 96: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, IIMAGE2DARRAY); } + YY_BREAK + case 97: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, UIMAGE2DARRAY); } + YY_BREAK + case 98: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, IMAGE3D); } + YY_BREAK + case 99: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, UIMAGE3D); } + YY_BREAK + case 100: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, IIMAGE3D); } + YY_BREAK + case 101: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, IIMAGECUBE); } + YY_BREAK + case 102: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, UIMAGECUBE); } + YY_BREAK + case 103: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, IMAGECUBE); } + YY_BREAK + case 104: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, READONLY); } + YY_BREAK + case 105: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, WRITEONLY); } + YY_BREAK + case 106: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, COHERENT); } + YY_BREAK + case 107: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, RESTRICT); } + YY_BREAK + case 108: + YY_RULE_SETUP { return ES2_reserved_ES3_1_keyword(context, VOLATILE); } + YY_BREAK + case 109: + YY_RULE_SETUP { return ES3_reserved_ES3_1_keyword(context, ATOMICUINT); } + YY_BREAK + case 110: + YY_RULE_SETUP + { + return ES3_1_reserved_ES3_1_extension_ES3_2_keyword( + context, TExtension::EXT_gpu_shader5, PRECISE); + } + YY_BREAK + /* Reserved keywords for GLSL ES 3.00 that are not reserved for GLSL ES 1.00 */ + case 111: + case 112: + case 113: + case 114: + case 115: + case 116: + case 117: + case 118: + case 119: + case 120: + case 121: + case 122: + case 123: + case 124: + case 125: + case 126: + case 127: + case 128: + case 129: + case 130: + case 131: + case 132: + case 133: + case 134: + case 135: + case 136: + case 137: + case 138: + case 139: + case 140: + case 141: + case 142: + case 143: + YY_RULE_SETUP + { + if (context->getShaderVersion() < 300) + { + yylval->lex.string = AllocatePoolCharArray(yytext, yyleng); + return check_type(yyscanner); + } + return reserved_word(yyscanner); + } + YY_BREAK + /* Reserved keywords in GLSL ES 1.00 that are not reserved in GLSL ES 3.00 */ + case 144: + YY_RULE_SETUP + { + if (context->getShaderVersion() >= 300) + { + yylval->lex.string = AllocatePoolCharArray(yytext, yyleng); + return check_type(yyscanner); + } - else switch ( yy_get_next_buffer( yyscanner ) ) - { - case EOB_ACT_END_OF_FILE: - { - yyg->yy_did_buffer_switch_on_eof = 0; + return reserved_word(yyscanner); + } + YY_BREAK + /* Reserved keywords */ + case 145: + case 146: + case 147: + case 148: + case 149: + case 150: + case 151: + case 152: + case 153: + case 154: + case 155: + case 156: + case 157: + case 158: + case 159: + case 160: + case 161: + case 162: + case 163: + case 164: + case 165: + case 166: + case 167: + case 168: + case 169: + case 170: + case 171: + case 172: + case 173: + case 174: + case 175: + case 176: + case 177: + case 178: + case 179: + case 180: + case 181: + case 182: + case 183: + case 184: + YY_RULE_SETUP { return reserved_word(yyscanner); } + YY_BREAK + case 185: + YY_RULE_SETUP + { + yylval->lex.string = AllocatePoolCharArray(yytext, yyleng); + return check_type(yyscanner); + } + YY_BREAK + case 186: + YY_RULE_SETUP { return int_constant(context); } + YY_BREAK + case 187: + YY_RULE_SETUP { return int_constant(context); } + YY_BREAK + case 188: + YY_RULE_SETUP { return int_constant(context); } + YY_BREAK + case 189: + YY_RULE_SETUP { return uint_constant(context); } + YY_BREAK + case 190: + YY_RULE_SETUP { return uint_constant(context); } + YY_BREAK + case 191: + YY_RULE_SETUP { return uint_constant(context); } + YY_BREAK + case 192: + YY_RULE_SETUP { return float_constant(yyscanner); } + YY_BREAK + case 193: + YY_RULE_SETUP { return float_constant(yyscanner); } + YY_BREAK + case 194: + YY_RULE_SETUP { return float_constant(yyscanner); } + YY_BREAK + case 195: + YY_RULE_SETUP { return floatsuffix_check(context); } + YY_BREAK + case 196: + YY_RULE_SETUP { return floatsuffix_check(context); } + YY_BREAK + case 197: + YY_RULE_SETUP { return floatsuffix_check(context); } + YY_BREAK + case 198: + YY_RULE_SETUP { return ADD_ASSIGN; } + YY_BREAK + case 199: + YY_RULE_SETUP { return SUB_ASSIGN; } + YY_BREAK + case 200: + YY_RULE_SETUP { return MUL_ASSIGN; } + YY_BREAK + case 201: + YY_RULE_SETUP { return DIV_ASSIGN; } + YY_BREAK + case 202: + YY_RULE_SETUP { return MOD_ASSIGN; } + YY_BREAK + case 203: + YY_RULE_SETUP { return LEFT_ASSIGN; } + YY_BREAK + case 204: + YY_RULE_SETUP { return RIGHT_ASSIGN; } + YY_BREAK + case 205: + YY_RULE_SETUP { return AND_ASSIGN; } + YY_BREAK + case 206: + YY_RULE_SETUP { return XOR_ASSIGN; } + YY_BREAK + case 207: + YY_RULE_SETUP { return OR_ASSIGN; } + YY_BREAK + case 208: + YY_RULE_SETUP { return INC_OP; } + YY_BREAK + case 209: + YY_RULE_SETUP { return DEC_OP; } + YY_BREAK + case 210: + YY_RULE_SETUP { return AND_OP; } + YY_BREAK + case 211: + YY_RULE_SETUP { return OR_OP; } + YY_BREAK + case 212: + YY_RULE_SETUP { return XOR_OP; } + YY_BREAK + case 213: + YY_RULE_SETUP { return LE_OP; } + YY_BREAK + case 214: + YY_RULE_SETUP { return GE_OP; } + YY_BREAK + case 215: + YY_RULE_SETUP { return EQ_OP; } + YY_BREAK + case 216: + YY_RULE_SETUP { return NE_OP; } + YY_BREAK + case 217: + YY_RULE_SETUP { return LEFT_OP; } + YY_BREAK + case 218: + YY_RULE_SETUP { return RIGHT_OP; } + YY_BREAK + case 219: + YY_RULE_SETUP { return SEMICOLON; } + YY_BREAK + case 220: + YY_RULE_SETUP { return LEFT_BRACE; } + YY_BREAK + case 221: + YY_RULE_SETUP { return RIGHT_BRACE; } + YY_BREAK + case 222: + YY_RULE_SETUP { return COMMA; } + YY_BREAK + case 223: + YY_RULE_SETUP { return COLON; } + YY_BREAK + case 224: + YY_RULE_SETUP { return EQUAL; } + YY_BREAK + case 225: + YY_RULE_SETUP { return LEFT_PAREN; } + YY_BREAK + case 226: + YY_RULE_SETUP { return RIGHT_PAREN; } + YY_BREAK + case 227: + YY_RULE_SETUP { return LEFT_BRACKET; } + YY_BREAK + case 228: + YY_RULE_SETUP { return RIGHT_BRACKET; } + YY_BREAK + case 229: + YY_RULE_SETUP + { + BEGIN(FIELDS); + return DOT; + } + YY_BREAK + case 230: + YY_RULE_SETUP { return BANG; } + YY_BREAK + case 231: + YY_RULE_SETUP { return DASH; } + YY_BREAK + case 232: + YY_RULE_SETUP { return TILDE; } + YY_BREAK + case 233: + YY_RULE_SETUP { return PLUS; } + YY_BREAK + case 234: + YY_RULE_SETUP { return STAR; } + YY_BREAK + case 235: + YY_RULE_SETUP { return SLASH; } + YY_BREAK + case 236: + YY_RULE_SETUP { return PERCENT; } + YY_BREAK + case 237: + YY_RULE_SETUP { return LEFT_ANGLE; } + YY_BREAK + case 238: + YY_RULE_SETUP { return RIGHT_ANGLE; } + YY_BREAK + case 239: + YY_RULE_SETUP { return VERTICAL_BAR; } + YY_BREAK + case 240: + YY_RULE_SETUP { return CARET; } + YY_BREAK + case 241: + YY_RULE_SETUP { return AMPERSAND; } + YY_BREAK + case 242: + YY_RULE_SETUP { return QUESTION; } + YY_BREAK + case 243: + YY_RULE_SETUP + { + BEGIN(INITIAL); + yylval->lex.string = AllocatePoolCharArray(yytext, yyleng); + return FIELD_SELECTION; + } + YY_BREAK + case 244: + YY_RULE_SETUP {} + YY_BREAK + case 245: + YY_RULE_SETUP + { + yyextra->error(*yylloc, "Illegal character at fieldname start", yytext); + return 0; + } + YY_BREAK + case 246: + /* rule 246 can match eol */ + YY_RULE_SETUP {} + YY_BREAK + case YY_STATE_EOF(INITIAL): + case YY_STATE_EOF(FIELDS): + { + yyterminate(); + } + YY_BREAK + case 247: + YY_RULE_SETUP + { + assert(false); + return 0; + } + YY_BREAK + case 248: + YY_RULE_SETUP + ECHO; + YY_BREAK - if ( yywrap( yyscanner ) ) - { - /* Note: because we've taken care in - * yy_get_next_buffer() to have set up - * yytext, we can now set up - * yy_c_buf_p so that if some total - * hoser (like flex itself) wants to - * call the scanner after we return the - * YY_NULL, it'll still work - another - * YY_NULL will get returned. - */ - yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ; + case YY_END_OF_BUFFER: + { + /* Amount of text matched not including the EOB char. */ + int yy_amount_of_matched_text = (int)(yy_cp - yyg->yytext_ptr) - 1; - yy_act = YY_STATE_EOF(YY_START); - goto do_action; - } + /* Undo the effects of YY_DO_BEFORE_ACTION. */ + *yy_cp = yyg->yy_hold_char; + YY_RESTORE_YY_MORE_OFFSET - else - { - if ( ! yyg->yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; - } - break; - } + if (YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW) + { + /* We're scanning a new file or input source. It's + * possible that this happened because the user + * just pointed yyin at a new source and called + * yylex(). If so, then we have to assure + * consistency between YY_CURRENT_BUFFER and our + * globals. Here is the right place to do so, because + * this is the first action (other than possibly a + * back-up) that will match for the new input source. + */ + yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; + } - case EOB_ACT_CONTINUE_SCAN: - yyg->yy_c_buf_p = - yyg->yytext_ptr + yy_amount_of_matched_text; + /* Note that here we test for yy_c_buf_p "<=" to the position + * of the first EOB in the buffer, since yy_c_buf_p will + * already have been incremented past the NUL character + * (since all states make transitions on EOB to the + * end-of-buffer state). Contrast this with the test + * in input(). + */ + if (yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]) + { /* This was really a NUL. */ + yy_state_type yy_next_state; - yy_current_state = yy_get_previous_state( yyscanner ); + yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; - yy_cp = yyg->yy_c_buf_p; - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - goto yy_match; + yy_current_state = yy_get_previous_state(yyscanner); - case EOB_ACT_LAST_MATCH: - yyg->yy_c_buf_p = - &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]; + /* Okay, we're now positioned to make the NUL + * transition. We couldn't have + * yy_get_previous_state() go ahead and do it + * for us because it doesn't know how to deal + * with the possibility of jamming (and we don't + * want to build jamming into it because then it + * will run more slowly). + */ - yy_current_state = yy_get_previous_state( yyscanner ); + yy_next_state = yy_try_NUL_trans(yy_current_state, yyscanner); - yy_cp = yyg->yy_c_buf_p; - yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - goto yy_find_action; - } - break; - } + yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; - default: - YY_FATAL_ERROR( - "fatal flex scanner internal error--no action found" ); - } /* end of action switch */ - } /* end of scanning one token */ - } /* end of user's declarations */ + if (yy_next_state) + { + /* Consume the NUL. */ + yy_cp = ++yyg->yy_c_buf_p; + yy_current_state = yy_next_state; + goto yy_match; + } + + else + { + yy_cp = yyg->yy_last_accepting_cpos; + yy_current_state = yyg->yy_last_accepting_state; + goto yy_find_action; + } + } + + else + switch (yy_get_next_buffer(yyscanner)) + { + case EOB_ACT_END_OF_FILE: + { + yyg->yy_did_buffer_switch_on_eof = 0; + + if (yywrap(yyscanner)) + { + /* Note: because we've taken care in + * yy_get_next_buffer() to have set up + * yytext, we can now set up + * yy_c_buf_p so that if some total + * hoser (like flex itself) wants to + * call the scanner after we return the + * YY_NULL, it'll still work - another + * YY_NULL will get returned. + */ + yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ; + + yy_act = YY_STATE_EOF(YY_START); + goto do_action; + } + + else + { + if (!yyg->yy_did_buffer_switch_on_eof) + YY_NEW_FILE; + } + break; + } + + case EOB_ACT_CONTINUE_SCAN: + yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text; + + yy_current_state = yy_get_previous_state(yyscanner); + + yy_cp = yyg->yy_c_buf_p; + yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; + goto yy_match; + + case EOB_ACT_LAST_MATCH: + yyg->yy_c_buf_p = + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]; + + yy_current_state = yy_get_previous_state(yyscanner); + + yy_cp = yyg->yy_c_buf_p; + yy_bp = yyg->yytext_ptr + YY_MORE_ADJ; + goto yy_find_action; + } + break; + } + + default: + YY_FATAL_ERROR("fatal flex scanner internal error--no action found"); + } /* end of action switch */ + } /* end of scanning one token */ + } /* end of user's declarations */ } /* end of yylex */ - - - - /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: - * EOB_ACT_LAST_MATCH - - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position - * EOB_ACT_END_OF_FILE - end of file + * EOB_ACT_LAST_MATCH - + * EOB_ACT_CONTINUE_SCAN - continue scanning from current position + * EOB_ACT_END_OF_FILE - end of file */ -static int yy_get_next_buffer (yyscan_t yyscanner) +static int yy_get_next_buffer(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; - char *source = yyg->yytext_ptr; - int number_to_move, i; - int ret_val; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; + char *source = yyg->yytext_ptr; + int number_to_move, i; + int ret_val; - if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] ) - YY_FATAL_ERROR( - "fatal flex scanner internal error--end of buffer missed" ); + if (yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1]) + YY_FATAL_ERROR("fatal flex scanner internal error--end of buffer missed"); - if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) - { /* Don't try to fill the buffer, so this is an EOF. */ - if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 ) - { - /* We matched a single character, the EOB, so - * treat this as a final EOF. - */ - return EOB_ACT_END_OF_FILE; - } + if (YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0) + { /* Don't try to fill the buffer, so this is an EOF. */ + if (yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1) + { + /* We matched a single character, the EOB, so + * treat this as a final EOF. + */ + return EOB_ACT_END_OF_FILE; + } - else - { - /* We matched some text prior to the EOB, first - * process it. - */ - return EOB_ACT_LAST_MATCH; - } - } + else + { + /* We matched some text prior to the EOB, first + * process it. + */ + return EOB_ACT_LAST_MATCH; + } + } - /* Try to read more data. */ + /* Try to read more data. */ - /* First move last chars to start of buffer. */ - number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr - 1); + /* First move last chars to start of buffer. */ + number_to_move = (int)(yyg->yy_c_buf_p - yyg->yytext_ptr - 1); - for ( i = 0; i < number_to_move; ++i ) - *(dest++) = *(source++); + for (i = 0; i < number_to_move; ++i) + *(dest++) = *(source++); - if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) - /* don't do the read, it's not guaranteed to return an EOF, - * just force an EOF - */ - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0; + if (YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING) + /* don't do the read, it's not guaranteed to return an EOF, + * just force an EOF + */ + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0; - else - { - int num_to_read = - YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + else + { + int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; - while ( num_to_read <= 0 ) - { /* Not enough room in the buffer - grow it. */ + while (num_to_read <= 0) + { /* Not enough room in the buffer - grow it. */ - /* just a shorter name for the current buffer */ - YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; + /* just a shorter name for the current buffer */ + YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; - int yy_c_buf_p_offset = - (int) (yyg->yy_c_buf_p - b->yy_ch_buf); + int yy_c_buf_p_offset = (int)(yyg->yy_c_buf_p - b->yy_ch_buf); - if ( b->yy_is_our_buffer ) - { - int new_size = b->yy_buf_size * 2; + if (b->yy_is_our_buffer) + { + int new_size = b->yy_buf_size * 2; - if ( new_size <= 0 ) - b->yy_buf_size += b->yy_buf_size / 8; - else - b->yy_buf_size *= 2; + if (new_size <= 0) + b->yy_buf_size += b->yy_buf_size / 8; + else + b->yy_buf_size *= 2; - b->yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - yyrealloc( (void *) b->yy_ch_buf, - (yy_size_t) (b->yy_buf_size + 2) , yyscanner ); - } - else - /* Can't grow it, we don't own it. */ - b->yy_ch_buf = NULL; + b->yy_ch_buf = (char *) + /* Include room in for 2 EOB chars. */ + yyrealloc((void *)b->yy_ch_buf, (yy_size_t)(b->yy_buf_size + 2), yyscanner); + } + else + /* Can't grow it, we don't own it. */ + b->yy_ch_buf = NULL; - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( - "fatal error - scanner input buffer overflow" ); + if (!b->yy_ch_buf) + YY_FATAL_ERROR("fatal error - scanner input buffer overflow"); - yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; + yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; - num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - - number_to_move - 1; + num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + } - } + if (num_to_read > YY_READ_BUF_SIZE) + num_to_read = YY_READ_BUF_SIZE; - if ( num_to_read > YY_READ_BUF_SIZE ) - num_to_read = YY_READ_BUF_SIZE; + /* Read in more data. */ + yy_size_t ret = 0; + YY_INPUT((&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), ret, num_to_read); + yyg->yy_n_chars = static_cast(ret); - /* Read in more data. */ - yy_size_t ret = 0; - YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - ret, num_to_read ); - yyg->yy_n_chars = static_cast(ret); + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; + } - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } + if (yyg->yy_n_chars == 0) + { + if (number_to_move == YY_MORE_ADJ) + { + ret_val = EOB_ACT_END_OF_FILE; + yyrestart(yyin, yyscanner); + } - if ( yyg->yy_n_chars == 0 ) - { - if ( number_to_move == YY_MORE_ADJ ) - { - ret_val = EOB_ACT_END_OF_FILE; - yyrestart( yyin , yyscanner); - } + else + { + ret_val = EOB_ACT_LAST_MATCH; + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; + } + } - else - { - ret_val = EOB_ACT_LAST_MATCH; - YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = - YY_BUFFER_EOF_PENDING; - } - } + else + ret_val = EOB_ACT_CONTINUE_SCAN; - else - ret_val = EOB_ACT_CONTINUE_SCAN; + if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) + { + /* Extend the array by 50%, plus the number we really need. */ + int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *)yyrealloc( + (void *)YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t)new_size, yyscanner); + 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); + } - if ((yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { - /* Extend the array by 50%, plus the number we really need. */ - int new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1); - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc( - (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size , yyscanner ); - 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); - } + yyg->yy_n_chars += number_to_move; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR; + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; - yyg->yy_n_chars += number_to_move; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR; - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; + yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; - yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; - - return ret_val; + return ret_val; } - /* yy_get_previous_state - get the state just before the EOB char was reached */ - static yy_state_type yy_get_previous_state (yyscan_t yyscanner) +static yy_state_type yy_get_previous_state(yyscan_t yyscanner) { - yy_state_type yy_current_state; - char *yy_cp; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + yy_state_type yy_current_state; + char *yy_cp; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; - yy_current_state = yyg->yy_start; + yy_current_state = yyg->yy_start; - for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) - { - YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 892 ) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - } + for (yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp) + { + YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); + if (yy_accept[yy_current_state]) + { + yyg->yy_last_accepting_state = yy_current_state; + yyg->yy_last_accepting_cpos = yy_cp; + } + while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) + { + yy_current_state = (int)yy_def[yy_current_state]; + if (yy_current_state >= 892) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + } - return yy_current_state; + return yy_current_state; } - /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis - * next_state = yy_try_NUL_trans( current_state ); + * next_state = yy_try_NUL_trans( current_state ); */ - static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner) +static yy_state_type yy_try_NUL_trans(yy_state_type yy_current_state, yyscan_t yyscanner) { - int yy_is_jam; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ - char *yy_cp = yyg->yy_c_buf_p; + int yy_is_jam; + struct yyguts_t *yyg = + (struct yyguts_t *)yyscanner; /* This var may be unused depending upon options. */ + char *yy_cp = yyg->yy_c_buf_p; - YY_CHAR yy_c = 1; - if ( yy_accept[yy_current_state] ) - { - yyg->yy_last_accepting_state = yy_current_state; - yyg->yy_last_accepting_cpos = yy_cp; - } - while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) - { - yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 892 ) - yy_c = yy_meta[yy_c]; - } - yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; - yy_is_jam = (yy_current_state == 891); + YY_CHAR yy_c = 1; + if (yy_accept[yy_current_state]) + { + yyg->yy_last_accepting_state = yy_current_state; + yyg->yy_last_accepting_cpos = yy_cp; + } + while (yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state) + { + yy_current_state = (int)yy_def[yy_current_state]; + if (yy_current_state >= 892) + yy_c = yy_meta[yy_c]; + } + yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c]; + yy_is_jam = (yy_current_state == 891); - (void)yyg; - return yy_is_jam ? 0 : yy_current_state; + (void)yyg; + return yy_is_jam ? 0 : yy_current_state; } - #ifndef YY_NO_UNPUT #endif #ifndef YY_NO_INPUT -#ifdef __cplusplus - static int yyinput (yyscan_t yyscanner) -#else - static int input (yyscan_t yyscanner) -#endif +# ifdef __cplusplus +static int yyinput(yyscan_t yyscanner) +# else +static int input(yyscan_t yyscanner) +# endif { - int c; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + int c; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; - *yyg->yy_c_buf_p = yyg->yy_hold_char; + *yyg->yy_c_buf_p = yyg->yy_hold_char; - if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) - { - /* yy_c_buf_p now points to the character we want to return. - * If this occurs *before* the EOB characters, then it's a - * valid NUL; if not, then we've hit the end of the buffer. - */ - if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] ) - /* This was really a NUL. */ - *yyg->yy_c_buf_p = '\0'; + if (*yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR) + { + /* yy_c_buf_p now points to the character we want to return. + * If this occurs *before* the EOB characters, then it's a + * valid NUL; if not, then we've hit the end of the buffer. + */ + if (yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars]) + /* This was really a NUL. */ + *yyg->yy_c_buf_p = '\0'; - else - { /* need more input */ - int offset = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr); - ++yyg->yy_c_buf_p; + else + { /* need more input */ + int offset = (int)(yyg->yy_c_buf_p - yyg->yytext_ptr); + ++yyg->yy_c_buf_p; - switch ( yy_get_next_buffer( yyscanner ) ) - { - case EOB_ACT_LAST_MATCH: - /* This happens because yy_g_n_b() - * sees that we've accumulated a - * token and flags that we need to - * try matching the token before - * proceeding. But for input(), - * there's no matching to consider. - * So convert the EOB_ACT_LAST_MATCH - * to EOB_ACT_END_OF_FILE. - */ + switch (yy_get_next_buffer(yyscanner)) + { + case EOB_ACT_LAST_MATCH: + /* This happens because yy_g_n_b() + * sees that we've accumulated a + * token and flags that we need to + * try matching the token before + * proceeding. But for input(), + * there's no matching to consider. + * So convert the EOB_ACT_LAST_MATCH + * to EOB_ACT_END_OF_FILE. + */ - /* Reset buffer status. */ - yyrestart( yyin , yyscanner); + /* Reset buffer status. */ + yyrestart(yyin, yyscanner); - /*FALLTHROUGH*/ + /*FALLTHROUGH*/ - case EOB_ACT_END_OF_FILE: - { - if ( yywrap( yyscanner ) ) - return 0; + case EOB_ACT_END_OF_FILE: + { + if (yywrap(yyscanner)) + return 0; - if ( ! yyg->yy_did_buffer_switch_on_eof ) - YY_NEW_FILE; -#ifdef __cplusplus - return yyinput(yyscanner); -#else - return input(yyscanner); -#endif - } + if (!yyg->yy_did_buffer_switch_on_eof) + YY_NEW_FILE; +# ifdef __cplusplus + return yyinput(yyscanner); +# else + return input(yyscanner); +# endif + } - case EOB_ACT_CONTINUE_SCAN: - yyg->yy_c_buf_p = yyg->yytext_ptr + offset; - break; - } - } - } + case EOB_ACT_CONTINUE_SCAN: + yyg->yy_c_buf_p = yyg->yytext_ptr + offset; + break; + } + } + } - c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */ - *yyg->yy_c_buf_p = '\0'; /* preserve yytext */ - yyg->yy_hold_char = *++yyg->yy_c_buf_p; + c = *(unsigned char *)yyg->yy_c_buf_p; /* cast for 8-bit char's */ + *yyg->yy_c_buf_p = '\0'; /* preserve yytext */ + yyg->yy_hold_char = *++yyg->yy_c_buf_p; - if ( c == '\n' ) - - do{ yylineno++; - yycolumn=0; - }while(0) -; + if (c == '\n') - return c; + do + { + yylineno++; + yycolumn = 0; + } while (0); + + return c; } -#endif /* ifndef YY_NO_INPUT */ +#endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. * @param yyscanner The scanner object. * @note This function does not reset the start condition to @c INITIAL . */ - void yyrestart (FILE * input_file , yyscan_t yyscanner) +void yyrestart(FILE *input_file, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; - if ( ! YY_CURRENT_BUFFER ){ - yyensure_buffer_stack (yyscanner); - YY_CURRENT_BUFFER_LVALUE = - yy_create_buffer( yyin, YY_BUF_SIZE , yyscanner); - } + if (!YY_CURRENT_BUFFER) + { + yyensure_buffer_stack(yyscanner); + YY_CURRENT_BUFFER_LVALUE = yy_create_buffer(yyin, YY_BUF_SIZE, yyscanner); + } - yy_init_buffer( YY_CURRENT_BUFFER, input_file , yyscanner); - yy_load_buffer_state( yyscanner ); + yy_init_buffer(YY_CURRENT_BUFFER, input_file, yyscanner); + yy_load_buffer_state(yyscanner); } - /** Switch to a different input buffer. * @param new_buffer The new input buffer. * @param yyscanner The scanner object. */ - void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) +void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; - /* TODO. We should be able to replace this entire function body - * with - * yypop_buffer_state(); - * yypush_buffer_state(new_buffer); + /* TODO. We should be able to replace this entire function body + * with + * yypop_buffer_state(); + * yypush_buffer_state(new_buffer); */ - yyensure_buffer_stack (yyscanner); - if ( YY_CURRENT_BUFFER == new_buffer ) - return; + yyensure_buffer_stack(yyscanner); + if (YY_CURRENT_BUFFER == new_buffer) + return; - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *yyg->yy_c_buf_p = yyg->yy_hold_char; - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } + if (YY_CURRENT_BUFFER) + { + /* Flush out information for old buffer. */ + *yyg->yy_c_buf_p = yyg->yy_hold_char; + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; + } - YY_CURRENT_BUFFER_LVALUE = new_buffer; - yy_load_buffer_state( yyscanner ); + YY_CURRENT_BUFFER_LVALUE = new_buffer; + yy_load_buffer_state(yyscanner); - /* We don't actually know whether we did this switch during - * EOF (yywrap()) processing, but the only time this flag - * is looked at is after yywrap() is called, so it's safe - * to go ahead and always set it. - */ - yyg->yy_did_buffer_switch_on_eof = 1; + /* We don't actually know whether we did this switch during + * EOF (yywrap()) processing, but the only time this flag + * is looked at is after yywrap() is called, so it's safe + * to go ahead and always set it. + */ + yyg->yy_did_buffer_switch_on_eof = 1; } - -static void yy_load_buffer_state (yyscan_t yyscanner) +static void yy_load_buffer_state(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; - yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; - yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; - yyg->yy_hold_char = *yyg->yy_c_buf_p; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; + yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; + yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; + yyg->yy_hold_char = *yyg->yy_c_buf_p; } /** Allocate and initialize an input buffer state. @@ -3037,110 +2449,106 @@ static void yy_load_buffer_state (yyscan_t yyscanner) * @param yyscanner The scanner object. * @return the allocated buffer state. */ - YY_BUFFER_STATE yy_create_buffer (FILE * file, int size , yyscan_t yyscanner) +YY_BUFFER_STATE yy_create_buffer(FILE *file, int size, yyscan_t yyscanner) { - YY_BUFFER_STATE b; - - b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + YY_BUFFER_STATE b; - b->yy_buf_size = size; + b = (YY_BUFFER_STATE)yyalloc(sizeof(struct yy_buffer_state), yyscanner); + if (!b) + YY_FATAL_ERROR("out of dynamic memory in yy_create_buffer()"); - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ - b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) , yyscanner ); - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + b->yy_buf_size = size; - b->yy_is_our_buffer = 1; + /* yy_ch_buf has to be 2 characters longer than the size given because + * we need to put in 2 end-of-buffer characters. + */ + b->yy_ch_buf = (char *)yyalloc((yy_size_t)(b->yy_buf_size + 2), yyscanner); + if (!b->yy_ch_buf) + YY_FATAL_ERROR("out of dynamic memory in yy_create_buffer()"); - yy_init_buffer( b, file , yyscanner); + b->yy_is_our_buffer = 1; - return b; + yy_init_buffer(b, file, yyscanner); + + return b; } - /** Destroy the buffer. * @param b a buffer created with yy_create_buffer() * @param yyscanner The scanner object. */ - void yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) +void yy_delete_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; - if ( ! b ) - return; + if (!b) + return; - if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ - YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; + if (b == YY_CURRENT_BUFFER) /* Not sure if we should pop here. */ + YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE)0; - if ( b->yy_is_our_buffer ) - yyfree( (void *) b->yy_ch_buf , yyscanner ); + if (b->yy_is_our_buffer) + yyfree((void *)b->yy_ch_buf, yyscanner); - yyfree( (void *) b , yyscanner ); + yyfree((void *)b, yyscanner); } - /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. */ - static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) +static void yy_init_buffer(YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner) { - int oerrno = errno; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + int oerrno = errno; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; - yy_flush_buffer( b , yyscanner); + yy_flush_buffer(b, yyscanner); - b->yy_input_file = file; - b->yy_fill_buffer = 1; + b->yy_input_file = file; + b->yy_fill_buffer = 1; /* If b is the current buffer, then yy_init_buffer was _probably_ * called from yyrestart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ - if (b != YY_CURRENT_BUFFER){ + if (b != YY_CURRENT_BUFFER) + { b->yy_bs_lineno = 1; b->yy_bs_column = 0; } + b->yy_is_interactive = 0; - - b->yy_is_interactive = 0; - - - errno = oerrno; + errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * @param yyscanner The scanner object. */ - void yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) +void yy_flush_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if ( ! b ) - return; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + if (!b) + return; - b->yy_n_chars = 0; + b->yy_n_chars = 0; - /* We always need two end-of-buffer characters. The first causes - * a transition to the end-of-buffer state. The second causes - * a jam in that state. - */ - b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; - b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; + /* We always need two end-of-buffer characters. The first causes + * a transition to the end-of-buffer state. The second causes + * a jam in that state. + */ + b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; + b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; - b->yy_buf_pos = &b->yy_ch_buf[0]; + b->yy_buf_pos = &b->yy_ch_buf[0]; - b->yy_at_bol = 1; - b->yy_buffer_status = YY_BUFFER_NEW; + b->yy_at_bol = 1; + b->yy_buffer_status = YY_BUFFER_NEW; - if ( b == YY_CURRENT_BUFFER ) - yy_load_buffer_state( yyscanner ); + if (b == YY_CURRENT_BUFFER) + yy_load_buffer_state(yyscanner); } /** Pushes the new state onto the stack. The new state becomes @@ -3149,146 +2557,136 @@ static void yy_load_buffer_state (yyscan_t yyscanner) * @param new_buffer The new state. * @param yyscanner The scanner object. */ -void yypush_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) +void yypush_buffer_state(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if (new_buffer == NULL) - return; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + if (new_buffer == NULL) + return; - yyensure_buffer_stack(yyscanner); + yyensure_buffer_stack(yyscanner); - /* This block is copied from yy_switch_to_buffer. */ - if ( YY_CURRENT_BUFFER ) - { - /* Flush out information for old buffer. */ - *yyg->yy_c_buf_p = yyg->yy_hold_char; - YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; - YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; - } + /* This block is copied from yy_switch_to_buffer. */ + if (YY_CURRENT_BUFFER) + { + /* Flush out information for old buffer. */ + *yyg->yy_c_buf_p = yyg->yy_hold_char; + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; + } - /* Only push if top exists. Otherwise, replace top. */ - if (YY_CURRENT_BUFFER) - yyg->yy_buffer_stack_top++; - YY_CURRENT_BUFFER_LVALUE = new_buffer; + /* Only push if top exists. Otherwise, replace top. */ + if (YY_CURRENT_BUFFER) + yyg->yy_buffer_stack_top++; + YY_CURRENT_BUFFER_LVALUE = new_buffer; - /* copied from yy_switch_to_buffer. */ - yy_load_buffer_state( yyscanner ); - yyg->yy_did_buffer_switch_on_eof = 1; + /* copied from yy_switch_to_buffer. */ + yy_load_buffer_state(yyscanner); + yyg->yy_did_buffer_switch_on_eof = 1; } - /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * @param yyscanner The scanner object. */ -void yypop_buffer_state (yyscan_t yyscanner) +void yypop_buffer_state(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - if (!YY_CURRENT_BUFFER) - return; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + if (!YY_CURRENT_BUFFER) + return; - yy_delete_buffer(YY_CURRENT_BUFFER , yyscanner); - YY_CURRENT_BUFFER_LVALUE = NULL; - if (yyg->yy_buffer_stack_top > 0) - --yyg->yy_buffer_stack_top; + yy_delete_buffer(YY_CURRENT_BUFFER, yyscanner); + YY_CURRENT_BUFFER_LVALUE = NULL; + if (yyg->yy_buffer_stack_top > 0) + --yyg->yy_buffer_stack_top; - if (YY_CURRENT_BUFFER) { - yy_load_buffer_state( yyscanner ); - yyg->yy_did_buffer_switch_on_eof = 1; - } + if (YY_CURRENT_BUFFER) + { + yy_load_buffer_state(yyscanner); + yyg->yy_did_buffer_switch_on_eof = 1; + } } - /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ -static void yyensure_buffer_stack (yyscan_t yyscanner) +static void yyensure_buffer_stack(yyscan_t yyscanner) { - yy_size_t num_to_alloc; - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + yy_size_t num_to_alloc; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; - if (!yyg->yy_buffer_stack) { + if (!yyg->yy_buffer_stack) + { - /* First allocation is just for 2 elements, since we don't know if this - * scanner will even need a stack. We use 2 instead of 1 to avoid an - * immediate realloc on the next call. + /* First allocation is just for 2 elements, since we don't know if this + * scanner will even need a stack. We use 2 instead of 1 to avoid an + * immediate realloc on the next call. */ - num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ - yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc - (num_to_alloc * sizeof(struct yy_buffer_state*) - , yyscanner); - if ( ! yyg->yy_buffer_stack ) - YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); + num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */ + yyg->yy_buffer_stack = (struct yy_buffer_state **)yyalloc( + num_to_alloc * sizeof(struct yy_buffer_state *), yyscanner); + if (!yyg->yy_buffer_stack) + YY_FATAL_ERROR("out of dynamic memory in yyensure_buffer_stack()"); + memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state *)); - memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*)); + yyg->yy_buffer_stack_max = num_to_alloc; + yyg->yy_buffer_stack_top = 0; + return; + } - yyg->yy_buffer_stack_max = num_to_alloc; - yyg->yy_buffer_stack_top = 0; - return; - } + if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1) + { - if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){ + /* Increase the buffer to prepare for a possible push. */ + yy_size_t grow_size = 8 /* arbitrary grow size */; - /* Increase the buffer to prepare for a possible push. */ - yy_size_t grow_size = 8 /* arbitrary grow size */; + num_to_alloc = yyg->yy_buffer_stack_max + grow_size; + yyg->yy_buffer_stack = (struct yy_buffer_state **)yyrealloc( + yyg->yy_buffer_stack, num_to_alloc * sizeof(struct yy_buffer_state *), yyscanner); + if (!yyg->yy_buffer_stack) + YY_FATAL_ERROR("out of dynamic memory in yyensure_buffer_stack()"); - num_to_alloc = yyg->yy_buffer_stack_max + grow_size; - yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc - (yyg->yy_buffer_stack, - num_to_alloc * sizeof(struct yy_buffer_state*) - , yyscanner); - if ( ! yyg->yy_buffer_stack ) - YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); - - /* zero only the new slots.*/ - memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*)); - yyg->yy_buffer_stack_max = num_to_alloc; - } + /* zero only the new slots.*/ + memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, + grow_size * sizeof(struct yy_buffer_state *)); + yyg->yy_buffer_stack_max = num_to_alloc; + } } - - - - /** Setup the input buffer state to scan directly from a user-specified character buffer. * @param base the character buffer * @param size the size in bytes of the character buffer * @param yyscanner The scanner object. * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscanner) +YY_BUFFER_STATE yy_scan_buffer(char *base, yy_size_t size, yyscan_t yyscanner) { - YY_BUFFER_STATE b; - - if ( size < 2 || - base[size-2] != YY_END_OF_BUFFER_CHAR || - base[size-1] != YY_END_OF_BUFFER_CHAR ) - /* They forgot to leave room for the EOB's. */ - return NULL; + YY_BUFFER_STATE b; - b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) , yyscanner ); - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); + if (size < 2 || base[size - 2] != YY_END_OF_BUFFER_CHAR || + base[size - 1] != YY_END_OF_BUFFER_CHAR) + /* They forgot to leave room for the EOB's. */ + return NULL; - b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */ - b->yy_buf_pos = b->yy_ch_buf = base; - b->yy_is_our_buffer = 0; - b->yy_input_file = NULL; - b->yy_n_chars = b->yy_buf_size; - b->yy_is_interactive = 0; - b->yy_at_bol = 1; - b->yy_fill_buffer = 0; - b->yy_buffer_status = YY_BUFFER_NEW; + b = (YY_BUFFER_STATE)yyalloc(sizeof(struct yy_buffer_state), yyscanner); + if (!b) + YY_FATAL_ERROR("out of dynamic memory in yy_scan_buffer()"); - yy_switch_to_buffer( b , yyscanner ); + b->yy_buf_size = (int)(size - 2); /* "- 2" to take care of EOB's */ + b->yy_buf_pos = b->yy_ch_buf = base; + b->yy_is_our_buffer = 0; + b->yy_input_file = NULL; + b->yy_n_chars = b->yy_buf_size; + b->yy_is_interactive = 0; + b->yy_at_bol = 1; + b->yy_fill_buffer = 0; + b->yy_buffer_status = YY_BUFFER_NEW; - return b; + yy_switch_to_buffer(b, yyscanner); + + return b; } - - - /** Setup the input buffer state to scan a string. The next call to yylex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan @@ -3297,15 +2695,12 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size , yyscan_t yyscann * @note If you want to scan bytes that may contain NUL values, then use * yy_scan_bytes() instead. */ -YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner) +YY_BUFFER_STATE yy_scan_string(const char *yystr, yyscan_t yyscanner) { - - return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner); + + return yy_scan_bytes(yystr, (int)strlen(yystr), yyscanner); } - - - /** Setup the input buffer state to scan the given bytes. The next call to yylex() will * scan from a @e copy of @a bytes. * @param yybytes the byte buffer to scan @@ -3313,295 +2708,233 @@ YY_BUFFER_STATE yy_scan_string (const char * yystr , yyscan_t yyscanner) * @param yyscanner The scanner object. * @return the newly allocated buffer state object. */ -YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len , yyscan_t yyscanner) +YY_BUFFER_STATE yy_scan_bytes(const char *yybytes, int _yybytes_len, yyscan_t yyscanner) { - YY_BUFFER_STATE b; - char *buf; - yy_size_t n; - int i; - - /* Get memory for full buffer, including space for trailing EOB's. */ - n = (yy_size_t) (_yybytes_len + 2); - buf = (char *) yyalloc( n , yyscanner ); - if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); + YY_BUFFER_STATE b; + char *buf; + yy_size_t n; + int i; - for ( i = 0; i < _yybytes_len; ++i ) - buf[i] = yybytes[i]; + /* Get memory for full buffer, including space for trailing EOB's. */ + n = (yy_size_t)(_yybytes_len + 2); + buf = (char *)yyalloc(n, yyscanner); + if (!buf) + YY_FATAL_ERROR("out of dynamic memory in yy_scan_bytes()"); - buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; + for (i = 0; i < _yybytes_len; ++i) + buf[i] = yybytes[i]; - b = yy_scan_buffer( buf, n , yyscanner); - if ( ! b ) - YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); + buf[_yybytes_len] = buf[_yybytes_len + 1] = YY_END_OF_BUFFER_CHAR; - /* It's okay to grow etc. this buffer, and we should throw it - * away when we're done. - */ - b->yy_is_our_buffer = 1; + b = yy_scan_buffer(buf, n, yyscanner); + if (!b) + YY_FATAL_ERROR("bad buffer in yy_scan_bytes()"); - return b; + /* It's okay to grow etc. this buffer, and we should throw it + * away when we're done. + */ + b->yy_is_our_buffer = 1; + + return b; } - - - - - - - - - - #ifndef YY_EXIT_FAILURE -#define YY_EXIT_FAILURE 2 +# define YY_EXIT_FAILURE 2 #endif -static void yynoreturn yy_fatal_error (const char* msg , yyscan_t yyscanner) +static void yynoreturn yy_fatal_error(const char *msg, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - (void)yyg; - fprintf( stderr, "%s\n", msg ); - exit( YY_EXIT_FAILURE ); + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + (void)yyg; + fprintf(stderr, "%s\n", msg); + exit(YY_EXIT_FAILURE); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless -#define yyless(n) \ - do \ - { \ - /* Undo effects of setting up yytext. */ \ - int yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - yytext[yyleng] = yyg->yy_hold_char; \ - yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ - yyg->yy_hold_char = *yyg->yy_c_buf_p; \ - *yyg->yy_c_buf_p = '\0'; \ - yyleng = yyless_macro_arg; \ - } \ - while ( 0 ) - - +#define yyless(n) \ + do \ + { \ + /* Undo effects of setting up yytext. */ \ + int yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg); \ + yytext[yyleng] = yyg->yy_hold_char; \ + yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ + yyg->yy_hold_char = *yyg->yy_c_buf_p; \ + *yyg->yy_c_buf_p = '\0'; \ + yyleng = yyless_macro_arg; \ + } while (0) /* Accessor methods (get/set functions) to struct members. */ - /** Get the user-defined data for this scanner. * @param yyscanner The scanner object. */ -YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner) +YY_EXTRA_TYPE yyget_extra(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yyextra; } - - /** Get the current line number. * @param yyscanner The scanner object. */ -int yyget_lineno (yyscan_t yyscanner) +int yyget_lineno(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + + if (!YY_CURRENT_BUFFER) + return 0; - - if (! YY_CURRENT_BUFFER) - return 0; - return yylineno; } - - - /** Get the current column number. * @param yyscanner The scanner object. */ -int yyget_column (yyscan_t yyscanner) +int yyget_column(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + + if (!YY_CURRENT_BUFFER) + return 0; - - if (! YY_CURRENT_BUFFER) - return 0; - return yycolumn; } - - - /** Get the input stream. * @param yyscanner The scanner object. */ -FILE *yyget_in (yyscan_t yyscanner) +FILE *yyget_in(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yyin; } - - /** Get the output stream. * @param yyscanner The scanner object. */ -FILE *yyget_out (yyscan_t yyscanner) +FILE *yyget_out(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yyout; } - - /** Get the length of the current token. * @param yyscanner The scanner object. */ -int yyget_leng (yyscan_t yyscanner) +int yyget_leng(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yyleng; } - /** Get the current token. * @param yyscanner The scanner object. */ -char *yyget_text (yyscan_t yyscanner) +char *yyget_text(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yytext; } - - /** Set the user-defined data. This data is never touched by the scanner. * @param user_defined The data to be associated with this scanner. * @param yyscanner The scanner object. */ -void yyset_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner) +void yyset_extra(YY_EXTRA_TYPE user_defined, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyextra = user_defined ; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + yyextra = user_defined; } - - /** Set the current line number. * @param _line_number line number * @param yyscanner The scanner object. */ -void yyset_lineno (int _line_number , yyscan_t yyscanner) +void yyset_lineno(int _line_number, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + + /* lineno is only valid if an input buffer exists. */ + if (!YY_CURRENT_BUFFER) + YY_FATAL_ERROR("yyset_lineno called with no buffer"); - - /* lineno is only valid if an input buffer exists. */ - if (! YY_CURRENT_BUFFER ) - YY_FATAL_ERROR( "yyset_lineno called with no buffer" ); - yylineno = _line_number; } - - - /** Set the current column. * @param _column_no column number * @param yyscanner The scanner object. */ -void yyset_column (int _column_no , yyscan_t yyscanner) +void yyset_column(int _column_no, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + + /* column is only valid if an input buffer exists. */ + if (!YY_CURRENT_BUFFER) + YY_FATAL_ERROR("yyset_column called with no buffer"); - - /* column is only valid if an input buffer exists. */ - if (! YY_CURRENT_BUFFER ) - YY_FATAL_ERROR( "yyset_column called with no buffer" ); - yycolumn = _column_no; } - - - - /** Set the input stream. This does not discard the current * input buffer. * @param _in_str A readable stream. * @param yyscanner The scanner object. * @see yy_switch_to_buffer */ -void yyset_in (FILE * _in_str , yyscan_t yyscanner) +void yyset_in(FILE *_in_str, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyin = _in_str ; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + yyin = _in_str; } - - -void yyset_out (FILE * _out_str , yyscan_t yyscanner) +void yyset_out(FILE *_out_str, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yyout = _out_str ; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + yyout = _out_str; } - - - -int yyget_debug (yyscan_t yyscanner) +int yyget_debug(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yy_flex_debug; } - - -void yyset_debug (int _bdebug , yyscan_t yyscanner) +void yyset_debug(int _bdebug, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yy_flex_debug = _bdebug ; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + yy_flex_debug = _bdebug; } - /* Accessor methods for yylval and yylloc */ - -YYSTYPE * yyget_lval (yyscan_t yyscanner) +YYSTYPE *yyget_lval(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yylval; } - - -void yyset_lval (YYSTYPE * yylval_param , yyscan_t yyscanner) +void yyset_lval(YYSTYPE *yylval_param, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yylval = yylval_param; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + yylval = yylval_param; } - - - -YYLTYPE *yyget_lloc (yyscan_t yyscanner) +YYLTYPE *yyget_lloc(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; return yylloc; } - - -void yyset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner) +void yyset_lloc(YYLTYPE *yylloc_param, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - yylloc = yylloc_param; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + yylloc = yylloc_param; } - - - - /* User-visible API */ @@ -3609,27 +2942,28 @@ void yyset_lloc (YYLTYPE * yylloc_param , yyscan_t yyscanner) * the ONLY reentrant function that doesn't take the scanner as the last argument. * That's why we explicitly handle the declaration, instead of using our macros. */ -int yylex_init(yyscan_t* ptr_yy_globals) +int yylex_init(yyscan_t *ptr_yy_globals) { - if (ptr_yy_globals == NULL){ + if (ptr_yy_globals == NULL) + { errno = EINVAL; return 1; } - *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), NULL ); + *ptr_yy_globals = (yyscan_t)yyalloc(sizeof(struct yyguts_t), NULL); - if (*ptr_yy_globals == NULL){ + if (*ptr_yy_globals == NULL) + { errno = ENOMEM; return 1; } /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ - memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); + memset(*ptr_yy_globals, 0x00, sizeof(struct yyguts_t)); - return yy_init_globals ( *ptr_yy_globals ); + return yy_init_globals(*ptr_yy_globals); } - /* yylex_init_extra has the same functionality as yylex_init, but follows the * convention of taking the scanner as the last argument. Note however, that * this is a *pointer* to a scanner, as it will be allocated by this call (and @@ -3637,67 +2971,59 @@ int yylex_init(yyscan_t* ptr_yy_globals) * The user defined value in the first argument will be available to yyalloc in * the yyextra field. */ -int yylex_init_extra( YY_EXTRA_TYPE yy_user_defined, yyscan_t* ptr_yy_globals ) +int yylex_init_extra(YY_EXTRA_TYPE yy_user_defined, yyscan_t *ptr_yy_globals) { struct yyguts_t dummy_yyguts; - yyset_extra (yy_user_defined, &dummy_yyguts); + yyset_extra(yy_user_defined, &dummy_yyguts); - if (ptr_yy_globals == NULL){ + if (ptr_yy_globals == NULL) + { errno = EINVAL; return 1; } - *ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ), &dummy_yyguts ); + *ptr_yy_globals = (yyscan_t)yyalloc(sizeof(struct yyguts_t), &dummy_yyguts); - if (*ptr_yy_globals == NULL){ + if (*ptr_yy_globals == NULL) + { errno = ENOMEM; return 1; } /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ - memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); + memset(*ptr_yy_globals, 0x00, sizeof(struct yyguts_t)); - yyset_extra (yy_user_defined, *ptr_yy_globals); + yyset_extra(yy_user_defined, *ptr_yy_globals); - return yy_init_globals ( *ptr_yy_globals ); + return yy_init_globals(*ptr_yy_globals); } - -static int yy_init_globals (yyscan_t yyscanner) +static int yy_init_globals(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; /* Initialization is the same as for the non-reentrant scanner. * This function is called from yylex_destroy(), so don't allocate here. */ - - - - yyg->yy_buffer_stack = NULL; + yyg->yy_buffer_stack = NULL; yyg->yy_buffer_stack_top = 0; yyg->yy_buffer_stack_max = 0; - yyg->yy_c_buf_p = NULL; - yyg->yy_init = 0; - yyg->yy_start = 0; + yyg->yy_c_buf_p = NULL; + yyg->yy_init = 0; + yyg->yy_start = 0; - - yyg->yy_start_stack_ptr = 0; + yyg->yy_start_stack_ptr = 0; yyg->yy_start_stack_depth = 0; - yyg->yy_start_stack = NULL; - - - - - + yyg->yy_start_stack = NULL; /* Defined in main.c */ #ifdef YY_STDINIT - yyin = stdin; + yyin = stdin; yyout = stdout; #else - yyin = NULL; + yyin = NULL; yyout = NULL; #endif @@ -3707,120 +3033,97 @@ static int yy_init_globals (yyscan_t yyscanner) return 0; } - /* yylex_destroy is for both reentrant and non-reentrant scanners. */ -int yylex_destroy (yyscan_t yyscanner) +int yylex_destroy(yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; /* Pop the buffer stack, destroying each element. */ - while(YY_CURRENT_BUFFER){ - yy_delete_buffer( YY_CURRENT_BUFFER , yyscanner ); - YY_CURRENT_BUFFER_LVALUE = NULL; - yypop_buffer_state(yyscanner); - } - - /* Destroy the stack itself. */ - yyfree(yyg->yy_buffer_stack , yyscanner); - yyg->yy_buffer_stack = NULL; + while (YY_CURRENT_BUFFER) + { + yy_delete_buffer(YY_CURRENT_BUFFER, yyscanner); + YY_CURRENT_BUFFER_LVALUE = NULL; + yypop_buffer_state(yyscanner); + } + /* Destroy the stack itself. */ + yyfree(yyg->yy_buffer_stack, yyscanner); + yyg->yy_buffer_stack = NULL; /* Destroy the start condition stack. */ - yyfree( yyg->yy_start_stack , yyscanner ); - yyg->yy_start_stack = NULL; - - - + yyfree(yyg->yy_start_stack, yyscanner); + yyg->yy_start_stack = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * yylex() is called, initialization will occur. */ - yy_init_globals( yyscanner); + yy_init_globals(yyscanner); /* Destroy the main struct (reentrant only). */ - yyfree ( yyscanner , yyscanner ); + yyfree(yyscanner, yyscanner); yyscanner = NULL; return 0; } - - /* * Internal utility routines. */ - - #ifndef yytext_ptr -static void yy_flex_strncpy (char* s1, const char * s2, int n , yyscan_t yyscanner) +static void yy_flex_strncpy(char *s1, const char *s2, int n, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - (void)yyg; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + (void)yyg; - int i; - for ( i = 0; i < n; ++i ) - s1[i] = s2[i]; + int i; + for (i = 0; i < n; ++i) + s1[i] = s2[i]; } #endif - - #ifdef YY_NEED_STRLEN -static int yy_flex_strlen (const char * s , yyscan_t yyscanner) +static int yy_flex_strlen(const char *s, yyscan_t yyscanner) { - int n; - for ( n = 0; s[n]; ++n ) - ; + int n; + for (n = 0; s[n]; ++n) + ; - return n; + return n; } #endif - - -void *yyalloc (yy_size_t size , yyscan_t yyscanner) +void *yyalloc(yy_size_t size, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - (void)yyg; - return malloc(size); + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + (void)yyg; + return malloc(size); } - - -void *yyrealloc (void * ptr, yy_size_t size , yyscan_t yyscanner) +void *yyrealloc(void *ptr, yy_size_t size, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - (void)yyg; + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + (void)yyg; - /* The cast to (char *) in the following accommodates both - * implementations that use char* generic pointers, and those - * that use void* generic pointers. It works with the latter - * because both ANSI C and C++ allow castless assignment from - * any pointer type to void*, and deal with argument conversions - * as though doing an assignment. - */ - return realloc(ptr, size); + /* The cast to (char *) in the following accommodates both + * implementations that use char* generic pointers, and those + * that use void* generic pointers. It works with the latter + * because both ANSI C and C++ allow castless assignment from + * any pointer type to void*, and deal with argument conversions + * as though doing an assignment. + */ + return realloc(ptr, size); } - - -void yyfree (void * ptr , yyscan_t yyscanner) +void yyfree(void *ptr, yyscan_t yyscanner) { - struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; - (void)yyg; - free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; + (void)yyg; + free((char *)ptr); /* see yyrealloc() for (char *) cast */ } - #define YYTABLES_NAME "yytables" - - - - - - - -yy_size_t string_input(char* buf, yy_size_t max_size, yyscan_t yyscanner) { +yy_size_t string_input(char *buf, yy_size_t max_size, yyscan_t yyscanner) +{ angle::pp::Token token; yyget_extra(yyscanner)->getPreprocessor().lex(&token); yy_size_t len = token.type == angle::pp::Token::LAST ? 0 : token.text.size(); @@ -3836,12 +3139,15 @@ yy_size_t string_input(char* buf, yy_size_t max_size, yyscan_t yyscanner) { return len; } -int check_type(yyscan_t yyscanner) { - struct yyguts_t* yyg = (struct yyguts_t*) yyscanner; +int check_type(yyscan_t yyscanner) +{ + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; int token = IDENTIFIER; - // Note that the ImmutableString used here isn't static or pool allocated - but it's fine since yytext is valid for the duration of its use. - const TSymbol* symbol = yyextra->symbolTable.find(ImmutableString(yytext, yyleng), yyextra->getShaderVersion()); + // Note that the ImmutableString used here isn't static or pool allocated - but it's fine since + // yytext is valid for the duration of its use. + const TSymbol *symbol = + yyextra->symbolTable.find(ImmutableString(yytext, yyleng), yyextra->getShaderVersion()); if (symbol && symbol->isStruct()) { token = TYPE_NAME; @@ -3850,15 +3156,18 @@ int check_type(yyscan_t yyscanner) { return token; } -int reserved_word(yyscan_t yyscanner) { - struct yyguts_t* yyg = (struct yyguts_t*) yyscanner; +int reserved_word(yyscan_t yyscanner) +{ + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; yyextra->error(*yylloc, "Illegal use of reserved word", yytext); return 0; } static bool is_extension_enabled_or_is_core(TParseContext *context, - int extension_version, TExtension extension, int promotion_version) + int extension_version, + TExtension extension, + int promotion_version) { int version = context->getShaderVersion(); @@ -3866,12 +3175,12 @@ static bool is_extension_enabled_or_is_core(TParseContext *context, // keyword if version is at least extension_version (where the extension was introduced) and // the extension is enabled. return version >= promotion_version || - (version >= extension_version && context->isExtensionEnabled(extension)); + (version >= extension_version && context->isExtensionEnabled(extension)); } int ES2_reserved_ES3_keyword(TParseContext *context, int token) { - yyscan_t yyscanner = (yyscan_t) context->getScanner(); + yyscan_t yyscanner = (yyscan_t)context->getScanner(); if (context->getShaderVersion() < 300) { @@ -3883,7 +3192,7 @@ int ES2_reserved_ES3_keyword(TParseContext *context, int token) int ES2_keyword_ES3_reserved(TParseContext *context, int token) { - yyscan_t yyscanner = (yyscan_t) context->getScanner(); + yyscan_t yyscanner = (yyscan_t)context->getScanner(); if (context->getShaderVersion() >= 300) { @@ -3895,8 +3204,8 @@ int ES2_keyword_ES3_reserved(TParseContext *context, int token) int ES3_reserved_ES3_1_keyword(TParseContext *context, int token) { - struct yyguts_t* yyg = (struct yyguts_t*) context->getScanner(); - yyscan_t yyscanner = (yyscan_t) context->getScanner(); + struct yyguts_t *yyg = (struct yyguts_t *)context->getScanner(); + yyscan_t yyscanner = (yyscan_t)context->getScanner(); if (context->getShaderVersion() < 300) { @@ -3913,8 +3222,8 @@ int ES3_reserved_ES3_1_keyword(TParseContext *context, int token) int ES3_keyword(TParseContext *context, int token) { - struct yyguts_t* yyg = (struct yyguts_t*) context->getScanner(); - yyscan_t yyscanner = (yyscan_t) context->getScanner(); + struct yyguts_t *yyg = (struct yyguts_t *)context->getScanner(); + yyscan_t yyscanner = (yyscan_t)context->getScanner(); // not a reserved word in GLSL ES 1.00, so could be used as an identifier/type name if (context->getShaderVersion() < 300) @@ -3928,7 +3237,7 @@ int ES3_keyword(TParseContext *context, int token) int ES2_reserved_ES3_1_keyword(TParseContext *context, int token) { - yyscan_t yyscanner = (yyscan_t) context->getScanner(); + yyscan_t yyscanner = (yyscan_t)context->getScanner(); if (context->getShaderVersion() < 310) { @@ -3940,8 +3249,8 @@ int ES2_reserved_ES3_1_keyword(TParseContext *context, int token) int ES3_1_keyword(TParseContext *context, int token) { - struct yyguts_t* yyg = (struct yyguts_t*) context->getScanner(); - yyscan_t yyscanner = (yyscan_t) context->getScanner(); + struct yyguts_t *yyg = (struct yyguts_t *)context->getScanner(); + yyscan_t yyscanner = (yyscan_t)context->getScanner(); // A keyword in GLSL ES 3.10. if (context->getShaderVersion() >= 310) @@ -3956,7 +3265,7 @@ int ES3_1_keyword(TParseContext *context, int token) int ES2_reserved_ES2_extension_ES3_keyword(TParseContext *context, TExtension extension, int token) { - yyscan_t yyscanner = (yyscan_t) context->getScanner(); + yyscan_t yyscanner = (yyscan_t)context->getScanner(); // A keyword in GLSL ES 3.00 or GLSL ES 1.00 with enabled extension. if (is_extension_enabled_or_is_core(context, 100, extension, 300)) @@ -3970,8 +3279,8 @@ int ES2_reserved_ES2_extension_ES3_keyword(TParseContext *context, TExtension ex int ES3_extension(TParseContext *context, TExtension extension, int token) { - struct yyguts_t* yyg = (struct yyguts_t*) context->getScanner(); - yyscan_t yyscanner = (yyscan_t) context->getScanner(); + struct yyguts_t *yyg = (struct yyguts_t *)context->getScanner(); + yyscan_t yyscanner = (yyscan_t)context->getScanner(); // a keyword word in GLSL ES 3.00 with enabled extension. if (context->getShaderVersion() >= 300 && context->isExtensionEnabled(extension)) @@ -3984,10 +3293,12 @@ int ES3_extension(TParseContext *context, TExtension extension, int token) return check_type(yyscanner); } -int ES3_reserved_ES3_1_extension_ES3_2_keyword(TParseContext *context, TExtension extension, int token) +int ES3_reserved_ES3_1_extension_ES3_2_keyword(TParseContext *context, + TExtension extension, + int token) { - struct yyguts_t* yyg = (struct yyguts_t*) context->getScanner(); - yyscan_t yyscanner = (yyscan_t) context->getScanner(); + struct yyguts_t *yyg = (struct yyguts_t *)context->getScanner(); + yyscan_t yyscanner = (yyscan_t)context->getScanner(); // a keyword in GLSL ES 3.10 with enabled extension if (is_extension_enabled_or_is_core(context, 310, extension, 320)) @@ -4005,10 +3316,12 @@ int ES3_reserved_ES3_1_extension_ES3_2_keyword(TParseContext *context, TExtensio return check_type(yyscanner); } -int ES3_reserved_ES3_extension_ES3_1_keyword(TParseContext *context, TExtension extension, int token) +int ES3_reserved_ES3_extension_ES3_1_keyword(TParseContext *context, + TExtension extension, + int token) { - struct yyguts_t* yyg = (struct yyguts_t*) context->getScanner(); - yyscan_t yyscanner = (yyscan_t) context->getScanner(); + struct yyguts_t *yyg = (struct yyguts_t *)context->getScanner(); + yyscan_t yyscanner = (yyscan_t)context->getScanner(); // A keyword in GLSL ES 3.00 with enabled extension or in GLSL ES 3.10 if (is_extension_enabled_or_is_core(context, 300, extension, 310)) @@ -4016,7 +3329,7 @@ int ES3_reserved_ES3_extension_ES3_1_keyword(TParseContext *context, TExtension return token; } - if(context->getShaderVersion() == 300) + if (context->getShaderVersion() == 300) { return reserved_word(yyscanner); } @@ -4025,10 +3338,12 @@ int ES3_reserved_ES3_extension_ES3_1_keyword(TParseContext *context, TExtension return check_type(yyscanner); } -static int ES3_1_reserved_ES3_1_extension_ES3_2_keyword(TParseContext *context, TExtension extension, int token) +static int ES3_1_reserved_ES3_1_extension_ES3_2_keyword(TParseContext *context, + TExtension extension, + int token) { - struct yyguts_t* yyg = (struct yyguts_t*) context->getScanner(); - yyscan_t yyscanner = (yyscan_t) context->getScanner(); + struct yyguts_t *yyg = (struct yyguts_t *)context->getScanner(); + yyscan_t yyscanner = (yyscan_t)context->getScanner(); // A keyword in GLSL ES 3.20 or GLSL ES 3.10 with enabled extension. if (is_extension_enabled_or_is_core(context, 310, extension, 320)) @@ -4048,7 +3363,7 @@ static int ES3_1_reserved_ES3_1_extension_ES3_2_keyword(TParseContext *context, int uint_constant(TParseContext *context) { - struct yyguts_t* yyg = (struct yyguts_t*) context->getScanner(); + struct yyguts_t *yyg = (struct yyguts_t *)context->getScanner(); if (context->getShaderVersion() < 300) { @@ -4062,9 +3377,9 @@ int uint_constant(TParseContext *context) return UINTCONSTANT; } -int floatsuffix_check(TParseContext* context) +int floatsuffix_check(TParseContext *context) { - struct yyguts_t* yyg = (struct yyguts_t*) context->getScanner(); + struct yyguts_t *yyg = (struct yyguts_t *)context->getScanner(); if (context->getShaderVersion() < 300) { @@ -4077,15 +3392,17 @@ int floatsuffix_check(TParseContext* context) if (!strtof_clamp(text, &(yylval->lex.f))) yyextra->warning(*yylloc, "Float overflow", yytext); - return(FLOATCONSTANT); + return (FLOATCONSTANT); } -void yyerror(YYLTYPE* lloc, TParseContext* context, void *scanner, const char* reason) { +void yyerror(YYLTYPE *lloc, TParseContext *context, void *scanner, const char *reason) +{ context->error(*lloc, reason, yyget_text(scanner)); } -int int_constant(TParseContext *context) { - struct yyguts_t* yyg = (struct yyguts_t*) context->getScanner(); +int int_constant(TParseContext *context) +{ + struct yyguts_t *yyg = (struct yyguts_t *)context->getScanner(); unsigned int u; if (!atoi_clamp(yytext, &u)) @@ -4099,8 +3416,9 @@ int int_constant(TParseContext *context) { return INTCONSTANT; } -int float_constant(yyscan_t yyscanner) { - struct yyguts_t* yyg = (struct yyguts_t*) yyscanner; +int float_constant(yyscan_t yyscanner) +{ + struct yyguts_t *yyg = (struct yyguts_t *)yyscanner; if (!strtof_clamp(yytext, &(yylval->lex.f))) yyextra->warning(*yylloc, "Float overflow", yytext); @@ -4109,11 +3427,13 @@ int float_constant(yyscan_t yyscanner) { int yuvcscstandardext_constant(TParseContext *context) { - struct yyguts_t* yyg = (struct yyguts_t*) context->getScanner(); - yyscan_t yyscanner = (yyscan_t) context->getScanner(); + struct yyguts_t *yyg = (struct yyguts_t *)context->getScanner(); + yyscan_t yyscanner = (yyscan_t)context->getScanner(); - // a reserved word in GLSL ES 3.00 with enabled extension, otherwise could be used as an identifier/type name - if (context->getShaderVersion() >= 300 && context->isExtensionEnabled(TExtension::EXT_YUV_target)) + // a reserved word in GLSL ES 3.00 with enabled extension, otherwise could be used as an + // identifier/type name + if (context->getShaderVersion() >= 300 && + context->isExtensionEnabled(TExtension::EXT_YUV_target)) { yylval->lex.string = AllocatePoolCharArray(yytext, yyleng); return YUVCSCSTANDARDEXTCONSTANT; @@ -4123,7 +3443,8 @@ int yuvcscstandardext_constant(TParseContext *context) return check_type(yyscanner); } -int glslang_initialize(TParseContext* context) { +int glslang_initialize(TParseContext *context) +{ yyscan_t scanner = NULL; if (yylex_init_extra(context, &scanner)) return 1; @@ -4132,18 +3453,23 @@ int glslang_initialize(TParseContext* context) { return 0; } -int glslang_finalize(TParseContext* context) { +int glslang_finalize(TParseContext *context) +{ yyscan_t scanner = context->getScanner(); - if (scanner == NULL) return 0; - + if (scanner == NULL) + return 0; + context->setScanner(NULL); yylex_destroy(scanner); return 0; } -int glslang_scan(size_t count, const char* const string[], const int length[], - TParseContext* context) { +int glslang_scan(size_t count, + const char *const string[], + const int length[], + TParseContext *context) +{ yyrestart(NULL, context->getScanner()); yyset_column(0, context->getScanner()); yyset_lineno(1, context->getScanner()); @@ -4155,9 +3481,10 @@ int glslang_scan(size_t count, const char* const string[], const int length[], return 1; // Define extension macros. - const TExtensionBehavior& extBehavior = context->extensionBehavior(); - for (TExtensionBehavior::const_iterator iter = extBehavior.begin(); - iter != extBehavior.end(); ++iter) { + const TExtensionBehavior &extBehavior = context->extensionBehavior(); + for (TExtensionBehavior::const_iterator iter = extBehavior.begin(); iter != extBehavior.end(); + ++iter) + { preprocessor->predefineMacro(GetExtensionNameString(iter->first), 1); } if (context->getFragmentPrecisionHigh()) @@ -4167,4 +3494,3 @@ int glslang_scan(size_t count, const char* const string[], const int length[], return 0; } - diff --git a/src/compiler/translator/glslang_tab_autogen.cpp b/src/compiler/translator/glslang_tab_autogen.cpp index 07a9e6250..5d74cbb5a 100644 --- a/src/compiler/translator/glslang_tab_autogen.cpp +++ b/src/compiler/translator/glslang_tab_autogen.cpp @@ -74,260 +74,256 @@ // glslang.y: // Parser for the OpenGL shading language. -// clang-format off - // Ignore errors in auto-generated code. #if defined(__GNUC__) -#pragma GCC diagnostic ignored "-Wunused-function" -#pragma GCC diagnostic ignored "-Wunused-variable" -#pragma GCC diagnostic ignored "-Wswitch-enum" +# pragma GCC diagnostic ignored "-Wunused-function" +# pragma GCC diagnostic ignored "-Wunused-variable" +# pragma GCC diagnostic ignored "-Wswitch-enum" #elif defined(_MSC_VER) -#pragma warning(disable: 4065) -#pragma warning(disable: 4189) -#pragma warning(disable: 4244) -#pragma warning(disable: 4505) -#pragma warning(disable: 4701) -#pragma warning(disable: 4702) +# pragma warning(disable : 4065) +# pragma warning(disable : 4189) +# pragma warning(disable : 4244) +# pragma warning(disable : 4505) +# pragma warning(disable : 4701) +# pragma warning(disable : 4702) #endif #if defined(__clang__) -#pragma clang diagnostic ignored "-Wunreachable-code" +# pragma clang diagnostic ignored "-Wunreachable-code" #endif +#include "GLSLANG/ShaderLang.h" #include "angle_gl.h" #include "compiler/translator/Declarator.h" -#include "compiler/translator/SymbolTable.h" #include "compiler/translator/ParseContext.h" -#include "GLSLANG/ShaderLang.h" +#include "compiler/translator/SymbolTable.h" #define YYENABLE_NLS 0 using namespace sh; - - -# ifndef YY_NULLPTR -# if defined __cplusplus -# if 201103L <= __cplusplus -# define YY_NULLPTR nullptr -# else -# define YY_NULLPTR 0 -# endif -# else -# define YY_NULLPTR ((void*)0) -# endif -# endif +#ifndef YY_NULLPTR +# if defined __cplusplus +# if 201103L <= __cplusplus +# define YY_NULLPTR nullptr +# else +# define YY_NULLPTR 0 +# endif +# else +# define YY_NULLPTR ((void *)0) +# endif +#endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE -# undef YYERROR_VERBOSE -# define YYERROR_VERBOSE 1 +# undef YYERROR_VERBOSE +# define YYERROR_VERBOSE 1 #else -# define YYERROR_VERBOSE 0 +# define YYERROR_VERBOSE 0 #endif /* In a future release of Bison, this section will be replaced by #include "glslang_tab_autogen.h". */ #ifndef YY_YY_GLSLANG_TAB_AUTOGEN_H_INCLUDED -# define YY_YY_GLSLANG_TAB_AUTOGEN_H_INCLUDED +# define YY_YY_GLSLANG_TAB_AUTOGEN_H_INCLUDED /* Debug traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif -#if YYDEBUG +# ifndef YYDEBUG +# define YYDEBUG 0 +# endif +# if YYDEBUG extern int yydebug; -#endif +# endif /* "%code requires" blocks. */ - -#define YYLTYPE TSourceLoc -#define YYLTYPE_IS_DECLARED 1 -#define YYLTYPE_IS_TRIVIAL 1 - - +# define YYLTYPE TSourceLoc +# define YYLTYPE_IS_DECLARED 1 +# define YYLTYPE_IS_TRIVIAL 1 /* Token type. */ -#ifndef YYTOKENTYPE -# define YYTOKENTYPE - enum yytokentype - { - INVARIANT = 258, - PRECISE = 259, - HIGH_PRECISION = 260, - MEDIUM_PRECISION = 261, - LOW_PRECISION = 262, - PRECISION = 263, - ATTRIBUTE = 264, - CONST_QUAL = 265, - BOOL_TYPE = 266, - FLOAT_TYPE = 267, - INT_TYPE = 268, - UINT_TYPE = 269, - BREAK = 270, - CONTINUE = 271, - DO = 272, - ELSE = 273, - FOR = 274, - IF = 275, - DISCARD = 276, - RETURN = 277, - SWITCH = 278, - CASE = 279, - DEFAULT = 280, - BVEC2 = 281, - BVEC3 = 282, - BVEC4 = 283, - IVEC2 = 284, - IVEC3 = 285, - IVEC4 = 286, - VEC2 = 287, - VEC3 = 288, - VEC4 = 289, - UVEC2 = 290, - UVEC3 = 291, - UVEC4 = 292, - MATRIX2 = 293, - MATRIX3 = 294, - MATRIX4 = 295, - IN_QUAL = 296, - OUT_QUAL = 297, - INOUT_QUAL = 298, - UNIFORM = 299, - BUFFER = 300, - VARYING = 301, - MATRIX2x3 = 302, - MATRIX3x2 = 303, - MATRIX2x4 = 304, - MATRIX4x2 = 305, - MATRIX3x4 = 306, - MATRIX4x3 = 307, - CENTROID = 308, - FLAT = 309, - SMOOTH = 310, - READONLY = 311, - WRITEONLY = 312, - COHERENT = 313, - RESTRICT = 314, - VOLATILE = 315, - SHARED = 316, - STRUCT = 317, - VOID_TYPE = 318, - WHILE = 319, - SAMPLER2D = 320, - SAMPLERCUBE = 321, - SAMPLER_EXTERNAL_OES = 322, - SAMPLER2DRECT = 323, - SAMPLER2DARRAY = 324, - ISAMPLER2D = 325, - ISAMPLER3D = 326, - ISAMPLERCUBE = 327, - ISAMPLER2DARRAY = 328, - USAMPLER2D = 329, - USAMPLER3D = 330, - USAMPLERCUBE = 331, - USAMPLER2DARRAY = 332, - SAMPLER2DMS = 333, - ISAMPLER2DMS = 334, - USAMPLER2DMS = 335, - SAMPLER2DMSARRAY = 336, - ISAMPLER2DMSARRAY = 337, - USAMPLER2DMSARRAY = 338, - SAMPLER3D = 339, - SAMPLER3DRECT = 340, - SAMPLER2DSHADOW = 341, - SAMPLERCUBESHADOW = 342, - SAMPLER2DARRAYSHADOW = 343, - SAMPLEREXTERNAL2DY2YEXT = 344, - IMAGE2D = 345, - IIMAGE2D = 346, - UIMAGE2D = 347, - IMAGE3D = 348, - IIMAGE3D = 349, - UIMAGE3D = 350, - IMAGE2DARRAY = 351, - IIMAGE2DARRAY = 352, - UIMAGE2DARRAY = 353, - IMAGECUBE = 354, - IIMAGECUBE = 355, - UIMAGECUBE = 356, - ATOMICUINT = 357, - LAYOUT = 358, - YUVCSCSTANDARDEXT = 359, +# ifndef YYTOKENTYPE +# define YYTOKENTYPE +enum yytokentype +{ + INVARIANT = 258, + PRECISE = 259, + HIGH_PRECISION = 260, + MEDIUM_PRECISION = 261, + LOW_PRECISION = 262, + PRECISION = 263, + ATTRIBUTE = 264, + CONST_QUAL = 265, + BOOL_TYPE = 266, + FLOAT_TYPE = 267, + INT_TYPE = 268, + UINT_TYPE = 269, + BREAK = 270, + CONTINUE = 271, + DO = 272, + ELSE = 273, + FOR = 274, + IF = 275, + DISCARD = 276, + RETURN = 277, + SWITCH = 278, + CASE = 279, + DEFAULT = 280, + BVEC2 = 281, + BVEC3 = 282, + BVEC4 = 283, + IVEC2 = 284, + IVEC3 = 285, + IVEC4 = 286, + VEC2 = 287, + VEC3 = 288, + VEC4 = 289, + UVEC2 = 290, + UVEC3 = 291, + UVEC4 = 292, + MATRIX2 = 293, + MATRIX3 = 294, + MATRIX4 = 295, + IN_QUAL = 296, + OUT_QUAL = 297, + INOUT_QUAL = 298, + UNIFORM = 299, + BUFFER = 300, + VARYING = 301, + MATRIX2x3 = 302, + MATRIX3x2 = 303, + MATRIX2x4 = 304, + MATRIX4x2 = 305, + MATRIX3x4 = 306, + MATRIX4x3 = 307, + CENTROID = 308, + FLAT = 309, + SMOOTH = 310, + READONLY = 311, + WRITEONLY = 312, + COHERENT = 313, + RESTRICT = 314, + VOLATILE = 315, + SHARED = 316, + STRUCT = 317, + VOID_TYPE = 318, + WHILE = 319, + SAMPLER2D = 320, + SAMPLERCUBE = 321, + SAMPLER_EXTERNAL_OES = 322, + SAMPLER2DRECT = 323, + SAMPLER2DARRAY = 324, + ISAMPLER2D = 325, + ISAMPLER3D = 326, + ISAMPLERCUBE = 327, + ISAMPLER2DARRAY = 328, + USAMPLER2D = 329, + USAMPLER3D = 330, + USAMPLERCUBE = 331, + USAMPLER2DARRAY = 332, + SAMPLER2DMS = 333, + ISAMPLER2DMS = 334, + USAMPLER2DMS = 335, + SAMPLER2DMSARRAY = 336, + ISAMPLER2DMSARRAY = 337, + USAMPLER2DMSARRAY = 338, + SAMPLER3D = 339, + SAMPLER3DRECT = 340, + SAMPLER2DSHADOW = 341, + SAMPLERCUBESHADOW = 342, + SAMPLER2DARRAYSHADOW = 343, + SAMPLEREXTERNAL2DY2YEXT = 344, + IMAGE2D = 345, + IIMAGE2D = 346, + UIMAGE2D = 347, + IMAGE3D = 348, + IIMAGE3D = 349, + UIMAGE3D = 350, + IMAGE2DARRAY = 351, + IIMAGE2DARRAY = 352, + UIMAGE2DARRAY = 353, + IMAGECUBE = 354, + IIMAGECUBE = 355, + UIMAGECUBE = 356, + ATOMICUINT = 357, + LAYOUT = 358, + YUVCSCSTANDARDEXT = 359, YUVCSCSTANDARDEXTCONSTANT = 360, - IDENTIFIER = 361, - TYPE_NAME = 362, - FLOATCONSTANT = 363, - INTCONSTANT = 364, - UINTCONSTANT = 365, - BOOLCONSTANT = 366, - FIELD_SELECTION = 367, - LEFT_OP = 368, - RIGHT_OP = 369, - INC_OP = 370, - DEC_OP = 371, - LE_OP = 372, - GE_OP = 373, - EQ_OP = 374, - NE_OP = 375, - AND_OP = 376, - OR_OP = 377, - XOR_OP = 378, - MUL_ASSIGN = 379, - DIV_ASSIGN = 380, - ADD_ASSIGN = 381, - MOD_ASSIGN = 382, - LEFT_ASSIGN = 383, - RIGHT_ASSIGN = 384, - AND_ASSIGN = 385, - XOR_ASSIGN = 386, - OR_ASSIGN = 387, - SUB_ASSIGN = 388, - LEFT_PAREN = 389, - RIGHT_PAREN = 390, - LEFT_BRACKET = 391, - RIGHT_BRACKET = 392, - LEFT_BRACE = 393, - RIGHT_BRACE = 394, - DOT = 395, - COMMA = 396, - COLON = 397, - EQUAL = 398, - SEMICOLON = 399, - BANG = 400, - DASH = 401, - TILDE = 402, - PLUS = 403, - STAR = 404, - SLASH = 405, - PERCENT = 406, - LEFT_ANGLE = 407, - RIGHT_ANGLE = 408, - VERTICAL_BAR = 409, - CARET = 410, - AMPERSAND = 411, - QUESTION = 412 - }; -#endif + IDENTIFIER = 361, + TYPE_NAME = 362, + FLOATCONSTANT = 363, + INTCONSTANT = 364, + UINTCONSTANT = 365, + BOOLCONSTANT = 366, + FIELD_SELECTION = 367, + LEFT_OP = 368, + RIGHT_OP = 369, + INC_OP = 370, + DEC_OP = 371, + LE_OP = 372, + GE_OP = 373, + EQ_OP = 374, + NE_OP = 375, + AND_OP = 376, + OR_OP = 377, + XOR_OP = 378, + MUL_ASSIGN = 379, + DIV_ASSIGN = 380, + ADD_ASSIGN = 381, + MOD_ASSIGN = 382, + LEFT_ASSIGN = 383, + RIGHT_ASSIGN = 384, + AND_ASSIGN = 385, + XOR_ASSIGN = 386, + OR_ASSIGN = 387, + SUB_ASSIGN = 388, + LEFT_PAREN = 389, + RIGHT_PAREN = 390, + LEFT_BRACKET = 391, + RIGHT_BRACKET = 392, + LEFT_BRACE = 393, + RIGHT_BRACE = 394, + DOT = 395, + COMMA = 396, + COLON = 397, + EQUAL = 398, + SEMICOLON = 399, + BANG = 400, + DASH = 401, + TILDE = 402, + PLUS = 403, + STAR = 404, + SLASH = 405, + PERCENT = 406, + LEFT_ANGLE = 407, + RIGHT_ANGLE = 408, + VERTICAL_BAR = 409, + CARET = 410, + AMPERSAND = 411, + QUESTION = 412 +}; +# endif /* Value type. */ -#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED +# if !defined YYSTYPE && !defined YYSTYPE_IS_DECLARED union YYSTYPE { - - struct { - union { + struct + { + union + { const char *string; // pool allocated. float f; int i; unsigned int u; bool b; }; - const TSymbol* symbol; + const TSymbol *symbol; } lex; - struct { + struct + { TOperator op; - union { + union + { TIntermNode *intermNode; TIntermNodePair nodePair; TIntermTyped *intermTypedNode; @@ -338,7 +334,8 @@ union YYSTYPE TIntermSwitch *intermSwitch; TIntermCase *intermCase; }; - union { + union + { TVector *arraySizes; TTypeSpecifierNonArray typeSpecifierNonArray; TPublicType type; @@ -355,91 +352,102 @@ union YYSTYPE TTypeQualifierBuilder *typeQualifierBuilder; }; } interm; - - }; typedef union YYSTYPE YYSTYPE; -# define YYSTYPE_IS_TRIVIAL 1 -# define YYSTYPE_IS_DECLARED 1 -#endif +# define YYSTYPE_IS_TRIVIAL 1 +# define YYSTYPE_IS_DECLARED 1 +# endif /* Location type. */ -#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED +# if !defined YYLTYPE && !defined YYLTYPE_IS_DECLARED typedef struct YYLTYPE YYLTYPE; struct YYLTYPE { - int first_line; - int first_column; - int last_line; - int last_column; + int first_line; + int first_column; + int last_line; + int last_column; }; -# define YYLTYPE_IS_DECLARED 1 -# define YYLTYPE_IS_TRIVIAL 1 -#endif +# define YYLTYPE_IS_DECLARED 1 +# define YYLTYPE_IS_TRIVIAL 1 +# endif - - -int yyparse (TParseContext* context, void *scanner); +int yyparse(TParseContext *context, void *scanner); #endif /* !YY_YY_GLSLANG_TAB_AUTOGEN_H_INCLUDED */ /* Second part of user prologue. */ +extern int yylex(YYSTYPE *yylval, YYLTYPE *yylloc, void *yyscanner); +extern void yyerror(YYLTYPE *yylloc, TParseContext *context, void *scanner, const char *reason); -extern int yylex(YYSTYPE* yylval, YYLTYPE* yylloc, void* yyscanner); -extern void yyerror(YYLTYPE* yylloc, TParseContext* context, void *scanner, const char* reason); +#define YYLLOC_DEFAULT(Current, Rhs, N) \ + do \ + { \ + if (N) \ + { \ + (Current).first_file = YYRHSLOC(Rhs, 1).first_file; \ + (Current).first_line = YYRHSLOC(Rhs, 1).first_line; \ + (Current).last_file = YYRHSLOC(Rhs, N).last_file; \ + (Current).last_line = YYRHSLOC(Rhs, N).last_line; \ + } \ + else \ + { \ + (Current).first_file = YYRHSLOC(Rhs, 0).last_file; \ + (Current).first_line = YYRHSLOC(Rhs, 0).last_line; \ + (Current).last_file = YYRHSLOC(Rhs, 0).last_file; \ + (Current).last_line = YYRHSLOC(Rhs, 0).last_line; \ + } \ + } while (0) -#define YYLLOC_DEFAULT(Current, Rhs, N) \ - do { \ - if (N) { \ - (Current).first_file = YYRHSLOC(Rhs, 1).first_file; \ - (Current).first_line = YYRHSLOC(Rhs, 1).first_line; \ - (Current).last_file = YYRHSLOC(Rhs, N).last_file; \ - (Current).last_line = YYRHSLOC(Rhs, N).last_line; \ - } \ - else { \ - (Current).first_file = YYRHSLOC(Rhs, 0).last_file; \ - (Current).first_line = YYRHSLOC(Rhs, 0).last_line; \ - (Current).last_file = YYRHSLOC(Rhs, 0).last_file; \ - (Current).last_line = YYRHSLOC(Rhs, 0).last_line; \ - } \ - } while (0) +#define VERTEX_ONLY(S, L) \ + do \ + { \ + if (context->getShaderType() != GL_VERTEX_SHADER) \ + { \ + context->error(L, " supported in vertex shaders only", S); \ + } \ + } while (0) -#define VERTEX_ONLY(S, L) do { \ - if (context->getShaderType() != GL_VERTEX_SHADER) { \ - context->error(L, " supported in vertex shaders only", S); \ - } \ -} while (0) +#define COMPUTE_ONLY(S, L) \ + do \ + { \ + if (context->getShaderType() != GL_COMPUTE_SHADER) \ + { \ + context->error(L, " supported in compute shaders only", S); \ + } \ + } while (0) -#define COMPUTE_ONLY(S, L) do { \ - if (context->getShaderType() != GL_COMPUTE_SHADER) { \ - context->error(L, " supported in compute shaders only", S); \ - } \ -} while (0) - -#define ES2_ONLY(S, L) do { \ - if (context->getShaderVersion() != 100) { \ - context->error(L, " supported in GLSL ES 1.00 only", S); \ - } \ -} while (0) - -#define ES3_OR_NEWER(TOKEN, LINE, REASON) do { \ - if (context->getShaderVersion() < 300) { \ - context->error(LINE, REASON " supported in GLSL ES 3.00 and above only", TOKEN); \ - } \ -} while (0) - -#define ES3_1_ONLY(TOKEN, LINE, REASON) do { \ - if (context->getShaderVersion() != 310) { \ - context->error(LINE, REASON " supported in GLSL ES 3.10 only", TOKEN); \ - } \ -} while (0) +#define ES2_ONLY(S, L) \ + do \ + { \ + if (context->getShaderVersion() != 100) \ + { \ + context->error(L, " supported in GLSL ES 1.00 only", S); \ + } \ + } while (0) +#define ES3_OR_NEWER(TOKEN, LINE, REASON) \ + do \ + { \ + if (context->getShaderVersion() < 300) \ + { \ + context->error(LINE, REASON " supported in GLSL ES 3.00 and above only", TOKEN); \ + } \ + } while (0) +#define ES3_1_ONLY(TOKEN, LINE, REASON) \ + do \ + { \ + if (context->getShaderVersion() != 310) \ + { \ + context->error(LINE, REASON " supported in GLSL ES 3.10 only", TOKEN); \ + } \ + } while (0) #ifdef short -# undef short +# undef short #endif #ifdef YYTYPE_UINT8 @@ -467,1445 +475,1176 @@ typedef short yytype_int16; #endif #ifndef YYSIZE_T -# ifdef __SIZE_TYPE__ -# define YYSIZE_T __SIZE_TYPE__ -# elif defined size_t -# define YYSIZE_T size_t -# elif ! defined YYSIZE_T -# include /* INFRINGES ON USER NAME SPACE */ -# define YYSIZE_T size_t -# else -# define YYSIZE_T unsigned -# endif +# ifdef __SIZE_TYPE__ +# define YYSIZE_T __SIZE_TYPE__ +# elif defined size_t +# define YYSIZE_T size_t +# elif !defined YYSIZE_T +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# else +# define YYSIZE_T unsigned +# endif #endif -#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) +#define YYSIZE_MAXIMUM ((YYSIZE_T)-1) #ifndef YY_ -# if defined YYENABLE_NLS && YYENABLE_NLS -# if ENABLE_NLS -# include /* INFRINGES ON USER NAME SPACE */ -# define YY_(Msgid) dgettext ("bison-runtime", Msgid) -# endif -# endif -# ifndef YY_ -# define YY_(Msgid) Msgid -# endif +# if defined YYENABLE_NLS && YYENABLE_NLS +# if ENABLE_NLS +# include /* INFRINGES ON USER NAME SPACE */ +# define YY_(Msgid) dgettext("bison-runtime", Msgid) +# endif +# endif +# ifndef YY_ +# define YY_(Msgid) Msgid +# endif #endif #ifndef YY_ATTRIBUTE -# if (defined __GNUC__ \ - && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ - || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C -# define YY_ATTRIBUTE(Spec) __attribute__(Spec) -# else -# define YY_ATTRIBUTE(Spec) /* empty */ -# endif +# if (defined __GNUC__ && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) || \ + defined __SUNPRO_C && 0x5110 <= __SUNPRO_C +# define YY_ATTRIBUTE(Spec) __attribute__(Spec) +# else +# define YY_ATTRIBUTE(Spec) /* empty */ +# endif #endif #ifndef YY_ATTRIBUTE_PURE -# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) +# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE((__pure__)) #endif #ifndef YY_ATTRIBUTE_UNUSED -# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) +# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE((__unused__)) #endif /* Suppress unused-variable warnings by "using" E. */ -#if ! defined lint || defined __GNUC__ -# define YYUSE(E) ((void) (E)) +#if !defined lint || defined __GNUC__ +# define YYUSE(E) ((void)(E)) #else -# define YYUSE(E) /* empty */ +# define YYUSE(E) /* empty */ #endif -#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ +#if defined __GNUC__ && !defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ - _Pragma ("GCC diagnostic push") \ - _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ - _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") -# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ - _Pragma ("GCC diagnostic pop") +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wuninitialized\"") \ + _Pragma("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") +# define YY_IGNORE_MAYBE_UNINITIALIZED_END _Pragma("GCC diagnostic pop") #else -# define YY_INITIAL_VALUE(Value) Value +# define YY_INITIAL_VALUE(Value) Value #endif #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN -# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN -# define YY_IGNORE_MAYBE_UNINITIALIZED_END +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN +# define YY_IGNORE_MAYBE_UNINITIALIZED_END #endif #ifndef YY_INITIAL_VALUE -# define YY_INITIAL_VALUE(Value) /* Nothing. */ +# define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif - -#if ! defined yyoverflow || YYERROR_VERBOSE +#if !defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ -# ifdef YYSTACK_USE_ALLOCA -# if YYSTACK_USE_ALLOCA -# ifdef __GNUC__ -# define YYSTACK_ALLOC __builtin_alloca -# elif defined __BUILTIN_VA_ARG_INCR -# include /* INFRINGES ON USER NAME SPACE */ -# elif defined _AIX -# define YYSTACK_ALLOC __alloca -# elif defined _MSC_VER -# include /* INFRINGES ON USER NAME SPACE */ -# define alloca _alloca -# else -# define YYSTACK_ALLOC alloca -# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS -# include /* INFRINGES ON USER NAME SPACE */ - /* Use EXIT_SUCCESS as a witness for stdlib.h. */ -# ifndef EXIT_SUCCESS -# define EXIT_SUCCESS 0 -# endif +# ifdef YYSTACK_USE_ALLOCA +# if YYSTACK_USE_ALLOCA +# ifdef __GNUC__ +# define YYSTACK_ALLOC __builtin_alloca +# elif defined __BUILTIN_VA_ARG_INCR +# include /* INFRINGES ON USER NAME SPACE */ +# elif defined _AIX +# define YYSTACK_ALLOC __alloca +# elif defined _MSC_VER +# include /* INFRINGES ON USER NAME SPACE */ +# define alloca _alloca +# else +# define YYSTACK_ALLOC alloca +# if !defined _ALLOCA_H && !defined EXIT_SUCCESS +# include /* INFRINGES ON USER NAME SPACE */ +/* Use EXIT_SUCCESS as a witness for stdlib.h. */ +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 +# endif +# endif +# endif +# endif # endif -# endif -# endif -# endif -# ifdef YYSTACK_ALLOC - /* Pacify GCC's 'empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) -# ifndef YYSTACK_ALLOC_MAXIMUM - /* The OS might guarantee only one guard page at the bottom of the stack, - and a page size can be as small as 4096 bytes. So we cannot safely - invoke alloca (N) if N exceeds 4096. Use a slightly smaller number - to allow for a few compiler-allocated temporary stack slots. */ -# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ -# endif -# else -# define YYSTACK_ALLOC YYMALLOC -# define YYSTACK_FREE YYFREE -# ifndef YYSTACK_ALLOC_MAXIMUM -# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM -# endif -# if (defined __cplusplus && ! defined EXIT_SUCCESS \ - && ! ((defined YYMALLOC || defined malloc) \ - && (defined YYFREE || defined free))) -# include /* INFRINGES ON USER NAME SPACE */ -# ifndef EXIT_SUCCESS -# define EXIT_SUCCESS 0 -# endif -# endif -# ifndef YYMALLOC -# define YYMALLOC malloc -# if ! defined malloc && ! defined EXIT_SUCCESS -void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# ifndef YYFREE -# define YYFREE free -# if ! defined free && ! defined EXIT_SUCCESS -void free (void *); /* INFRINGES ON USER NAME SPACE */ -# endif -# endif -# endif +# ifdef YYSTACK_ALLOC +/* Pacify GCC's 'empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) \ + do \ + { /* empty */ \ + ; \ + } while (0) +# ifndef YYSTACK_ALLOC_MAXIMUM +/* The OS might guarantee only one guard page at the bottom of the stack, + and a page size can be as small as 4096 bytes. So we cannot safely + invoke alloca (N) if N exceeds 4096. Use a slightly smaller number + to allow for a few compiler-allocated temporary stack slots. */ +# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ +# endif +# else +# define YYSTACK_ALLOC YYMALLOC +# define YYSTACK_FREE YYFREE +# ifndef YYSTACK_ALLOC_MAXIMUM +# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM +# endif +# if (defined __cplusplus && !defined EXIT_SUCCESS && \ + !((defined YYMALLOC || defined malloc) && (defined YYFREE || defined free))) +# include /* INFRINGES ON USER NAME SPACE */ +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 +# endif +# endif +# ifndef YYMALLOC +# define YYMALLOC malloc +# if !defined malloc && !defined EXIT_SUCCESS +void *malloc(YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# ifndef YYFREE +# define YYFREE free +# if !defined free && !defined EXIT_SUCCESS +void free(void *); /* INFRINGES ON USER NAME SPACE */ +# endif +# endif +# endif #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ - -#if (! defined yyoverflow \ - && (! defined __cplusplus \ - || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \ - && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) +#if (!defined yyoverflow && \ + (!defined __cplusplus || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL && \ + defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { - yytype_int16 yyss_alloc; - YYSTYPE yyvs_alloc; - YYLTYPE yyls_alloc; + yytype_int16 yyss_alloc; + YYSTYPE yyvs_alloc; + YYLTYPE yyls_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ -# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) +# define YYSTACK_GAP_MAXIMUM (sizeof(union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ -# define YYSTACK_BYTES(N) \ - ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ - + 2 * YYSTACK_GAP_MAXIMUM) +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof(yytype_int16) + sizeof(YYSTYPE) + sizeof(YYLTYPE)) + 2 * YYSTACK_GAP_MAXIMUM) -# define YYCOPY_NEEDED 1 +# define YYCOPY_NEEDED 1 /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ -# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ - do \ - { \ - YYSIZE_T yynewbytes; \ - YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ - Stack = &yyptr->Stack_alloc; \ - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / sizeof (*yyptr); \ - } \ - while (0) +# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ + do \ + { \ + YYSIZE_T yynewbytes; \ + YYCOPY(&yyptr->Stack_alloc, Stack, yysize); \ + Stack = &yyptr->Stack_alloc; \ + yynewbytes = yystacksize * sizeof(*Stack) + YYSTACK_GAP_MAXIMUM; \ + yyptr += yynewbytes / sizeof(*yyptr); \ + } while (0) #endif #if defined YYCOPY_NEEDED && YYCOPY_NEEDED /* Copy COUNT objects from SRC to DST. The source and destination do not overlap. */ -# ifndef YYCOPY -# if defined __GNUC__ && 1 < __GNUC__ -# define YYCOPY(Dst, Src, Count) \ - __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) -# else -# define YYCOPY(Dst, Src, Count) \ - do \ - { \ - YYSIZE_T yyi; \ - for (yyi = 0; yyi < (Count); yyi++) \ - (Dst)[yyi] = (Src)[yyi]; \ - } \ - while (0) -# endif -# endif +# ifndef YYCOPY +# if defined __GNUC__ && 1 < __GNUC__ +# define YYCOPY(Dst, Src, Count) __builtin_memcpy(Dst, Src, (Count) * sizeof(*(Src))) +# else +# define YYCOPY(Dst, Src, Count) \ + do \ + { \ + YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (Dst)[yyi] = (Src)[yyi]; \ + } while (0) +# endif +# endif #endif /* !YYCOPY_NEEDED */ /* YYFINAL -- State number of the termination state. */ -#define YYFINAL 140 +#define YYFINAL 140 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 2973 +#define YYLAST 2973 /* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 158 +#define YYNTOKENS 158 /* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 96 +#define YYNNTS 96 /* YYNRULES -- Number of rules. */ -#define YYNRULES 302 +#define YYNRULES 302 /* YYNSTATES -- Number of states. */ -#define YYNSTATES 428 +#define YYNSTATES 428 -#define YYUNDEFTOK 2 -#define YYMAXUTOK 412 +#define YYUNDEFTOK 2 +#define YYMAXUTOK 412 /* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM as returned by yylex, with out-of-bounds checking. */ -#define YYTRANSLATE(YYX) \ - ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) +#define YYTRANSLATE(YYX) ((unsigned)(YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM as returned by yylex. */ -static const yytype_uint8 yytranslate[] = -{ - 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, - 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, - 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, - 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, - 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, - 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, - 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, - 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, - 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, - 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, - 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, - 155, 156, 157 -}; +static const yytype_uint8 yytranslate[] = { + 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, + 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, + 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, + 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, + 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, + 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, + 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157}; #if YYDEBUG - /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ -static const yytype_uint16 yyrline[] = -{ - 0, 253, 253, 254, 257, 264, 267, 272, 277, 282, - 287, 296, 302, 305, 308, 311, 314, 317, 323, 330, - 336, 339, 347, 350, 356, 359, 365, 369, 376, 384, - 387, 390, 396, 399, 402, 405, 412, 413, 414, 415, - 423, 424, 427, 430, 437, 438, 441, 447, 448, 452, - 459, 460, 463, 466, 469, 475, 476, 479, 485, 486, - 493, 494, 501, 502, 509, 510, 516, 517, 523, 524, - 530, 531, 537, 538, 544, 545, 546, 547, 551, 552, - 553, 557, 561, 565, 569, 576, 579, 585, 592, 599, - 602, 605, 609, 613, 617, 621, 625, 632, 639, 642, - 649, 657, 674, 684, 687, 693, 697, 701, 705, 712, - 719, 722, 726, 730, 735, 742, 746, 750, 754, 759, - 766, 770, 776, 779, 785, 789, 796, 802, 808, 812, - 816, 819, 822, 826, 834, 839, 843, 846, 849, 852, - 855, 859, 862, 866, 869, 872, 875, 878, 881, 888, - 895, 898, 901, 907, 914, 917, 923, 926, 929, 932, - 938, 941, 948, 953, 960, 965, 976, 979, 982, 985, - 988, 991, 995, 999, 1003, 1007, 1011, 1015, 1019, 1023, - 1027, 1031, 1035, 1039, 1043, 1047, 1051, 1055, 1059, 1063, - 1067, 1071, 1075, 1082, 1085, 1088, 1091, 1094, 1097, 1100, - 1103, 1106, 1109, 1112, 1115, 1118, 1121, 1124, 1127, 1130, - 1133, 1136, 1139, 1142, 1145, 1155, 1162, 1169, 1172, 1175, - 1178, 1181, 1184, 1187, 1190, 1193, 1196, 1199, 1202, 1205, - 1208, 1211, 1219, 1219, 1222, 1222, 1228, 1231, 1237, 1240, - 1247, 1251, 1257, 1260, 1266, 1270, 1274, 1275, 1281, 1282, - 1283, 1284, 1285, 1286, 1287, 1291, 1295, 1295, 1295, 1302, - 1303, 1307, 1307, 1308, 1308, 1313, 1317, 1324, 1328, 1335, - 1336, 1340, 1346, 1350, 1359, 1359, 1366, 1369, 1375, 1379, - 1385, 1385, 1390, 1390, 1394, 1394, 1402, 1405, 1411, 1414, - 1420, 1424, 1431, 1434, 1437, 1440, 1443, 1451, 1457, 1463, - 1466, 1472, 1472 -}; +/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ +static const yytype_uint16 yyrline[] = { + 0, 251, 251, 252, 255, 262, 265, 270, 275, 280, 285, 294, 300, 303, 306, 309, + 312, 315, 321, 328, 334, 337, 345, 348, 354, 357, 363, 367, 374, 382, 385, 388, + 394, 397, 400, 403, 410, 411, 412, 413, 421, 422, 425, 428, 435, 436, 439, 445, + 446, 450, 457, 458, 461, 464, 467, 473, 474, 477, 483, 484, 491, 492, 499, 500, + 507, 508, 514, 515, 521, 522, 528, 529, 535, 536, 542, 543, 544, 545, 549, 550, + 551, 555, 559, 563, 567, 574, 577, 583, 590, 597, 600, 603, 607, 611, 615, 619, + 623, 630, 637, 640, 647, 655, 672, 682, 685, 691, 695, 699, 703, 710, 717, 720, + 724, 728, 733, 740, 744, 748, 752, 757, 764, 768, 774, 777, 783, 787, 794, 800, + 806, 810, 814, 817, 820, 824, 832, 837, 841, 844, 847, 850, 853, 857, 860, 864, + 867, 870, 873, 876, 879, 886, 893, 896, 899, 905, 912, 915, 921, 924, 927, 930, + 936, 939, 946, 951, 958, 963, 974, 977, 980, 983, 986, 989, 993, 997, 1001, 1005, + 1009, 1013, 1017, 1021, 1025, 1029, 1033, 1037, 1041, 1045, 1049, 1053, 1057, 1061, 1065, 1069, + 1073, 1080, 1083, 1086, 1089, 1092, 1095, 1098, 1101, 1104, 1107, 1110, 1113, 1116, 1119, 1122, + 1125, 1128, 1131, 1134, 1137, 1140, 1143, 1153, 1160, 1167, 1170, 1173, 1176, 1179, 1182, 1185, + 1188, 1191, 1194, 1197, 1200, 1203, 1206, 1209, 1217, 1217, 1220, 1220, 1226, 1229, 1235, 1238, + 1245, 1249, 1255, 1258, 1264, 1268, 1272, 1273, 1279, 1280, 1281, 1282, 1283, 1284, 1285, 1289, + 1293, 1293, 1293, 1300, 1301, 1305, 1305, 1306, 1306, 1311, 1315, 1322, 1326, 1333, 1334, 1338, + 1344, 1348, 1357, 1357, 1364, 1367, 1373, 1377, 1383, 1383, 1388, 1388, 1392, 1392, 1400, 1403, + 1409, 1412, 1418, 1422, 1429, 1432, 1435, 1438, 1441, 1449, 1455, 1461, 1464, 1470, 1470}; #endif #if YYDEBUG || YYERROR_VERBOSE || 0 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ -static const char *const yytname[] = -{ - "$end", "error", "$undefined", "INVARIANT", "PRECISE", "HIGH_PRECISION", - "MEDIUM_PRECISION", "LOW_PRECISION", "PRECISION", "ATTRIBUTE", - "CONST_QUAL", "BOOL_TYPE", "FLOAT_TYPE", "INT_TYPE", "UINT_TYPE", - "BREAK", "CONTINUE", "DO", "ELSE", "FOR", "IF", "DISCARD", "RETURN", - "SWITCH", "CASE", "DEFAULT", "BVEC2", "BVEC3", "BVEC4", "IVEC2", "IVEC3", - "IVEC4", "VEC2", "VEC3", "VEC4", "UVEC2", "UVEC3", "UVEC4", "MATRIX2", - "MATRIX3", "MATRIX4", "IN_QUAL", "OUT_QUAL", "INOUT_QUAL", "UNIFORM", - "BUFFER", "VARYING", "MATRIX2x3", "MATRIX3x2", "MATRIX2x4", "MATRIX4x2", - "MATRIX3x4", "MATRIX4x3", "CENTROID", "FLAT", "SMOOTH", "READONLY", - "WRITEONLY", "COHERENT", "RESTRICT", "VOLATILE", "SHARED", "STRUCT", - "VOID_TYPE", "WHILE", "SAMPLER2D", "SAMPLERCUBE", "SAMPLER_EXTERNAL_OES", - "SAMPLER2DRECT", "SAMPLER2DARRAY", "ISAMPLER2D", "ISAMPLER3D", - "ISAMPLERCUBE", "ISAMPLER2DARRAY", "USAMPLER2D", "USAMPLER3D", - "USAMPLERCUBE", "USAMPLER2DARRAY", "SAMPLER2DMS", "ISAMPLER2DMS", - "USAMPLER2DMS", "SAMPLER2DMSARRAY", "ISAMPLER2DMSARRAY", - "USAMPLER2DMSARRAY", "SAMPLER3D", "SAMPLER3DRECT", "SAMPLER2DSHADOW", - "SAMPLERCUBESHADOW", "SAMPLER2DARRAYSHADOW", "SAMPLEREXTERNAL2DY2YEXT", - "IMAGE2D", "IIMAGE2D", "UIMAGE2D", "IMAGE3D", "IIMAGE3D", "UIMAGE3D", - "IMAGE2DARRAY", "IIMAGE2DARRAY", "UIMAGE2DARRAY", "IMAGECUBE", - "IIMAGECUBE", "UIMAGECUBE", "ATOMICUINT", "LAYOUT", "YUVCSCSTANDARDEXT", - "YUVCSCSTANDARDEXTCONSTANT", "IDENTIFIER", "TYPE_NAME", "FLOATCONSTANT", - "INTCONSTANT", "UINTCONSTANT", "BOOLCONSTANT", "FIELD_SELECTION", - "LEFT_OP", "RIGHT_OP", "INC_OP", "DEC_OP", "LE_OP", "GE_OP", "EQ_OP", - "NE_OP", "AND_OP", "OR_OP", "XOR_OP", "MUL_ASSIGN", "DIV_ASSIGN", - "ADD_ASSIGN", "MOD_ASSIGN", "LEFT_ASSIGN", "RIGHT_ASSIGN", "AND_ASSIGN", - "XOR_ASSIGN", "OR_ASSIGN", "SUB_ASSIGN", "LEFT_PAREN", "RIGHT_PAREN", - "LEFT_BRACKET", "RIGHT_BRACKET", "LEFT_BRACE", "RIGHT_BRACE", "DOT", - "COMMA", "COLON", "EQUAL", "SEMICOLON", "BANG", "DASH", "TILDE", "PLUS", - "STAR", "SLASH", "PERCENT", "LEFT_ANGLE", "RIGHT_ANGLE", "VERTICAL_BAR", - "CARET", "AMPERSAND", "QUESTION", "$accept", "identifier", - "variable_identifier", "primary_expression", "postfix_expression", - "integer_expression", "function_call", "function_call_or_method", - "function_call_generic", "function_call_header_no_parameters", - "function_call_header_with_parameters", "function_call_header", - "function_identifier", "unary_expression", "unary_operator", - "multiplicative_expression", "additive_expression", "shift_expression", - "relational_expression", "equality_expression", "and_expression", - "exclusive_or_expression", "inclusive_or_expression", - "logical_and_expression", "logical_xor_expression", - "logical_or_expression", "conditional_expression", - "assignment_expression", "assignment_operator", "expression", - "constant_expression", "enter_struct", "declaration", - "function_prototype", "function_declarator", - "function_header_with_parameters", "function_header", - "parameter_declarator", "parameter_declaration", - "parameter_type_specifier", "init_declarator_list", "single_declaration", - "fully_specified_type", "interpolation_qualifier", "type_qualifier", - "invariant_qualifier", "precise_qualifier", "single_type_qualifier", - "storage_qualifier", "type_specifier", "precision_qualifier", - "layout_qualifier", "layout_qualifier_id_list", "layout_qualifier_id", - "type_specifier_no_prec", "array_specifier", "type_specifier_nonarray", - "struct_specifier", "$@1", "$@2", "struct_declaration_list", - "struct_declaration", "struct_declarator_list", "struct_declarator", - "initializer", "declaration_statement", "statement", "simple_statement", - "compound_statement_with_scope", "$@3", "$@4", "statement_no_new_scope", - "statement_with_scope", "$@5", "$@6", "compound_statement_no_new_scope", - "statement_list", "expression_statement", "selection_statement", - "selection_rest_statement", "switch_statement", "$@7", "case_label", - "condition", "iteration_statement", "$@8", "$@9", "$@10", - "for_init_statement", "conditionopt", "for_rest_statement", - "jump_statement", "translation_unit", "external_declaration", - "function_definition", "$@11", YY_NULLPTR -}; +static const char *const yytname[] = {"$end", + "error", + "$undefined", + "INVARIANT", + "PRECISE", + "HIGH_PRECISION", + "MEDIUM_PRECISION", + "LOW_PRECISION", + "PRECISION", + "ATTRIBUTE", + "CONST_QUAL", + "BOOL_TYPE", + "FLOAT_TYPE", + "INT_TYPE", + "UINT_TYPE", + "BREAK", + "CONTINUE", + "DO", + "ELSE", + "FOR", + "IF", + "DISCARD", + "RETURN", + "SWITCH", + "CASE", + "DEFAULT", + "BVEC2", + "BVEC3", + "BVEC4", + "IVEC2", + "IVEC3", + "IVEC4", + "VEC2", + "VEC3", + "VEC4", + "UVEC2", + "UVEC3", + "UVEC4", + "MATRIX2", + "MATRIX3", + "MATRIX4", + "IN_QUAL", + "OUT_QUAL", + "INOUT_QUAL", + "UNIFORM", + "BUFFER", + "VARYING", + "MATRIX2x3", + "MATRIX3x2", + "MATRIX2x4", + "MATRIX4x2", + "MATRIX3x4", + "MATRIX4x3", + "CENTROID", + "FLAT", + "SMOOTH", + "READONLY", + "WRITEONLY", + "COHERENT", + "RESTRICT", + "VOLATILE", + "SHARED", + "STRUCT", + "VOID_TYPE", + "WHILE", + "SAMPLER2D", + "SAMPLERCUBE", + "SAMPLER_EXTERNAL_OES", + "SAMPLER2DRECT", + "SAMPLER2DARRAY", + "ISAMPLER2D", + "ISAMPLER3D", + "ISAMPLERCUBE", + "ISAMPLER2DARRAY", + "USAMPLER2D", + "USAMPLER3D", + "USAMPLERCUBE", + "USAMPLER2DARRAY", + "SAMPLER2DMS", + "ISAMPLER2DMS", + "USAMPLER2DMS", + "SAMPLER2DMSARRAY", + "ISAMPLER2DMSARRAY", + "USAMPLER2DMSARRAY", + "SAMPLER3D", + "SAMPLER3DRECT", + "SAMPLER2DSHADOW", + "SAMPLERCUBESHADOW", + "SAMPLER2DARRAYSHADOW", + "SAMPLEREXTERNAL2DY2YEXT", + "IMAGE2D", + "IIMAGE2D", + "UIMAGE2D", + "IMAGE3D", + "IIMAGE3D", + "UIMAGE3D", + "IMAGE2DARRAY", + "IIMAGE2DARRAY", + "UIMAGE2DARRAY", + "IMAGECUBE", + "IIMAGECUBE", + "UIMAGECUBE", + "ATOMICUINT", + "LAYOUT", + "YUVCSCSTANDARDEXT", + "YUVCSCSTANDARDEXTCONSTANT", + "IDENTIFIER", + "TYPE_NAME", + "FLOATCONSTANT", + "INTCONSTANT", + "UINTCONSTANT", + "BOOLCONSTANT", + "FIELD_SELECTION", + "LEFT_OP", + "RIGHT_OP", + "INC_OP", + "DEC_OP", + "LE_OP", + "GE_OP", + "EQ_OP", + "NE_OP", + "AND_OP", + "OR_OP", + "XOR_OP", + "MUL_ASSIGN", + "DIV_ASSIGN", + "ADD_ASSIGN", + "MOD_ASSIGN", + "LEFT_ASSIGN", + "RIGHT_ASSIGN", + "AND_ASSIGN", + "XOR_ASSIGN", + "OR_ASSIGN", + "SUB_ASSIGN", + "LEFT_PAREN", + "RIGHT_PAREN", + "LEFT_BRACKET", + "RIGHT_BRACKET", + "LEFT_BRACE", + "RIGHT_BRACE", + "DOT", + "COMMA", + "COLON", + "EQUAL", + "SEMICOLON", + "BANG", + "DASH", + "TILDE", + "PLUS", + "STAR", + "SLASH", + "PERCENT", + "LEFT_ANGLE", + "RIGHT_ANGLE", + "VERTICAL_BAR", + "CARET", + "AMPERSAND", + "QUESTION", + "$accept", + "identifier", + "variable_identifier", + "primary_expression", + "postfix_expression", + "integer_expression", + "function_call", + "function_call_or_method", + "function_call_generic", + "function_call_header_no_parameters", + "function_call_header_with_parameters", + "function_call_header", + "function_identifier", + "unary_expression", + "unary_operator", + "multiplicative_expression", + "additive_expression", + "shift_expression", + "relational_expression", + "equality_expression", + "and_expression", + "exclusive_or_expression", + "inclusive_or_expression", + "logical_and_expression", + "logical_xor_expression", + "logical_or_expression", + "conditional_expression", + "assignment_expression", + "assignment_operator", + "expression", + "constant_expression", + "enter_struct", + "declaration", + "function_prototype", + "function_declarator", + "function_header_with_parameters", + "function_header", + "parameter_declarator", + "parameter_declaration", + "parameter_type_specifier", + "init_declarator_list", + "single_declaration", + "fully_specified_type", + "interpolation_qualifier", + "type_qualifier", + "invariant_qualifier", + "precise_qualifier", + "single_type_qualifier", + "storage_qualifier", + "type_specifier", + "precision_qualifier", + "layout_qualifier", + "layout_qualifier_id_list", + "layout_qualifier_id", + "type_specifier_no_prec", + "array_specifier", + "type_specifier_nonarray", + "struct_specifier", + "$@1", + "$@2", + "struct_declaration_list", + "struct_declaration", + "struct_declarator_list", + "struct_declarator", + "initializer", + "declaration_statement", + "statement", + "simple_statement", + "compound_statement_with_scope", + "$@3", + "$@4", + "statement_no_new_scope", + "statement_with_scope", + "$@5", + "$@6", + "compound_statement_no_new_scope", + "statement_list", + "expression_statement", + "selection_statement", + "selection_rest_statement", + "switch_statement", + "$@7", + "case_label", + "condition", + "iteration_statement", + "$@8", + "$@9", + "$@10", + "for_init_statement", + "conditionopt", + "for_rest_statement", + "jump_statement", + "translation_unit", + "external_declaration", + "function_definition", + "$@11", + YY_NULLPTR}; #endif -# ifdef YYPRINT +#ifdef YYPRINT /* YYTOKNUM[NUM] -- (External) token number corresponding to the (internal) symbol number NUM (which must be that of a token). */ -static const yytype_uint16 yytoknum[] = -{ - 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, - 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, - 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, - 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, - 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, - 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, - 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, - 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, - 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, - 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, - 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, - 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, - 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, - 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, - 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, - 405, 406, 407, 408, 409, 410, 411, 412 -}; -# endif +static const yytype_uint16 yytoknum[] = { + 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, + 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, + 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, + 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, + 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, + 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, + 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, + 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, + 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412}; +#endif #define YYPACT_NINF -368 -#define yypact_value_is_default(Yystate) \ - (!!((Yystate) == (-368))) +#define yypact_value_is_default(Yystate) (!!((Yystate) == (-368))) #define YYTABLE_NINF -262 -#define yytable_value_is_error(Yytable_value) \ - 0 +#define yytable_value_is_error(Yytable_value) 0 - /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing - STATE-NUM. */ -static const yytype_int16 yypact[] = -{ - 2567, -368, -368, -368, -368, -368, 140, -368, -368, -368, - -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, - -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, - -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, - -368, -368, -368, -368, -368, -368, -368, -368, -368, -68, - -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, - -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, - -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, - -368, -368, -368, -368, -368, -368, -368, -368, -106, -368, - -368, -368, -114, -69, -56, 2672, -36, -368, 18, -368, - 1394, -368, -368, -368, -368, -368, -368, -368, -368, -49, - -368, 2462, -368, -368, 2866, -368, -368, -368, -23, -41, - -368, 3, -368, 2672, -368, -368, -368, 2672, 49, 49, - -368, -87, -102, -89, -368, 2672, -368, -368, 1492, 2, - -368, -368, -51, 2672, -368, -368, -39, -57, -368, 412, - -368, -368, -368, -368, -49, -76, -368, 1870, -64, -368, - -368, 2672, 49, 2120, -368, -368, 19, -368, -368, -368, - -368, -368, 1870, 1870, 1870, -368, -368, -368, -368, -368, - -368, -368, -94, -368, -368, -368, 27, -47, 1994, 34, - -368, 1870, 1, -71, 44, -91, 40, 21, 24, 28, - 63, 75, -99, -368, 62, -368, 1619, -368, 2234, 2672, - 55, -368, -41, 56, 57, -368, 68, 70, 66, 1746, - 72, 1870, 69, 78, 74, -368, -368, 64, -368, -368, - -32, -368, -114, 80, -368, -368, -368, -368, 558, -368, - -368, -368, -368, -368, -368, 2, 1870, -60, -368, -368, - 1870, 49, -49, -31, -368, -88, -368, -368, -368, -45, - -368, -368, 1870, 2769, -368, -368, 1870, 81, -368, -368, - -368, 1870, 1870, 1870, 1870, 1870, 1870, 1870, 1870, 1870, - 1870, 1870, 1870, 1870, 1870, 1870, 1870, 1870, 1870, 1870, - 1870, -368, -368, 102, -368, 2348, -368, -368, -368, -368, - -368, 77, -368, 1870, -368, -368, -8, 1870, 76, -368, - -368, -368, 704, -368, -368, -368, -368, -368, -368, -368, - -368, -368, -368, -368, 1870, 1870, -368, -368, -368, -368, - 1870, -368, -4, 2, 49, -368, -104, -368, -368, 103, - 101, -368, 83, -368, -368, -368, -368, -368, 1, 1, - -71, -71, 44, 44, 44, 44, -91, -91, 40, 21, - 24, 28, 63, 75, 25, -368, -368, 179, 3, 996, - 1142, -43, -368, -38, -368, 1268, 704, -368, -368, -368, - -368, -368, 1870, -368, -368, 1870, 110, -368, -368, -368, - -368, 1268, 77, -368, 101, 49, 2672, 111, 106, 112, - -368, 1870, -368, 104, 117, 229, -368, 115, 113, 850, - -368, 114, -34, 1870, 850, 77, -368, 1870, -368, -368, - -368, -368, 116, 101, -368, -368, -368, -368 -}; +/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing + STATE-NUM. */ +static const yytype_int16 yypact[] = { + 2567, -368, -368, -368, -368, -368, 140, -368, -368, -368, -368, -368, -368, -368, -368, -368, + -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, + -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, + -368, -68, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, + -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, -368, + -368, -368, -368, -368, -368, -368, -368, -368, -106, -368, -368, -368, -114, -69, -56, 2672, + -36, -368, 18, -368, 1394, -368, -368, -368, -368, -368, -368, -368, -368, -49, -368, 2462, + -368, -368, 2866, -368, -368, -368, -23, -41, -368, 3, -368, 2672, -368, -368, -368, 2672, + 49, 49, -368, -87, -102, -89, -368, 2672, -368, -368, 1492, 2, -368, -368, -51, 2672, + -368, -368, -39, -57, -368, 412, -368, -368, -368, -368, -49, -76, -368, 1870, -64, -368, + -368, 2672, 49, 2120, -368, -368, 19, -368, -368, -368, -368, -368, 1870, 1870, 1870, -368, + -368, -368, -368, -368, -368, -368, -94, -368, -368, -368, 27, -47, 1994, 34, -368, 1870, + 1, -71, 44, -91, 40, 21, 24, 28, 63, 75, -99, -368, 62, -368, 1619, -368, + 2234, 2672, 55, -368, -41, 56, 57, -368, 68, 70, 66, 1746, 72, 1870, 69, 78, + 74, -368, -368, 64, -368, -368, -32, -368, -114, 80, -368, -368, -368, -368, 558, -368, + -368, -368, -368, -368, -368, 2, 1870, -60, -368, -368, 1870, 49, -49, -31, -368, -88, + -368, -368, -368, -45, -368, -368, 1870, 2769, -368, -368, 1870, 81, -368, -368, -368, 1870, + 1870, 1870, 1870, 1870, 1870, 1870, 1870, 1870, 1870, 1870, 1870, 1870, 1870, 1870, 1870, 1870, + 1870, 1870, 1870, -368, -368, 102, -368, 2348, -368, -368, -368, -368, -368, 77, -368, 1870, + -368, -368, -8, 1870, 76, -368, -368, -368, 704, -368, -368, -368, -368, -368, -368, -368, + -368, -368, -368, -368, 1870, 1870, -368, -368, -368, -368, 1870, -368, -4, 2, 49, -368, + -104, -368, -368, 103, 101, -368, 83, -368, -368, -368, -368, -368, 1, 1, -71, -71, + 44, 44, 44, 44, -91, -91, 40, 21, 24, 28, 63, 75, 25, -368, -368, 179, + 3, 996, 1142, -43, -368, -38, -368, 1268, 704, -368, -368, -368, -368, -368, 1870, -368, + -368, 1870, 110, -368, -368, -368, -368, 1268, 77, -368, 101, 49, 2672, 111, 106, 112, + -368, 1870, -368, 104, 117, 229, -368, 115, 113, 850, -368, 114, -34, 1870, 850, 77, + -368, 1870, -368, -368, -368, -368, 116, 101, -368, -368, -368, -368}; - /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. - Performed when YYTABLE does not specify something else to do. Zero - means the default is an error. */ -static const yytype_uint16 yydefact[] = -{ - 0, 126, 127, 150, 151, 152, 0, 134, 136, 170, - 167, 168, 169, 174, 175, 176, 177, 178, 179, 171, - 172, 173, 180, 181, 182, 183, 184, 185, 137, 138, - 139, 141, 142, 135, 186, 187, 188, 189, 190, 191, - 140, 123, 122, 143, 144, 145, 146, 147, 148, 0, - 166, 193, 195, 214, 216, 196, 199, 200, 201, 202, - 205, 206, 207, 208, 197, 203, 209, 198, 204, 210, - 194, 211, 212, 213, 215, 217, 218, 219, 220, 221, - 222, 223, 224, 225, 226, 227, 228, 229, 0, 192, - 231, 300, 301, 0, 99, 98, 0, 110, 115, 131, - 0, 132, 133, 124, 128, 120, 130, 129, 149, 160, - 230, 0, 297, 299, 0, 2, 3, 234, 0, 0, - 89, 0, 97, 0, 106, 100, 108, 0, 109, 0, - 90, 2, 116, 0, 95, 0, 125, 121, 0, 161, - 1, 298, 0, 0, 232, 159, 156, 0, 154, 0, - 302, 101, 105, 107, 103, 111, 102, 0, 117, 88, - 96, 0, 0, 0, 236, 10, 4, 8, 6, 7, - 9, 31, 0, 0, 0, 162, 38, 37, 39, 36, - 5, 12, 32, 14, 19, 20, 0, 0, 25, 0, - 40, 0, 44, 47, 50, 55, 58, 60, 62, 64, - 66, 68, 70, 87, 0, 29, 0, 91, 0, 0, - 0, 153, 0, 0, 0, 282, 0, 0, 0, 0, - 0, 0, 0, 0, 256, 265, 269, 40, 72, 85, - 0, 245, 0, 149, 248, 267, 247, 246, 0, 249, - 250, 251, 252, 253, 254, 104, 0, 112, 244, 119, - 0, 0, 242, 0, 240, 0, 237, 33, 34, 0, - 16, 17, 0, 0, 23, 22, 0, 166, 26, 28, - 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 163, 164, 0, 235, 0, 157, 158, 155, 293, - 292, 263, 284, 0, 296, 294, 0, 0, 0, 277, - 280, 255, 0, 75, 76, 78, 77, 80, 81, 82, - 83, 84, 79, 74, 0, 0, 270, 266, 268, 114, - 0, 118, 0, 243, 0, 238, 0, 92, 11, 0, - 18, 30, 15, 21, 27, 41, 42, 43, 46, 45, - 48, 49, 53, 54, 51, 52, 56, 57, 59, 61, - 63, 65, 67, 69, 0, 165, 233, 0, 0, 0, - 0, 0, 295, 0, 276, 0, 257, 73, 86, 113, - 239, 241, 0, 93, 13, 0, 0, 262, 264, 287, - 286, 289, 263, 274, 278, 0, 0, 0, 0, 0, - 71, 0, 288, 0, 0, 273, 271, 0, 0, 0, - 258, 0, 0, 290, 0, 263, 275, 0, 260, 281, - 259, 94, 0, 291, 285, 272, 279, 283 -}; +/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. + Performed when YYTABLE does not specify something else to do. Zero + means the default is an error. */ +static const yytype_uint16 yydefact[] = { + 0, 126, 127, 150, 151, 152, 0, 134, 136, 170, 167, 168, 169, 174, 175, 176, 177, 178, 179, + 171, 172, 173, 180, 181, 182, 183, 184, 185, 137, 138, 139, 141, 142, 135, 186, 187, 188, 189, + 190, 191, 140, 123, 122, 143, 144, 145, 146, 147, 148, 0, 166, 193, 195, 214, 216, 196, 199, + 200, 201, 202, 205, 206, 207, 208, 197, 203, 209, 198, 204, 210, 194, 211, 212, 213, 215, 217, + 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 0, 192, 231, 300, 301, 0, 99, + 98, 0, 110, 115, 131, 0, 132, 133, 124, 128, 120, 130, 129, 149, 160, 230, 0, 297, 299, + 0, 2, 3, 234, 0, 0, 89, 0, 97, 0, 106, 100, 108, 0, 109, 0, 90, 2, 116, + 0, 95, 0, 125, 121, 0, 161, 1, 298, 0, 0, 232, 159, 156, 0, 154, 0, 302, 101, + 105, 107, 103, 111, 102, 0, 117, 88, 96, 0, 0, 0, 236, 10, 4, 8, 6, 7, 9, + 31, 0, 0, 0, 162, 38, 37, 39, 36, 5, 12, 32, 14, 19, 20, 0, 0, 25, 0, + 40, 0, 44, 47, 50, 55, 58, 60, 62, 64, 66, 68, 70, 87, 0, 29, 0, 91, 0, + 0, 0, 153, 0, 0, 0, 282, 0, 0, 0, 0, 0, 0, 0, 0, 256, 265, 269, 40, + 72, 85, 0, 245, 0, 149, 248, 267, 247, 246, 0, 249, 250, 251, 252, 253, 254, 104, 0, + 112, 244, 119, 0, 0, 242, 0, 240, 0, 237, 33, 34, 0, 16, 17, 0, 0, 23, 22, + 0, 166, 26, 28, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 163, 164, 0, 235, 0, 157, 158, 155, 293, 292, 263, 284, 0, + 296, 294, 0, 0, 0, 277, 280, 255, 0, 75, 76, 78, 77, 80, 81, 82, 83, 84, 79, + 74, 0, 0, 270, 266, 268, 114, 0, 118, 0, 243, 0, 238, 0, 92, 11, 0, 18, 30, + 15, 21, 27, 41, 42, 43, 46, 45, 48, 49, 53, 54, 51, 52, 56, 57, 59, 61, 63, + 65, 67, 69, 0, 165, 233, 0, 0, 0, 0, 0, 295, 0, 276, 0, 257, 73, 86, 113, + 239, 241, 0, 93, 13, 0, 0, 262, 264, 287, 286, 289, 263, 274, 278, 0, 0, 0, 0, + 0, 71, 0, 288, 0, 0, 273, 271, 0, 0, 0, 258, 0, 0, 290, 0, 263, 275, 0, + 260, 281, 259, 94, 0, 291, 285, 272, 279, 283}; - /* YYPGOTO[NTERM-NUM]. */ -static const yytype_int16 yypgoto[] = -{ - -368, -48, -368, -368, -368, -368, -368, -368, -9, -368, - -368, -368, -368, -52, -368, -103, -101, -149, -109, -27, - -26, -25, -24, -22, -21, -368, -132, -144, -368, -120, - -197, -368, 15, 17, -368, -368, -368, 135, 141, 138, - -368, -368, -323, -368, -90, -368, -368, -98, -368, -92, - 261, -368, -368, 58, 0, -118, -368, -368, -368, -368, - -127, -151, 23, -65, -239, -95, -228, -350, -135, -368, - -368, -138, -367, -368, -368, -117, -35, -86, -368, -368, - -368, -368, -368, -113, -368, -368, -368, -368, -368, -368, - -368, -368, -368, 168, -368, -368 -}; +/* YYPGOTO[NTERM-NUM]. */ +static const yytype_int16 yypgoto[] = { + -368, -48, -368, -368, -368, -368, -368, -368, -9, -368, -368, -368, -368, -52, -368, -103, + -101, -149, -109, -27, -26, -25, -24, -22, -21, -368, -132, -144, -368, -120, -197, -368, + 15, 17, -368, -368, -368, 135, 141, 138, -368, -368, -323, -368, -90, -368, -368, -98, + -368, -92, 261, -368, -368, 58, 0, -118, -368, -368, -368, -368, -127, -151, 23, -65, + -239, -95, -228, -350, -135, -368, -368, -138, -367, -368, -368, -117, -35, -86, -368, -368, + -368, -368, -368, -113, -368, -368, -368, -368, -368, -368, -368, -368, -368, 168, -368, -368}; - /* YYDEFGOTO[NTERM-NUM]. */ -static const yytype_int16 yydefgoto[] = -{ - -1, 252, 180, 181, 182, 339, 183, 184, 185, 186, - 187, 188, 189, 227, 191, 192, 193, 194, 195, 196, - 197, 198, 199, 200, 201, 202, 228, 229, 324, 230, - 204, 135, 231, 232, 93, 94, 95, 124, 125, 126, - 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, - 106, 107, 147, 148, 205, 139, 109, 110, 209, 143, - 163, 164, 253, 254, 249, 234, 235, 236, 237, 312, - 398, 419, 367, 368, 369, 420, 238, 239, 240, 406, - 241, 407, 242, 397, 243, 375, 301, 370, 391, 403, - 404, 244, 111, 112, 113, 121 -}; +/* YYDEFGOTO[NTERM-NUM]. */ +static const yytype_int16 yydefgoto[] = { + -1, 252, 180, 181, 182, 339, 183, 184, 185, 186, 187, 188, 189, 227, 191, 192, + 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 228, 229, 324, 230, 204, 135, + 231, 232, 93, 94, 95, 124, 125, 126, 96, 97, 98, 99, 100, 101, 102, 103, + 104, 105, 106, 107, 147, 148, 205, 139, 109, 110, 209, 143, 163, 164, 253, 254, + 249, 234, 235, 236, 237, 312, 398, 419, 367, 368, 369, 420, 238, 239, 240, 406, + 241, 407, 242, 397, 243, 375, 301, 370, 391, 403, 404, 244, 111, 112, 113, 121}; - /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If - positive, shift that token. If negative, reduce the rule whose - number is the opposite. If YYTABLE_NINF, syntax error. */ -static const yytype_int16 yytable[] = -{ - 108, 118, 136, 128, 150, 127, 203, 329, 137, 293, - 328, 331, 256, 248, 158, 91, 208, 92, 336, 388, - 145, 260, 261, 289, 308, 405, 278, 279, 119, 136, - 120, 128, 382, 127, 138, 128, 245, 247, 115, 116, - 383, 157, 262, 162, 268, 161, 263, 156, 425, 159, - 132, 162, 395, 161, 259, 160, 337, 256, 290, 418, - 138, 280, 281, 136, 418, 146, 122, 246, 395, 251, - 117, 162, 206, 161, 203, 274, 206, 275, 211, 250, - 154, 155, 295, 330, 212, 123, 190, 138, 265, 203, - 338, 379, 392, 207, 266, 108, 325, 393, 325, 306, - 108, 422, 248, 325, 210, 129, 248, 325, 130, 325, - 334, 108, 326, 335, 142, 144, 162, 162, 161, 161, - 257, 258, 344, 108, 131, 116, 91, 108, 92, 352, - 353, 354, 355, 325, 333, 108, 372, 334, 206, 270, - 380, 149, 340, 108, 256, 3, 4, 5, 328, 233, - 271, 272, 273, -30, 190, 115, 116, 276, 277, 282, - 283, 108, 264, 108, 296, 297, 325, 385, 269, 190, - 364, 348, 349, 356, 357, 350, 351, 284, 426, 285, - 377, 378, 286, 371, 287, 399, 248, 373, 313, 314, - 315, 316, 317, 318, 319, 320, 321, 322, 288, 291, - 299, 300, 302, 162, 303, 161, 307, 323, 108, 108, - 304, 309, 310, 311, -29, -261, -24, -31, 374, 345, - 346, 347, 190, 190, 190, 190, 190, 190, 190, 190, - 190, 190, 190, 190, 190, 190, 190, 190, 233, 365, - 384, 400, 325, 386, 401, 410, 409, 415, 413, 411, - 203, 387, 414, 224, 343, 394, 417, 358, 421, 359, - 427, 360, 152, 361, 151, 153, 362, 114, 363, 381, - 298, 394, 416, 248, 332, 389, 424, 376, 402, 141, - 0, 412, 0, 0, 390, 396, 0, 0, 0, 0, - 0, 0, 0, 423, 0, 108, 0, 0, 136, 0, - 0, 396, 0, 0, 137, 0, 0, 0, 0, 0, - 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 408, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 233, - 233, 0, 0, 0, 0, 233, 233, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 233, 0, 0, 0, 0, 108, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 233, - 0, 0, 0, 0, 233, 1, 2, 3, 4, 5, - 6, 7, 8, 9, 10, 11, 12, 213, 214, 215, - 0, 216, 217, 218, 219, 220, 221, 222, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 46, 47, 48, 49, 50, 223, 51, 52, 53, - 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, - 64, 65, 66, 67, 68, 69, 70, 0, 71, 72, - 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, - 83, 84, 85, 86, 87, 88, 89, 165, 166, 90, - 167, 168, 169, 170, 171, 0, 0, 172, 173, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 174, 0, 0, 0, - 224, 225, 0, 0, 0, 0, 226, 176, 177, 178, - 179, 1, 2, 3, 4, 5, 6, 7, 8, 9, - 10, 11, 12, 213, 214, 215, 0, 216, 217, 218, - 219, 220, 221, 222, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, - 49, 50, 223, 51, 52, 53, 54, 55, 56, 57, - 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, - 68, 69, 70, 0, 71, 72, 73, 74, 75, 76, - 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, - 87, 88, 89, 165, 166, 90, 167, 168, 169, 170, - 171, 0, 0, 172, 173, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 174, 0, 0, 0, 224, 327, 0, 0, - 0, 0, 226, 176, 177, 178, 179, 1, 2, 3, - 4, 5, 6, 7, 8, 9, 10, 11, 12, 213, - 214, 215, 0, 216, 217, 218, 219, 220, 221, 222, - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, - 43, 44, 45, 46, 47, 48, 49, 50, 223, 51, - 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, - 62, 63, 64, 65, 66, 67, 68, 69, 70, 0, - 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, - 81, 82, 83, 84, 85, 86, 87, 88, 89, 165, - 166, 90, 167, 168, 169, 170, 171, 0, 0, 172, - 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 174, 0, - 0, 0, 224, 0, 0, 0, 0, 0, 226, 176, - 177, 178, 179, 1, 2, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 213, 214, 215, 0, 216, - 217, 218, 219, 220, 221, 222, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, - 47, 48, 49, 50, 223, 51, 52, 53, 54, 55, - 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, - 66, 67, 68, 69, 70, 0, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, - 85, 86, 87, 88, 89, 165, 166, 90, 167, 168, - 169, 170, 171, 0, 0, 172, 173, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 174, 0, 0, 0, 149, 0, - 0, 0, 0, 0, 226, 176, 177, 178, 179, 1, - 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, - 12, 213, 214, 215, 0, 216, 217, 218, 219, 220, - 221, 222, 13, 14, 15, 16, 17, 18, 19, 20, - 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, - 223, 51, 52, 53, 54, 55, 56, 57, 58, 59, - 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, - 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, - 89, 165, 166, 90, 167, 168, 169, 170, 171, 0, - 0, 172, 173, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 226, 176, 177, 178, 179, 1, 2, 3, 4, 5, - 6, 7, 8, 9, 10, 11, 12, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 46, 47, 48, 49, 50, 0, 51, 52, 53, - 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, - 64, 65, 66, 67, 68, 69, 70, 0, 71, 72, - 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, - 83, 84, 85, 86, 87, 88, 89, 165, 166, 90, - 167, 168, 169, 170, 171, 0, 0, 172, 173, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 1, 2, 3, 4, 5, 174, 7, 8, 9, - 10, 11, 12, 0, 0, 0, 226, 176, 177, 178, - 179, 0, 0, 0, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, - 49, 50, 0, 51, 52, 53, 54, 55, 56, 57, - 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, - 68, 69, 70, 0, 71, 72, 73, 74, 75, 76, - 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, - 87, 88, 89, 165, 166, 90, 167, 168, 169, 170, - 171, 0, 0, 172, 173, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, - 4, 5, 174, 7, 8, 9, 10, 11, 12, 0, - 0, 0, 0, 176, 177, 178, 179, 0, 0, 0, - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, - 43, 44, 45, 46, 47, 48, 49, 50, 0, 51, - 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, - 62, 63, 64, 65, 66, 67, 68, 69, 70, 0, - 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, - 81, 82, 83, 84, 85, 86, 87, 88, 89, 0, - 133, 90, 0, 9, 10, 11, 12, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 0, 0, 0, 0, 0, 134, 34, - 35, 36, 37, 38, 39, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 49, 50, 0, 51, 52, 53, - 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, - 64, 65, 66, 67, 68, 69, 70, 0, 71, 72, - 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, - 83, 84, 85, 86, 87, 0, 89, 165, 166, 90, - 167, 168, 169, 170, 171, 0, 0, 172, 173, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 174, 0, 0, 175, - 9, 10, 11, 12, 0, 0, 0, 176, 177, 178, - 179, 0, 0, 0, 0, 13, 14, 15, 16, 17, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 0, 0, 0, 0, 0, 0, 34, 35, 36, 37, - 38, 39, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 49, 50, 0, 51, 52, 53, 54, 55, 56, - 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, - 67, 68, 69, 70, 0, 71, 72, 73, 74, 75, - 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, - 86, 87, 0, 89, 165, 166, 90, 167, 168, 169, - 170, 171, 0, 0, 172, 173, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 174, 0, 0, 292, 9, 10, 11, - 12, 0, 0, 0, 176, 177, 178, 179, 0, 0, - 0, 0, 13, 14, 15, 16, 17, 18, 19, 20, - 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, - 0, 0, 0, 34, 35, 36, 37, 38, 39, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 49, 50, - 0, 51, 52, 53, 54, 55, 56, 57, 58, 59, - 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, - 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, 86, 87, 0, - 89, 165, 166, 90, 167, 168, 169, 170, 171, 0, - 0, 172, 173, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 174, 9, 10, 11, 12, 0, 0, 0, 0, 0, - 305, 176, 177, 178, 179, 0, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, - 27, 0, 0, 0, 0, 0, 0, 34, 35, 36, - 37, 38, 39, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 49, 50, 0, 51, 52, 53, 54, 55, - 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, - 66, 67, 68, 69, 70, 0, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, - 85, 86, 87, 0, 89, 165, 166, 90, 167, 168, - 169, 170, 171, 0, 0, 172, 173, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 174, 9, 10, 11, 12, 0, - 0, 0, 0, 0, 0, 176, 177, 178, 179, 0, - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 0, 0, 0, 0, 0, - 0, 34, 35, 36, 37, 38, 39, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 49, 267, 0, 51, - 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, - 62, 63, 64, 65, 66, 67, 68, 69, 70, 0, - 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, - 81, 82, 83, 84, 85, 86, 87, 0, 89, 165, - 166, 90, 167, 168, 169, 170, 171, 0, 0, 172, - 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 1, 2, 3, 4, 5, 174, 7, - 8, 9, 10, 11, 12, 0, 0, 0, 0, 176, - 177, 178, 179, 0, 0, 0, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, - 47, 48, 49, 50, 0, 51, 52, 53, 54, 55, - 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, - 66, 67, 68, 69, 70, 0, 71, 72, 73, 74, - 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, - 85, 86, 87, 88, 89, 0, 0, 90, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, - 4, 5, 0, 7, 8, 9, 10, 11, 12, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, - 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, - 43, 44, 45, 46, 47, 48, 49, 50, 0, 51, - 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, - 62, 63, 64, 65, 66, 67, 68, 69, 70, 0, - 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, - 81, 82, 83, 84, 85, 86, 87, 88, 89, 0, - 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 1, 2, 3, 4, 5, 0, 7, 8, 9, - 10, 11, 12, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 294, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, - 49, 50, 0, 51, 52, 53, 54, 55, 56, 57, - 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, - 68, 69, 70, 0, 71, 72, 73, 74, 75, 76, - 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, - 87, 88, 89, 0, 0, 90, 0, 0, 0, 0, - 0, 0, 140, 0, 0, 1, 2, 3, 4, 5, - 6, 7, 8, 9, 10, 11, 12, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 366, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 46, 47, 48, 49, 50, 0, 51, 52, 53, - 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, - 64, 65, 66, 67, 68, 69, 70, 0, 71, 72, - 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, - 83, 84, 85, 86, 87, 88, 89, 0, 0, 90, - 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, - 11, 12, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 13, 14, 15, 16, 17, 18, 19, - 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, - 50, 0, 51, 52, 53, 54, 55, 56, 57, 58, - 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, - 69, 70, 0, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, - 88, 89, 0, 0, 90, 1, 2, 3, 4, 5, - 0, 7, 8, 9, 10, 11, 12, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, - 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 46, 47, 48, 49, 50, 0, 51, 52, 53, - 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, - 64, 65, 66, 67, 68, 69, 70, 0, 71, 72, - 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, - 83, 84, 85, 86, 87, 88, 89, 0, 0, 90, - 9, 10, 11, 12, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 13, 14, 15, 16, 17, - 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 0, 0, 0, 0, 0, 0, 34, 35, 36, 37, - 38, 39, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 49, 50, 0, 51, 52, 53, 54, 55, 56, - 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, - 67, 68, 69, 70, 0, 71, 72, 73, 74, 75, - 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, - 86, 87, 0, 89, 0, 341, 90, 9, 10, 11, - 12, 342, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 13, 14, 15, 16, 17, 18, 19, 20, - 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, - 0, 0, 0, 34, 35, 36, 37, 38, 39, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 49, 50, - 0, 51, 52, 53, 54, 55, 56, 57, 58, 59, - 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, - 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, - 79, 80, 81, 82, 83, 84, 85, 86, 87, 0, - 89, 0, 0, 90 -}; +/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If + positive, shift that token. If negative, reduce the rule whose + number is the opposite. If YYTABLE_NINF, syntax error. */ +static const yytype_int16 yytable[] = { + 108, 118, 136, 128, 150, 127, 203, 329, 137, 293, 328, 331, 256, 248, 158, 91, 208, 92, 336, + 388, 145, 260, 261, 289, 308, 405, 278, 279, 119, 136, 120, 128, 382, 127, 138, 128, 245, 247, + 115, 116, 383, 157, 262, 162, 268, 161, 263, 156, 425, 159, 132, 162, 395, 161, 259, 160, 337, + 256, 290, 418, 138, 280, 281, 136, 418, 146, 122, 246, 395, 251, 117, 162, 206, 161, 203, 274, + 206, 275, 211, 250, 154, 155, 295, 330, 212, 123, 190, 138, 265, 203, 338, 379, 392, 207, 266, + 108, 325, 393, 325, 306, 108, 422, 248, 325, 210, 129, 248, 325, 130, 325, 334, 108, 326, 335, + 142, 144, 162, 162, 161, 161, 257, 258, 344, 108, 131, 116, 91, 108, 92, 352, 353, 354, 355, + 325, 333, 108, 372, 334, 206, 270, 380, 149, 340, 108, 256, 3, 4, 5, 328, 233, 271, 272, + 273, -30, 190, 115, 116, 276, 277, 282, 283, 108, 264, 108, 296, 297, 325, 385, 269, 190, 364, + 348, 349, 356, 357, 350, 351, 284, 426, 285, 377, 378, 286, 371, 287, 399, 248, 373, 313, 314, + 315, 316, 317, 318, 319, 320, 321, 322, 288, 291, 299, 300, 302, 162, 303, 161, 307, 323, 108, + 108, 304, 309, 310, 311, -29, -261, -24, -31, 374, 345, 346, 347, 190, 190, 190, 190, 190, 190, + 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 233, 365, 384, 400, 325, 386, 401, 410, 409, + 415, 413, 411, 203, 387, 414, 224, 343, 394, 417, 358, 421, 359, 427, 360, 152, 361, 151, 153, + 362, 114, 363, 381, 298, 394, 416, 248, 332, 389, 424, 376, 402, 141, 0, 412, 0, 0, 390, + 396, 0, 0, 0, 0, 0, 0, 0, 423, 0, 108, 0, 0, 136, 0, 0, 396, 0, 0, + 137, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 408, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 233, 233, 0, 0, 0, 0, 233, 233, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 0, 0, 108, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 0, 0, 233, 1, 2, 3, + 4, 5, 6, 7, 8, 9, 10, 11, 12, 213, 214, 215, 0, 216, 217, 218, 219, 220, 221, + 222, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, + 50, 223, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, + 68, 69, 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, + 86, 87, 88, 89, 165, 166, 90, 167, 168, 169, 170, 171, 0, 0, 172, 173, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 0, 0, 0, 224, + 225, 0, 0, 0, 0, 226, 176, 177, 178, 179, 1, 2, 3, 4, 5, 6, 7, 8, 9, + 10, 11, 12, 213, 214, 215, 0, 216, 217, 218, 219, 220, 221, 222, 13, 14, 15, 16, 17, + 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 223, 51, 52, 53, 54, + 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 0, 71, 72, + 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 165, 166, + 90, 167, 168, 169, 170, 171, 0, 0, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 174, 0, 0, 0, 224, 327, 0, 0, 0, 0, 226, + 176, 177, 178, 179, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 213, 214, 215, + 0, 216, 217, 218, 219, 220, 221, 222, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, + 43, 44, 45, 46, 47, 48, 49, 50, 223, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, + 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, + 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 165, 166, 90, 167, 168, 169, 170, 171, + 0, 0, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 174, 0, 0, 0, 224, 0, 0, 0, 0, 0, 226, 176, 177, 178, 179, 1, 2, + 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 213, 214, 215, 0, 216, 217, 218, 219, 220, + 221, 222, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, + 49, 50, 223, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, + 67, 68, 69, 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, + 85, 86, 87, 88, 89, 165, 166, 90, 167, 168, 169, 170, 171, 0, 0, 172, 173, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 0, 0, 0, + 149, 0, 0, 0, 0, 0, 226, 176, 177, 178, 179, 1, 2, 3, 4, 5, 6, 7, 8, + 9, 10, 11, 12, 213, 214, 215, 0, 216, 217, 218, 219, 220, 221, 222, 13, 14, 15, 16, + 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 223, 51, 52, 53, + 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 0, 71, + 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 165, + 166, 90, 167, 168, 169, 170, 171, 0, 0, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 226, 176, 177, 178, 179, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 42, 43, 44, 45, 46, 47, 48, 49, 50, 0, 51, 52, 53, 54, 55, 56, 57, 58, 59, + 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 0, 71, 72, 73, 74, 75, 76, 77, + 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 165, 166, 90, 167, 168, 169, 170, + 171, 0, 0, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, + 3, 4, 5, 174, 7, 8, 9, 10, 11, 12, 0, 0, 0, 226, 176, 177, 178, 179, 0, + 0, 0, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, + 49, 50, 0, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, + 67, 68, 69, 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, + 85, 86, 87, 88, 89, 165, 166, 90, 167, 168, 169, 170, 171, 0, 0, 172, 173, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 174, 7, 8, 9, + 10, 11, 12, 0, 0, 0, 0, 176, 177, 178, 179, 0, 0, 0, 13, 14, 15, 16, 17, + 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 0, 51, 52, 53, 54, + 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 0, 71, 72, + 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 0, 133, + 90, 0, 9, 10, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, 0, 0, 134, + 34, 35, 36, 37, 38, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 50, 0, 51, + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, + 0, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 0, + 89, 165, 166, 90, 167, 168, 169, 170, 171, 0, 0, 172, 173, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 0, 0, 175, 9, 10, 11, 12, + 0, 0, 0, 176, 177, 178, 179, 0, 0, 0, 0, 13, 14, 15, 16, 17, 18, 19, 20, + 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, 0, 0, 0, 34, 35, 36, 37, 38, 39, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 50, 0, 51, 52, 53, 54, 55, 56, 57, + 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 0, 71, 72, 73, 74, 75, + 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 0, 89, 165, 166, 90, 167, 168, + 169, 170, 171, 0, 0, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 174, 0, 0, 292, 9, 10, 11, 12, 0, 0, 0, 176, 177, 178, + 179, 0, 0, 0, 0, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, + 27, 0, 0, 0, 0, 0, 0, 34, 35, 36, 37, 38, 39, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 49, 50, 0, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, + 64, 65, 66, 67, 68, 69, 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, + 82, 83, 84, 85, 86, 87, 0, 89, 165, 166, 90, 167, 168, 169, 170, 171, 0, 0, 172, + 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, + 9, 10, 11, 12, 0, 0, 0, 0, 0, 305, 176, 177, 178, 179, 0, 13, 14, 15, 16, + 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, 0, 0, 0, 34, 35, + 36, 37, 38, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 49, 50, 0, 51, 52, 53, + 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 0, 71, + 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 0, 89, 165, + 166, 90, 167, 168, 169, 170, 171, 0, 0, 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 9, 10, 11, 12, 0, 0, 0, 0, 0, + 0, 176, 177, 178, 179, 0, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, + 26, 27, 0, 0, 0, 0, 0, 0, 34, 35, 36, 37, 38, 39, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 49, 267, 0, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, + 63, 64, 65, 66, 67, 68, 69, 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, + 81, 82, 83, 84, 85, 86, 87, 0, 89, 165, 166, 90, 167, 168, 169, 170, 171, 0, 0, + 172, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, + 174, 7, 8, 9, 10, 11, 12, 0, 0, 0, 0, 176, 177, 178, 179, 0, 0, 0, 13, + 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 0, + 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, + 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, + 88, 89, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, + 0, 7, 8, 9, 10, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 13, + 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 0, + 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, + 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, + 88, 89, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, + 0, 7, 8, 9, 10, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 294, 13, + 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 0, + 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, + 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, + 88, 89, 0, 0, 90, 0, 0, 0, 0, 0, 0, 140, 0, 0, 1, 2, 3, 4, 5, + 6, 7, 8, 9, 10, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 366, 13, + 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 0, + 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, + 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, + 88, 89, 0, 0, 90, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, + 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 42, 43, 44, 45, 46, 47, 48, 49, 50, 0, 51, 52, 53, 54, 55, 56, 57, 58, 59, + 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 0, 71, 72, 73, 74, 75, 76, 77, + 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 0, 0, 90, 1, 2, 3, 4, + 5, 0, 7, 8, 9, 10, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, + 0, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, + 69, 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, + 87, 88, 89, 0, 0, 90, 9, 10, 11, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 0, + 0, 0, 0, 0, 34, 35, 36, 37, 38, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 49, 50, 0, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, + 67, 68, 69, 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, + 85, 86, 87, 0, 89, 0, 341, 90, 9, 10, 11, 12, 342, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, + 0, 0, 0, 0, 0, 0, 34, 35, 36, 37, 38, 39, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 49, 50, 0, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, + 65, 66, 67, 68, 69, 70, 0, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, + 83, 84, 85, 86, 87, 0, 89, 0, 0, 90}; -static const yytype_int16 yycheck[] = -{ - 0, 49, 100, 95, 121, 95, 138, 246, 100, 206, - 238, 250, 163, 157, 132, 0, 143, 0, 106, 369, - 61, 115, 116, 122, 221, 392, 117, 118, 134, 127, - 144, 123, 136, 123, 136, 127, 154, 155, 106, 107, - 144, 143, 136, 135, 188, 135, 140, 134, 415, 138, - 98, 143, 375, 143, 174, 144, 144, 208, 157, 409, - 136, 152, 153, 161, 414, 106, 135, 143, 391, 161, - 138, 163, 136, 163, 206, 146, 136, 148, 135, 143, - 128, 129, 209, 143, 141, 141, 138, 136, 135, 221, - 135, 330, 135, 144, 141, 95, 141, 135, 141, 219, - 100, 135, 246, 141, 143, 141, 250, 141, 144, 141, - 141, 111, 144, 144, 114, 138, 208, 209, 208, 209, - 172, 173, 266, 123, 106, 107, 111, 127, 111, 278, - 279, 280, 281, 141, 252, 135, 144, 141, 136, 191, - 144, 138, 262, 143, 295, 5, 6, 7, 376, 149, - 149, 150, 151, 134, 206, 106, 107, 113, 114, 119, - 120, 161, 135, 163, 109, 110, 141, 142, 134, 221, - 290, 274, 275, 282, 283, 276, 277, 156, 417, 155, - 324, 325, 154, 303, 121, 382, 330, 307, 124, 125, - 126, 127, 128, 129, 130, 131, 132, 133, 123, 137, - 144, 144, 134, 295, 134, 295, 134, 143, 208, 209, - 144, 142, 134, 139, 134, 138, 135, 134, 142, 271, - 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, - 282, 283, 284, 285, 286, 287, 288, 289, 238, 137, - 137, 385, 141, 64, 134, 139, 135, 18, 144, 137, - 382, 368, 135, 138, 263, 375, 143, 284, 144, 285, - 144, 286, 127, 287, 123, 127, 288, 6, 289, 334, - 212, 391, 407, 417, 251, 370, 414, 312, 391, 111, - -1, 401, -1, -1, 370, 375, -1, -1, -1, -1, - -1, -1, -1, 413, -1, 295, -1, -1, 396, -1, - -1, 391, -1, -1, 396, -1, -1, -1, -1, -1, - -1, -1, 312, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 382, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 395, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 369, - 370, -1, -1, -1, -1, 375, 376, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 391, -1, -1, -1, -1, 396, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 409, - -1, -1, -1, -1, 414, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, - -1, 19, 20, 21, 22, 23, 24, 25, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, - 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, - 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, -1, 86, 87, - 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, - 108, 109, 110, 111, 112, -1, -1, 115, 116, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 134, -1, -1, -1, - 138, 139, -1, -1, -1, -1, 144, 145, 146, 147, - 148, 3, 4, 5, 6, 7, 8, 9, 10, 11, - 12, 13, 14, 15, 16, 17, -1, 19, 20, 21, - 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, - 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, - 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, - 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - 82, 83, 84, -1, 86, 87, 88, 89, 90, 91, - 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, - 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, - 112, -1, -1, 115, 116, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 134, -1, -1, -1, 138, 139, -1, -1, - -1, -1, 144, 145, 146, 147, 148, 3, 4, 5, - 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 16, 17, -1, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, - 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, - 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, - 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, - 76, 77, 78, 79, 80, 81, 82, 83, 84, -1, - 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, - 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, - 106, 107, 108, 109, 110, 111, 112, -1, -1, 115, - 116, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 134, -1, - -1, -1, 138, -1, -1, -1, -1, -1, 144, 145, - 146, 147, 148, 3, 4, 5, 6, 7, 8, 9, - 10, 11, 12, 13, 14, 15, 16, 17, -1, 19, - 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, - 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, - 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, - 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, - 80, 81, 82, 83, 84, -1, 86, 87, 88, 89, - 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, - 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, - 110, 111, 112, -1, -1, 115, 116, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 134, -1, -1, -1, 138, -1, - -1, -1, -1, -1, 144, 145, 146, 147, 148, 3, - 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, - 14, 15, 16, 17, -1, 19, 20, 21, 22, 23, - 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, - 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, - 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, - 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, - 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, - 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, - 104, 105, 106, 107, 108, 109, 110, 111, 112, -1, - -1, 115, 116, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 134, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 144, 145, 146, 147, 148, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 13, 14, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, - 58, 59, 60, 61, 62, 63, -1, 65, 66, 67, - 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, -1, 86, 87, - 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, - 108, 109, 110, 111, 112, -1, -1, 115, 116, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 3, 4, 5, 6, 7, 134, 9, 10, 11, - 12, 13, 14, -1, -1, -1, 144, 145, 146, 147, - 148, -1, -1, -1, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, - 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, - 62, 63, -1, 65, 66, 67, 68, 69, 70, 71, - 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - 82, 83, 84, -1, 86, 87, 88, 89, 90, 91, - 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, - 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, - 112, -1, -1, 115, 116, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 3, 4, 5, - 6, 7, 134, 9, 10, 11, 12, 13, 14, -1, - -1, -1, -1, 145, 146, 147, 148, -1, -1, -1, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, - 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, - 56, 57, 58, 59, 60, 61, 62, 63, -1, 65, - 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, - 76, 77, 78, 79, 80, 81, 82, 83, 84, -1, - 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, - 96, 97, 98, 99, 100, 101, 102, 103, 104, -1, - 106, 107, -1, 11, 12, 13, 14, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, -1, -1, -1, -1, -1, 144, 47, - 48, 49, 50, 51, 52, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 62, 63, -1, 65, 66, 67, - 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, -1, 86, 87, - 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - 98, 99, 100, 101, 102, -1, 104, 105, 106, 107, - 108, 109, 110, 111, 112, -1, -1, 115, 116, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 134, -1, -1, 137, - 11, 12, 13, 14, -1, -1, -1, 145, 146, 147, - 148, -1, -1, -1, -1, 26, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - -1, -1, -1, -1, -1, -1, 47, 48, 49, 50, - 51, 52, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 62, 63, -1, 65, 66, 67, 68, 69, 70, - 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, - 81, 82, 83, 84, -1, 86, 87, 88, 89, 90, - 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, - 101, 102, -1, 104, 105, 106, 107, 108, 109, 110, - 111, 112, -1, -1, 115, 116, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 134, -1, -1, 137, 11, 12, 13, - 14, -1, -1, -1, 145, 146, 147, 148, -1, -1, - -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, -1, -1, -1, - -1, -1, -1, 47, 48, 49, 50, 51, 52, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 62, 63, - -1, 65, 66, 67, 68, 69, 70, 71, 72, 73, - 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, - 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, - 94, 95, 96, 97, 98, 99, 100, 101, 102, -1, - 104, 105, 106, 107, 108, 109, 110, 111, 112, -1, - -1, 115, 116, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 134, 11, 12, 13, 14, -1, -1, -1, -1, -1, - 144, 145, 146, 147, 148, -1, 26, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, -1, -1, -1, -1, -1, -1, 47, 48, 49, - 50, 51, 52, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 62, 63, -1, 65, 66, 67, 68, 69, - 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, - 80, 81, 82, 83, 84, -1, 86, 87, 88, 89, - 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, - 100, 101, 102, -1, 104, 105, 106, 107, 108, 109, - 110, 111, 112, -1, -1, 115, 116, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 134, 11, 12, 13, 14, -1, - -1, -1, -1, -1, -1, 145, 146, 147, 148, -1, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, -1, -1, -1, -1, -1, - -1, 47, 48, 49, 50, 51, 52, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 62, 63, -1, 65, - 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, - 76, 77, 78, 79, 80, 81, 82, 83, 84, -1, - 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, - 96, 97, 98, 99, 100, 101, 102, -1, 104, 105, - 106, 107, 108, 109, 110, 111, 112, -1, -1, 115, - 116, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 3, 4, 5, 6, 7, 134, 9, - 10, 11, 12, 13, 14, -1, -1, -1, -1, 145, - 146, 147, 148, -1, -1, -1, 26, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, - 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, - 60, 61, 62, 63, -1, 65, 66, 67, 68, 69, - 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, - 80, 81, 82, 83, 84, -1, 86, 87, 88, 89, - 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, - 100, 101, 102, 103, 104, -1, -1, 107, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 3, 4, 5, - 6, 7, -1, 9, 10, 11, 12, 13, 14, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 139, - 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, - 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, - 56, 57, 58, 59, 60, 61, 62, 63, -1, 65, - 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, - 76, 77, 78, 79, 80, 81, 82, 83, 84, -1, - 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, - 96, 97, 98, 99, 100, 101, 102, 103, 104, -1, - -1, 107, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 3, 4, 5, 6, 7, -1, 9, 10, 11, - 12, 13, 14, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 139, 26, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, - 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, - 62, 63, -1, 65, 66, 67, 68, 69, 70, 71, - 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, - 82, 83, 84, -1, 86, 87, 88, 89, 90, 91, - 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, - 102, 103, 104, -1, -1, 107, -1, -1, -1, -1, - -1, -1, 0, -1, -1, 3, 4, 5, 6, 7, - 8, 9, 10, 11, 12, 13, 14, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 139, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, - 58, 59, 60, 61, 62, 63, -1, 65, 66, 67, - 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, -1, 86, 87, - 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - 98, 99, 100, 101, 102, 103, 104, -1, -1, 107, - 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, - 13, 14, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, - 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, - 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, - 63, -1, 65, 66, 67, 68, 69, 70, 71, 72, - 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, - 83, 84, -1, 86, 87, 88, 89, 90, 91, 92, - 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, - 103, 104, -1, -1, 107, 3, 4, 5, 6, 7, - -1, 9, 10, 11, 12, 13, 14, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 26, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, - 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, - 58, 59, 60, 61, 62, 63, -1, 65, 66, 67, - 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, - 78, 79, 80, 81, 82, 83, 84, -1, 86, 87, - 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - 98, 99, 100, 101, 102, 103, 104, -1, -1, 107, - 11, 12, 13, 14, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - -1, -1, -1, -1, -1, -1, 47, 48, 49, 50, - 51, 52, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 62, 63, -1, 65, 66, 67, 68, 69, 70, - 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, - 81, 82, 83, 84, -1, 86, 87, 88, 89, 90, - 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, - 101, 102, -1, 104, -1, 106, 107, 11, 12, 13, - 14, 112, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, -1, -1, -1, - -1, -1, -1, 47, 48, 49, 50, 51, 52, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 62, 63, - -1, 65, 66, 67, 68, 69, 70, 71, 72, 73, - 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, - 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, - 94, 95, 96, 97, 98, 99, 100, 101, 102, -1, - 104, -1, -1, 107 -}; +static const yytype_int16 yycheck[] = { + 0, 49, 100, 95, 121, 95, 138, 246, 100, 206, 238, 250, 163, 157, 132, 0, 143, 0, 106, + 369, 61, 115, 116, 122, 221, 392, 117, 118, 134, 127, 144, 123, 136, 123, 136, 127, 154, 155, + 106, 107, 144, 143, 136, 135, 188, 135, 140, 134, 415, 138, 98, 143, 375, 143, 174, 144, 144, + 208, 157, 409, 136, 152, 153, 161, 414, 106, 135, 143, 391, 161, 138, 163, 136, 163, 206, 146, + 136, 148, 135, 143, 128, 129, 209, 143, 141, 141, 138, 136, 135, 221, 135, 330, 135, 144, 141, + 95, 141, 135, 141, 219, 100, 135, 246, 141, 143, 141, 250, 141, 144, 141, 141, 111, 144, 144, + 114, 138, 208, 209, 208, 209, 172, 173, 266, 123, 106, 107, 111, 127, 111, 278, 279, 280, 281, + 141, 252, 135, 144, 141, 136, 191, 144, 138, 262, 143, 295, 5, 6, 7, 376, 149, 149, 150, + 151, 134, 206, 106, 107, 113, 114, 119, 120, 161, 135, 163, 109, 110, 141, 142, 134, 221, 290, + 274, 275, 282, 283, 276, 277, 156, 417, 155, 324, 325, 154, 303, 121, 382, 330, 307, 124, 125, + 126, 127, 128, 129, 130, 131, 132, 133, 123, 137, 144, 144, 134, 295, 134, 295, 134, 143, 208, + 209, 144, 142, 134, 139, 134, 138, 135, 134, 142, 271, 272, 273, 274, 275, 276, 277, 278, 279, + 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 238, 137, 137, 385, 141, 64, 134, 139, 135, + 18, 144, 137, 382, 368, 135, 138, 263, 375, 143, 284, 144, 285, 144, 286, 127, 287, 123, 127, + 288, 6, 289, 334, 212, 391, 407, 417, 251, 370, 414, 312, 391, 111, -1, 401, -1, -1, 370, + 375, -1, -1, -1, -1, -1, -1, -1, 413, -1, 295, -1, -1, 396, -1, -1, 391, -1, -1, + 396, -1, -1, -1, -1, -1, -1, -1, 312, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 382, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 395, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 369, 370, -1, -1, -1, -1, 375, 376, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 391, -1, -1, -1, -1, 396, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 409, -1, -1, -1, -1, 414, 3, 4, 5, + 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, -1, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, + 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, + 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, + 82, 83, 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, + 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, -1, -1, 115, 116, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 134, -1, -1, -1, 138, + 139, -1, -1, -1, -1, 144, 145, 146, 147, 148, 3, 4, 5, 6, 7, 8, 9, 10, 11, + 12, 13, 14, 15, 16, 17, -1, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, + 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, + 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, -1, 86, 87, + 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, + 107, 108, 109, 110, 111, 112, -1, -1, 115, 116, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 134, -1, -1, -1, 138, 139, -1, -1, -1, -1, 144, + 145, 146, 147, 148, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, + -1, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, + 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, + 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, + 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, + -1, -1, 115, 116, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 134, -1, -1, -1, 138, -1, -1, -1, -1, -1, 144, 145, 146, 147, 148, 3, 4, + 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, -1, 19, 20, 21, 22, 23, + 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, + 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, + 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, + 81, 82, 83, 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, + 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, -1, -1, 115, 116, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 134, -1, -1, -1, + 138, -1, -1, -1, -1, -1, 144, 145, 146, 147, 148, 3, 4, 5, 6, 7, 8, 9, 10, + 11, 12, 13, 14, 15, 16, 17, -1, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, + 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, + 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, -1, 86, + 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, + 106, 107, 108, 109, 110, 111, 112, -1, -1, 115, 116, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 134, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 144, 145, 146, 147, 148, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, + 55, 56, 57, 58, 59, 60, 61, 62, 63, -1, 65, 66, 67, 68, 69, 70, 71, 72, 73, + 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, -1, 86, 87, 88, 89, 90, 91, 92, + 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, + 112, -1, -1, 115, 116, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3, 4, + 5, 6, 7, 134, 9, 10, 11, 12, 13, 14, -1, -1, -1, 144, 145, 146, 147, 148, -1, + -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, + 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, + 62, 63, -1, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, + 81, 82, 83, 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, + 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, -1, -1, 115, 116, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3, 4, 5, 6, 7, 134, 9, 10, 11, + 12, 13, 14, -1, -1, -1, -1, 145, 146, 147, 148, -1, -1, -1, 26, 27, 28, 29, 30, + 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, + 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, -1, 65, 66, 67, 68, + 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, -1, 86, 87, + 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, -1, 106, + 107, -1, 11, 12, 13, 14, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 26, 27, + 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, -1, -1, -1, -1, -1, 144, + 47, 48, 49, 50, 51, 52, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, 63, -1, 65, + 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, + -1, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, -1, + 104, 105, 106, 107, 108, 109, 110, 111, 112, -1, -1, 115, 116, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 134, -1, -1, 137, 11, 12, 13, 14, + -1, -1, -1, 145, 146, 147, 148, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, + 34, 35, 36, 37, 38, 39, 40, -1, -1, -1, -1, -1, -1, 47, 48, 49, 50, 51, 52, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, 63, -1, 65, 66, 67, 68, 69, 70, 71, + 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, -1, 86, 87, 88, 89, 90, + 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, -1, 104, 105, 106, 107, 108, 109, + 110, 111, 112, -1, -1, 115, 116, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 134, -1, -1, 137, 11, 12, 13, 14, -1, -1, -1, 145, 146, 147, + 148, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, + 40, -1, -1, -1, -1, -1, -1, 47, 48, 49, 50, 51, 52, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 62, 63, -1, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, + 78, 79, 80, 81, 82, 83, 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, + 97, 98, 99, 100, 101, 102, -1, 104, 105, 106, 107, 108, 109, 110, 111, 112, -1, -1, 115, + 116, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 134, + 11, 12, 13, 14, -1, -1, -1, -1, -1, 144, 145, 146, 147, 148, -1, 26, 27, 28, 29, + 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, -1, -1, -1, -1, -1, -1, 47, 48, + 49, 50, 51, 52, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, 63, -1, 65, 66, 67, + 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, -1, 86, + 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, -1, 104, 105, + 106, 107, 108, 109, 110, 111, 112, -1, -1, 115, 116, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 134, 11, 12, 13, 14, -1, -1, -1, -1, -1, + -1, 145, 146, 147, 148, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 39, 40, -1, -1, -1, -1, -1, -1, 47, 48, 49, 50, 51, 52, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 62, 63, -1, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, + 77, 78, 79, 80, 81, 82, 83, 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, + 96, 97, 98, 99, 100, 101, 102, -1, 104, 105, 106, 107, 108, 109, 110, 111, 112, -1, -1, + 115, 116, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3, 4, 5, 6, 7, + 134, 9, 10, 11, 12, 13, 14, -1, -1, -1, -1, 145, 146, 147, 148, -1, -1, -1, 26, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, + 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, -1, + 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, + 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, + 103, 104, -1, -1, 107, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3, 4, 5, 6, 7, + -1, 9, 10, 11, 12, 13, 14, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 139, 26, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, + 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, -1, + 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, + 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, + 103, 104, -1, -1, 107, -1, -1, -1, -1, -1, -1, -1, -1, -1, 3, 4, 5, 6, 7, + -1, 9, 10, 11, 12, 13, 14, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 139, 26, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, + 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, -1, + 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, + 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, + 103, 104, -1, -1, 107, -1, -1, -1, -1, -1, -1, 0, -1, -1, 3, 4, 5, 6, 7, + 8, 9, 10, 11, 12, 13, 14, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 139, 26, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, + 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, -1, + 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, + 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, + 103, 104, -1, -1, 107, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, + 55, 56, 57, 58, 59, 60, 61, 62, 63, -1, 65, 66, 67, 68, 69, 70, 71, 72, 73, + 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, -1, 86, 87, 88, 89, 90, 91, 92, + 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, -1, -1, 107, 3, 4, 5, 6, + 7, -1, 9, 10, 11, 12, 13, 14, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, + 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, + -1, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, + 83, 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, + 102, 103, 104, -1, -1, 107, 11, 12, 13, 14, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, -1, -1, + -1, -1, -1, -1, 47, 48, 49, 50, 51, 52, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 62, 63, -1, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, + 81, 82, 83, 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, + 100, 101, 102, -1, 104, -1, 106, 107, 11, 12, 13, 14, 112, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, + -1, -1, -1, -1, -1, -1, 47, 48, 49, 50, 51, 52, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 62, 63, -1, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, + 79, 80, 81, 82, 83, 84, -1, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, + 98, 99, 100, 101, 102, -1, 104, -1, -1, 107}; - /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing - symbol of state STATE-NUM. */ -static const yytype_uint8 yystos[] = -{ - 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, - 12, 13, 14, 26, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, - 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, - 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, - 63, 65, 66, 67, 68, 69, 70, 71, 72, 73, - 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, - 84, 86, 87, 88, 89, 90, 91, 92, 93, 94, - 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, - 107, 190, 191, 192, 193, 194, 198, 199, 200, 201, - 202, 203, 204, 205, 206, 207, 208, 209, 212, 214, - 215, 250, 251, 252, 208, 106, 107, 138, 159, 134, - 144, 253, 135, 141, 195, 196, 197, 202, 207, 141, - 144, 106, 159, 106, 144, 189, 205, 207, 136, 213, - 0, 251, 212, 217, 138, 61, 106, 210, 211, 138, - 233, 196, 195, 197, 159, 159, 134, 143, 213, 138, - 144, 202, 207, 218, 219, 105, 106, 108, 109, 110, - 111, 112, 115, 116, 134, 137, 145, 146, 147, 148, - 160, 161, 162, 164, 165, 166, 167, 168, 169, 170, - 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, - 181, 182, 183, 184, 188, 212, 136, 144, 218, 216, - 143, 135, 141, 15, 16, 17, 19, 20, 21, 22, - 23, 24, 25, 64, 138, 139, 144, 171, 184, 185, - 187, 190, 191, 212, 223, 224, 225, 226, 234, 235, - 236, 238, 240, 242, 249, 213, 143, 213, 185, 222, - 143, 207, 159, 220, 221, 139, 219, 171, 171, 187, - 115, 116, 136, 140, 135, 135, 141, 63, 185, 134, - 171, 149, 150, 151, 146, 148, 113, 114, 117, 118, - 152, 153, 119, 120, 156, 155, 154, 121, 123, 122, - 157, 137, 137, 188, 139, 218, 109, 110, 211, 144, - 144, 244, 134, 134, 144, 144, 187, 134, 188, 142, - 134, 139, 227, 124, 125, 126, 127, 128, 129, 130, - 131, 132, 133, 143, 186, 141, 144, 139, 224, 222, - 143, 222, 220, 213, 141, 144, 106, 144, 135, 163, - 187, 106, 112, 166, 185, 171, 171, 171, 173, 173, - 174, 174, 175, 175, 175, 175, 176, 176, 177, 178, - 179, 180, 181, 182, 187, 137, 139, 230, 231, 232, - 245, 187, 144, 187, 142, 243, 234, 185, 185, 222, - 144, 221, 136, 144, 137, 142, 64, 233, 225, 223, - 235, 246, 135, 135, 187, 200, 202, 241, 228, 188, - 185, 134, 241, 247, 248, 230, 237, 239, 159, 135, - 139, 137, 187, 144, 135, 18, 226, 143, 225, 229, - 233, 144, 135, 187, 229, 230, 222, 144 -}; +/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing + symbol of state STATE-NUM. */ +static const yytype_uint8 yystos[] = { + 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 26, 27, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, + 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 65, 66, 67, 68, 69, 70, + 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 86, 87, 88, 89, 90, + 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 107, 190, 191, 192, 193, + 194, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 212, 214, 215, 250, 251, 252, + 208, 106, 107, 138, 159, 134, 144, 253, 135, 141, 195, 196, 197, 202, 207, 141, 144, 106, 159, + 106, 144, 189, 205, 207, 136, 213, 0, 251, 212, 217, 138, 61, 106, 210, 211, 138, 233, 196, + 195, 197, 159, 159, 134, 143, 213, 138, 144, 202, 207, 218, 219, 105, 106, 108, 109, 110, 111, + 112, 115, 116, 134, 137, 145, 146, 147, 148, 160, 161, 162, 164, 165, 166, 167, 168, 169, 170, + 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 188, 212, 136, 144, 218, + 216, 143, 135, 141, 15, 16, 17, 19, 20, 21, 22, 23, 24, 25, 64, 138, 139, 144, 171, + 184, 185, 187, 190, 191, 212, 223, 224, 225, 226, 234, 235, 236, 238, 240, 242, 249, 213, 143, + 213, 185, 222, 143, 207, 159, 220, 221, 139, 219, 171, 171, 187, 115, 116, 136, 140, 135, 135, + 141, 63, 185, 134, 171, 149, 150, 151, 146, 148, 113, 114, 117, 118, 152, 153, 119, 120, 156, + 155, 154, 121, 123, 122, 157, 137, 137, 188, 139, 218, 109, 110, 211, 144, 144, 244, 134, 134, + 144, 144, 187, 134, 188, 142, 134, 139, 227, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, + 143, 186, 141, 144, 139, 224, 222, 143, 222, 220, 213, 141, 144, 106, 144, 135, 163, 187, 106, + 112, 166, 185, 171, 171, 171, 173, 173, 174, 174, 175, 175, 175, 175, 176, 176, 177, 178, 179, + 180, 181, 182, 187, 137, 139, 230, 231, 232, 245, 187, 144, 187, 142, 243, 234, 185, 185, 222, + 144, 221, 136, 144, 137, 142, 64, 233, 225, 223, 235, 246, 135, 135, 187, 200, 202, 241, 228, + 188, 185, 134, 241, 247, 248, 230, 237, 239, 159, 135, 139, 137, 187, 144, 135, 18, 226, 143, + 225, 229, 233, 144, 135, 187, 229, 230, 222, 144}; - /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const yytype_uint8 yyr1[] = -{ - 0, 158, 159, 159, 160, 161, 161, 161, 161, 161, - 161, 161, 162, 162, 162, 162, 162, 162, 163, 164, - 165, 165, 166, 166, 167, 167, 168, 168, 169, 170, - 170, 170, 171, 171, 171, 171, 172, 172, 172, 172, - 173, 173, 173, 173, 174, 174, 174, 175, 175, 175, - 176, 176, 176, 176, 176, 177, 177, 177, 178, 178, - 179, 179, 180, 180, 181, 181, 182, 182, 183, 183, - 184, 184, 185, 185, 186, 186, 186, 186, 186, 186, - 186, 186, 186, 186, 186, 187, 187, 188, 189, 190, - 190, 190, 190, 190, 190, 190, 190, 191, 192, 192, - 193, 193, 194, 195, 195, 196, 196, 196, 196, 197, - 198, 198, 198, 198, 198, 199, 199, 199, 199, 199, - 200, 200, 201, 201, 202, 202, 203, 204, 205, 205, - 205, 205, 205, 205, 206, 206, 206, 206, 206, 206, - 206, 206, 206, 206, 206, 206, 206, 206, 206, 207, - 208, 208, 208, 209, 210, 210, 211, 211, 211, 211, - 212, 212, 213, 213, 213, 213, 214, 214, 214, 214, - 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, - 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, - 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, - 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, - 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, - 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, - 214, 214, 216, 215, 217, 215, 218, 218, 219, 219, - 220, 220, 221, 221, 222, 223, 224, 224, 225, 225, - 225, 225, 225, 225, 225, 226, 227, 228, 226, 229, - 229, 231, 230, 232, 230, 233, 233, 234, 234, 235, - 235, 236, 237, 237, 239, 238, 240, 240, 241, 241, - 243, 242, 244, 242, 245, 242, 246, 246, 247, 247, - 248, 248, 249, 249, 249, 249, 249, 250, 250, 251, - 251, 253, 252 -}; +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +static const yytype_uint8 yyr1[] = { + 0, 158, 159, 159, 160, 161, 161, 161, 161, 161, 161, 161, 162, 162, 162, 162, 162, 162, 163, + 164, 165, 165, 166, 166, 167, 167, 168, 168, 169, 170, 170, 170, 171, 171, 171, 171, 172, 172, + 172, 172, 173, 173, 173, 173, 174, 174, 174, 175, 175, 175, 176, 176, 176, 176, 176, 177, 177, + 177, 178, 178, 179, 179, 180, 180, 181, 181, 182, 182, 183, 183, 184, 184, 185, 185, 186, 186, + 186, 186, 186, 186, 186, 186, 186, 186, 186, 187, 187, 188, 189, 190, 190, 190, 190, 190, 190, + 190, 190, 191, 192, 192, 193, 193, 194, 195, 195, 196, 196, 196, 196, 197, 198, 198, 198, 198, + 198, 199, 199, 199, 199, 199, 200, 200, 201, 201, 202, 202, 203, 204, 205, 205, 205, 205, 205, + 205, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, 207, 208, 208, + 208, 209, 210, 210, 211, 211, 211, 211, 212, 212, 213, 213, 213, 213, 214, 214, 214, 214, 214, + 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, + 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, + 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, 214, + 214, 214, 214, 214, 216, 215, 217, 215, 218, 218, 219, 219, 220, 220, 221, 221, 222, 223, 224, + 224, 225, 225, 225, 225, 225, 225, 225, 226, 227, 228, 226, 229, 229, 231, 230, 232, 230, 233, + 233, 234, 234, 235, 235, 236, 237, 237, 239, 238, 240, 240, 241, 241, 243, 242, 244, 242, 245, + 242, 246, 246, 247, 247, 248, 248, 249, 249, 249, 249, 249, 250, 250, 251, 251, 253, 252}; - /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ -static const yytype_uint8 yyr2[] = -{ - 0, 2, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 3, 1, 4, 1, 3, 2, 2, 1, 1, - 1, 3, 2, 2, 2, 1, 2, 3, 2, 1, - 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, - 1, 3, 3, 3, 1, 3, 3, 1, 3, 3, - 1, 3, 3, 3, 3, 1, 3, 3, 1, 3, - 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, - 1, 5, 1, 3, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 3, 1, 2, 2, - 2, 4, 5, 6, 9, 2, 3, 2, 1, 1, - 2, 3, 3, 2, 3, 2, 1, 2, 1, 1, - 1, 3, 4, 6, 5, 1, 2, 3, 5, 4, - 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 4, 1, 3, 1, 3, 3, 1, - 1, 2, 2, 3, 3, 4, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 0, 6, 0, 5, 1, 2, 3, 4, - 1, 3, 1, 2, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 2, 0, 0, 5, 1, - 1, 0, 2, 0, 2, 2, 3, 1, 2, 1, - 2, 5, 3, 1, 0, 6, 3, 2, 1, 4, - 0, 6, 0, 8, 0, 7, 1, 1, 1, 0, - 2, 3, 2, 2, 2, 3, 2, 1, 2, 1, - 1, 0, 3 -}; +/* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ +static const yytype_uint8 yyr2[] = { + 0, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 4, 1, 3, 2, 2, 1, 1, 1, 3, 2, 2, 2, 1, 2, 3, 2, 1, 1, + 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 3, 3, 3, 1, 3, 3, 1, 3, 3, 1, 3, 3, 3, 3, 1, 3, 3, 1, 3, 1, 3, + 1, 3, 1, 3, 1, 3, 1, 3, 1, 5, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 2, 2, 2, 4, 5, + 6, 9, 2, 3, 2, 1, 1, 2, 3, 3, 2, 3, 2, 1, 2, 1, 1, 1, 3, 4, 6, 5, 1, 2, 3, 5, 4, 1, 2, 1, 1, + 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 1, + 3, 1, 3, 3, 1, 1, 2, 2, 3, 3, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 6, 0, 5, 1, 2, 3, 4, 1, 3, 1, 2, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 2, 0, 0, 5, 1, 1, 0, 2, 0, 2, 2, 3, 1, 2, 1, 2, 5, 3, 1, 0, 6, 3, 2, 1, + 4, 0, 6, 0, 8, 0, 7, 1, 1, 1, 0, 2, 3, 2, 2, 2, 3, 2, 1, 2, 1, 1, 0, 3}; +#define yyerrok (yyerrstatus = 0) +#define yyclearin (yychar = YYEMPTY) +#define YYEMPTY (-2) +#define YYEOF 0 -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) -#define YYEMPTY (-2) -#define YYEOF 0 +#define YYACCEPT goto yyacceptlab +#define YYABORT goto yyabortlab +#define YYERROR goto yyerrorlab -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrorlab +#define YYRECOVERING() (!!yyerrstatus) - -#define YYRECOVERING() (!!yyerrstatus) - -#define YYBACKUP(Token, Value) \ - do \ - if (yychar == YYEMPTY) \ - { \ - yychar = (Token); \ - yylval = (Value); \ - YYPOPSTACK (yylen); \ - yystate = *yyssp; \ - goto yybackup; \ - } \ - else \ - { \ - yyerror (&yylloc, context, scanner, YY_("syntax error: cannot back up")); \ - YYERROR; \ - } \ - while (0) +#define YYBACKUP(Token, Value) \ + do \ + if (yychar == YYEMPTY) \ + { \ + yychar = (Token); \ + yylval = (Value); \ + YYPOPSTACK(yylen); \ + yystate = *yyssp; \ + goto yybackup; \ + } \ + else \ + { \ + yyerror(&yylloc, context, scanner, YY_("syntax error: cannot back up")); \ + YYERROR; \ + } \ + while (0) /* Error token number */ -#define YYTERROR 1 -#define YYERRCODE 256 - +#define YYTERROR 1 +#define YYERRCODE 256 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ #ifndef YYLLOC_DEFAULT -# define YYLLOC_DEFAULT(Current, Rhs, N) \ - do \ - if (N) \ - { \ - (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ - (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ - (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ - (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ - } \ - else \ - { \ - (Current).first_line = (Current).last_line = \ - YYRHSLOC (Rhs, 0).last_line; \ - (Current).first_column = (Current).last_column = \ - YYRHSLOC (Rhs, 0).last_column; \ - } \ - while (0) +# define YYLLOC_DEFAULT(Current, Rhs, N) \ + do \ + if (N) \ + { \ + (Current).first_line = YYRHSLOC(Rhs, 1).first_line; \ + (Current).first_column = YYRHSLOC(Rhs, 1).first_column; \ + (Current).last_line = YYRHSLOC(Rhs, N).last_line; \ + (Current).last_column = YYRHSLOC(Rhs, N).last_column; \ + } \ + else \ + { \ + (Current).first_line = (Current).last_line = YYRHSLOC(Rhs, 0).last_line; \ + (Current).first_column = (Current).last_column = YYRHSLOC(Rhs, 0).last_column; \ + } \ + while (0) #endif #define YYRHSLOC(Rhs, K) ((Rhs)[K]) - /* Enable debugging if requested. */ #if YYDEBUG -# ifndef YYFPRINTF -# include /* INFRINGES ON USER NAME SPACE */ -# define YYFPRINTF fprintf -# endif - -# define YYDPRINTF(Args) \ -do { \ - if (yydebug) \ - YYFPRINTF Args; \ -} while (0) +# ifndef YYFPRINTF +# include /* INFRINGES ON USER NAME SPACE */ +# define YYFPRINTF fprintf +# endif +# define YYDPRINTF(Args) \ + do \ + { \ + if (yydebug) \ + YYFPRINTF Args; \ + } while (0) /* YY_LOCATION_PRINT -- Print the location on the stream. This macro was not mandated originally: define only if we know we won't break user code: when these are the locations we know. */ -#ifndef YY_LOCATION_PRINT -# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL +# ifndef YY_LOCATION_PRINT +# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL /* Print *YYLOCP on YYO. Private, do not rely on its existence. */ YY_ATTRIBUTE_UNUSED -static int -yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp) +static int yy_location_print_(FILE *yyo, YYLTYPE const *const yylocp) { - int res = 0; - int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0; - if (0 <= yylocp->first_line) + int res = 0; + int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0; + if (0 <= yylocp->first_line) { - res += YYFPRINTF (yyo, "%d", yylocp->first_line); - if (0 <= yylocp->first_column) - res += YYFPRINTF (yyo, ".%d", yylocp->first_column); + res += YYFPRINTF(yyo, "%d", yylocp->first_line); + if (0 <= yylocp->first_column) + res += YYFPRINTF(yyo, ".%d", yylocp->first_column); } - if (0 <= yylocp->last_line) + if (0 <= yylocp->last_line) { - if (yylocp->first_line < yylocp->last_line) + if (yylocp->first_line < yylocp->last_line) { - res += YYFPRINTF (yyo, "-%d", yylocp->last_line); - if (0 <= end_col) - res += YYFPRINTF (yyo, ".%d", end_col); + res += YYFPRINTF(yyo, "-%d", yylocp->last_line); + if (0 <= end_col) + res += YYFPRINTF(yyo, ".%d", end_col); } - else if (0 <= end_col && yylocp->first_column < end_col) - res += YYFPRINTF (yyo, "-%d", end_col); + else if (0 <= end_col && yylocp->first_column < end_col) + res += YYFPRINTF(yyo, "-%d", end_col); } - return res; - } + return res; +} -# define YY_LOCATION_PRINT(File, Loc) \ - yy_location_print_ (File, &(Loc)) +# define YY_LOCATION_PRINT(File, Loc) yy_location_print_(File, &(Loc)) -# else -# define YY_LOCATION_PRINT(File, Loc) ((void) 0) -# endif -#endif - - -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ -do { \ - if (yydebug) \ - { \ - YYFPRINTF (stderr, "%s ", Title); \ - yy_symbol_print (stderr, \ - Type, Value, Location, context, scanner); \ - YYFPRINTF (stderr, "\n"); \ - } \ -} while (0) +# else +# define YY_LOCATION_PRINT(File, Loc) ((void)0) +# endif +# endif +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ + do \ + { \ + if (yydebug) \ + { \ + YYFPRINTF(stderr, "%s ", Title); \ + yy_symbol_print(stderr, Type, Value, Location, context, scanner); \ + YYFPRINTF(stderr, "\n"); \ + } \ + } while (0) /*-----------------------------------. | Print this symbol's value on YYO. | `-----------------------------------*/ -static void -yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, TParseContext* context, void *scanner) +static void yy_symbol_value_print(FILE *yyo, + int yytype, + YYSTYPE const *const yyvaluep, + YYLTYPE const *const yylocationp, + TParseContext *context, + void *scanner) { - FILE *yyoutput = yyo; - YYUSE (yyoutput); - YYUSE (yylocationp); - YYUSE (context); - YYUSE (scanner); - if (!yyvaluep) - return; -# ifdef YYPRINT - if (yytype < YYNTOKENS) - YYPRINT (yyo, yytoknum[yytype], *yyvaluep); -# endif - YYUSE (yytype); + FILE *yyoutput = yyo; + YYUSE(yyoutput); + YYUSE(yylocationp); + YYUSE(context); + YYUSE(scanner); + if (!yyvaluep) + return; +# ifdef YYPRINT + if (yytype < YYNTOKENS) + YYPRINT(yyo, yytoknum[yytype], *yyvaluep); +# endif + YYUSE(yytype); } - /*---------------------------. | Print this symbol on YYO. | `---------------------------*/ -static void -yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, TParseContext* context, void *scanner) +static void yy_symbol_print(FILE *yyo, + int yytype, + YYSTYPE const *const yyvaluep, + YYLTYPE const *const yylocationp, + TParseContext *context, + void *scanner) { - YYFPRINTF (yyo, "%s %s (", - yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); + YYFPRINTF(yyo, "%s %s (", yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); - YY_LOCATION_PRINT (yyo, *yylocationp); - YYFPRINTF (yyo, ": "); - yy_symbol_value_print (yyo, yytype, yyvaluep, yylocationp, context, scanner); - YYFPRINTF (yyo, ")"); + YY_LOCATION_PRINT(yyo, *yylocationp); + YYFPRINTF(yyo, ": "); + yy_symbol_value_print(yyo, yytype, yyvaluep, yylocationp, context, scanner); + YYFPRINTF(yyo, ")"); } /*------------------------------------------------------------------. @@ -1913,69 +1652,69 @@ yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE | TOP (included). | `------------------------------------------------------------------*/ -static void -yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) +static void yy_stack_print(yytype_int16 *yybottom, yytype_int16 *yytop) { - YYFPRINTF (stderr, "Stack now"); - for (; yybottom <= yytop; yybottom++) + YYFPRINTF(stderr, "Stack now"); + for (; yybottom <= yytop; yybottom++) { - int yybot = *yybottom; - YYFPRINTF (stderr, " %d", yybot); + int yybot = *yybottom; + YYFPRINTF(stderr, " %d", yybot); } - YYFPRINTF (stderr, "\n"); + YYFPRINTF(stderr, "\n"); } -# define YY_STACK_PRINT(Bottom, Top) \ -do { \ - if (yydebug) \ - yy_stack_print ((Bottom), (Top)); \ -} while (0) - +# define YY_STACK_PRINT(Bottom, Top) \ + do \ + { \ + if (yydebug) \ + yy_stack_print((Bottom), (Top)); \ + } while (0) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ -static void -yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule, TParseContext* context, void *scanner) +static void yy_reduce_print(yytype_int16 *yyssp, + YYSTYPE *yyvsp, + YYLTYPE *yylsp, + int yyrule, + TParseContext *context, + void *scanner) { - unsigned long yylno = yyrline[yyrule]; - int yynrhs = yyr2[yyrule]; - int yyi; - YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", - yyrule - 1, yylno); - /* The symbols being reduced. */ - for (yyi = 0; yyi < yynrhs; yyi++) + unsigned long yylno = yyrline[yyrule]; + int yynrhs = yyr2[yyrule]; + int yyi; + YYFPRINTF(stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); + /* The symbols being reduced. */ + for (yyi = 0; yyi < yynrhs; yyi++) { - YYFPRINTF (stderr, " $%d = ", yyi + 1); - yy_symbol_print (stderr, - yystos[yyssp[yyi + 1 - yynrhs]], - &yyvsp[(yyi + 1) - (yynrhs)] - , &(yylsp[(yyi + 1) - (yynrhs)]) , context, scanner); - YYFPRINTF (stderr, "\n"); + YYFPRINTF(stderr, " $%d = ", yyi + 1); + yy_symbol_print(stderr, yystos[yyssp[yyi + 1 - yynrhs]], &yyvsp[(yyi + 1) - (yynrhs)], + &(yylsp[(yyi + 1) - (yynrhs)]), context, scanner); + YYFPRINTF(stderr, "\n"); } } -# define YY_REDUCE_PRINT(Rule) \ -do { \ - if (yydebug) \ - yy_reduce_print (yyssp, yyvsp, yylsp, Rule, context, scanner); \ -} while (0) +# define YY_REDUCE_PRINT(Rule) \ + do \ + { \ + if (yydebug) \ + yy_reduce_print(yyssp, yyvsp, yylsp, Rule, context, scanner); \ + } while (0) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ -# define YYDPRINTF(Args) -# define YY_SYMBOL_PRINT(Title, Type, Value, Location) -# define YY_STACK_PRINT(Bottom, Top) -# define YY_REDUCE_PRINT(Rule) +# define YYDPRINTF(Args) +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) +# define YY_STACK_PRINT(Bottom, Top) +# define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ - /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH -# define YYINITDEPTH 200 +# define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only @@ -1986,49 +1725,46 @@ int yydebug; evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH -# define YYMAXDEPTH 10000 +# define YYMAXDEPTH 10000 #endif - #if YYERROR_VERBOSE -# ifndef yystrlen -# if defined __GLIBC__ && defined _STRING_H -# define yystrlen strlen -# else +# ifndef yystrlen +# if defined __GLIBC__ && defined _STRING_H +# define yystrlen strlen +# else /* Return the length of YYSTR. */ -static YYSIZE_T -yystrlen (const char *yystr) +static YYSIZE_T yystrlen(const char *yystr) { - YYSIZE_T yylen; - for (yylen = 0; yystr[yylen]; yylen++) - continue; - return yylen; + YYSIZE_T yylen; + for (yylen = 0; yystr[yylen]; yylen++) + continue; + return yylen; } -# endif -# endif +# endif +# endif -# ifndef yystpcpy -# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE -# define yystpcpy stpcpy -# else +# ifndef yystpcpy +# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE +# define yystpcpy stpcpy +# else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ -static char * -yystpcpy (char *yydest, const char *yysrc) +static char *yystpcpy(char *yydest, const char *yysrc) { - char *yyd = yydest; - const char *yys = yysrc; + char *yyd = yydest; + const char *yys = yysrc; - while ((*yyd++ = *yys++) != '\0') - continue; + while ((*yyd++ = *yys++) != '\0') + continue; - return yyd - 1; + return yyd - 1; } -# endif -# endif +# endif +# endif -# ifndef yytnamerr +# ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string @@ -2036,48 +1772,47 @@ yystpcpy (char *yydest, const char *yysrc) backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ -static YYSIZE_T -yytnamerr (char *yyres, const char *yystr) +static YYSIZE_T yytnamerr(char *yyres, const char *yystr) { - if (*yystr == '"') + if (*yystr == '"') { - YYSIZE_T yyn = 0; - char const *yyp = yystr; + YYSIZE_T yyn = 0; + char const *yyp = yystr; - for (;;) - switch (*++yyp) - { - case '\'': - case ',': - goto do_not_strip_quotes; + for (;;) + switch (*++yyp) + { + case '\'': + case ',': + goto do_not_strip_quotes; - case '\\': - if (*++yyp != '\\') - goto do_not_strip_quotes; - else - goto append; + case '\\': + if (*++yyp != '\\') + goto do_not_strip_quotes; + else + goto append; - append: - default: - if (yyres) - yyres[yyn] = *yyp; - yyn++; - break; + append: + default: + if (yyres) + yyres[yyn] = *yyp; + yyn++; + break; - case '"': - if (yyres) - yyres[yyn] = '\0'; - return yyn; - } - do_not_strip_quotes: ; + case '"': + if (yyres) + yyres[yyn] = '\0'; + return yyn; + } + do_not_strip_quotes:; } - if (! yyres) - return yystrlen (yystr); + if (!yyres) + return yystrlen(yystr); - return (YYSIZE_T) (yystpcpy (yyres, yystr) - yyres); + return (YYSIZE_T)(yystpcpy(yyres, yystr) - yyres); } -# endif +# endif /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message about the unexpected token YYTOKEN for the state stack whose top is @@ -2087,133 +1822,133 @@ yytnamerr (char *yyres, const char *yystr) not large enough to hold the message. In that case, also set *YYMSG_ALLOC to the required number of bytes. Return 2 if the required number of bytes is too large to store. */ -static int -yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, - yytype_int16 *yyssp, int yytoken) +static int yysyntax_error(YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken) { - YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); - YYSIZE_T yysize = yysize0; - enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; - /* Internationalized format string. */ - const char *yyformat = YY_NULLPTR; - /* Arguments of yyformat. */ - char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; - /* Number of reported tokens (one for the "unexpected", one per - "expected"). */ - int yycount = 0; - - /* There are many possibilities here to consider: - - If this state is a consistent state with a default action, then - the only way this function was invoked is if the default action - is an error action. In that case, don't check for expected - tokens because there are none. - - The only way there can be no lookahead present (in yychar) is if - this state is a consistent state with a default action. Thus, - detecting the absence of a lookahead is sufficient to determine - that there is no unexpected or expected token to report. In that - case, just report a simple "syntax error". - - Don't assume there isn't a lookahead just because this state is a - consistent state with a default action. There might have been a - previous inconsistent state, consistent state with a non-default - action, or user semantic action that manipulated yychar. - - Of course, the expected token list depends on states to have - correct lookahead information, and it depends on the parser not - to perform extra reductions after fetching a lookahead from the - scanner and before detecting a syntax error. Thus, state merging - (from LALR or IELR) and default reductions corrupt the expected - token list. However, the list is correct for canonical LR with - one exception: it will still contain any token that will not be - accepted due to an error action in a later state. - */ - if (yytoken != YYEMPTY) + YYSIZE_T yysize0 = yytnamerr(YY_NULLPTR, yytname[yytoken]); + YYSIZE_T yysize = yysize0; + enum { - int yyn = yypact[*yyssp]; - yyarg[yycount++] = yytname[yytoken]; - if (!yypact_value_is_default (yyn)) - { - /* Start YYX at -YYN if negative to avoid negative indexes in - YYCHECK. In other words, skip the first -YYN actions for - this state because they are default actions. */ - int yyxbegin = yyn < 0 ? -yyn : 0; - /* Stay within bounds of both yycheck and yytname. */ - int yychecklim = YYLAST - yyn + 1; - int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; - int yyx; + YYERROR_VERBOSE_ARGS_MAXIMUM = 5 + }; + /* Internationalized format string. */ + const char *yyformat = YY_NULLPTR; + /* Arguments of yyformat. */ + char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; + /* Number of reported tokens (one for the "unexpected", one per + "expected"). */ + int yycount = 0; - for (yyx = yyxbegin; yyx < yyxend; ++yyx) - if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR - && !yytable_value_is_error (yytable[yyx + yyn])) - { - if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) - { - yycount = 1; - yysize = yysize0; - break; - } - yyarg[yycount++] = yytname[yyx]; + /* There are many possibilities here to consider: + - If this state is a consistent state with a default action, then + the only way this function was invoked is if the default action + is an error action. In that case, don't check for expected + tokens because there are none. + - The only way there can be no lookahead present (in yychar) is if + this state is a consistent state with a default action. Thus, + detecting the absence of a lookahead is sufficient to determine + that there is no unexpected or expected token to report. In that + case, just report a simple "syntax error". + - Don't assume there isn't a lookahead just because this state is a + consistent state with a default action. There might have been a + previous inconsistent state, consistent state with a non-default + action, or user semantic action that manipulated yychar. + - Of course, the expected token list depends on states to have + correct lookahead information, and it depends on the parser not + to perform extra reductions after fetching a lookahead from the + scanner and before detecting a syntax error. Thus, state merging + (from LALR or IELR) and default reductions corrupt the expected + token list. However, the list is correct for canonical LR with + one exception: it will still contain any token that will not be + accepted due to an error action in a later state. + */ + if (yytoken != YYEMPTY) + { + int yyn = yypact[*yyssp]; + yyarg[yycount++] = yytname[yytoken]; + if (!yypact_value_is_default(yyn)) + { + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. In other words, skip the first -YYN actions for + this state because they are default actions. */ + int yyxbegin = yyn < 0 ? -yyn : 0; + /* Stay within bounds of both yycheck and yytname. */ + int yychecklim = YYLAST - yyn + 1; + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; + int yyx; + + for (yyx = yyxbegin; yyx < yyxend; ++yyx) + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR && + !yytable_value_is_error(yytable[yyx + yyn])) { - YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); - if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) - yysize = yysize1; - else - return 2; + if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) + { + yycount = 1; + yysize = yysize0; + break; + } + yyarg[yycount++] = yytname[yyx]; + { + YYSIZE_T yysize1 = yysize + yytnamerr(YY_NULLPTR, yytname[yyx]); + if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) + yysize = yysize1; + else + return 2; + } } - } } } - switch (yycount) + switch (yycount) { -# define YYCASE_(N, S) \ - case N: \ - yyformat = S; \ - break - default: /* Avoid compiler warnings. */ - YYCASE_(0, YY_("syntax error")); - YYCASE_(1, YY_("syntax error, unexpected %s")); - YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); - YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); - YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); - YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); -# undef YYCASE_ +# define YYCASE_(N, S) \ + case N: \ + yyformat = S; \ + break + default: /* Avoid compiler warnings. */ + YYCASE_(0, YY_("syntax error")); + YYCASE_(1, YY_("syntax error, unexpected %s")); + YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); + YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); + YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); + YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); +# undef YYCASE_ } - { - YYSIZE_T yysize1 = yysize + yystrlen (yyformat); - if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) - yysize = yysize1; - else - return 2; - } - - if (*yymsg_alloc < yysize) { - *yymsg_alloc = 2 * yysize; - if (! (yysize <= *yymsg_alloc - && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) - *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; - return 1; + YYSIZE_T yysize1 = yysize + yystrlen(yyformat); + if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM) + yysize = yysize1; + else + return 2; } - /* Avoid sprintf, as that infringes on the user's name space. - Don't have undefined behavior even if the translation - produced a string with the wrong number of "%s"s. */ - { - char *yyp = *yymsg; - int yyi = 0; - while ((*yyp = *yyformat) != '\0') - if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) - { - yyp += yytnamerr (yyp, yyarg[yyi++]); - yyformat += 2; - } - else - { - yyp++; - yyformat++; - } - } - return 0; + if (*yymsg_alloc < yysize) + { + *yymsg_alloc = 2 * yysize; + if (!(yysize <= *yymsg_alloc && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) + *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; + return 1; + } + + /* Avoid sprintf, as that infringes on the user's name space. + Don't have undefined behavior even if the translation + produced a string with the wrong number of "%s"s. */ + { + char *yyp = *yymsg; + int yyi = 0; + while ((*yyp = *yyformat) != '\0') + if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) + { + yyp += yytnamerr(yyp, yyarg[yyi++]); + yyformat += 2; + } + else + { + yyp++; + yyformat++; + } + } + return 0; } #endif /* YYERROR_VERBOSE */ @@ -2221,49 +1956,51 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, | Release the memory associated to this symbol. | `-----------------------------------------------*/ -static void -yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp, TParseContext* context, void *scanner) +static void yydestruct(const char *yymsg, + int yytype, + YYSTYPE *yyvaluep, + YYLTYPE *yylocationp, + TParseContext *context, + void *scanner) { - YYUSE (yyvaluep); - YYUSE (yylocationp); - YYUSE (context); - YYUSE (scanner); - if (!yymsg) - yymsg = "Deleting"; - YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); + YYUSE(yyvaluep); + YYUSE(yylocationp); + YYUSE(context); + YYUSE(scanner); + if (!yymsg) + yymsg = "Deleting"; + YY_SYMBOL_PRINT(yymsg, yytype, yyvaluep, yylocationp); - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - YYUSE (yytype); - YY_IGNORE_MAYBE_UNINITIALIZED_END + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + YYUSE(yytype); + YY_IGNORE_MAYBE_UNINITIALIZED_END } - - - /*----------. | yyparse. | `----------*/ -int -yyparse (TParseContext* context, void *scanner) +int yyparse(TParseContext *context, void *scanner) { -/* The lookahead symbol. */ -int yychar; + /* The lookahead symbol. */ + int yychar; + /* The semantic value of the lookahead symbol. */ + /* Default value used for initialization, for pacifying older GCCs + or non-GCC compilers. */ + YY_INITIAL_VALUE(static YYSTYPE yyval_default;) + YYSTYPE yylval YY_INITIAL_VALUE(= yyval_default); -/* The semantic value of the lookahead symbol. */ -/* Default value used for initialization, for pacifying older GCCs - or non-GCC compilers. */ -YY_INITIAL_VALUE (static YYSTYPE yyval_default;) -YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); - -/* Location data for the lookahead symbol. */ -static YYLTYPE yyloc_default -# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL - = { 1, 1, 1, 1 } -# endif -; -YYLTYPE yylloc = yyloc_default; + /* Location data for the lookahead symbol. */ + static YYLTYPE yyloc_default +#if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL + = { 1, + 1, + 1, + 1 } +#endif + ; + YYLTYPE yylloc = yyloc_default; /* Number of syntax errors so far. */ int yynerrs; @@ -2300,2934 +2037,3160 @@ YYLTYPE yylloc = yyloc_default; YYSIZE_T yystacksize; - int yyn; - int yyresult; - /* Lookahead token as an internal (translated) token number. */ - int yytoken = 0; - /* The variables used to return semantic value and location from the - action routines. */ - YYSTYPE yyval; - YYLTYPE yyloc; + int yyn; + int yyresult; + /* Lookahead token as an internal (translated) token number. */ + int yytoken = 0; + /* The variables used to return semantic value and location from the + action routines. */ + YYSTYPE yyval; + YYLTYPE yyloc; #if YYERROR_VERBOSE - /* Buffer for error messages, and its allocated size. */ - char yymsgbuf[128]; - char *yymsg = yymsgbuf; - YYSIZE_T yymsg_alloc = sizeof yymsgbuf; + /* Buffer for error messages, and its allocated size. */ + char yymsgbuf[128]; + char *yymsg = yymsgbuf; + YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif -#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) +#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) - /* The number of symbols on the RHS of the reduced rule. - Keep to zero when no symbol should be popped. */ - int yylen = 0; + /* The number of symbols on the RHS of the reduced rule. + Keep to zero when no symbol should be popped. */ + int yylen = 0; - yyssp = yyss = yyssa; - yyvsp = yyvs = yyvsa; - yylsp = yyls = yylsa; - yystacksize = YYINITDEPTH; + yyssp = yyss = yyssa; + yyvsp = yyvs = yyvsa; + yylsp = yyls = yylsa; + yystacksize = YYINITDEPTH; - YYDPRINTF ((stderr, "Starting parse\n")); - - yystate = 0; - yyerrstatus = 0; - yynerrs = 0; - yychar = YYEMPTY; /* Cause a token to be read. */ - yylsp[0] = yylloc; - goto yysetstate; + YYDPRINTF((stderr, "Starting parse\n")); + yystate = 0; + yyerrstatus = 0; + yynerrs = 0; + yychar = YYEMPTY; /* Cause a token to be read. */ + yylsp[0] = yylloc; + goto yysetstate; /*------------------------------------------------------------. | yynewstate -- push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: - /* In all cases, when you get here, the value and location stacks - have just been pushed. So pushing a state here evens the stacks. */ - yyssp++; - + /* In all cases, when you get here, the value and location stacks + have just been pushed. So pushing a state here evens the stacks. */ + yyssp++; /*--------------------------------------------------------------------. | yynewstate -- set current state (the top of the stack) to yystate. | `--------------------------------------------------------------------*/ yysetstate: - *yyssp = (yytype_int16) yystate; + *yyssp = (yytype_int16)yystate; - if (yyss + yystacksize - 1 <= yyssp) + if (yyss + yystacksize - 1 <= yyssp) #if !defined yyoverflow && !defined YYSTACK_RELOCATE - goto yyexhaustedlab; + goto yyexhaustedlab; #else { - /* Get the current used size of the three stacks, in elements. */ - YYSIZE_T yysize = (YYSIZE_T) (yyssp - yyss + 1); + /* Get the current used size of the three stacks, in elements. */ + YYSIZE_T yysize = (YYSIZE_T)(yyssp - yyss + 1); -# if defined yyoverflow - { - /* Give user a chance to reallocate the stack. Use copies of - these so that the &'s don't force the real ones into - memory. */ - YYSTYPE *yyvs1 = yyvs; - yytype_int16 *yyss1 = yyss; - YYLTYPE *yyls1 = yyls; +# if defined yyoverflow + { + /* Give user a chance to reallocate the stack. Use copies of + these so that the &'s don't force the real ones into + memory. */ + YYSTYPE *yyvs1 = yyvs; + yytype_int16 *yyss1 = yyss; + YYLTYPE *yyls1 = yyls; - /* Each stack pointer address is followed by the size of the - data in use in that stack, in bytes. This used to be a - conditional around just the two extra args, but that might - be undefined if yyoverflow is a macro. */ - yyoverflow (YY_("memory exhausted"), - &yyss1, yysize * sizeof (*yyssp), - &yyvs1, yysize * sizeof (*yyvsp), - &yyls1, yysize * sizeof (*yylsp), - &yystacksize); - yyss = yyss1; - yyvs = yyvs1; - yyls = yyls1; - } -# else /* defined YYSTACK_RELOCATE */ - /* Extend the stack our own way. */ - if (YYMAXDEPTH <= yystacksize) - goto yyexhaustedlab; - yystacksize *= 2; - if (YYMAXDEPTH < yystacksize) - yystacksize = YYMAXDEPTH; + /* Each stack pointer address is followed by the size of the + data in use in that stack, in bytes. This used to be a + conditional around just the two extra args, but that might + be undefined if yyoverflow is a macro. */ + yyoverflow(YY_("memory exhausted"), &yyss1, yysize * sizeof(*yyssp), &yyvs1, + yysize * sizeof(*yyvsp), &yyls1, yysize * sizeof(*yylsp), &yystacksize); + yyss = yyss1; + yyvs = yyvs1; + yyls = yyls1; + } +# else /* defined YYSTACK_RELOCATE */ + /* Extend the stack our own way. */ + if (YYMAXDEPTH <= yystacksize) + goto yyexhaustedlab; + yystacksize *= 2; + if (YYMAXDEPTH < yystacksize) + yystacksize = YYMAXDEPTH; - { - yytype_int16 *yyss1 = yyss; - union yyalloc *yyptr = - (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); - if (! yyptr) - goto yyexhaustedlab; - YYSTACK_RELOCATE (yyss_alloc, yyss); - YYSTACK_RELOCATE (yyvs_alloc, yyvs); - YYSTACK_RELOCATE (yyls_alloc, yyls); -# undef YYSTACK_RELOCATE - if (yyss1 != yyssa) - YYSTACK_FREE (yyss1); - } -# endif + { + yytype_int16 *yyss1 = yyss; + union yyalloc *yyptr = (union yyalloc *)YYSTACK_ALLOC(YYSTACK_BYTES(yystacksize)); + if (!yyptr) + goto yyexhaustedlab; + YYSTACK_RELOCATE(yyss_alloc, yyss); + YYSTACK_RELOCATE(yyvs_alloc, yyvs); + YYSTACK_RELOCATE(yyls_alloc, yyls); +# undef YYSTACK_RELOCATE + if (yyss1 != yyssa) + YYSTACK_FREE(yyss1); + } +# endif - yyssp = yyss + yysize - 1; - yyvsp = yyvs + yysize - 1; - yylsp = yyls + yysize - 1; + yyssp = yyss + yysize - 1; + yyvsp = yyvs + yysize - 1; + yylsp = yyls + yysize - 1; - YYDPRINTF ((stderr, "Stack size increased to %lu\n", - (unsigned long) yystacksize)); + YYDPRINTF((stderr, "Stack size increased to %lu\n", (unsigned long)yystacksize)); - if (yyss + yystacksize - 1 <= yyssp) - YYABORT; + if (yyss + yystacksize - 1 <= yyssp) + YYABORT; } #endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */ - YYDPRINTF ((stderr, "Entering state %d\n", yystate)); + YYDPRINTF((stderr, "Entering state %d\n", yystate)); - if (yystate == YYFINAL) - YYACCEPT; - - goto yybackup; + if (yystate == YYFINAL) + YYACCEPT; + goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: - /* Do appropriate processing given the current state. Read a - lookahead token if we need one and don't already have one. */ + /* Do appropriate processing given the current state. Read a + lookahead token if we need one and don't already have one. */ - /* First try to decide what to do without reference to lookahead token. */ - yyn = yypact[yystate]; - if (yypact_value_is_default (yyn)) - goto yydefault; + /* First try to decide what to do without reference to lookahead token. */ + yyn = yypact[yystate]; + if (yypact_value_is_default(yyn)) + goto yydefault; - /* Not known => get a lookahead token if don't already have one. */ + /* Not known => get a lookahead token if don't already have one. */ - /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ - if (yychar == YYEMPTY) + /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ + if (yychar == YYEMPTY) { - YYDPRINTF ((stderr, "Reading a token: ")); - yychar = yylex (&yylval, &yylloc, scanner); + YYDPRINTF((stderr, "Reading a token: ")); + yychar = yylex(&yylval, &yylloc, scanner); } - if (yychar <= YYEOF) + if (yychar <= YYEOF) { - yychar = yytoken = YYEOF; - YYDPRINTF ((stderr, "Now at end of input.\n")); + yychar = yytoken = YYEOF; + YYDPRINTF((stderr, "Now at end of input.\n")); } - else + else { - yytoken = YYTRANSLATE (yychar); - YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); + yytoken = YYTRANSLATE(yychar); + YY_SYMBOL_PRINT("Next token is", yytoken, &yylval, &yylloc); } - /* If the proper action on seeing token YYTOKEN is to reduce or to - detect an error, take that action. */ - yyn += yytoken; - if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) - goto yydefault; - yyn = yytable[yyn]; - if (yyn <= 0) + /* If the proper action on seeing token YYTOKEN is to reduce or to + detect an error, take that action. */ + yyn += yytoken; + if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) + goto yydefault; + yyn = yytable[yyn]; + if (yyn <= 0) { - if (yytable_value_is_error (yyn)) - goto yyerrlab; - yyn = -yyn; - goto yyreduce; + if (yytable_value_is_error(yyn)) + goto yyerrlab; + yyn = -yyn; + goto yyreduce; } - /* Count tokens shifted since error; after three, turn off error - status. */ - if (yyerrstatus) - yyerrstatus--; + /* Count tokens shifted since error; after three, turn off error + status. */ + if (yyerrstatus) + yyerrstatus--; - /* Shift the lookahead token. */ - YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); + /* Shift the lookahead token. */ + YY_SYMBOL_PRINT("Shifting", yytoken, &yylval, &yylloc); - /* Discard the shifted token. */ - yychar = YYEMPTY; - - yystate = yyn; - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - *++yyvsp = yylval; - YY_IGNORE_MAYBE_UNINITIALIZED_END - *++yylsp = yylloc; - goto yynewstate; + /* Discard the shifted token. */ + yychar = YYEMPTY; + yystate = yyn; + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END + *++yylsp = yylloc; + goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: - yyn = yydefact[yystate]; - if (yyn == 0) - goto yyerrlab; - goto yyreduce; - + yyn = yydefact[yystate]; + if (yyn == 0) + goto yyerrlab; + goto yyreduce; /*-----------------------------. | yyreduce -- do a reduction. | `-----------------------------*/ yyreduce: - /* yyn is the number of a rule to reduce with. */ - yylen = yyr2[yyn]; + /* yyn is the number of a rule to reduce with. */ + yylen = yyr2[yyn]; - /* If YYLEN is nonzero, implement the default value of the action: - '$$ = $1'. + /* If YYLEN is nonzero, implement the default value of the action: + '$$ = $1'. - Otherwise, the following line sets YYVAL to garbage. - This behavior is undocumented and Bison - users should not rely upon it. Assigning to YYVAL - unconditionally makes the parser a bit smaller, and it avoids a - GCC warning that YYVAL may be used uninitialized. */ - yyval = yyvsp[1-yylen]; + Otherwise, the following line sets YYVAL to garbage. + This behavior is undocumented and Bison + users should not rely upon it. Assigning to YYVAL + unconditionally makes the parser a bit smaller, and it avoids a + GCC warning that YYVAL may be used uninitialized. */ + yyval = yyvsp[1 - yylen]; - /* Default location. */ - YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); - yyerror_range[1] = yyloc; - YY_REDUCE_PRINT (yyn); - switch (yyn) + /* Default location. */ + YYLLOC_DEFAULT(yyloc, (yylsp - yylen), yylen); + yyerror_range[1] = yyloc; + YY_REDUCE_PRINT(yyn); + switch (yyn) { case 4: - { - // The symbol table search was done in the lexical phase - (yyval.interm.intermTypedNode) = context->parseVariableIdentifier((yylsp[0]), ImmutableString((yyvsp[0].lex).string), (yyvsp[0].lex).symbol); - } - - break; - - case 5: - - { - (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); - } - - break; - - case 6: - - { - TConstantUnion *unionArray = new TConstantUnion[1]; - unionArray->setIConst((yyvsp[0].lex).i); - (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); - } - - break; - - case 7: - - { - TConstantUnion *unionArray = new TConstantUnion[1]; - unionArray->setUConst((yyvsp[0].lex).u); - (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); - } - - break; - - case 8: - - { - TConstantUnion *unionArray = new TConstantUnion[1]; - unionArray->setFConst((yyvsp[0].lex).f); - (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); - } - - break; - - case 9: - - { - TConstantUnion *unionArray = new TConstantUnion[1]; - unionArray->setBConst((yyvsp[0].lex).b); - (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); - } - - break; - - case 10: - - { - if (!context->checkCanUseExtension((yylsp[0]), TExtension::EXT_YUV_target)) { - context->error((yylsp[0]), "unsupported value", ImmutableString((yyvsp[0].lex).string)); + // The symbol table search was done in the lexical phase + (yyval.interm.intermTypedNode) = context->parseVariableIdentifier( + (yylsp[0]), ImmutableString((yyvsp[0].lex).string), (yyvsp[0].lex).symbol); } - TConstantUnion *unionArray = new TConstantUnion[1]; - unionArray->setYuvCscStandardEXTConst(getYuvCscStandardEXT(ImmutableString((yyvsp[0].lex).string))); - (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); - } - break; + break; - case 11: + case 5: - { - (yyval.interm.intermTypedNode) = (yyvsp[-1].interm.intermTypedNode); - } - - break; - - case 12: - - { - (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); - } - - break; - - case 13: - - { - (yyval.interm.intermTypedNode) = context->addIndexExpression((yyvsp[-3].interm.intermTypedNode), (yylsp[-2]), (yyvsp[-1].interm.intermTypedNode)); - } - - break; - - case 14: - - { - (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); - } - - break; - - case 15: - - { - (yyval.interm.intermTypedNode) = context->addFieldSelectionExpression((yyvsp[-2].interm.intermTypedNode), (yylsp[-1]), ImmutableString((yyvsp[0].lex).string), (yylsp[0])); - } - - break; - - case 16: - - { - (yyval.interm.intermTypedNode) = context->addUnaryMathLValue(EOpPostIncrement, (yyvsp[-1].interm.intermTypedNode), (yylsp[0])); - } - - break; - - case 17: - - { - (yyval.interm.intermTypedNode) = context->addUnaryMathLValue(EOpPostDecrement, (yyvsp[-1].interm.intermTypedNode), (yylsp[0])); - } - - break; - - case 18: - - { - context->checkIsScalarInteger((yyvsp[0].interm.intermTypedNode), "[]"); - (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); - } - - break; - - case 19: - - { - (yyval.interm.intermTypedNode) = context->addFunctionCallOrMethod((yyvsp[0].interm.functionLookup), (yylsp[0])); - } - - break; - - case 20: - - { - (yyval.interm.functionLookup) = (yyvsp[0].interm.functionLookup); - } - - break; - - case 21: - - { - ES3_OR_NEWER("", (yylsp[0]), "methods"); - (yyval.interm.functionLookup) = (yyvsp[0].interm.functionLookup); - (yyval.interm.functionLookup)->setThisNode((yyvsp[-2].interm.intermTypedNode)); - } - - break; - - case 22: - - { - (yyval.interm.functionLookup) = (yyvsp[-1].interm.functionLookup); - } - - break; - - case 23: - - { - (yyval.interm.functionLookup) = (yyvsp[-1].interm.functionLookup); - } - - break; - - case 24: - - { - (yyval.interm.functionLookup) = (yyvsp[-1].interm.functionLookup); - } - - break; - - case 25: - - { - (yyval.interm.functionLookup) = (yyvsp[0].interm.functionLookup); - } - - break; - - case 26: - - { - (yyval.interm.functionLookup) = (yyvsp[-1].interm.functionLookup); - (yyval.interm.functionLookup)->addArgument((yyvsp[0].interm.intermTypedNode)); - } - - break; - - case 27: - - { - (yyval.interm.functionLookup) = (yyvsp[-2].interm.functionLookup); - (yyval.interm.functionLookup)->addArgument((yyvsp[0].interm.intermTypedNode)); - } - - break; - - case 28: - - { - (yyval.interm.functionLookup) = (yyvsp[-1].interm.functionLookup); - } - - break; - - case 29: - - { - (yyval.interm.functionLookup) = context->addConstructorFunc((yyvsp[0].interm.type)); - } - - break; - - case 30: - - { - (yyval.interm.functionLookup) = context->addNonConstructorFunc(ImmutableString((yyvsp[0].lex).string), (yyvsp[0].lex).symbol); - } - - break; - - case 31: - - { - (yyval.interm.functionLookup) = context->addNonConstructorFunc(ImmutableString((yyvsp[0].lex).string), (yyvsp[0].lex).symbol); - } - - break; - - case 32: - - { - (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); - } - - break; - - case 33: - - { - (yyval.interm.intermTypedNode) = context->addUnaryMathLValue(EOpPreIncrement, (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 34: - - { - (yyval.interm.intermTypedNode) = context->addUnaryMathLValue(EOpPreDecrement, (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 35: - - { - (yyval.interm.intermTypedNode) = context->addUnaryMath((yyvsp[-1].interm.op), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 36: - - { (yyval.interm.op) = EOpPositive; } - - break; - - case 37: - - { (yyval.interm.op) = EOpNegative; } - - break; - - case 38: - - { (yyval.interm.op) = EOpLogicalNot; } - - break; - - case 39: - - { - ES3_OR_NEWER("~", (yyloc), "bit-wise operator"); - (yyval.interm.op) = EOpBitwiseNot; - } - - break; - - case 40: - - { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - - break; - - case 41: - - { - (yyval.interm.intermTypedNode) = context->addBinaryMath(EOpMul, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 42: - - { - (yyval.interm.intermTypedNode) = context->addBinaryMath(EOpDiv, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 43: - - { - ES3_OR_NEWER("%", (yylsp[-1]), "integer modulus operator"); - (yyval.interm.intermTypedNode) = context->addBinaryMath(EOpIMod, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 44: - - { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - - break; - - case 45: - - { - (yyval.interm.intermTypedNode) = context->addBinaryMath(EOpAdd, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 46: - - { - (yyval.interm.intermTypedNode) = context->addBinaryMath(EOpSub, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 47: - - { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - - break; - - case 48: - - { - ES3_OR_NEWER("<<", (yylsp[-1]), "bit-wise operator"); - (yyval.interm.intermTypedNode) = context->addBinaryMath(EOpBitShiftLeft, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 49: - - { - ES3_OR_NEWER(">>", (yylsp[-1]), "bit-wise operator"); - (yyval.interm.intermTypedNode) = context->addBinaryMath(EOpBitShiftRight, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 50: - - { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - - break; - - case 51: - - { - (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult(EOpLessThan, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 52: - - { - (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult(EOpGreaterThan, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 53: - - { - (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult(EOpLessThanEqual, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 54: - - { - (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult(EOpGreaterThanEqual, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 55: - - { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - - break; - - case 56: - - { - (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult(EOpEqual, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 57: - - { - (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult(EOpNotEqual, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 58: - - { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - - break; - - case 59: - - { - ES3_OR_NEWER("&", (yylsp[-1]), "bit-wise operator"); - (yyval.interm.intermTypedNode) = context->addBinaryMath(EOpBitwiseAnd, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 60: - - { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - - break; - - case 61: - - { - ES3_OR_NEWER("^", (yylsp[-1]), "bit-wise operator"); - (yyval.interm.intermTypedNode) = context->addBinaryMath(EOpBitwiseXor, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 62: - - { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - - break; - - case 63: - - { - ES3_OR_NEWER("|", (yylsp[-1]), "bit-wise operator"); - (yyval.interm.intermTypedNode) = context->addBinaryMath(EOpBitwiseOr, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 64: - - { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - - break; - - case 65: - - { - (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult(EOpLogicalAnd, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 66: - - { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - - break; - - case 67: - - { - (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult(EOpLogicalXor, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 68: - - { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - - break; - - case 69: - - { - (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult(EOpLogicalOr, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 70: - - { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - - break; - - case 71: - - { - (yyval.interm.intermTypedNode) = context->addTernarySelection((yyvsp[-4].interm.intermTypedNode), (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-3])); - } - - break; - - case 72: - - { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - - break; - - case 73: - - { - (yyval.interm.intermTypedNode) = context->addAssign((yyvsp[-1].interm.op), (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 74: - - { (yyval.interm.op) = EOpAssign; } - - break; - - case 75: - - { (yyval.interm.op) = EOpMulAssign; } - - break; - - case 76: - - { (yyval.interm.op) = EOpDivAssign; } - - break; - - case 77: - - { - ES3_OR_NEWER("%=", (yyloc), "integer modulus operator"); - (yyval.interm.op) = EOpIModAssign; - } - - break; - - case 78: - - { (yyval.interm.op) = EOpAddAssign; } - - break; - - case 79: - - { (yyval.interm.op) = EOpSubAssign; } - - break; - - case 80: - - { - ES3_OR_NEWER("<<=", (yyloc), "bit-wise operator"); - (yyval.interm.op) = EOpBitShiftLeftAssign; - } - - break; - - case 81: - - { - ES3_OR_NEWER(">>=", (yyloc), "bit-wise operator"); - (yyval.interm.op) = EOpBitShiftRightAssign; - } - - break; - - case 82: - - { - ES3_OR_NEWER("&=", (yyloc), "bit-wise operator"); - (yyval.interm.op) = EOpBitwiseAndAssign; - } - - break; - - case 83: - - { - ES3_OR_NEWER("^=", (yyloc), "bit-wise operator"); - (yyval.interm.op) = EOpBitwiseXorAssign; - } - - break; - - case 84: - - { - ES3_OR_NEWER("|=", (yyloc), "bit-wise operator"); - (yyval.interm.op) = EOpBitwiseOrAssign; - } - - break; - - case 85: - - { - (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); - } - - break; - - case 86: - - { - (yyval.interm.intermTypedNode) = context->addComma((yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); - } - - break; - - case 87: - - { - context->checkIsConst((yyvsp[0].interm.intermTypedNode)); - (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); - } - - break; - - case 88: - - { - context->enterStructDeclaration((yylsp[-1]), ImmutableString((yyvsp[-1].lex).string)); - (yyval.lex) = (yyvsp[-1].lex); - } - - break; - - case 89: - - { - (yyval.interm.intermNode) = context->addFunctionPrototypeDeclaration(*((yyvsp[-1].interm).function), (yylsp[-1])); - } - - break; - - case 90: - - { - (yyval.interm.intermNode) = (yyvsp[-1].interm).intermDeclaration; - } - - break; - - case 91: - - { - context->parseDefaultPrecisionQualifier((yyvsp[-2].interm.precision), (yyvsp[-1].interm.type), (yylsp[-3])); - (yyval.interm.intermNode) = nullptr; - } - - break; - - case 92: - - { - ES3_OR_NEWER(ImmutableString((yyvsp[-3].lex).string), (yylsp[-4]), "interface blocks"); - (yyval.interm.intermNode) = context->addInterfaceBlock(*(yyvsp[-4].interm.typeQualifierBuilder), (yylsp[-3]), ImmutableString((yyvsp[-3].lex).string), (yyvsp[-2].interm.fieldList), kEmptyImmutableString, (yyloc), NULL, (yyloc)); - } - - break; - - case 93: - - { - ES3_OR_NEWER(ImmutableString((yyvsp[-4].lex).string), (yylsp[-5]), "interface blocks"); - (yyval.interm.intermNode) = context->addInterfaceBlock(*(yyvsp[-5].interm.typeQualifierBuilder), (yylsp[-4]), ImmutableString((yyvsp[-4].lex).string), (yyvsp[-3].interm.fieldList), ImmutableString((yyvsp[-1].lex).string), (yylsp[-1]), NULL, (yyloc)); - } - - break; - - case 94: - - { - ES3_OR_NEWER(ImmutableString((yyvsp[-7].lex).string), (yylsp[-8]), "interface blocks"); - (yyval.interm.intermNode) = context->addInterfaceBlock(*(yyvsp[-8].interm.typeQualifierBuilder), (yylsp[-7]), ImmutableString((yyvsp[-7].lex).string), (yyvsp[-6].interm.fieldList), ImmutableString((yyvsp[-4].lex).string), (yylsp[-4]), (yyvsp[-2].interm.intermTypedNode), (yylsp[-3])); - } - - break; - - case 95: - - { - context->parseGlobalLayoutQualifier(*(yyvsp[-1].interm.typeQualifierBuilder)); - (yyval.interm.intermNode) = nullptr; - } - - break; - - case 96: - - { - (yyval.interm.intermNode) = context->parseGlobalQualifierDeclaration(*(yyvsp[-2].interm.typeQualifierBuilder), (yylsp[-1]), ImmutableString((yyvsp[-1].lex).string), (yyvsp[-1].lex).symbol); - } - - break; - - case 97: - - { - (yyval.interm).function = context->parseFunctionDeclarator((yylsp[0]), (yyvsp[-1].interm.function)); - context->exitFunctionDeclaration(); - } - - break; - - case 98: - - { - (yyval.interm.function) = (yyvsp[0].interm.function); - } - - break; - - case 99: - - { - (yyval.interm.function) = (yyvsp[0].interm.function); - } - - break; - - case 100: - - { - // Add the parameter - (yyval.interm.function) = (yyvsp[-1].interm.function); - if ((yyvsp[0].interm.param).type->getBasicType() != EbtVoid) { - (yyvsp[-1].interm.function)->addParameter((yyvsp[0].interm.param).createVariable(&context->symbolTable)); + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - } - break; + break; - case 101: + case 6: - { - (yyval.interm.function) = (yyvsp[-2].interm.function); - // Only first parameter of one-parameter functions can be void - // The check for named parameters not being void is done in parameter_declarator - if ((yyvsp[0].interm.param).type->getBasicType() == EbtVoid) { - // This parameter > first is void - context->error((yylsp[-1]), "cannot be a parameter type except for '(void)'", "void"); + TConstantUnion *unionArray = new TConstantUnion[1]; + unionArray->setIConst((yyvsp[0].lex).i); + (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); } - else + + break; + + case 7: + { - (yyvsp[-2].interm.function)->addParameter((yyvsp[0].interm.param).createVariable(&context->symbolTable)); + TConstantUnion *unionArray = new TConstantUnion[1]; + unionArray->setUConst((yyvsp[0].lex).u); + (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); } - } - break; + break; - case 102: + case 8: - { - (yyval.interm.function) = context->parseFunctionHeader((yyvsp[-2].interm.type), ImmutableString((yyvsp[-1].lex).string), (yylsp[-1])); - - context->symbolTable.push(); - context->enterFunctionDeclaration(); - } - - break; - - case 103: - - { - (yyval.interm.param) = context->parseParameterDeclarator((yyvsp[-1].interm.type), ImmutableString((yyvsp[0].lex).string), (yylsp[0])); - } - - break; - - case 104: - - { - (yyval.interm.param) = context->parseParameterArrayDeclarator(ImmutableString((yyvsp[-1].lex).string), (yylsp[-1]), *((yyvsp[0].interm.arraySizes)), (yylsp[0]), &(yyvsp[-2].interm.type)); - } - - break; - - case 105: - - { - (yyval.interm.param) = (yyvsp[0].interm.param); - context->checkIsParameterQualifierValid((yylsp[0]), *(yyvsp[-1].interm.typeQualifierBuilder), (yyvsp[0].interm.param).type); - } - - break; - - case 106: - - { - (yyval.interm.param) = (yyvsp[0].interm.param); - (yyval.interm.param).type->setQualifier(EvqIn); - } - - break; - - case 107: - - { - (yyval.interm.param) = (yyvsp[0].interm.param); - context->checkIsParameterQualifierValid((yylsp[0]), *(yyvsp[-1].interm.typeQualifierBuilder), (yyvsp[0].interm.param).type); - } - - break; - - case 108: - - { - (yyval.interm.param) = (yyvsp[0].interm.param); - (yyval.interm.param).type->setQualifier(EvqIn); - } - - break; - - case 109: - - { - TParameter param = { 0, new TType((yyvsp[0].interm.type)) }; - (yyval.interm.param) = param; - } - - break; - - case 110: - - { - (yyval.interm) = (yyvsp[0].interm); - } - - break; - - case 111: - - { - (yyval.interm) = (yyvsp[-2].interm); - context->parseDeclarator((yyval.interm).type, (yylsp[0]), ImmutableString((yyvsp[0].lex).string), (yyval.interm).intermDeclaration); - } - - break; - - case 112: - - { - (yyval.interm) = (yyvsp[-3].interm); - context->parseArrayDeclarator((yyval.interm).type, (yylsp[-1]), ImmutableString((yyvsp[-1].lex).string), (yylsp[0]), *((yyvsp[0].interm.arraySizes)), (yyval.interm).intermDeclaration); - } - - break; - - case 113: - - { - ES3_OR_NEWER("=", (yylsp[-1]), "first-class arrays (array initializer)"); - (yyval.interm) = (yyvsp[-5].interm); - context->parseArrayInitDeclarator((yyval.interm).type, (yylsp[-3]), ImmutableString((yyvsp[-3].lex).string), (yylsp[-2]), *((yyvsp[-2].interm.arraySizes)), (yylsp[-1]), (yyvsp[0].interm.intermTypedNode), (yyval.interm).intermDeclaration); - } - - break; - - case 114: - - { - (yyval.interm) = (yyvsp[-4].interm); - context->parseInitDeclarator((yyval.interm).type, (yylsp[-2]), ImmutableString((yyvsp[-2].lex).string), (yylsp[-1]), (yyvsp[0].interm.intermTypedNode), (yyval.interm).intermDeclaration); - } - - break; - - case 115: - - { - (yyval.interm).type = (yyvsp[0].interm.type); - (yyval.interm).intermDeclaration = context->parseSingleDeclaration((yyval.interm).type, (yylsp[0]), kEmptyImmutableString); - } - - break; - - case 116: - - { - (yyval.interm).type = (yyvsp[-1].interm.type); - (yyval.interm).intermDeclaration = context->parseSingleDeclaration((yyval.interm).type, (yylsp[0]), ImmutableString((yyvsp[0].lex).string)); - } - - break; - - case 117: - - { - (yyval.interm).type = (yyvsp[-2].interm.type); - (yyval.interm).intermDeclaration = context->parseSingleArrayDeclaration((yyval.interm).type, (yylsp[-1]), ImmutableString((yyvsp[-1].lex).string), (yylsp[0]), *((yyvsp[0].interm.arraySizes))); - } - - break; - - case 118: - - { - ES3_OR_NEWER("[]", (yylsp[-2]), "first-class arrays (array initializer)"); - (yyval.interm).type = (yyvsp[-4].interm.type); - (yyval.interm).intermDeclaration = context->parseSingleArrayInitDeclaration((yyval.interm).type, (yylsp[-3]), ImmutableString((yyvsp[-3].lex).string), (yylsp[-2]), *((yyvsp[-2].interm.arraySizes)), (yylsp[-1]), (yyvsp[0].interm.intermTypedNode)); - } - - break; - - case 119: - - { - (yyval.interm).type = (yyvsp[-3].interm.type); - (yyval.interm).intermDeclaration = context->parseSingleInitDeclaration((yyval.interm).type, (yylsp[-2]), ImmutableString((yyvsp[-2].lex).string), (yylsp[-1]), (yyvsp[0].interm.intermTypedNode)); - } - - break; - - case 120: - - { - context->addFullySpecifiedType(&(yyvsp[0].interm.type)); - (yyval.interm.type) = (yyvsp[0].interm.type); - } - - break; - - case 121: - - { - (yyval.interm.type) = context->addFullySpecifiedType(*(yyvsp[-1].interm.typeQualifierBuilder), (yyvsp[0].interm.type)); - } - - break; - - case 122: - - { - (yyval.interm.qualifier) = EvqSmooth; - } - - break; - - case 123: - - { - (yyval.interm.qualifier) = EvqFlat; - } - - break; - - case 124: - - { - (yyval.interm.typeQualifierBuilder) = context->createTypeQualifierBuilder((yylsp[0])); - (yyval.interm.typeQualifierBuilder)->appendQualifier((yyvsp[0].interm.qualifierWrapper)); - } - - break; - - case 125: - - { - (yyval.interm.typeQualifierBuilder) = (yyvsp[-1].interm.typeQualifierBuilder); - (yyval.interm.typeQualifierBuilder)->appendQualifier((yyvsp[0].interm.qualifierWrapper)); - } - - break; - - case 126: - - { - // empty - } - - break; - - case 127: - - { - // empty - } - - break; - - case 128: - - { - context->checkLocalVariableConstStorageQualifier(*(yyvsp[0].interm.qualifierWrapper)); - (yyval.interm.qualifierWrapper) = (yyvsp[0].interm.qualifierWrapper); - } - - break; - - case 129: - - { - context->checkIsAtGlobalLevel((yylsp[0]), "layout"); - (yyval.interm.qualifierWrapper) = new TLayoutQualifierWrapper((yyvsp[0].interm.layoutQualifier), (yylsp[0])); - } - - break; - - case 130: - - { - (yyval.interm.qualifierWrapper) = new TPrecisionQualifierWrapper((yyvsp[0].interm.precision), (yylsp[0])); - } - - break; - - case 131: - - { - (yyval.interm.qualifierWrapper) = new TInterpolationQualifierWrapper((yyvsp[0].interm.qualifier), (yylsp[0])); - } - - break; - - case 132: - - { - context->checkIsAtGlobalLevel((yylsp[0]), "invariant"); - (yyval.interm.qualifierWrapper) = new TInvariantQualifierWrapper((yylsp[0])); - } - - break; - - case 133: - - { - (yyval.interm.qualifierWrapper) = new TPreciseQualifierWrapper((yylsp[0])); - } - - break; - - case 134: - - { - VERTEX_ONLY("attribute", (yylsp[0])); - ES2_ONLY("attribute", (yylsp[0])); - (yyval.interm.qualifierWrapper) = context->parseGlobalStorageQualifier(EvqAttribute, (yylsp[0])); - } - - break; - - case 135: - - { - ES2_ONLY("varying", (yylsp[0])); - (yyval.interm.qualifierWrapper) = context->parseVaryingQualifier((yylsp[0])); - } - - break; - - case 136: - - { - (yyval.interm.qualifierWrapper) = new TStorageQualifierWrapper(EvqConst, (yylsp[0])); - } - - break; - - case 137: - - { - (yyval.interm.qualifierWrapper) = context->parseInQualifier((yylsp[0])); - } - - break; - - case 138: - - { - (yyval.interm.qualifierWrapper) = context->parseOutQualifier((yylsp[0])); - } - - break; - - case 139: - - { - (yyval.interm.qualifierWrapper) = context->parseInOutQualifier((yylsp[0])); - } - - break; - - case 140: - - { - ES3_OR_NEWER("centroid", (yylsp[0]), "storage qualifier"); - (yyval.interm.qualifierWrapper) = new TStorageQualifierWrapper(EvqCentroid, (yylsp[0])); - } - - break; - - case 141: - - { - (yyval.interm.qualifierWrapper) = context->parseGlobalStorageQualifier(EvqUniform, (yylsp[0])); - } - - break; - - case 142: - - { - ES3_1_ONLY("buffer", (yylsp[0]), "storage qualifier"); - (yyval.interm.qualifierWrapper) = context->parseGlobalStorageQualifier(EvqBuffer, (yylsp[0])); - } - - break; - - case 143: - - { - (yyval.interm.qualifierWrapper) = new TMemoryQualifierWrapper(EvqReadOnly, (yylsp[0])); - } - - break; - - case 144: - - { - (yyval.interm.qualifierWrapper) = new TMemoryQualifierWrapper(EvqWriteOnly, (yylsp[0])); - } - - break; - - case 145: - - { - (yyval.interm.qualifierWrapper) = new TMemoryQualifierWrapper(EvqCoherent, (yylsp[0])); - } - - break; - - case 146: - - { - (yyval.interm.qualifierWrapper) = new TMemoryQualifierWrapper(EvqRestrict, (yylsp[0])); - } - - break; - - case 147: - - { - (yyval.interm.qualifierWrapper) = new TMemoryQualifierWrapper(EvqVolatile, (yylsp[0])); - } - - break; - - case 148: - - { - COMPUTE_ONLY("shared", (yylsp[0])); - (yyval.interm.qualifierWrapper) = context->parseGlobalStorageQualifier(EvqShared, (yylsp[0])); - } - - break; - - case 149: - - { - (yyval.interm.type) = (yyvsp[0].interm.type); - (yyval.interm.type).precision = context->symbolTable.getDefaultPrecision((yyvsp[0].interm.type).getBasicType()); - } - - break; - - case 150: - - { - (yyval.interm.precision) = EbpHigh; - } - - break; - - case 151: - - { - (yyval.interm.precision) = EbpMedium; - } - - break; - - case 152: - - { - (yyval.interm.precision) = EbpLow; - } - - break; - - case 153: - - { - ES3_OR_NEWER("layout", (yylsp[-3]), "qualifier"); - (yyval.interm.layoutQualifier) = (yyvsp[-1].interm.layoutQualifier); - } - - break; - - case 154: - - { - (yyval.interm.layoutQualifier) = (yyvsp[0].interm.layoutQualifier); - } - - break; - - case 155: - - { - (yyval.interm.layoutQualifier) = context->joinLayoutQualifiers((yyvsp[-2].interm.layoutQualifier), (yyvsp[0].interm.layoutQualifier), (yylsp[0])); - } - - break; - - case 156: - - { - (yyval.interm.layoutQualifier) = context->parseLayoutQualifier(ImmutableString((yyvsp[0].lex).string), (yylsp[0])); - } - - break; - - case 157: - - { - (yyval.interm.layoutQualifier) = context->parseLayoutQualifier(ImmutableString((yyvsp[-2].lex).string), (yylsp[-2]), (yyvsp[0].lex).i, (yylsp[0])); - } - - break; - - case 158: - - { - (yyval.interm.layoutQualifier) = context->parseLayoutQualifier(ImmutableString((yyvsp[-2].lex).string), (yylsp[-2]), (yyvsp[0].lex).i, (yylsp[0])); - } - - break; - - case 159: - - { - (yyval.interm.layoutQualifier) = context->parseLayoutQualifier(ImmutableString("shared"), (yylsp[0])); - } - - break; - - case 160: - - { - (yyval.interm.type).initialize((yyvsp[0].interm.typeSpecifierNonArray), (context->symbolTable.atGlobalLevel() ? EvqGlobal : EvqTemporary)); - } - - break; - - case 161: - - { - (yyval.interm.type).initialize((yyvsp[-1].interm.typeSpecifierNonArray), (context->symbolTable.atGlobalLevel() ? EvqGlobal : EvqTemporary)); - (yyval.interm.type).setArraySizes((yyvsp[0].interm.arraySizes)); - } - - break; - - case 162: - - { - ES3_OR_NEWER("[]", (yylsp[-1]), "implicitly sized array"); - (yyval.interm.arraySizes) = new TVector(); - (yyval.interm.arraySizes)->push_back(0u); - } - - break; - - case 163: - - { - (yyval.interm.arraySizes) = new TVector(); - unsigned int size = context->checkIsValidArraySize((yylsp[-2]), (yyvsp[-1].interm.intermTypedNode)); - // Make the type an array even if size check failed. - // This ensures useless error messages regarding a variable's non-arrayness won't follow. - (yyval.interm.arraySizes)->push_back(size); - } - - break; - - case 164: - - { - ES3_1_ONLY("[]", (yylsp[-1]), "arrays of arrays"); - (yyval.interm.arraySizes) = (yyvsp[-2].interm.arraySizes); - (yyval.interm.arraySizes)->insert((yyval.interm.arraySizes)->begin(), 0u); - } - - break; - - case 165: - - { - ES3_1_ONLY("[]", (yylsp[-2]), "arrays of arrays"); - (yyval.interm.arraySizes) = (yyvsp[-3].interm.arraySizes); - unsigned int size = context->checkIsValidArraySize((yylsp[-2]), (yyvsp[-1].interm.intermTypedNode)); - // Make the type an array even if size check failed. - // This ensures useless error messages regarding a variable's non-arrayness won't follow. - (yyval.interm.arraySizes)->insert((yyval.interm.arraySizes)->begin(), size); - } - - break; - - case 166: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtVoid, (yylsp[0])); - } - - break; - - case 167: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); - } - - break; - - case 168: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtInt, (yylsp[0])); - } - - break; - - case 169: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtUInt, (yylsp[0])); - } - - break; - - case 170: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtBool, (yylsp[0])); - } - - break; - - case 171: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setAggregate(2); - } - - break; - - case 172: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setAggregate(3); - } - - break; - - case 173: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setAggregate(4); - } - - break; - - case 174: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtBool, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setAggregate(2); - } - - break; - - case 175: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtBool, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setAggregate(3); - } - - break; - - case 176: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtBool, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setAggregate(4); - } - - break; - - case 177: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtInt, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setAggregate(2); - } - - break; - - case 178: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtInt, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setAggregate(3); - } - - break; - - case 179: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtInt, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setAggregate(4); - } - - break; - - case 180: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtUInt, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setAggregate(2); - } - - break; - - case 181: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtUInt, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setAggregate(3); - } - - break; - - case 182: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtUInt, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setAggregate(4); - } - - break; - - case 183: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setMatrix(2, 2); - } - - break; - - case 184: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setMatrix(3, 3); - } - - break; - - case 185: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setMatrix(4, 4); - } - - break; - - case 186: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setMatrix(2, 3); - } - - break; - - case 187: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setMatrix(3, 2); - } - - break; - - case 188: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setMatrix(2, 4); - } - - break; - - case 189: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setMatrix(4, 2); - } - - break; - - case 190: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setMatrix(3, 4); - } - - break; - - case 191: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); - (yyval.interm.typeSpecifierNonArray).setMatrix(4, 3); - } - - break; - - case 192: - - { - if (!context->checkCanUseExtension((yylsp[0]), TExtension::EXT_YUV_target)) { - context->error((yylsp[0]), "unsupported type", "yuvCscStandardEXT"); + TConstantUnion *unionArray = new TConstantUnion[1]; + unionArray->setFConst((yyvsp[0].lex).f); + (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); } - (yyval.interm.typeSpecifierNonArray).initialize(EbtYuvCscStandardEXT, (yylsp[0])); - } - break; + break; - case 193: + case 9: - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler2D, (yylsp[0])); - } - - break; - - case 194: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler3D, (yylsp[0])); - } - - break; - - case 195: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtSamplerCube, (yylsp[0])); - } - - break; - - case 196: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler2DArray, (yylsp[0])); - } - - break; - - case 197: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler2DMS, (yylsp[0])); - } - - break; - - case 198: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler2DMSArray, (yylsp[0])); - } - - break; - - case 199: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtISampler2D, (yylsp[0])); - } - - break; - - case 200: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtISampler3D, (yylsp[0])); - } - - break; - - case 201: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtISamplerCube, (yylsp[0])); - } - - break; - - case 202: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtISampler2DArray, (yylsp[0])); - } - - break; - - case 203: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtISampler2DMS, (yylsp[0])); - } - - break; - - case 204: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtISampler2DMSArray, (yylsp[0])); - } - - break; - - case 205: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtUSampler2D, (yylsp[0])); - } - - break; - - case 206: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtUSampler3D, (yylsp[0])); - } - - break; - - case 207: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtUSamplerCube, (yylsp[0])); - } - - break; - - case 208: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtUSampler2DArray, (yylsp[0])); - } - - break; - - case 209: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtUSampler2DMS, (yylsp[0])); - } - - break; - - case 210: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtUSampler2DMSArray, (yylsp[0])); - } - - break; - - case 211: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler2DShadow, (yylsp[0])); - } - - break; - - case 212: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtSamplerCubeShadow, (yylsp[0])); - } - - break; - - case 213: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler2DArrayShadow, (yylsp[0])); - } - - break; - - case 214: - - { - constexpr std::array extensions{ { TExtension::NV_EGL_stream_consumer_external, - TExtension::OES_EGL_image_external_essl3, - TExtension::OES_EGL_image_external } }; - if (!context->checkCanUseOneOfExtensions((yylsp[0]), extensions)) { - context->error((yylsp[0]), "unsupported type", "samplerExternalOES"); + TConstantUnion *unionArray = new TConstantUnion[1]; + unionArray->setBConst((yyvsp[0].lex).b); + (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); } - (yyval.interm.typeSpecifierNonArray).initialize(EbtSamplerExternalOES, (yylsp[0])); - } - break; + break; - case 215: + case 10: - { - if (!context->checkCanUseExtension((yylsp[0]), TExtension::EXT_YUV_target)) { - context->error((yylsp[0]), "unsupported type", "__samplerExternal2DY2YEXT"); + if (!context->checkCanUseExtension((yylsp[0]), TExtension::EXT_YUV_target)) + { + context->error((yylsp[0]), "unsupported value", + ImmutableString((yyvsp[0].lex).string)); + } + TConstantUnion *unionArray = new TConstantUnion[1]; + unionArray->setYuvCscStandardEXTConst( + getYuvCscStandardEXT(ImmutableString((yyvsp[0].lex).string))); + (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); } - (yyval.interm.typeSpecifierNonArray).initialize(EbtSamplerExternal2DY2YEXT, (yylsp[0])); - } - break; + break; - case 216: + case 11: - { - if (!context->checkCanUseExtension((yylsp[0]), TExtension::ARB_texture_rectangle)) { - context->error((yylsp[0]), "unsupported type", "sampler2DRect"); + (yyval.interm.intermTypedNode) = (yyvsp[-1].interm.intermTypedNode); } - (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler2DRect, (yylsp[0])); + + break; + + case 12: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 13: + + { + (yyval.interm.intermTypedNode) = + context->addIndexExpression((yyvsp[-3].interm.intermTypedNode), (yylsp[-2]), + (yyvsp[-1].interm.intermTypedNode)); + } + + break; + + case 14: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 15: + + { + (yyval.interm.intermTypedNode) = context->addFieldSelectionExpression( + (yyvsp[-2].interm.intermTypedNode), (yylsp[-1]), + ImmutableString((yyvsp[0].lex).string), (yylsp[0])); + } + + break; + + case 16: + + { + (yyval.interm.intermTypedNode) = context->addUnaryMathLValue( + EOpPostIncrement, (yyvsp[-1].interm.intermTypedNode), (yylsp[0])); + } + + break; + + case 17: + + { + (yyval.interm.intermTypedNode) = context->addUnaryMathLValue( + EOpPostDecrement, (yyvsp[-1].interm.intermTypedNode), (yylsp[0])); + } + + break; + + case 18: + + { + context->checkIsScalarInteger((yyvsp[0].interm.intermTypedNode), "[]"); + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 19: + + { + (yyval.interm.intermTypedNode) = + context->addFunctionCallOrMethod((yyvsp[0].interm.functionLookup), (yylsp[0])); + } + + break; + + case 20: + + { + (yyval.interm.functionLookup) = (yyvsp[0].interm.functionLookup); + } + + break; + + case 21: + + { + ES3_OR_NEWER("", (yylsp[0]), "methods"); + (yyval.interm.functionLookup) = (yyvsp[0].interm.functionLookup); + (yyval.interm.functionLookup)->setThisNode((yyvsp[-2].interm.intermTypedNode)); + } + + break; + + case 22: + + { + (yyval.interm.functionLookup) = (yyvsp[-1].interm.functionLookup); + } + + break; + + case 23: + + { + (yyval.interm.functionLookup) = (yyvsp[-1].interm.functionLookup); + } + + break; + + case 24: + + { + (yyval.interm.functionLookup) = (yyvsp[-1].interm.functionLookup); + } + + break; + + case 25: + + { + (yyval.interm.functionLookup) = (yyvsp[0].interm.functionLookup); + } + + break; + + case 26: + + { + (yyval.interm.functionLookup) = (yyvsp[-1].interm.functionLookup); + (yyval.interm.functionLookup)->addArgument((yyvsp[0].interm.intermTypedNode)); + } + + break; + + case 27: + + { + (yyval.interm.functionLookup) = (yyvsp[-2].interm.functionLookup); + (yyval.interm.functionLookup)->addArgument((yyvsp[0].interm.intermTypedNode)); + } + + break; + + case 28: + + { + (yyval.interm.functionLookup) = (yyvsp[-1].interm.functionLookup); + } + + break; + + case 29: + + { + (yyval.interm.functionLookup) = context->addConstructorFunc((yyvsp[0].interm.type)); + } + + break; + + case 30: + + { + (yyval.interm.functionLookup) = context->addNonConstructorFunc( + ImmutableString((yyvsp[0].lex).string), (yyvsp[0].lex).symbol); + } + + break; + + case 31: + + { + (yyval.interm.functionLookup) = context->addNonConstructorFunc( + ImmutableString((yyvsp[0].lex).string), (yyvsp[0].lex).symbol); + } + + break; + + case 32: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 33: + + { + (yyval.interm.intermTypedNode) = context->addUnaryMathLValue( + EOpPreIncrement, (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 34: + + { + (yyval.interm.intermTypedNode) = context->addUnaryMathLValue( + EOpPreDecrement, (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 35: + + { + (yyval.interm.intermTypedNode) = context->addUnaryMath( + (yyvsp[-1].interm.op), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 36: + + { + (yyval.interm.op) = EOpPositive; + } + + break; + + case 37: + + { + (yyval.interm.op) = EOpNegative; + } + + break; + + case 38: + + { + (yyval.interm.op) = EOpLogicalNot; + } + + break; + + case 39: + + { + ES3_OR_NEWER("~", (yyloc), "bit-wise operator"); + (yyval.interm.op) = EOpBitwiseNot; + } + + break; + + case 40: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 41: + + { + (yyval.interm.intermTypedNode) = + context->addBinaryMath(EOpMul, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 42: + + { + (yyval.interm.intermTypedNode) = + context->addBinaryMath(EOpDiv, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 43: + + { + ES3_OR_NEWER("%", (yylsp[-1]), "integer modulus operator"); + (yyval.interm.intermTypedNode) = + context->addBinaryMath(EOpIMod, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 44: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 45: + + { + (yyval.interm.intermTypedNode) = + context->addBinaryMath(EOpAdd, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 46: + + { + (yyval.interm.intermTypedNode) = + context->addBinaryMath(EOpSub, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 47: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 48: + + { + ES3_OR_NEWER("<<", (yylsp[-1]), "bit-wise operator"); + (yyval.interm.intermTypedNode) = + context->addBinaryMath(EOpBitShiftLeft, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 49: + + { + ES3_OR_NEWER(">>", (yylsp[-1]), "bit-wise operator"); + (yyval.interm.intermTypedNode) = + context->addBinaryMath(EOpBitShiftRight, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 50: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 51: + + { + (yyval.interm.intermTypedNode) = + context->addBinaryMathBooleanResult(EOpLessThan, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 52: + + { + (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult( + EOpGreaterThan, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 53: + + { + (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult( + EOpLessThanEqual, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 54: + + { + (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult( + EOpGreaterThanEqual, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 55: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 56: + + { + (yyval.interm.intermTypedNode) = + context->addBinaryMathBooleanResult(EOpEqual, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 57: + + { + (yyval.interm.intermTypedNode) = + context->addBinaryMathBooleanResult(EOpNotEqual, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 58: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 59: + + { + ES3_OR_NEWER("&", (yylsp[-1]), "bit-wise operator"); + (yyval.interm.intermTypedNode) = + context->addBinaryMath(EOpBitwiseAnd, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 60: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 61: + + { + ES3_OR_NEWER("^", (yylsp[-1]), "bit-wise operator"); + (yyval.interm.intermTypedNode) = + context->addBinaryMath(EOpBitwiseXor, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 62: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 63: + + { + ES3_OR_NEWER("|", (yylsp[-1]), "bit-wise operator"); + (yyval.interm.intermTypedNode) = + context->addBinaryMath(EOpBitwiseOr, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 64: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 65: + + { + (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult( + EOpLogicalAnd, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 66: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 67: + + { + (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult( + EOpLogicalXor, (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 68: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 69: + + { + (yyval.interm.intermTypedNode) = context->addBinaryMathBooleanResult( + EOpLogicalOr, (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), + (yylsp[-1])); + } + + break; + + case 70: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 71: + + { + (yyval.interm.intermTypedNode) = context->addTernarySelection( + (yyvsp[-4].interm.intermTypedNode), (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-3])); + } + + break; + + case 72: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 73: + + { + (yyval.interm.intermTypedNode) = + context->addAssign((yyvsp[-1].interm.op), (yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 74: + + { + (yyval.interm.op) = EOpAssign; + } + + break; + + case 75: + + { + (yyval.interm.op) = EOpMulAssign; + } + + break; + + case 76: + + { + (yyval.interm.op) = EOpDivAssign; + } + + break; + + case 77: + + { + ES3_OR_NEWER("%=", (yyloc), "integer modulus operator"); + (yyval.interm.op) = EOpIModAssign; + } + + break; + + case 78: + + { + (yyval.interm.op) = EOpAddAssign; + } + + break; + + case 79: + + { + (yyval.interm.op) = EOpSubAssign; + } + + break; + + case 80: + + { + ES3_OR_NEWER("<<=", (yyloc), "bit-wise operator"); + (yyval.interm.op) = EOpBitShiftLeftAssign; + } + + break; + + case 81: + + { + ES3_OR_NEWER(">>=", (yyloc), "bit-wise operator"); + (yyval.interm.op) = EOpBitShiftRightAssign; + } + + break; + + case 82: + + { + ES3_OR_NEWER("&=", (yyloc), "bit-wise operator"); + (yyval.interm.op) = EOpBitwiseAndAssign; + } + + break; + + case 83: + + { + ES3_OR_NEWER("^=", (yyloc), "bit-wise operator"); + (yyval.interm.op) = EOpBitwiseXorAssign; + } + + break; + + case 84: + + { + ES3_OR_NEWER("|=", (yyloc), "bit-wise operator"); + (yyval.interm.op) = EOpBitwiseOrAssign; + } + + break; + + case 85: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 86: + + { + (yyval.interm.intermTypedNode) = context->addComma( + (yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.intermTypedNode), (yylsp[-1])); + } + + break; + + case 87: + + { + context->checkIsConst((yyvsp[0].interm.intermTypedNode)); + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 88: + + { + context->enterStructDeclaration((yylsp[-1]), ImmutableString((yyvsp[-1].lex).string)); + (yyval.lex) = (yyvsp[-1].lex); + } + + break; + + case 89: + + { + (yyval.interm.intermNode) = context->addFunctionPrototypeDeclaration( + *((yyvsp[-1].interm).function), (yylsp[-1])); + } + + break; + + case 90: + + { + (yyval.interm.intermNode) = (yyvsp[-1].interm).intermDeclaration; + } + + break; + + case 91: + + { + context->parseDefaultPrecisionQualifier((yyvsp[-2].interm.precision), + (yyvsp[-1].interm.type), (yylsp[-3])); + (yyval.interm.intermNode) = nullptr; + } + + break; + + case 92: + + { + ES3_OR_NEWER(ImmutableString((yyvsp[-3].lex).string), (yylsp[-4]), "interface blocks"); + (yyval.interm.intermNode) = context->addInterfaceBlock( + *(yyvsp[-4].interm.typeQualifierBuilder), (yylsp[-3]), + ImmutableString((yyvsp[-3].lex).string), (yyvsp[-2].interm.fieldList), + kEmptyImmutableString, (yyloc), NULL, (yyloc)); + } + + break; + + case 93: + + { + ES3_OR_NEWER(ImmutableString((yyvsp[-4].lex).string), (yylsp[-5]), "interface blocks"); + (yyval.interm.intermNode) = context->addInterfaceBlock( + *(yyvsp[-5].interm.typeQualifierBuilder), (yylsp[-4]), + ImmutableString((yyvsp[-4].lex).string), (yyvsp[-3].interm.fieldList), + ImmutableString((yyvsp[-1].lex).string), (yylsp[-1]), NULL, (yyloc)); + } + + break; + + case 94: + + { + ES3_OR_NEWER(ImmutableString((yyvsp[-7].lex).string), (yylsp[-8]), "interface blocks"); + (yyval.interm.intermNode) = context->addInterfaceBlock( + *(yyvsp[-8].interm.typeQualifierBuilder), (yylsp[-7]), + ImmutableString((yyvsp[-7].lex).string), (yyvsp[-6].interm.fieldList), + ImmutableString((yyvsp[-4].lex).string), (yylsp[-4]), + (yyvsp[-2].interm.intermTypedNode), (yylsp[-3])); + } + + break; + + case 95: + + { + context->parseGlobalLayoutQualifier(*(yyvsp[-1].interm.typeQualifierBuilder)); + (yyval.interm.intermNode) = nullptr; + } + + break; + + case 96: + + { + (yyval.interm.intermNode) = context->parseGlobalQualifierDeclaration( + *(yyvsp[-2].interm.typeQualifierBuilder), (yylsp[-1]), + ImmutableString((yyvsp[-1].lex).string), (yyvsp[-1].lex).symbol); + } + + break; + + case 97: + + { + (yyval.interm).function = + context->parseFunctionDeclarator((yylsp[0]), (yyvsp[-1].interm.function)); + context->exitFunctionDeclaration(); + } + + break; + + case 98: + + { + (yyval.interm.function) = (yyvsp[0].interm.function); + } + + break; + + case 99: + + { + (yyval.interm.function) = (yyvsp[0].interm.function); + } + + break; + + case 100: + + { + // Add the parameter + (yyval.interm.function) = (yyvsp[-1].interm.function); + if ((yyvsp[0].interm.param).type->getBasicType() != EbtVoid) + { + (yyvsp[-1].interm.function) + ->addParameter((yyvsp[0].interm.param).createVariable(&context->symbolTable)); + } + } + + break; + + case 101: + + { + (yyval.interm.function) = (yyvsp[-2].interm.function); + // Only first parameter of one-parameter functions can be void + // The check for named parameters not being void is done in parameter_declarator + if ((yyvsp[0].interm.param).type->getBasicType() == EbtVoid) + { + // This parameter > first is void + context->error((yylsp[-1]), "cannot be a parameter type except for '(void)'", + "void"); + } + else + { + (yyvsp[-2].interm.function) + ->addParameter((yyvsp[0].interm.param).createVariable(&context->symbolTable)); + } + } + + break; + + case 102: + + { + (yyval.interm.function) = context->parseFunctionHeader( + (yyvsp[-2].interm.type), ImmutableString((yyvsp[-1].lex).string), (yylsp[-1])); + + context->symbolTable.push(); + context->enterFunctionDeclaration(); + } + + break; + + case 103: + + { + (yyval.interm.param) = context->parseParameterDeclarator( + (yyvsp[-1].interm.type), ImmutableString((yyvsp[0].lex).string), (yylsp[0])); + } + + break; + + case 104: + + { + (yyval.interm.param) = context->parseParameterArrayDeclarator( + ImmutableString((yyvsp[-1].lex).string), (yylsp[-1]), + *((yyvsp[0].interm.arraySizes)), (yylsp[0]), &(yyvsp[-2].interm.type)); + } + + break; + + case 105: + + { + (yyval.interm.param) = (yyvsp[0].interm.param); + context->checkIsParameterQualifierValid( + (yylsp[0]), *(yyvsp[-1].interm.typeQualifierBuilder), (yyvsp[0].interm.param).type); + } + + break; + + case 106: + + { + (yyval.interm.param) = (yyvsp[0].interm.param); + (yyval.interm.param).type->setQualifier(EvqIn); + } + + break; + + case 107: + + { + (yyval.interm.param) = (yyvsp[0].interm.param); + context->checkIsParameterQualifierValid( + (yylsp[0]), *(yyvsp[-1].interm.typeQualifierBuilder), (yyvsp[0].interm.param).type); + } + + break; + + case 108: + + { + (yyval.interm.param) = (yyvsp[0].interm.param); + (yyval.interm.param).type->setQualifier(EvqIn); + } + + break; + + case 109: + + { + TParameter param = {0, new TType((yyvsp[0].interm.type))}; + (yyval.interm.param) = param; + } + + break; + + case 110: + + { + (yyval.interm) = (yyvsp[0].interm); + } + + break; + + case 111: + + { + (yyval.interm) = (yyvsp[-2].interm); + context->parseDeclarator((yyval.interm).type, (yylsp[0]), + ImmutableString((yyvsp[0].lex).string), + (yyval.interm).intermDeclaration); + } + + break; + + case 112: + + { + (yyval.interm) = (yyvsp[-3].interm); + context->parseArrayDeclarator( + (yyval.interm).type, (yylsp[-1]), ImmutableString((yyvsp[-1].lex).string), + (yylsp[0]), *((yyvsp[0].interm.arraySizes)), (yyval.interm).intermDeclaration); + } + + break; + + case 113: + + { + ES3_OR_NEWER("=", (yylsp[-1]), "first-class arrays (array initializer)"); + (yyval.interm) = (yyvsp[-5].interm); + context->parseArrayInitDeclarator( + (yyval.interm).type, (yylsp[-3]), ImmutableString((yyvsp[-3].lex).string), + (yylsp[-2]), *((yyvsp[-2].interm.arraySizes)), (yylsp[-1]), + (yyvsp[0].interm.intermTypedNode), (yyval.interm).intermDeclaration); + } + + break; + + case 114: + + { + (yyval.interm) = (yyvsp[-4].interm); + context->parseInitDeclarator( + (yyval.interm).type, (yylsp[-2]), ImmutableString((yyvsp[-2].lex).string), + (yylsp[-1]), (yyvsp[0].interm.intermTypedNode), (yyval.interm).intermDeclaration); + } + + break; + + case 115: + + { + (yyval.interm).type = (yyvsp[0].interm.type); + (yyval.interm).intermDeclaration = context->parseSingleDeclaration( + (yyval.interm).type, (yylsp[0]), kEmptyImmutableString); + } + + break; + + case 116: + + { + (yyval.interm).type = (yyvsp[-1].interm.type); + (yyval.interm).intermDeclaration = context->parseSingleDeclaration( + (yyval.interm).type, (yylsp[0]), ImmutableString((yyvsp[0].lex).string)); + } + + break; + + case 117: + + { + (yyval.interm).type = (yyvsp[-2].interm.type); + (yyval.interm).intermDeclaration = context->parseSingleArrayDeclaration( + (yyval.interm).type, (yylsp[-1]), ImmutableString((yyvsp[-1].lex).string), + (yylsp[0]), *((yyvsp[0].interm.arraySizes))); + } + + break; + + case 118: + + { + ES3_OR_NEWER("[]", (yylsp[-2]), "first-class arrays (array initializer)"); + (yyval.interm).type = (yyvsp[-4].interm.type); + (yyval.interm).intermDeclaration = context->parseSingleArrayInitDeclaration( + (yyval.interm).type, (yylsp[-3]), ImmutableString((yyvsp[-3].lex).string), + (yylsp[-2]), *((yyvsp[-2].interm.arraySizes)), (yylsp[-1]), + (yyvsp[0].interm.intermTypedNode)); + } + + break; + + case 119: + + { + (yyval.interm).type = (yyvsp[-3].interm.type); + (yyval.interm).intermDeclaration = context->parseSingleInitDeclaration( + (yyval.interm).type, (yylsp[-2]), ImmutableString((yyvsp[-2].lex).string), + (yylsp[-1]), (yyvsp[0].interm.intermTypedNode)); + } + + break; + + case 120: + + { + context->addFullySpecifiedType(&(yyvsp[0].interm.type)); + (yyval.interm.type) = (yyvsp[0].interm.type); + } + + break; + + case 121: + + { + (yyval.interm.type) = context->addFullySpecifiedType( + *(yyvsp[-1].interm.typeQualifierBuilder), (yyvsp[0].interm.type)); + } + + break; + + case 122: + + { + (yyval.interm.qualifier) = EvqSmooth; + } + + break; + + case 123: + + { + (yyval.interm.qualifier) = EvqFlat; + } + + break; + + case 124: + + { + (yyval.interm.typeQualifierBuilder) = context->createTypeQualifierBuilder((yylsp[0])); + (yyval.interm.typeQualifierBuilder) + ->appendQualifier((yyvsp[0].interm.qualifierWrapper)); + } + + break; + + case 125: + + { + (yyval.interm.typeQualifierBuilder) = (yyvsp[-1].interm.typeQualifierBuilder); + (yyval.interm.typeQualifierBuilder) + ->appendQualifier((yyvsp[0].interm.qualifierWrapper)); + } + + break; + + case 126: + + { + // empty + } + + break; + + case 127: + + { + // empty + } + + break; + + case 128: + + { + context->checkLocalVariableConstStorageQualifier(*(yyvsp[0].interm.qualifierWrapper)); + (yyval.interm.qualifierWrapper) = (yyvsp[0].interm.qualifierWrapper); + } + + break; + + case 129: + + { + context->checkIsAtGlobalLevel((yylsp[0]), "layout"); + (yyval.interm.qualifierWrapper) = + new TLayoutQualifierWrapper((yyvsp[0].interm.layoutQualifier), (yylsp[0])); + } + + break; + + case 130: + + { + (yyval.interm.qualifierWrapper) = + new TPrecisionQualifierWrapper((yyvsp[0].interm.precision), (yylsp[0])); + } + + break; + + case 131: + + { + (yyval.interm.qualifierWrapper) = + new TInterpolationQualifierWrapper((yyvsp[0].interm.qualifier), (yylsp[0])); + } + + break; + + case 132: + + { + context->checkIsAtGlobalLevel((yylsp[0]), "invariant"); + (yyval.interm.qualifierWrapper) = new TInvariantQualifierWrapper((yylsp[0])); + } + + break; + + case 133: + + { + (yyval.interm.qualifierWrapper) = new TPreciseQualifierWrapper((yylsp[0])); + } + + break; + + case 134: + + { + VERTEX_ONLY("attribute", (yylsp[0])); + ES2_ONLY("attribute", (yylsp[0])); + (yyval.interm.qualifierWrapper) = + context->parseGlobalStorageQualifier(EvqAttribute, (yylsp[0])); + } + + break; + + case 135: + + { + ES2_ONLY("varying", (yylsp[0])); + (yyval.interm.qualifierWrapper) = context->parseVaryingQualifier((yylsp[0])); + } + + break; + + case 136: + + { + (yyval.interm.qualifierWrapper) = new TStorageQualifierWrapper(EvqConst, (yylsp[0])); + } + + break; + + case 137: + + { + (yyval.interm.qualifierWrapper) = context->parseInQualifier((yylsp[0])); + } + + break; + + case 138: + + { + (yyval.interm.qualifierWrapper) = context->parseOutQualifier((yylsp[0])); + } + + break; + + case 139: + + { + (yyval.interm.qualifierWrapper) = context->parseInOutQualifier((yylsp[0])); + } + + break; + + case 140: + + { + ES3_OR_NEWER("centroid", (yylsp[0]), "storage qualifier"); + (yyval.interm.qualifierWrapper) = new TStorageQualifierWrapper(EvqCentroid, (yylsp[0])); + } + + break; + + case 141: + + { + (yyval.interm.qualifierWrapper) = + context->parseGlobalStorageQualifier(EvqUniform, (yylsp[0])); + } + + break; + + case 142: + + { + ES3_1_ONLY("buffer", (yylsp[0]), "storage qualifier"); + (yyval.interm.qualifierWrapper) = + context->parseGlobalStorageQualifier(EvqBuffer, (yylsp[0])); + } + + break; + + case 143: + + { + (yyval.interm.qualifierWrapper) = new TMemoryQualifierWrapper(EvqReadOnly, (yylsp[0])); + } + + break; + + case 144: + + { + (yyval.interm.qualifierWrapper) = new TMemoryQualifierWrapper(EvqWriteOnly, (yylsp[0])); + } + + break; + + case 145: + + { + (yyval.interm.qualifierWrapper) = new TMemoryQualifierWrapper(EvqCoherent, (yylsp[0])); + } + + break; + + case 146: + + { + (yyval.interm.qualifierWrapper) = new TMemoryQualifierWrapper(EvqRestrict, (yylsp[0])); + } + + break; + + case 147: + + { + (yyval.interm.qualifierWrapper) = new TMemoryQualifierWrapper(EvqVolatile, (yylsp[0])); + } + + break; + + case 148: + + { + COMPUTE_ONLY("shared", (yylsp[0])); + (yyval.interm.qualifierWrapper) = + context->parseGlobalStorageQualifier(EvqShared, (yylsp[0])); + } + + break; + + case 149: + + { + (yyval.interm.type) = (yyvsp[0].interm.type); + (yyval.interm.type).precision = + context->symbolTable.getDefaultPrecision((yyvsp[0].interm.type).getBasicType()); + } + + break; + + case 150: + + { + (yyval.interm.precision) = EbpHigh; + } + + break; + + case 151: + + { + (yyval.interm.precision) = EbpMedium; + } + + break; + + case 152: + + { + (yyval.interm.precision) = EbpLow; + } + + break; + + case 153: + + { + ES3_OR_NEWER("layout", (yylsp[-3]), "qualifier"); + (yyval.interm.layoutQualifier) = (yyvsp[-1].interm.layoutQualifier); + } + + break; + + case 154: + + { + (yyval.interm.layoutQualifier) = (yyvsp[0].interm.layoutQualifier); + } + + break; + + case 155: + + { + (yyval.interm.layoutQualifier) = context->joinLayoutQualifiers( + (yyvsp[-2].interm.layoutQualifier), (yyvsp[0].interm.layoutQualifier), (yylsp[0])); + } + + break; + + case 156: + + { + (yyval.interm.layoutQualifier) = + context->parseLayoutQualifier(ImmutableString((yyvsp[0].lex).string), (yylsp[0])); + } + + break; + + case 157: + + { + (yyval.interm.layoutQualifier) = context->parseLayoutQualifier( + ImmutableString((yyvsp[-2].lex).string), (yylsp[-2]), (yyvsp[0].lex).i, (yylsp[0])); + } + + break; + + case 158: + + { + (yyval.interm.layoutQualifier) = context->parseLayoutQualifier( + ImmutableString((yyvsp[-2].lex).string), (yylsp[-2]), (yyvsp[0].lex).i, (yylsp[0])); + } + + break; + + case 159: + + { + (yyval.interm.layoutQualifier) = + context->parseLayoutQualifier(ImmutableString("shared"), (yylsp[0])); + } + + break; + + case 160: + + { + (yyval.interm.type) + .initialize((yyvsp[0].interm.typeSpecifierNonArray), + (context->symbolTable.atGlobalLevel() ? EvqGlobal : EvqTemporary)); + } + + break; + + case 161: + + { + (yyval.interm.type) + .initialize((yyvsp[-1].interm.typeSpecifierNonArray), + (context->symbolTable.atGlobalLevel() ? EvqGlobal : EvqTemporary)); + (yyval.interm.type).setArraySizes((yyvsp[0].interm.arraySizes)); + } + + break; + + case 162: + + { + ES3_OR_NEWER("[]", (yylsp[-1]), "implicitly sized array"); + (yyval.interm.arraySizes) = new TVector(); + (yyval.interm.arraySizes)->push_back(0u); + } + + break; + + case 163: + + { + (yyval.interm.arraySizes) = new TVector(); + unsigned int size = + context->checkIsValidArraySize((yylsp[-2]), (yyvsp[-1].interm.intermTypedNode)); + // Make the type an array even if size check failed. + // This ensures useless error messages regarding a variable's non-arrayness won't + // follow. + (yyval.interm.arraySizes)->push_back(size); + } + + break; + + case 164: + + { + ES3_1_ONLY("[]", (yylsp[-1]), "arrays of arrays"); + (yyval.interm.arraySizes) = (yyvsp[-2].interm.arraySizes); + (yyval.interm.arraySizes)->insert((yyval.interm.arraySizes)->begin(), 0u); + } + + break; + + case 165: + + { + ES3_1_ONLY("[]", (yylsp[-2]), "arrays of arrays"); + (yyval.interm.arraySizes) = (yyvsp[-3].interm.arraySizes); + unsigned int size = + context->checkIsValidArraySize((yylsp[-2]), (yyvsp[-1].interm.intermTypedNode)); + // Make the type an array even if size check failed. + // This ensures useless error messages regarding a variable's non-arrayness won't + // follow. + (yyval.interm.arraySizes)->insert((yyval.interm.arraySizes)->begin(), size); + } + + break; + + case 166: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtVoid, (yylsp[0])); + } + + break; + + case 167: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); + } + + break; + + case 168: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtInt, (yylsp[0])); + } + + break; + + case 169: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtUInt, (yylsp[0])); + } + + break; + + case 170: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtBool, (yylsp[0])); + } + + break; + + case 171: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setAggregate(2); + } + + break; + + case 172: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setAggregate(3); + } + + break; + + case 173: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setAggregate(4); + } + + break; + + case 174: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtBool, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setAggregate(2); + } + + break; + + case 175: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtBool, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setAggregate(3); + } + + break; + + case 176: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtBool, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setAggregate(4); + } + + break; + + case 177: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtInt, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setAggregate(2); + } + + break; + + case 178: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtInt, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setAggregate(3); + } + + break; + + case 179: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtInt, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setAggregate(4); + } + + break; + + case 180: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtUInt, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setAggregate(2); + } + + break; + + case 181: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtUInt, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setAggregate(3); + } + + break; + + case 182: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtUInt, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setAggregate(4); + } + + break; + + case 183: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setMatrix(2, 2); + } + + break; + + case 184: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setMatrix(3, 3); + } + + break; + + case 185: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setMatrix(4, 4); + } + + break; + + case 186: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setMatrix(2, 3); + } + + break; + + case 187: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setMatrix(3, 2); + } + + break; + + case 188: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setMatrix(2, 4); + } + + break; + + case 189: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setMatrix(4, 2); + } + + break; + + case 190: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setMatrix(3, 4); + } + + break; + + case 191: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtFloat, (yylsp[0])); + (yyval.interm.typeSpecifierNonArray).setMatrix(4, 3); + } + + break; + + case 192: + + { + if (!context->checkCanUseExtension((yylsp[0]), TExtension::EXT_YUV_target)) + { + context->error((yylsp[0]), "unsupported type", "yuvCscStandardEXT"); + } + (yyval.interm.typeSpecifierNonArray).initialize(EbtYuvCscStandardEXT, (yylsp[0])); + } + + break; + + case 193: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler2D, (yylsp[0])); + } + + break; + + case 194: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler3D, (yylsp[0])); + } + + break; + + case 195: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtSamplerCube, (yylsp[0])); + } + + break; + + case 196: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler2DArray, (yylsp[0])); + } + + break; + + case 197: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler2DMS, (yylsp[0])); + } + + break; + + case 198: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler2DMSArray, (yylsp[0])); + } + + break; + + case 199: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtISampler2D, (yylsp[0])); + } + + break; + + case 200: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtISampler3D, (yylsp[0])); + } + + break; + + case 201: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtISamplerCube, (yylsp[0])); + } + + break; + + case 202: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtISampler2DArray, (yylsp[0])); + } + + break; + + case 203: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtISampler2DMS, (yylsp[0])); + } + + break; + + case 204: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtISampler2DMSArray, (yylsp[0])); + } + + break; + + case 205: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtUSampler2D, (yylsp[0])); + } + + break; + + case 206: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtUSampler3D, (yylsp[0])); + } + + break; + + case 207: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtUSamplerCube, (yylsp[0])); + } + + break; + + case 208: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtUSampler2DArray, (yylsp[0])); + } + + break; + + case 209: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtUSampler2DMS, (yylsp[0])); + } + + break; + + case 210: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtUSampler2DMSArray, (yylsp[0])); + } + + break; + + case 211: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler2DShadow, (yylsp[0])); + } + + break; + + case 212: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtSamplerCubeShadow, (yylsp[0])); + } + + break; + + case 213: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler2DArrayShadow, (yylsp[0])); + } + + break; + + case 214: + + { + constexpr std::array extensions{ + {TExtension::NV_EGL_stream_consumer_external, + TExtension::OES_EGL_image_external_essl3, TExtension::OES_EGL_image_external}}; + if (!context->checkCanUseOneOfExtensions((yylsp[0]), extensions)) + { + context->error((yylsp[0]), "unsupported type", "samplerExternalOES"); + } + (yyval.interm.typeSpecifierNonArray).initialize(EbtSamplerExternalOES, (yylsp[0])); + } + + break; + + case 215: + + { + if (!context->checkCanUseExtension((yylsp[0]), TExtension::EXT_YUV_target)) + { + context->error((yylsp[0]), "unsupported type", "__samplerExternal2DY2YEXT"); + } + (yyval.interm.typeSpecifierNonArray).initialize(EbtSamplerExternal2DY2YEXT, (yylsp[0])); + } + + break; + + case 216: + + { + if (!context->checkCanUseExtension((yylsp[0]), TExtension::ARB_texture_rectangle)) + { + context->error((yylsp[0]), "unsupported type", "sampler2DRect"); + } + (yyval.interm.typeSpecifierNonArray).initialize(EbtSampler2DRect, (yylsp[0])); + } + + break; + + case 217: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtImage2D, (yylsp[0])); + } + + break; + + case 218: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtIImage2D, (yylsp[0])); + } + + break; + + case 219: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtUImage2D, (yylsp[0])); + } + + break; + + case 220: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtImage3D, (yylsp[0])); + } + + break; + + case 221: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtIImage3D, (yylsp[0])); + } + + break; + + case 222: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtUImage3D, (yylsp[0])); + } + + break; + + case 223: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtImage2DArray, (yylsp[0])); + } + + break; + + case 224: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtIImage2DArray, (yylsp[0])); + } + + break; + + case 225: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtUImage2DArray, (yylsp[0])); + } + + break; + + case 226: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtImageCube, (yylsp[0])); + } + + break; + + case 227: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtIImageCube, (yylsp[0])); + } + + break; + + case 228: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtUImageCube, (yylsp[0])); + } + + break; + + case 229: + + { + (yyval.interm.typeSpecifierNonArray).initialize(EbtAtomicCounter, (yylsp[0])); + } + + break; + + case 230: + + { + (yyval.interm.typeSpecifierNonArray) = (yyvsp[0].interm.typeSpecifierNonArray); + } + + break; + + case 231: + + { + // This is for user defined type names. The lexical phase looked up the type. + const TStructure *structure = static_cast((yyvsp[0].lex).symbol); + (yyval.interm.typeSpecifierNonArray).initializeStruct(structure, false, (yylsp[0])); + } + + break; + + case 232: + + { + context->enterStructDeclaration((yylsp[-1]), ImmutableString((yyvsp[-1].lex).string)); + } + + break; + + case 233: + + { + (yyval.interm.typeSpecifierNonArray) = context->addStructure( + (yylsp[-5]), (yylsp[-4]), ImmutableString((yyvsp[-4].lex).string), + (yyvsp[-1].interm.fieldList)); + } + + break; + + case 234: + + { + context->enterStructDeclaration((yylsp[0]), kEmptyImmutableString); + } + + break; + + case 235: + + { + (yyval.interm.typeSpecifierNonArray) = context->addStructure( + (yylsp[-4]), (yyloc), kEmptyImmutableString, (yyvsp[-1].interm.fieldList)); + } + + break; + + case 236: + + { + (yyval.interm.fieldList) = + context->addStructFieldList((yyvsp[0].interm.fieldList), (yylsp[0])); + } + + break; + + case 237: + + { + (yyval.interm.fieldList) = context->combineStructFieldLists( + (yyvsp[-1].interm.fieldList), (yyvsp[0].interm.fieldList), (yylsp[0])); + } + + break; + + case 238: + + { + (yyval.interm.fieldList) = context->addStructDeclaratorList( + (yyvsp[-2].interm.type), (yyvsp[-1].interm.declaratorList)); + } + + break; + + case 239: + + { + // ES3 Only, but errors should be handled elsewhere + (yyval.interm.fieldList) = context->addStructDeclaratorListWithQualifiers( + *(yyvsp[-3].interm.typeQualifierBuilder), &(yyvsp[-2].interm.type), + (yyvsp[-1].interm.declaratorList)); + } + + break; + + case 240: + + { + (yyval.interm.declaratorList) = new TDeclaratorList(); + (yyval.interm.declaratorList)->push_back((yyvsp[0].interm.declarator)); + } + + break; + + case 241: + + { + (yyval.interm.declaratorList)->push_back((yyvsp[0].interm.declarator)); + } + + break; + + case 242: + + { + (yyval.interm.declarator) = + context->parseStructDeclarator(ImmutableString((yyvsp[0].lex).string), (yylsp[0])); + } + + break; + + case 243: + + { + (yyval.interm.declarator) = context->parseStructArrayDeclarator( + ImmutableString((yyvsp[-1].lex).string), (yylsp[-1]), (yyvsp[0].interm.arraySizes)); + } + + break; + + case 244: + + { + (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 245: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); + } + + break; + + case 246: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermBlock); + } + + break; + + case 247: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); + } + + break; + + case 248: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); + } + + break; + + case 249: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); + } + + break; + + case 250: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); + } + + break; + + case 251: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermSwitch); + } + + break; + + case 252: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermCase); + } + + break; + + case 253: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); + } + + break; + + case 254: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); + } + + break; + + case 255: + + { + (yyval.interm.intermBlock) = new TIntermBlock(); + (yyval.interm.intermBlock)->setLine((yyloc)); + } + + break; + + case 256: + + { + context->symbolTable.push(); + } + + break; + + case 257: + + { + context->symbolTable.pop(); + } + + break; + + case 258: + + { + (yyvsp[-2].interm.intermBlock)->setLine((yyloc)); + (yyval.interm.intermBlock) = (yyvsp[-2].interm.intermBlock); + } + + break; + + case 259: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermBlock); + } + + break; + + case 260: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); + } + + break; + + case 261: + + { + context->symbolTable.push(); + } + + break; + + case 262: + + { + context->symbolTable.pop(); + (yyval.interm.intermNode) = (yyvsp[0].interm.intermBlock); + } + + break; + + case 263: + + { + context->symbolTable.push(); + } + + break; + + case 264: + + { + context->symbolTable.pop(); + (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); + } + + break; + + case 265: + + { + (yyval.interm.intermBlock) = new TIntermBlock(); + (yyval.interm.intermBlock)->setLine((yyloc)); + } + + break; + + case 266: + + { + (yyvsp[-1].interm.intermBlock)->setLine((yyloc)); + (yyval.interm.intermBlock) = (yyvsp[-1].interm.intermBlock); + } + + break; + + case 267: + + { + (yyval.interm.intermBlock) = new TIntermBlock(); + context->appendStatement((yyval.interm.intermBlock), (yyvsp[0].interm.intermNode)); + } + + break; + + case 268: + + { + (yyval.interm.intermBlock) = (yyvsp[-1].interm.intermBlock); + context->appendStatement((yyval.interm.intermBlock), (yyvsp[0].interm.intermNode)); + } + + break; + + case 269: + + { + (yyval.interm.intermNode) = context->addEmptyStatement((yyloc)); + } + + break; + + case 270: + + { + (yyval.interm.intermNode) = (yyvsp[-1].interm.intermTypedNode); + } + + break; + + case 271: + + { + (yyval.interm.intermNode) = context->addIfElse((yyvsp[-2].interm.intermTypedNode), + (yyvsp[0].interm.nodePair), (yylsp[-4])); + } + + break; + + case 272: + + { + (yyval.interm.nodePair).node1 = (yyvsp[-2].interm.intermNode); + (yyval.interm.nodePair).node2 = (yyvsp[0].interm.intermNode); + } + + break; + + case 273: + + { + (yyval.interm.nodePair).node1 = (yyvsp[0].interm.intermNode); + (yyval.interm.nodePair).node2 = nullptr; + } + + break; + + case 274: + + { + context->incrSwitchNestingLevel(); + } + + break; + + case 275: + + { + (yyval.interm.intermSwitch) = context->addSwitch( + (yyvsp[-3].interm.intermTypedNode), (yyvsp[0].interm.intermBlock), (yylsp[-5])); + context->decrSwitchNestingLevel(); + } + + break; + + case 276: + + { + (yyval.interm.intermCase) = + context->addCase((yyvsp[-1].interm.intermTypedNode), (yylsp[-2])); + } + + break; + + case 277: + + { + (yyval.interm.intermCase) = context->addDefault((yylsp[-1])); + } + + break; + + case 278: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermTypedNode); + context->checkIsScalarBool((yyvsp[0].interm.intermTypedNode)->getLine(), + (yyvsp[0].interm.intermTypedNode)); + } + + break; + + case 279: + + { + (yyval.interm.intermNode) = context->addConditionInitializer( + (yyvsp[-3].interm.type), ImmutableString((yyvsp[-2].lex).string), + (yyvsp[0].interm.intermTypedNode), (yylsp[-2])); + } + + break; + + case 280: + + { + context->symbolTable.push(); + context->incrLoopNestingLevel(); + } + + break; + + case 281: + + { + context->symbolTable.pop(); + (yyval.interm.intermNode) = + context->addLoop(ELoopWhile, 0, (yyvsp[-2].interm.intermNode), 0, + (yyvsp[0].interm.intermNode), (yylsp[-5])); + context->decrLoopNestingLevel(); + } + + break; + + case 282: + + { + context->incrLoopNestingLevel(); + } + + break; + + case 283: + + { + (yyval.interm.intermNode) = + context->addLoop(ELoopDoWhile, 0, (yyvsp[-2].interm.intermTypedNode), 0, + (yyvsp[-5].interm.intermNode), (yylsp[-4])); + context->decrLoopNestingLevel(); + } + + break; + + case 284: + + { + context->symbolTable.push(); + context->incrLoopNestingLevel(); + } + + break; + + case 285: + + { + context->symbolTable.pop(); + (yyval.interm.intermNode) = context->addLoop( + ELoopFor, (yyvsp[-3].interm.intermNode), (yyvsp[-2].interm.nodePair).node1, + reinterpret_cast((yyvsp[-2].interm.nodePair).node2), + (yyvsp[0].interm.intermNode), (yylsp[-6])); + context->decrLoopNestingLevel(); + } + + break; + + case 286: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); + } + + break; + + case 287: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); + } + + break; + + case 288: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); + } + + break; + + case 289: + + { + (yyval.interm.intermNode) = nullptr; + } + + break; + + case 290: + + { + (yyval.interm.nodePair).node1 = (yyvsp[-1].interm.intermNode); + (yyval.interm.nodePair).node2 = 0; + } + + break; + + case 291: + + { + (yyval.interm.nodePair).node1 = (yyvsp[-2].interm.intermNode); + (yyval.interm.nodePair).node2 = (yyvsp[0].interm.intermTypedNode); + } + + break; + + case 292: + + { + (yyval.interm.intermNode) = context->addBranch(EOpContinue, (yylsp[-1])); + } + + break; + + case 293: + + { + (yyval.interm.intermNode) = context->addBranch(EOpBreak, (yylsp[-1])); + } + + break; + + case 294: + + { + (yyval.interm.intermNode) = context->addBranch(EOpReturn, (yylsp[-1])); + } + + break; + + case 295: + + { + (yyval.interm.intermNode) = + context->addBranch(EOpReturn, (yyvsp[-1].interm.intermTypedNode), (yylsp[-2])); + } + + break; + + case 296: + + { + (yyval.interm.intermNode) = context->addBranch(EOpKill, (yylsp[-1])); + } + + break; + + case 297: + + { + (yyval.interm.intermBlock) = new TIntermBlock(); + (yyval.interm.intermBlock)->setLine((yyloc)); + (yyval.interm.intermBlock)->appendStatement((yyvsp[0].interm.intermNode)); + context->setTreeRoot((yyval.interm.intermBlock)); + } + + break; + + case 298: + + { + (yyval.interm.intermBlock)->appendStatement((yyvsp[0].interm.intermNode)); + } + + break; + + case 299: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); + } + + break; + + case 300: + + { + (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); + } + + break; + + case 301: + + { + context->parseFunctionDefinitionHeader((yylsp[0]), (yyvsp[0].interm).function, + &((yyvsp[0].interm).intermFunctionPrototype)); + } + + break; + + case 302: + + { + (yyval.interm.intermNode) = + context->addFunctionDefinition((yyvsp[-2].interm).intermFunctionPrototype, + (yyvsp[0].interm.intermBlock), (yylsp[-2])); + } + + break; + + default: + break; } + /* User semantic actions sometimes alter yychar, and that requires + that yytoken be updated with the new translation. We take the + approach of translating immediately before every use of yytoken. + One alternative is translating here after every semantic action, + but that translation would be missed if the semantic action invokes + YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or + if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an + incorrect destructor might then be invoked immediately. In the + case of YYERROR or YYBACKUP, subsequent parser actions might lead + to an incorrect destructor call or verbose syntax error message + before the lookahead is translated. */ + YY_SYMBOL_PRINT("-> $$ =", yyr1[yyn], &yyval, &yyloc); - break; + YYPOPSTACK(yylen); + yylen = 0; + YY_STACK_PRINT(yyss, yyssp); - case 217: + *++yyvsp = yyval; + *++yylsp = yyloc; + /* Now 'shift' the result of the reduction. Determine what state + that goes to, based on the state we popped back to and the rule + number reduced by. */ { - (yyval.interm.typeSpecifierNonArray).initialize(EbtImage2D, (yylsp[0])); + const int yylhs = yyr1[yyn] - YYNTOKENS; + const int yyi = yypgoto[yylhs] + *yyssp; + yystate = + (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp ? yytable[yyi] : yydefgoto[yylhs]); } - break; - - case 218: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtIImage2D, (yylsp[0])); - } - - break; - - case 219: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtUImage2D, (yylsp[0])); - } - - break; - - case 220: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtImage3D, (yylsp[0])); - } - - break; - - case 221: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtIImage3D, (yylsp[0])); - } - - break; - - case 222: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtUImage3D, (yylsp[0])); - } - - break; - - case 223: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtImage2DArray, (yylsp[0])); - } - - break; - - case 224: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtIImage2DArray, (yylsp[0])); - } - - break; - - case 225: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtUImage2DArray, (yylsp[0])); - } - - break; - - case 226: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtImageCube, (yylsp[0])); - } - - break; - - case 227: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtIImageCube, (yylsp[0])); - } - - break; - - case 228: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtUImageCube, (yylsp[0])); - } - - break; - - case 229: - - { - (yyval.interm.typeSpecifierNonArray).initialize(EbtAtomicCounter, (yylsp[0])); - } - - break; - - case 230: - - { - (yyval.interm.typeSpecifierNonArray) = (yyvsp[0].interm.typeSpecifierNonArray); - } - - break; - - case 231: - - { - // This is for user defined type names. The lexical phase looked up the type. - const TStructure *structure = static_cast((yyvsp[0].lex).symbol); - (yyval.interm.typeSpecifierNonArray).initializeStruct(structure, false, (yylsp[0])); - } - - break; - - case 232: - - { context->enterStructDeclaration((yylsp[-1]), ImmutableString((yyvsp[-1].lex).string)); } - - break; - - case 233: - - { - (yyval.interm.typeSpecifierNonArray) = context->addStructure((yylsp[-5]), (yylsp[-4]), ImmutableString((yyvsp[-4].lex).string), (yyvsp[-1].interm.fieldList)); - } - - break; - - case 234: - - { context->enterStructDeclaration((yylsp[0]), kEmptyImmutableString); } - - break; - - case 235: - - { - (yyval.interm.typeSpecifierNonArray) = context->addStructure((yylsp[-4]), (yyloc), kEmptyImmutableString, (yyvsp[-1].interm.fieldList)); - } - - break; - - case 236: - - { - (yyval.interm.fieldList) = context->addStructFieldList((yyvsp[0].interm.fieldList), (yylsp[0])); - } - - break; - - case 237: - - { - (yyval.interm.fieldList) = context->combineStructFieldLists((yyvsp[-1].interm.fieldList), (yyvsp[0].interm.fieldList), (yylsp[0])); - } - - break; - - case 238: - - { - (yyval.interm.fieldList) = context->addStructDeclaratorList((yyvsp[-2].interm.type), (yyvsp[-1].interm.declaratorList)); - } - - break; - - case 239: - - { - // ES3 Only, but errors should be handled elsewhere - (yyval.interm.fieldList) = context->addStructDeclaratorListWithQualifiers(*(yyvsp[-3].interm.typeQualifierBuilder), &(yyvsp[-2].interm.type), (yyvsp[-1].interm.declaratorList)); - } - - break; - - case 240: - - { - (yyval.interm.declaratorList) = new TDeclaratorList(); - (yyval.interm.declaratorList)->push_back((yyvsp[0].interm.declarator)); - } - - break; - - case 241: - - { - (yyval.interm.declaratorList)->push_back((yyvsp[0].interm.declarator)); - } - - break; - - case 242: - - { - (yyval.interm.declarator) = context->parseStructDeclarator(ImmutableString((yyvsp[0].lex).string), (yylsp[0])); - } - - break; - - case 243: - - { - (yyval.interm.declarator) = context->parseStructArrayDeclarator(ImmutableString((yyvsp[-1].lex).string), (yylsp[-1]), (yyvsp[0].interm.arraySizes)); - } - - break; - - case 244: - - { (yyval.interm.intermTypedNode) = (yyvsp[0].interm.intermTypedNode); } - - break; - - case 245: - - { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); } - - break; - - case 246: - - { (yyval.interm.intermNode) = (yyvsp[0].interm.intermBlock); } - - break; - - case 247: - - { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); } - - break; - - case 248: - - { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); } - - break; - - case 249: - - { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); } - - break; - - case 250: - - { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); } - - break; - - case 251: - - { (yyval.interm.intermNode) = (yyvsp[0].interm.intermSwitch); } - - break; - - case 252: - - { (yyval.interm.intermNode) = (yyvsp[0].interm.intermCase); } - - break; - - case 253: - - { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); } - - break; - - case 254: - - { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); } - - break; - - case 255: - - { - (yyval.interm.intermBlock) = new TIntermBlock(); - (yyval.interm.intermBlock)->setLine((yyloc)); - } - - break; - - case 256: - - { context->symbolTable.push(); } - - break; - - case 257: - - { context->symbolTable.pop(); } - - break; - - case 258: - - { - (yyvsp[-2].interm.intermBlock)->setLine((yyloc)); - (yyval.interm.intermBlock) = (yyvsp[-2].interm.intermBlock); - } - - break; - - case 259: - - { (yyval.interm.intermNode) = (yyvsp[0].interm.intermBlock); } - - break; - - case 260: - - { (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); } - - break; - - case 261: - - { context->symbolTable.push(); } - - break; - - case 262: - - { context->symbolTable.pop(); (yyval.interm.intermNode) = (yyvsp[0].interm.intermBlock); } - - break; - - case 263: - - { context->symbolTable.push(); } - - break; - - case 264: - - { context->symbolTable.pop(); (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); } - - break; - - case 265: - - { - (yyval.interm.intermBlock) = new TIntermBlock(); - (yyval.interm.intermBlock)->setLine((yyloc)); - } - - break; - - case 266: - - { - (yyvsp[-1].interm.intermBlock)->setLine((yyloc)); - (yyval.interm.intermBlock) = (yyvsp[-1].interm.intermBlock); - } - - break; - - case 267: - - { - (yyval.interm.intermBlock) = new TIntermBlock(); - context->appendStatement((yyval.interm.intermBlock), (yyvsp[0].interm.intermNode)); - } - - break; - - case 268: - - { - (yyval.interm.intermBlock) = (yyvsp[-1].interm.intermBlock); - context->appendStatement((yyval.interm.intermBlock), (yyvsp[0].interm.intermNode)); - } - - break; - - case 269: - - { (yyval.interm.intermNode) = context->addEmptyStatement((yyloc)); } - - break; - - case 270: - - { (yyval.interm.intermNode) = (yyvsp[-1].interm.intermTypedNode); } - - break; - - case 271: - - { - (yyval.interm.intermNode) = context->addIfElse((yyvsp[-2].interm.intermTypedNode), (yyvsp[0].interm.nodePair), (yylsp[-4])); - } - - break; - - case 272: - - { - (yyval.interm.nodePair).node1 = (yyvsp[-2].interm.intermNode); - (yyval.interm.nodePair).node2 = (yyvsp[0].interm.intermNode); - } - - break; - - case 273: - - { - (yyval.interm.nodePair).node1 = (yyvsp[0].interm.intermNode); - (yyval.interm.nodePair).node2 = nullptr; - } - - break; - - case 274: - - { context->incrSwitchNestingLevel(); } - - break; - - case 275: - - { - (yyval.interm.intermSwitch) = context->addSwitch((yyvsp[-3].interm.intermTypedNode), (yyvsp[0].interm.intermBlock), (yylsp[-5])); - context->decrSwitchNestingLevel(); - } - - break; - - case 276: - - { - (yyval.interm.intermCase) = context->addCase((yyvsp[-1].interm.intermTypedNode), (yylsp[-2])); - } - - break; - - case 277: - - { - (yyval.interm.intermCase) = context->addDefault((yylsp[-1])); - } - - break; - - case 278: - - { - (yyval.interm.intermNode) = (yyvsp[0].interm.intermTypedNode); - context->checkIsScalarBool((yyvsp[0].interm.intermTypedNode)->getLine(), (yyvsp[0].interm.intermTypedNode)); - } - - break; - - case 279: - - { - (yyval.interm.intermNode) = context->addConditionInitializer((yyvsp[-3].interm.type), ImmutableString((yyvsp[-2].lex).string), (yyvsp[0].interm.intermTypedNode), (yylsp[-2])); - } - - break; - - case 280: - - { context->symbolTable.push(); context->incrLoopNestingLevel(); } - - break; - - case 281: - - { - context->symbolTable.pop(); - (yyval.interm.intermNode) = context->addLoop(ELoopWhile, 0, (yyvsp[-2].interm.intermNode), 0, (yyvsp[0].interm.intermNode), (yylsp[-5])); - context->decrLoopNestingLevel(); - } - - break; - - case 282: - - { context->incrLoopNestingLevel(); } - - break; - - case 283: - - { - (yyval.interm.intermNode) = context->addLoop(ELoopDoWhile, 0, (yyvsp[-2].interm.intermTypedNode), 0, (yyvsp[-5].interm.intermNode), (yylsp[-4])); - context->decrLoopNestingLevel(); - } - - break; - - case 284: - - { context->symbolTable.push(); context->incrLoopNestingLevel(); } - - break; - - case 285: - - { - context->symbolTable.pop(); - (yyval.interm.intermNode) = context->addLoop(ELoopFor, (yyvsp[-3].interm.intermNode), (yyvsp[-2].interm.nodePair).node1, reinterpret_cast((yyvsp[-2].interm.nodePair).node2), (yyvsp[0].interm.intermNode), (yylsp[-6])); - context->decrLoopNestingLevel(); - } - - break; - - case 286: - - { - (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); - } - - break; - - case 287: - - { - (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); - } - - break; - - case 288: - - { - (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); - } - - break; - - case 289: - - { - (yyval.interm.intermNode) = nullptr; - } - - break; - - case 290: - - { - (yyval.interm.nodePair).node1 = (yyvsp[-1].interm.intermNode); - (yyval.interm.nodePair).node2 = 0; - } - - break; - - case 291: - - { - (yyval.interm.nodePair).node1 = (yyvsp[-2].interm.intermNode); - (yyval.interm.nodePair).node2 = (yyvsp[0].interm.intermTypedNode); - } - - break; - - case 292: - - { - (yyval.interm.intermNode) = context->addBranch(EOpContinue, (yylsp[-1])); - } - - break; - - case 293: - - { - (yyval.interm.intermNode) = context->addBranch(EOpBreak, (yylsp[-1])); - } - - break; - - case 294: - - { - (yyval.interm.intermNode) = context->addBranch(EOpReturn, (yylsp[-1])); - } - - break; - - case 295: - - { - (yyval.interm.intermNode) = context->addBranch(EOpReturn, (yyvsp[-1].interm.intermTypedNode), (yylsp[-2])); - } - - break; - - case 296: - - { - (yyval.interm.intermNode) = context->addBranch(EOpKill, (yylsp[-1])); - } - - break; - - case 297: - - { - (yyval.interm.intermBlock) = new TIntermBlock(); - (yyval.interm.intermBlock)->setLine((yyloc)); - (yyval.interm.intermBlock)->appendStatement((yyvsp[0].interm.intermNode)); - context->setTreeRoot((yyval.interm.intermBlock)); - } - - break; - - case 298: - - { - (yyval.interm.intermBlock)->appendStatement((yyvsp[0].interm.intermNode)); - } - - break; - - case 299: - - { - (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); - } - - break; - - case 300: - - { - (yyval.interm.intermNode) = (yyvsp[0].interm.intermNode); - } - - break; - - case 301: - - { - context->parseFunctionDefinitionHeader((yylsp[0]), (yyvsp[0].interm).function, &((yyvsp[0].interm).intermFunctionPrototype)); - } - - break; - - case 302: - - { - (yyval.interm.intermNode) = context->addFunctionDefinition((yyvsp[-2].interm).intermFunctionPrototype, (yyvsp[0].interm.intermBlock), (yylsp[-2])); - } - - break; - - - - default: break; - } - /* User semantic actions sometimes alter yychar, and that requires - that yytoken be updated with the new translation. We take the - approach of translating immediately before every use of yytoken. - One alternative is translating here after every semantic action, - but that translation would be missed if the semantic action invokes - YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or - if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an - incorrect destructor might then be invoked immediately. In the - case of YYERROR or YYBACKUP, subsequent parser actions might lead - to an incorrect destructor call or verbose syntax error message - before the lookahead is translated. */ - YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); - - YYPOPSTACK (yylen); - yylen = 0; - YY_STACK_PRINT (yyss, yyssp); - - *++yyvsp = yyval; - *++yylsp = yyloc; - - /* Now 'shift' the result of the reduction. Determine what state - that goes to, based on the state we popped back to and the rule - number reduced by. */ - { - const int yylhs = yyr1[yyn] - YYNTOKENS; - const int yyi = yypgoto[yylhs] + *yyssp; - yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp - ? yytable[yyi] - : yydefgoto[yylhs]); - } - - goto yynewstate; - + goto yynewstate; /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ yyerrlab: - /* Make sure we have latest lookahead translation. See comments at - user semantic actions for why this is necessary. */ - yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE(yychar); - /* If not already recovering from an error, report this error. */ - if (!yyerrstatus) + /* If not already recovering from an error, report this error. */ + if (!yyerrstatus) { - ++yynerrs; -#if ! YYERROR_VERBOSE - yyerror (&yylloc, context, scanner, YY_("syntax error")); + ++yynerrs; +#if !YYERROR_VERBOSE + yyerror(&yylloc, context, scanner, YY_("syntax error")); #else -# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ - yyssp, yytoken) - { - char const *yymsgp = YY_("syntax error"); - int yysyntax_error_status; - yysyntax_error_status = YYSYNTAX_ERROR; - if (yysyntax_error_status == 0) - yymsgp = yymsg; - else if (yysyntax_error_status == 1) - { - if (yymsg != yymsgbuf) - YYSTACK_FREE (yymsg); - yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); - if (!yymsg) - { - yymsg = yymsgbuf; - yymsg_alloc = sizeof yymsgbuf; - yysyntax_error_status = 2; - } - else - { - yysyntax_error_status = YYSYNTAX_ERROR; +# define YYSYNTAX_ERROR yysyntax_error(&yymsg_alloc, &yymsg, yyssp, yytoken) + { + char const *yymsgp = YY_("syntax error"); + int yysyntax_error_status; + yysyntax_error_status = YYSYNTAX_ERROR; + if (yysyntax_error_status == 0) yymsgp = yymsg; - } - } - yyerror (&yylloc, context, scanner, yymsgp); - if (yysyntax_error_status == 2) - goto yyexhaustedlab; - } -# undef YYSYNTAX_ERROR + else if (yysyntax_error_status == 1) + { + if (yymsg != yymsgbuf) + YYSTACK_FREE(yymsg); + yymsg = (char *)YYSTACK_ALLOC(yymsg_alloc); + if (!yymsg) + { + yymsg = yymsgbuf; + yymsg_alloc = sizeof yymsgbuf; + yysyntax_error_status = 2; + } + else + { + yysyntax_error_status = YYSYNTAX_ERROR; + yymsgp = yymsg; + } + } + yyerror(&yylloc, context, scanner, yymsgp); + if (yysyntax_error_status == 2) + goto yyexhaustedlab; + } +# undef YYSYNTAX_ERROR #endif } - yyerror_range[1] = yylloc; + yyerror_range[1] = yylloc; - if (yyerrstatus == 3) + if (yyerrstatus == 3) { - /* If just tried and failed to reuse lookahead token after an - error, discard it. */ + /* If just tried and failed to reuse lookahead token after an + error, discard it. */ - if (yychar <= YYEOF) + if (yychar <= YYEOF) { - /* Return failure if at end of input. */ - if (yychar == YYEOF) - YYABORT; + /* Return failure if at end of input. */ + if (yychar == YYEOF) + YYABORT; } - else + else { - yydestruct ("Error: discarding", - yytoken, &yylval, &yylloc, context, scanner); - yychar = YYEMPTY; + yydestruct("Error: discarding", yytoken, &yylval, &yylloc, context, scanner); + yychar = YYEMPTY; } } - /* Else will try to reuse lookahead token after shifting the error - token. */ - goto yyerrlab1; - + /* Else will try to reuse lookahead token after shifting the error + token. */ + goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: - /* Pacify compilers when the user code never invokes YYERROR and the - label yyerrorlab therefore never appears in user code. */ - if (0) - YYERROR; - - /* Do not reclaim the symbols of the rule whose action triggered - this YYERROR. */ - YYPOPSTACK (yylen); - yylen = 0; - YY_STACK_PRINT (yyss, yyssp); - yystate = *yyssp; - goto yyerrlab1; + /* Pacify compilers when the user code never invokes YYERROR and the + label yyerrorlab therefore never appears in user code. */ + if (0) + YYERROR; + /* Do not reclaim the symbols of the rule whose action triggered + this YYERROR. */ + YYPOPSTACK(yylen); + yylen = 0; + YY_STACK_PRINT(yyss, yyssp); + yystate = *yyssp; + goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: - yyerrstatus = 3; /* Each real token shifted decrements this. */ + yyerrstatus = 3; /* Each real token shifted decrements this. */ - for (;;) + for (;;) { - yyn = yypact[yystate]; - if (!yypact_value_is_default (yyn)) + yyn = yypact[yystate]; + if (!yypact_value_is_default(yyn)) { - yyn += YYTERROR; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) + yyn += YYTERROR; + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { - yyn = yytable[yyn]; - if (0 < yyn) - break; + yyn = yytable[yyn]; + if (0 < yyn) + break; } } - /* Pop the current state because it cannot handle the error token. */ - if (yyssp == yyss) - YYABORT; + /* Pop the current state because it cannot handle the error token. */ + if (yyssp == yyss) + YYABORT; - yyerror_range[1] = *yylsp; - yydestruct ("Error: popping", - yystos[yystate], yyvsp, yylsp, context, scanner); - YYPOPSTACK (1); - yystate = *yyssp; - YY_STACK_PRINT (yyss, yyssp); + yyerror_range[1] = *yylsp; + yydestruct("Error: popping", yystos[yystate], yyvsp, yylsp, context, scanner); + YYPOPSTACK(1); + yystate = *yyssp; + YY_STACK_PRINT(yyss, yyssp); } - YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN - *++yyvsp = yylval; - YY_IGNORE_MAYBE_UNINITIALIZED_END + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END - yyerror_range[2] = yylloc; - /* Using YYLLOC is tempting, but would change the location of - the lookahead. YYLOC is available though. */ - YYLLOC_DEFAULT (yyloc, yyerror_range, 2); - *++yylsp = yyloc; + yyerror_range[2] = yylloc; + /* Using YYLLOC is tempting, but would change the location of + the lookahead. YYLOC is available though. */ + YYLLOC_DEFAULT(yyloc, yyerror_range, 2); + *++yylsp = yyloc; - /* Shift the error token. */ - YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); - - yystate = yyn; - goto yynewstate; + /* Shift the error token. */ + YY_SYMBOL_PRINT("Shifting", yystos[yyn], yyvsp, yylsp); + yystate = yyn; + goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: - yyresult = 0; - goto yyreturn; - + yyresult = 0; + goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: - yyresult = 1; - goto yyreturn; - + yyresult = 1; + goto yyreturn; #if !defined yyoverflow || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: - yyerror (&yylloc, context, scanner, YY_("memory exhausted")); - yyresult = 2; - /* Fall through. */ + yyerror(&yylloc, context, scanner, YY_("memory exhausted")); + yyresult = 2; + /* Fall through. */ #endif - /*-----------------------------------------------------. | yyreturn -- parsing is finished, return the result. | `-----------------------------------------------------*/ yyreturn: - if (yychar != YYEMPTY) + if (yychar != YYEMPTY) { - /* Make sure we have latest lookahead translation. See comments at - user semantic actions for why this is necessary. */ - yytoken = YYTRANSLATE (yychar); - yydestruct ("Cleanup: discarding lookahead", - yytoken, &yylval, &yylloc, context, scanner); + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = YYTRANSLATE(yychar); + yydestruct("Cleanup: discarding lookahead", yytoken, &yylval, &yylloc, context, scanner); } - /* Do not reclaim the symbols of the rule whose action triggered - this YYABORT or YYACCEPT. */ - YYPOPSTACK (yylen); - YY_STACK_PRINT (yyss, yyssp); - while (yyssp != yyss) + /* Do not reclaim the symbols of the rule whose action triggered + this YYABORT or YYACCEPT. */ + YYPOPSTACK(yylen); + YY_STACK_PRINT(yyss, yyssp); + while (yyssp != yyss) { - yydestruct ("Cleanup: popping", - yystos[*yyssp], yyvsp, yylsp, context, scanner); - YYPOPSTACK (1); + yydestruct("Cleanup: popping", yystos[*yyssp], yyvsp, yylsp, context, scanner); + YYPOPSTACK(1); } #ifndef yyoverflow - if (yyss != yyssa) - YYSTACK_FREE (yyss); + if (yyss != yyssa) + YYSTACK_FREE(yyss); #endif #if YYERROR_VERBOSE - if (yymsg != yymsgbuf) - YYSTACK_FREE (yymsg); + if (yymsg != yymsgbuf) + YYSTACK_FREE(yymsg); #endif - return yyresult; + return yyresult; } - - -int glslang_parse(TParseContext* context) { +int glslang_parse(TParseContext *context) +{ return yyparse(context, context->getScanner()); } diff --git a/src/libANGLE/gen_copy_conversion_table.py b/src/libANGLE/gen_copy_conversion_table.py index 7ff5dccf1..5ce915a7d 100644 --- a/src/libANGLE/gen_copy_conversion_table.py +++ b/src/libANGLE/gen_copy_conversion_table.py @@ -74,7 +74,7 @@ def main(): # auto_script parameters. if len(sys.argv) > 1: - inputs = [data_source_name] + inputs = ['renderer/angle_format.py', data_source_name] outputs = [out_file_name] if sys.argv[1] == 'inputs': diff --git a/src/libANGLE/gen_format_map.py b/src/libANGLE/gen_format_map.py index 02afbc7e9..a35606846 100644 --- a/src/libANGLE/gen_format_map.py +++ b/src/libANGLE/gen_format_map.py @@ -127,7 +127,9 @@ def main(): # auto_script parameters. if len(sys.argv) > 1: - inputs = ['es3_format_type_combinations.json', 'format_map_data.json'] + inputs = [ + 'renderer/angle_format.py', 'es3_format_type_combinations.json', 'format_map_data.json' + ] outputs = ['format_map_autogen.cpp'] if sys.argv[1] == 'inputs': diff --git a/src/libANGLE/renderer/gen_load_functions_table.py b/src/libANGLE/renderer/gen_load_functions_table.py index 23f527afc..e0667befd 100755 --- a/src/libANGLE/renderer/gen_load_functions_table.py +++ b/src/libANGLE/renderer/gen_load_functions_table.py @@ -198,7 +198,7 @@ def main(): # auto_script parameters. if len(sys.argv) > 1: - inputs = ['load_functions_data.json'] + inputs = ['angle_format.py', 'load_functions_data.json'] outputs = ['load_functions_table_autogen.cpp'] if sys.argv[1] == 'inputs': diff --git a/src/libANGLE/renderer/metal/gen_mtl_format_table.py b/src/libANGLE/renderer/metal/gen_mtl_format_table.py index 4e0879a0c..a1f1e92b0 100644 --- a/src/libANGLE/renderer/metal/gen_mtl_format_table.py +++ b/src/libANGLE/renderer/metal/gen_mtl_format_table.py @@ -265,7 +265,7 @@ def gen_vertex_map_switch_string(vertex_table): def main(): # auto_script parameters. if len(sys.argv) > 1: - inputs = ['mtl_format_map.json'] + inputs = ['../angle_format.py', 'mtl_format_map.json'] outputs = ['mtl_format_table_autogen.mm'] if sys.argv[1] == 'inputs': diff --git a/src/tests/compiler_tests/QualificationOrder_test.cpp b/src/tests/compiler_tests/QualificationOrder_test.cpp index 16c06e8c1..eccd0a67f 100644 --- a/src/tests/compiler_tests/QualificationOrder_test.cpp +++ b/src/tests/compiler_tests/QualificationOrder_test.cpp @@ -429,7 +429,7 @@ TEST_F(QualificationOrderFragmentShaderTest, InvalidFunctionParametersInvariant) "}\n" "void main()\n" "{\n" - " gl_FragColor = vec4(foo0(value));\n" + " gl_FragColor = vec4(foo0(value));\n" "}\n"; if (compile(shaderString)) @@ -449,7 +449,7 @@ TEST_F(QualificationOrderFragmentShaderTest, InvalidFunctionParametersAttribute) "}\n" "void main()\n" "{\n" - " gl_FragColor = vec4(foo0(value));\n" + " gl_FragColor = vec4(foo0(value));\n" "}\n"; if (compile(shaderString)) @@ -469,7 +469,7 @@ TEST_F(QualificationOrderFragmentShaderTest, InvalidFunctionParametersVarying) "}\n" "void main()\n" "{\n" - " gl_FragColor = vec4(foo0(value));\n" + " gl_FragColor = vec4(foo0(value));\n" "}\n"; if (compile(shaderString)) @@ -491,7 +491,7 @@ TEST_F(QualificationOrderFragmentShaderTest, InvalidFunctionParametersLayout) "out vec4 colorOUT;\n" "void main()\n" "{\n" - " colorOUT = vec4(foo0(value));\n" + " colorOUT = vec4(foo0(value));\n" "}\n"; if (compile(shaderString)) @@ -513,7 +513,7 @@ TEST_F(QualificationOrderFragmentShaderTest, InvalidFunctionParametersCentroidIn "out vec4 colorOUT;\n" "void main()\n" "{\n" - " colorOUT = vec4(foo0(value));\n" + " colorOUT = vec4(foo0(value));\n" "}\n"; if (compile(shaderString)) @@ -535,7 +535,7 @@ TEST_F(QualificationOrderFragmentShaderTest, InvalidFunctionParametersFlatIn) "out vec4 colorOUT;\n" "void main()\n" "{\n" - " colorOUT = vec4(foo0(value));\n" + " colorOUT = vec4(foo0(value));\n" "}\n"; if (compile(shaderString)) diff --git a/src/tests/deqp_support/glcShaderConstExprTests_override.cpp b/src/tests/deqp_support/glcShaderConstExprTests_override.cpp index 354ec4617..21fb6b675 100644 --- a/src/tests/deqp_support/glcShaderConstExprTests_override.cpp +++ b/src/tests/deqp_support/glcShaderConstExprTests_override.cpp @@ -425,7 +425,7 @@ void ShaderConstExprTests::init(void) {"min", "min(${T} (12.3), ${MT} (32.1))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, {12.3f}}, {"max", "max(${T} (12.3), ${MT} (32.1))", glu::TYPE_FLOAT, 1, 4, glu::TYPE_FLOAT, {32.1f}}, {"clamp", - "clamp(${T} (42.1), ${MT} (10.0), ${MT} (15.0))", + "clamp(${T} (42.1), ${MT} (10.0), ${MT} (15.0))", glu::TYPE_FLOAT, 1, 4, @@ -559,7 +559,7 @@ void ShaderConstExprTests::init(void) glu::TYPE_INT, {deFloatMax(2.3f, 3.1f)}}, {"clamp", - "clamp(${T} (4.1), ${MT} (2.1), ${MT} (3.1))", + "clamp(${T} (4.1), ${MT} (2.1), ${MT} (3.1))", glu::TYPE_FLOAT, 1, 4, diff --git a/src/tests/deqp_support/tes31Context_override.cpp b/src/tests/deqp_support/tes31Context_override.cpp index 35093b21e..69fe7b5e8 100644 --- a/src/tests/deqp_support/tes31Context_override.cpp +++ b/src/tests/deqp_support/tes31Context_override.cpp @@ -24,73 +24,73 @@ namespace gles31 { Context::Context (tcu::TestContext& testCtx) - : m_testCtx (testCtx) - , m_renderCtx (DE_NULL) - , m_contextInfo (DE_NULL) + : m_testCtx (testCtx) + , m_renderCtx (DE_NULL) + , m_contextInfo (DE_NULL) { - if (m_testCtx.getCommandLine().getRunMode() == tcu::RUNMODE_EXECUTE) - createRenderContext(); - else - { - // \todo [2016-11-15 pyry] Many tests (erroneously) inspect context type - // during test hierarchy construction. We should fix that - // and revert dummy context to advertise unknown context type. - m_renderCtx = new glu::DummyRenderContext(glu::ContextType(glu::ApiType::es(3,1))); - } + if (m_testCtx.getCommandLine().getRunMode() == tcu::RUNMODE_EXECUTE) + createRenderContext(); + else + { + // \todo [2016-11-15 pyry] Many tests (erroneously) inspect context type + // during test hierarchy construction. We should fix that + // and revert dummy context to advertise unknown context type. + m_renderCtx = new glu::DummyRenderContext(glu::ContextType(glu::ApiType::es(3,1))); + } } Context::~Context (void) { - destroyRenderContext(); + destroyRenderContext(); } void Context::createRenderContext (void) { - DE_ASSERT(!m_renderCtx && !m_contextInfo); + DE_ASSERT(!m_renderCtx && !m_contextInfo); - try - { + try + { // Issue 3687 // OpenGL ES 3.2 contexts are not supported yet, and the 3.2 context creation failure results in // tests that pass with the recreated 3.1 context being marked "fail". // Revert with Issue 3688 #if 0 - try - { - m_renderCtx = glu::createDefaultRenderContext(m_testCtx.getPlatform(), m_testCtx.getCommandLine(), glu::ApiType::es(3, 2)); - } - catch (...) - { - m_renderCtx = glu::createDefaultRenderContext(m_testCtx.getPlatform(), m_testCtx.getCommandLine(), glu::ApiType::es(3, 1)); - } + try + { + m_renderCtx = glu::createDefaultRenderContext(m_testCtx.getPlatform(), m_testCtx.getCommandLine(), glu::ApiType::es(3, 2)); + } + catch (...) + { + m_renderCtx = glu::createDefaultRenderContext(m_testCtx.getPlatform(), m_testCtx.getCommandLine(), glu::ApiType::es(3, 1)); + } #else - // Override the original behavior (above) to only create a 3.1 context - m_renderCtx = glu::createDefaultRenderContext(m_testCtx.getPlatform(), m_testCtx.getCommandLine(), glu::ApiType::es(3, 1)); + // Override the original behavior (above) to only create a 3.1 context + m_renderCtx = glu::createDefaultRenderContext(m_testCtx.getPlatform(), m_testCtx.getCommandLine(), glu::ApiType::es(3, 1)); #endif - m_contextInfo = glu::ContextInfo::create(*m_renderCtx); - } - catch (...) - { - destroyRenderContext(); - throw; - } + m_contextInfo = glu::ContextInfo::create(*m_renderCtx); + } + catch (...) + { + destroyRenderContext(); + throw; + } } void Context::destroyRenderContext (void) { - delete m_contextInfo; - delete m_renderCtx; + delete m_contextInfo; + delete m_renderCtx; - m_contextInfo = DE_NULL; - m_renderCtx = DE_NULL; + m_contextInfo = DE_NULL; + m_renderCtx = DE_NULL; } const tcu::RenderTarget& Context::getRenderTarget (void) const { - return m_renderCtx->getRenderTarget(); + return m_renderCtx->getRenderTarget(); } } // gles31 } // deqp -// clang-format on \ No newline at end of file +// clang-format on diff --git a/src/tests/perf_tests/MultiviewPerf.cpp b/src/tests/perf_tests/MultiviewPerf.cpp index 7bc36e890..6db5f193c 100644 --- a/src/tests/perf_tests/MultiviewPerf.cpp +++ b/src/tests/perf_tests/MultiviewPerf.cpp @@ -322,7 +322,7 @@ void MultiviewCPUBoundBenchmark::initializeBenchmark() "{\n" " vec4 v = vPosition;\n" " v.xy += uOffset;\n" - " gl_Position = v;\n" + " gl_Position = v;\n" "}\n"; const std::string fs = @@ -421,7 +421,7 @@ void MultiviewGPUBoundBenchmark::initializeBenchmark() " frag_Col3 = vert_Col3;\n" " frag_Col4 = vert_Col4;\n" " frag_Col5 = vert_Col5;\n" - " gl_Position = vPosition;\n" + " gl_Position = vPosition;\n" "}\n"; const std::string &fs =