Kouhei Sutou
null+****@clear*****
Sat Feb 20 18:13:17 JST 2016
Kouhei Sutou 2016-02-20 18:13:17 +0900 (Sat, 20 Feb 2016) New Revision: a333591bba77300437836b3d8109db1d079b8200 https://github.com/groonga/groonga/commit/a333591bba77300437836b3d8109db1d079b8200 Message: Generate files by lemon 3.11 Modified files: lib/grn_ecmascript.c lib/grn_ecmascript.h Modified: lib/grn_ecmascript.c (+767 -685) =================================================================== --- lib/grn_ecmascript.c 2016-02-20 18:07:03 +0900 (1453071) +++ lib/grn_ecmascript.c 2016-02-20 18:13:17 +0900 (da72c07) @@ -1,62 +1,91 @@ -/* Driver template for the LEMON parser generator. -** The author disclaims copyright to this source code. +/* +** 2000-05-29 +** +** The author disclaims copyright to this source code. In place of +** a legal notice, here is a blessing: +** +** May you do good and not evil. +** May you find forgiveness for yourself and forgive others. +** May you share freely, never taking more than you give. +** +************************************************************************* +** Driver template for the LEMON parser generator. +** +** The "lemon" program processes an LALR(1) input grammar file, then uses +** this template to construct a parser. The "lemon" program inserts text +** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the +** interstitial "-" characters) contained in this template is changed into +** the value of the %name directive from the grammar. Otherwise, the content +** of this template is copied straight through into the generate parser +** source file. +** +** The following is the concatenation of all %include directives from the +** input grammar file: */ -/* First off, code is included that follows the "include" declaration -** in the input grammar file. */ #include <stdio.h> +/************ Begin %include sections from the grammar ************************/ #line 4 "grn_ecmascript.lemon" #define assert GRN_ASSERT -#line 11 "grn_ecmascript.c" -/* Next is all token values, in a form suitable for use by makeheaders. -** This section will be null unless lemon is run with the -m switch. -*/ -/* -** These constants (all generated automatically by the parser generator) -** specify the various kinds of tokens (terminals) that the parser -** understands. -** -** Each symbol here is a terminal symbol in the grammar. -*/ -/* Make sure the INTERFACE macro is defined. -*/ -#ifndef INTERFACE -# define INTERFACE 1 -#endif -/* The next thing included is series of defines which control +#line 31 "grn_ecmascript.c" +/**************** End of %include directives **********************************/ +/* These constants specify the various numeric values for terminal symbols +** in a format understandable to "makeheaders". This section is blank unless +** "lemon" is run with the "-m" command-line option. +***************** Begin makeheaders token definitions *************************/ +/**************** End makeheaders token definitions ***************************/ + +/* The next sections is a series of control #defines. ** various aspects of the generated parser. -** YYCODETYPE is the data type used for storing terminal -** and nonterminal numbers. "unsigned char" is -** used if there are fewer than 250 terminals -** and nonterminals. "int" is used otherwise. -** YYNOCODE is a number of type YYCODETYPE which corresponds -** to no legal terminal or nonterminal number. This -** number is used to fill in empty slots of the hash -** table. +** YYCODETYPE is the data type used to store the integer codes +** that represent terminal and non-terminal symbols. +** "unsigned char" is used if there are fewer than +** 256 symbols. Larger types otherwise. +** YYNOCODE is a number of type YYCODETYPE that is not used for +** any terminal or nonterminal symbol. ** YYFALLBACK If defined, this indicates that one or more tokens -** have fall-back values which should be used if the -** original value of the token will not parse. -** YYACTIONTYPE is the data type used for storing terminal -** and nonterminal numbers. "unsigned char" is -** used if there are fewer than 250 rules and -** states combined. "int" is used otherwise. -** grn_expr_parserTOKENTYPE is the data type used for minor tokens given -** directly to the parser from the tokenizer. -** YYMINORTYPE is the data type used for all minor tokens. +** (also known as: "terminal symbols") have fall-back +** values which should be used if the original symbol +** would not parse. This permits keywords to sometimes +** be used as identifiers, for example. +** YYACTIONTYPE is the data type used for "action codes" - numbers +** that indicate what to do in response to the next +** token. +** grn_expr_parserTOKENTYPE is the data type used for minor type for terminal +** symbols. Background: A "minor type" is a semantic +** value associated with a terminal or non-terminal +** symbols. For example, for an "ID" terminal symbol, +** the minor type might be the name of the identifier. +** Each non-terminal can have a different minor type. +** Terminal symbols all have the same minor type, though. +** This macros defines the minor type for terminal +** symbols. +** YYMINORTYPE is the data type used for all minor types. ** This is typically a union of many types, one of ** which is grn_expr_parserTOKENTYPE. The entry in the union -** for base tokens is called "yy0". +** for terminal symbols is called "yy0". ** YYSTACKDEPTH is the maximum depth of the parser's stack. If ** zero the stack is dynamically sized using realloc() ** grn_expr_parserARG_SDECL A static variable declaration for the %extra_argument ** grn_expr_parserARG_PDECL A parameter declaration for the %extra_argument ** grn_expr_parserARG_STORE Code to store %extra_argument into yypParser ** grn_expr_parserARG_FETCH Code to extract %extra_argument from yypParser -** YYNSTATE the combined number of states. -** YYNRULE the number of rules in the grammar ** YYERRORSYMBOL is the code number of the error symbol. If not ** defined, then do no error processing. +** YYNSTATE the combined number of states. +** YYNRULE the number of rules in the grammar +** YY_MAX_SHIFT Maximum value for shift actions +** YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions +** YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions +** YY_MIN_REDUCE Maximum value for reduce actions +** YY_ERROR_ACTION The yy_action[] code for syntax error +** YY_ACCEPT_ACTION The yy_action[] code for accept +** YY_NO_ACTION The yy_action[] code for no-op */ +#ifndef INTERFACE +# define INTERFACE 1 +#endif +/************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned char #define YYNOCODE 114 #define YYACTIONTYPE unsigned short int @@ -73,11 +102,17 @@ typedef union { #define grn_expr_parserARG_PDECL , efs_info *efsi #define grn_expr_parserARG_FETCH efs_info *efsi = yypParser->efsi #define grn_expr_parserARG_STORE yypParser->efsi = efsi -#define YYNSTATE 231 -#define YYNRULE 135 -#define YY_NO_ACTION (YYNSTATE+YYNRULE+2) -#define YY_ACCEPT_ACTION (YYNSTATE+YYNRULE+1) -#define YY_ERROR_ACTION (YYNSTATE+YYNRULE) +#define YYNSTATE 143 +#define YYNRULE 134 +#define YY_MAX_SHIFT 142 +#define YY_MIN_SHIFTREDUCE 229 +#define YY_MAX_SHIFTREDUCE 362 +#define YY_MIN_REDUCE 363 +#define YY_MAX_REDUCE 496 +#define YY_ERROR_ACTION 497 +#define YY_ACCEPT_ACTION 498 +#define YY_NO_ACTION 499 +/************* End control #defines *******************************************/ /* The yyzerominor constant is used to initialize instances of ** YYMINORTYPE objects to zero. */ @@ -104,16 +139,20 @@ static const YYMINORTYPE yyzerominor = { 0 }; ** Suppose the action integer is N. Then the action is determined as ** follows ** -** 0 <= N < YYNSTATE Shift N. That is, push the lookahead +** 0 <= N <= YY_MAX_SHIFT Shift N. That is, push the lookahead ** token onto the stack and goto state N. ** -** YYNSTATE <= N < YYNSTATE+YYNRULE Reduce by rule N-YYNSTATE. +** N between YY_MIN_SHIFTREDUCE Shift to an arbitrary state then +** and YY_MAX_SHIFTREDUCE reduce by rule N-YY_MIN_SHIFTREDUCE. ** -** N == YYNSTATE+YYNRULE A syntax error has occurred. +** N between YY_MIN_REDUCE Reduce by rule N-YY_MIN_REDUCE +** and YY_MAX_REDUCE + +** N == YY_ERROR_ACTION A syntax error has occurred. ** -** N == YYNSTATE+YYNRULE+1 The parser accepts its input. +** N == YY_ACCEPT_ACTION The parser accepts its input. ** -** N == YYNSTATE+YYNRULE+2 No such action. Denotes unused +** N == YY_NO_ACTION No such action. Denotes unused ** slots in the yy_action[] table. ** ** The action table is constructed as a single large table named yy_action[]. @@ -142,411 +181,422 @@ static const YYMINORTYPE yyzerominor = { 0 }; ** yy_reduce_ofst[] For each state, the offset into yy_action for ** shifting non-terminals after a reduce. ** yy_default[] Default action for each state. -*/ -#define YY_ACTTAB_COUNT (1661) +** +*********** Begin parsing tables **********************************************/ +#define YY_ACTTAB_COUNT (1759) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 3, 72, 53, 52, 51, 228, 2, 80, 81, 128, - /* 10 */ 1, 124, 70, 155, 25, 197, 200, 221, 88, 123, - /* 20 */ 122, 138, 137, 136, 117, 85, 100, 113, 101, 186, - /* 30 */ 217, 203, 75, 196, 192, 196, 192, 31, 30, 112, - /* 40 */ 176, 135, 228, 73, 77, 81, 143, 9, 227, 70, - /* 50 */ 65, 64, 112, 176, 135, 68, 67, 66, 63, 62, - /* 60 */ 61, 60, 59, 58, 191, 190, 189, 188, 187, 4, - /* 70 */ 367, 78, 109, 36, 35, 227, 197, 200, 221, 88, - /* 80 */ 123, 122, 138, 137, 136, 117, 85, 100, 113, 101, - /* 90 */ 186, 217, 203, 75, 77, 115, 196, 192, 227, 197, - /* 100 */ 200, 221, 88, 123, 122, 138, 137, 136, 117, 85, - /* 110 */ 100, 113, 101, 186, 217, 203, 75, 55, 54, 196, - /* 120 */ 192, 228, 2, 33, 81, 128, 1, 32, 70, 69, - /* 130 */ 57, 56, 34, 197, 171, 221, 88, 123, 122, 138, - /* 140 */ 137, 136, 117, 85, 100, 113, 101, 186, 217, 203, - /* 150 */ 75, 205, 204, 196, 192, 11, 84, 223, 7, 28, - /* 160 */ 24, 193, 71, 6, 131, 29, 65, 64, 28, 147, - /* 170 */ 132, 68, 67, 66, 63, 62, 61, 60, 59, 58, - /* 180 */ 191, 190, 189, 188, 187, 4, 7, 26, 146, 193, - /* 190 */ 71, 108, 170, 184, 197, 149, 221, 88, 123, 122, - /* 200 */ 138, 137, 136, 117, 85, 100, 113, 101, 186, 217, - /* 210 */ 203, 75, 181, 135, 196, 192, 191, 190, 189, 188, - /* 220 */ 187, 4, 148, 195, 129, 199, 8, 169, 134, 28, - /* 230 */ 65, 64, 182, 23, 74, 68, 67, 66, 63, 62, - /* 240 */ 61, 60, 59, 58, 191, 190, 189, 188, 187, 4, - /* 250 */ 185, 7, 202, 201, 193, 71, 124, 145, 184, 345, - /* 260 */ 197, 200, 221, 88, 123, 122, 138, 137, 136, 117, - /* 270 */ 85, 100, 113, 101, 186, 217, 203, 75, 347, 346, - /* 280 */ 196, 192, 172, 229, 83, 82, 79, 228, 73, 153, - /* 290 */ 81, 143, 9, 10, 70, 65, 64, 226, 225, 224, - /* 300 */ 68, 67, 66, 63, 62, 61, 60, 59, 58, 191, - /* 310 */ 190, 189, 188, 187, 4, 175, 7, 118, 154, 193, - /* 320 */ 71, 197, 200, 221, 88, 123, 122, 138, 137, 136, - /* 330 */ 117, 85, 100, 113, 101, 186, 217, 203, 75, 173, - /* 340 */ 230, 196, 192, 130, 50, 49, 48, 47, 46, 45, - /* 350 */ 44, 43, 42, 41, 40, 39, 38, 37, 368, 368, - /* 360 */ 65, 64, 151, 368, 368, 68, 67, 66, 63, 62, - /* 370 */ 61, 60, 59, 58, 191, 190, 189, 188, 187, 4, - /* 380 */ 115, 368, 150, 368, 197, 200, 221, 88, 123, 122, - /* 390 */ 138, 137, 136, 117, 85, 100, 113, 101, 186, 217, - /* 400 */ 203, 75, 368, 179, 196, 192, 197, 167, 221, 88, - /* 410 */ 123, 122, 138, 137, 136, 117, 85, 100, 113, 101, - /* 420 */ 186, 217, 203, 75, 368, 7, 196, 192, 193, 71, - /* 430 */ 368, 368, 172, 111, 197, 149, 221, 88, 123, 122, - /* 440 */ 138, 137, 136, 117, 85, 100, 113, 101, 186, 217, - /* 450 */ 203, 75, 232, 7, 196, 192, 193, 71, 177, 107, - /* 460 */ 178, 368, 152, 368, 368, 368, 28, 368, 368, 65, - /* 470 */ 64, 368, 368, 368, 68, 67, 66, 63, 62, 61, - /* 480 */ 60, 59, 58, 191, 190, 189, 188, 187, 4, 368, - /* 490 */ 144, 132, 368, 368, 368, 368, 368, 65, 64, 368, - /* 500 */ 368, 368, 68, 67, 66, 63, 62, 61, 60, 59, - /* 510 */ 58, 191, 190, 189, 188, 187, 4, 197, 222, 221, - /* 520 */ 88, 123, 122, 138, 137, 136, 117, 85, 100, 113, - /* 530 */ 101, 186, 217, 203, 75, 368, 368, 196, 192, 197, - /* 540 */ 220, 221, 88, 123, 122, 138, 137, 136, 117, 85, - /* 550 */ 100, 113, 101, 186, 217, 203, 75, 368, 368, 196, - /* 560 */ 192, 197, 142, 221, 88, 123, 122, 138, 137, 136, - /* 570 */ 117, 85, 100, 113, 101, 186, 217, 203, 75, 368, - /* 580 */ 368, 196, 192, 197, 219, 221, 88, 123, 122, 138, - /* 590 */ 137, 136, 117, 85, 100, 113, 101, 186, 217, 203, - /* 600 */ 75, 368, 368, 196, 192, 197, 180, 221, 88, 123, - /* 610 */ 122, 138, 137, 136, 117, 85, 100, 113, 101, 186, - /* 620 */ 217, 203, 75, 368, 368, 196, 192, 197, 168, 221, - /* 630 */ 88, 123, 122, 138, 137, 136, 117, 85, 100, 113, - /* 640 */ 101, 186, 217, 203, 75, 368, 368, 196, 192, 197, - /* 650 */ 166, 221, 88, 123, 122, 138, 137, 136, 117, 85, - /* 660 */ 100, 113, 101, 186, 217, 203, 75, 368, 368, 196, - /* 670 */ 192, 197, 165, 221, 88, 123, 122, 138, 137, 136, - /* 680 */ 117, 85, 100, 113, 101, 186, 217, 203, 75, 368, - /* 690 */ 368, 196, 192, 197, 164, 221, 88, 123, 122, 138, - /* 700 */ 137, 136, 117, 85, 100, 113, 101, 186, 217, 203, - /* 710 */ 75, 368, 368, 196, 192, 197, 163, 221, 88, 123, - /* 720 */ 122, 138, 137, 136, 117, 85, 100, 113, 101, 186, - /* 730 */ 217, 203, 75, 368, 368, 196, 192, 197, 162, 221, - /* 740 */ 88, 123, 122, 138, 137, 136, 117, 85, 100, 113, - /* 750 */ 101, 186, 217, 203, 75, 368, 368, 196, 192, 197, - /* 760 */ 161, 221, 88, 123, 122, 138, 137, 136, 117, 85, - /* 770 */ 100, 113, 101, 186, 217, 203, 75, 368, 368, 196, - /* 780 */ 192, 197, 160, 221, 88, 123, 122, 138, 137, 136, - /* 790 */ 117, 85, 100, 113, 101, 186, 217, 203, 75, 368, - /* 800 */ 368, 196, 192, 197, 159, 221, 88, 123, 122, 138, - /* 810 */ 137, 136, 117, 85, 100, 113, 101, 186, 217, 203, - /* 820 */ 75, 368, 368, 196, 192, 197, 158, 221, 88, 123, - /* 830 */ 122, 138, 137, 136, 117, 85, 100, 113, 101, 186, - /* 840 */ 217, 203, 75, 368, 368, 196, 192, 197, 157, 221, - /* 850 */ 88, 123, 122, 138, 137, 136, 117, 85, 100, 113, - /* 860 */ 101, 186, 217, 203, 75, 368, 368, 196, 192, 197, - /* 870 */ 156, 221, 88, 123, 122, 138, 137, 136, 117, 85, - /* 880 */ 100, 113, 101, 186, 217, 203, 75, 234, 368, 196, - /* 890 */ 192, 197, 183, 221, 88, 123, 122, 138, 137, 136, - /* 900 */ 117, 85, 100, 113, 101, 186, 217, 203, 75, 368, - /* 910 */ 368, 196, 192, 197, 174, 221, 88, 123, 122, 138, - /* 920 */ 137, 136, 117, 85, 100, 113, 101, 186, 217, 203, - /* 930 */ 75, 368, 7, 196, 192, 127, 71, 197, 76, 368, - /* 940 */ 119, 233, 110, 138, 137, 136, 117, 85, 100, 113, - /* 950 */ 101, 186, 217, 203, 75, 5, 368, 196, 192, 231, - /* 960 */ 368, 368, 83, 82, 79, 228, 73, 368, 81, 143, - /* 970 */ 9, 368, 70, 368, 368, 368, 65, 64, 368, 368, - /* 980 */ 368, 68, 67, 66, 63, 62, 61, 60, 59, 58, - /* 990 */ 126, 190, 125, 188, 187, 4, 197, 368, 368, 119, - /* 1000 */ 368, 368, 141, 137, 136, 117, 85, 100, 113, 101, - /* 1010 */ 186, 217, 203, 75, 368, 197, 196, 192, 119, 368, - /* 1020 */ 368, 133, 137, 136, 117, 85, 100, 113, 101, 186, - /* 1030 */ 217, 203, 75, 368, 197, 196, 192, 119, 368, 368, - /* 1040 */ 368, 140, 136, 117, 85, 100, 113, 101, 186, 217, - /* 1050 */ 203, 75, 368, 368, 196, 192, 27, 22, 21, 20, - /* 1060 */ 19, 18, 17, 16, 15, 14, 13, 12, 197, 368, - /* 1070 */ 368, 119, 368, 368, 368, 368, 139, 117, 85, 100, - /* 1080 */ 113, 101, 186, 217, 203, 75, 368, 368, 196, 192, - /* 1090 */ 368, 197, 368, 368, 119, 368, 368, 368, 205, 204, - /* 1100 */ 121, 85, 100, 113, 101, 186, 217, 203, 75, 368, - /* 1110 */ 197, 196, 192, 119, 368, 368, 368, 368, 368, 368, - /* 1120 */ 87, 100, 113, 101, 186, 217, 203, 75, 368, 197, - /* 1130 */ 196, 192, 119, 368, 368, 368, 368, 368, 368, 86, - /* 1140 */ 100, 113, 101, 186, 217, 203, 75, 368, 197, 196, - /* 1150 */ 192, 119, 368, 368, 368, 368, 368, 368, 368, 106, - /* 1160 */ 113, 101, 186, 217, 203, 75, 368, 197, 196, 192, - /* 1170 */ 119, 368, 368, 368, 368, 368, 368, 368, 104, 113, - /* 1180 */ 101, 186, 217, 203, 75, 368, 197, 196, 192, 119, - /* 1190 */ 368, 368, 368, 368, 368, 368, 368, 102, 113, 101, - /* 1200 */ 186, 217, 203, 75, 368, 197, 196, 192, 119, 368, - /* 1210 */ 368, 368, 368, 368, 368, 368, 99, 113, 101, 186, - /* 1220 */ 217, 203, 75, 368, 197, 196, 192, 119, 368, 368, - /* 1230 */ 368, 368, 368, 368, 368, 98, 113, 101, 186, 217, - /* 1240 */ 203, 75, 368, 197, 196, 192, 119, 368, 368, 368, - /* 1250 */ 368, 368, 368, 368, 97, 113, 101, 186, 217, 203, - /* 1260 */ 75, 368, 197, 196, 192, 119, 368, 368, 368, 368, - /* 1270 */ 368, 368, 368, 96, 113, 101, 186, 217, 203, 75, - /* 1280 */ 368, 197, 196, 192, 119, 368, 368, 368, 368, 368, - /* 1290 */ 368, 368, 95, 113, 101, 186, 217, 203, 75, 368, - /* 1300 */ 197, 196, 192, 119, 368, 368, 368, 368, 368, 368, - /* 1310 */ 368, 94, 113, 101, 186, 217, 203, 75, 368, 197, - /* 1320 */ 196, 192, 119, 368, 368, 368, 368, 368, 368, 368, - /* 1330 */ 93, 113, 101, 186, 217, 203, 75, 368, 197, 196, - /* 1340 */ 192, 119, 368, 368, 368, 368, 368, 368, 368, 92, - /* 1350 */ 113, 101, 186, 217, 203, 75, 368, 197, 196, 192, - /* 1360 */ 119, 368, 368, 368, 368, 368, 368, 368, 91, 113, - /* 1370 */ 101, 186, 217, 203, 75, 368, 197, 196, 192, 119, - /* 1380 */ 368, 368, 368, 368, 368, 368, 368, 90, 113, 101, - /* 1390 */ 186, 217, 203, 75, 368, 197, 196, 192, 119, 368, - /* 1400 */ 368, 368, 368, 368, 368, 368, 89, 113, 101, 186, - /* 1410 */ 217, 203, 75, 368, 197, 196, 192, 119, 368, 368, - /* 1420 */ 368, 368, 368, 368, 368, 368, 120, 101, 186, 217, - /* 1430 */ 203, 75, 368, 197, 196, 192, 119, 368, 368, 368, - /* 1440 */ 368, 368, 368, 368, 368, 116, 101, 186, 217, 203, - /* 1450 */ 75, 368, 197, 196, 192, 119, 368, 368, 368, 368, - /* 1460 */ 368, 368, 368, 368, 114, 101, 186, 217, 203, 75, - /* 1470 */ 368, 197, 196, 192, 119, 368, 368, 368, 368, 368, - /* 1480 */ 197, 368, 368, 119, 105, 186, 217, 203, 75, 368, - /* 1490 */ 368, 196, 192, 103, 186, 217, 203, 75, 368, 197, - /* 1500 */ 196, 192, 119, 368, 368, 368, 368, 368, 368, 197, - /* 1510 */ 368, 368, 119, 218, 217, 203, 75, 368, 197, 196, - /* 1520 */ 192, 119, 368, 216, 217, 203, 75, 368, 197, 196, - /* 1530 */ 192, 119, 215, 217, 203, 75, 368, 197, 196, 192, - /* 1540 */ 119, 368, 214, 217, 203, 75, 368, 197, 196, 192, - /* 1550 */ 119, 213, 217, 203, 75, 368, 197, 196, 192, 119, - /* 1560 */ 368, 212, 217, 203, 75, 368, 197, 196, 192, 119, - /* 1570 */ 211, 217, 203, 75, 368, 197, 196, 192, 119, 368, - /* 1580 */ 210, 217, 203, 75, 368, 197, 196, 192, 119, 209, - /* 1590 */ 217, 203, 75, 368, 368, 196, 192, 368, 368, 208, - /* 1600 */ 217, 203, 75, 368, 197, 196, 192, 119, 368, 368, - /* 1610 */ 368, 368, 197, 368, 368, 119, 368, 368, 207, 217, - /* 1620 */ 203, 75, 368, 368, 196, 192, 206, 217, 203, 75, - /* 1630 */ 368, 197, 196, 192, 119, 368, 368, 368, 368, 197, - /* 1640 */ 368, 368, 119, 368, 368, 198, 217, 203, 75, 368, - /* 1650 */ 368, 196, 192, 194, 217, 203, 75, 368, 368, 196, - /* 1660 */ 192, + /* 0 */ 3, 72, 112, 340, 134, 238, 2, 77, 81, 127, + /* 10 */ 1, 233, 70, 498, 78, 109, 129, 243, 233, 319, + /* 20 */ 244, 246, 88, 123, 122, 137, 136, 135, 117, 85, + /* 30 */ 100, 113, 101, 297, 301, 316, 74, 321, 324, 321, + /* 40 */ 324, 238, 73, 234, 81, 142, 9, 344, 70, 343, + /* 50 */ 65, 64, 53, 52, 51, 68, 67, 66, 63, 62, + /* 60 */ 61, 60, 59, 58, 325, 326, 327, 328, 329, 4, + /* 70 */ 124, 69, 57, 56, 319, 244, 246, 88, 123, 122, + /* 80 */ 137, 136, 135, 117, 85, 100, 113, 101, 297, 301, + /* 90 */ 316, 74, 341, 134, 321, 324, 318, 320, 112, 340, + /* 100 */ 134, 238, 2, 237, 81, 127, 1, 107, 70, 77, + /* 110 */ 115, 359, 131, 233, 319, 244, 246, 88, 123, 122, + /* 120 */ 137, 136, 135, 117, 85, 100, 113, 101, 297, 301, + /* 130 */ 316, 74, 241, 7, 321, 324, 323, 71, 358, 131, + /* 140 */ 240, 333, 31, 30, 347, 236, 65, 64, 55, 54, + /* 150 */ 23, 68, 67, 66, 63, 62, 61, 60, 59, 58, + /* 160 */ 325, 326, 327, 328, 329, 4, 83, 82, 79, 238, + /* 170 */ 73, 239, 81, 142, 9, 322, 70, 65, 64, 354, + /* 180 */ 235, 28, 68, 67, 66, 63, 62, 61, 60, 59, + /* 190 */ 58, 325, 326, 327, 328, 329, 4, 108, 332, 355, + /* 200 */ 319, 356, 246, 88, 123, 122, 137, 136, 135, 117, + /* 210 */ 85, 100, 113, 101, 297, 301, 316, 74, 10, 7, + /* 220 */ 321, 324, 323, 71, 36, 35, 334, 6, 352, 319, + /* 230 */ 335, 246, 88, 123, 122, 137, 136, 135, 117, 85, + /* 240 */ 100, 113, 101, 297, 301, 316, 74, 365, 364, 321, + /* 250 */ 324, 11, 84, 7, 314, 315, 323, 71, 477, 478, + /* 260 */ 334, 5, 28, 65, 64, 338, 28, 75, 68, 67, + /* 270 */ 66, 63, 62, 61, 60, 59, 58, 325, 326, 327, + /* 280 */ 328, 329, 4, 331, 7, 80, 362, 323, 71, 128, + /* 290 */ 8, 333, 133, 242, 361, 28, 29, 65, 64, 366, + /* 300 */ 32, 24, 68, 67, 66, 63, 62, 61, 60, 59, + /* 310 */ 58, 325, 326, 327, 328, 329, 4, 330, 26, 130, + /* 320 */ 346, 34, 33, 345, 25, 365, 365, 365, 65, 64, + /* 330 */ 365, 365, 365, 68, 67, 66, 63, 62, 61, 60, + /* 340 */ 59, 58, 325, 326, 327, 328, 329, 4, 365, 365, + /* 350 */ 76, 319, 356, 246, 88, 123, 122, 137, 136, 135, + /* 360 */ 117, 85, 100, 113, 101, 297, 301, 316, 74, 365, + /* 370 */ 365, 321, 324, 365, 365, 365, 365, 365, 365, 353, + /* 380 */ 319, 349, 246, 88, 123, 122, 137, 136, 135, 117, + /* 390 */ 85, 100, 113, 101, 297, 301, 316, 74, 365, 365, + /* 400 */ 321, 324, 365, 365, 365, 365, 365, 111, 115, 365, + /* 410 */ 365, 365, 319, 244, 246, 88, 123, 122, 137, 136, + /* 420 */ 135, 117, 85, 100, 113, 101, 297, 301, 316, 74, + /* 430 */ 118, 365, 321, 324, 319, 244, 246, 88, 123, 122, + /* 440 */ 137, 136, 135, 117, 85, 100, 113, 101, 297, 301, + /* 450 */ 316, 74, 365, 7, 321, 324, 323, 71, 124, 365, + /* 460 */ 365, 365, 319, 244, 246, 88, 123, 122, 137, 136, + /* 470 */ 135, 117, 85, 100, 113, 101, 297, 301, 316, 74, + /* 480 */ 365, 7, 321, 324, 323, 71, 365, 365, 365, 365, + /* 490 */ 365, 365, 365, 365, 365, 365, 365, 65, 64, 365, + /* 500 */ 365, 365, 68, 67, 66, 63, 62, 61, 60, 59, + /* 510 */ 58, 126, 326, 125, 328, 329, 4, 365, 365, 365, + /* 520 */ 365, 365, 365, 365, 365, 65, 64, 365, 365, 365, + /* 530 */ 68, 67, 66, 63, 62, 61, 60, 59, 58, 325, + /* 540 */ 326, 327, 328, 329, 4, 319, 337, 246, 88, 123, + /* 550 */ 122, 137, 136, 135, 117, 85, 100, 113, 101, 297, + /* 560 */ 301, 316, 74, 365, 365, 321, 324, 319, 336, 246, + /* 570 */ 88, 123, 122, 137, 136, 135, 117, 85, 100, 113, + /* 580 */ 101, 297, 301, 316, 74, 365, 365, 321, 324, 319, + /* 590 */ 258, 246, 88, 123, 122, 137, 136, 135, 117, 85, + /* 600 */ 100, 113, 101, 297, 301, 316, 74, 365, 365, 321, + /* 610 */ 324, 365, 365, 319, 257, 246, 88, 123, 122, 137, + /* 620 */ 136, 135, 117, 85, 100, 113, 101, 297, 301, 316, + /* 630 */ 74, 365, 365, 321, 324, 319, 256, 246, 88, 123, + /* 640 */ 122, 137, 136, 135, 117, 85, 100, 113, 101, 297, + /* 650 */ 301, 316, 74, 365, 365, 321, 324, 319, 255, 246, + /* 660 */ 88, 123, 122, 137, 136, 135, 117, 85, 100, 113, + /* 670 */ 101, 297, 301, 316, 74, 365, 365, 321, 324, 319, + /* 680 */ 254, 246, 88, 123, 122, 137, 136, 135, 117, 85, + /* 690 */ 100, 113, 101, 297, 301, 316, 74, 365, 365, 321, + /* 700 */ 324, 319, 253, 246, 88, 123, 122, 137, 136, 135, + /* 710 */ 117, 85, 100, 113, 101, 297, 301, 316, 74, 365, + /* 720 */ 365, 321, 324, 319, 252, 246, 88, 123, 122, 137, + /* 730 */ 136, 135, 117, 85, 100, 113, 101, 297, 301, 316, + /* 740 */ 74, 365, 365, 321, 324, 319, 251, 246, 88, 123, + /* 750 */ 122, 137, 136, 135, 117, 85, 100, 113, 101, 297, + /* 760 */ 301, 316, 74, 365, 365, 321, 324, 319, 250, 246, + /* 770 */ 88, 123, 122, 137, 136, 135, 117, 85, 100, 113, + /* 780 */ 101, 297, 301, 316, 74, 365, 365, 321, 324, 319, + /* 790 */ 249, 246, 88, 123, 122, 137, 136, 135, 117, 85, + /* 800 */ 100, 113, 101, 297, 301, 316, 74, 365, 365, 321, + /* 810 */ 324, 319, 248, 246, 88, 123, 122, 137, 136, 135, + /* 820 */ 117, 85, 100, 113, 101, 297, 301, 316, 74, 365, + /* 830 */ 365, 321, 324, 319, 350, 246, 88, 123, 122, 137, + /* 840 */ 136, 135, 117, 85, 100, 113, 101, 297, 301, 316, + /* 850 */ 74, 365, 365, 321, 324, 319, 342, 246, 88, 123, + /* 860 */ 122, 137, 136, 135, 117, 85, 100, 113, 101, 297, + /* 870 */ 301, 316, 74, 365, 365, 321, 324, 319, 260, 246, + /* 880 */ 88, 123, 122, 137, 136, 135, 117, 85, 100, 113, + /* 890 */ 101, 297, 301, 316, 74, 365, 365, 321, 324, 319, + /* 900 */ 141, 246, 88, 123, 122, 137, 136, 135, 117, 85, + /* 910 */ 100, 113, 101, 297, 301, 316, 74, 365, 365, 321, + /* 920 */ 324, 319, 247, 246, 88, 123, 122, 137, 136, 135, + /* 930 */ 117, 85, 100, 113, 101, 297, 301, 316, 74, 365, + /* 940 */ 365, 321, 324, 319, 245, 246, 88, 123, 122, 137, + /* 950 */ 136, 135, 117, 85, 100, 113, 101, 297, 301, 316, + /* 960 */ 74, 365, 319, 321, 324, 119, 365, 110, 137, 136, + /* 970 */ 135, 117, 85, 100, 113, 101, 297, 301, 316, 74, + /* 980 */ 365, 319, 321, 324, 119, 365, 365, 132, 136, 135, + /* 990 */ 117, 85, 100, 113, 101, 297, 301, 316, 74, 365, + /* 1000 */ 365, 321, 324, 319, 365, 365, 119, 365, 365, 140, + /* 1010 */ 136, 135, 117, 85, 100, 113, 101, 297, 301, 316, + /* 1020 */ 74, 365, 365, 321, 324, 319, 365, 365, 119, 365, + /* 1030 */ 365, 365, 139, 135, 117, 85, 100, 113, 101, 297, + /* 1040 */ 301, 316, 74, 365, 365, 321, 324, 319, 365, 365, + /* 1050 */ 119, 365, 365, 365, 365, 138, 117, 85, 100, 113, + /* 1060 */ 101, 297, 301, 316, 74, 365, 365, 321, 324, 50, + /* 1070 */ 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, + /* 1080 */ 39, 38, 37, 27, 22, 21, 20, 19, 18, 17, + /* 1090 */ 16, 15, 14, 13, 12, 319, 365, 365, 119, 365, + /* 1100 */ 365, 365, 365, 365, 121, 85, 100, 113, 101, 297, + /* 1110 */ 301, 316, 74, 365, 365, 321, 324, 365, 319, 365, + /* 1120 */ 365, 119, 365, 365, 365, 314, 315, 365, 86, 100, + /* 1130 */ 113, 101, 297, 301, 316, 74, 365, 365, 321, 324, + /* 1140 */ 319, 365, 365, 119, 365, 365, 365, 365, 365, 365, + /* 1150 */ 87, 100, 113, 101, 297, 301, 316, 74, 365, 319, + /* 1160 */ 321, 324, 119, 365, 365, 365, 365, 365, 365, 365, + /* 1170 */ 89, 113, 101, 297, 301, 316, 74, 365, 319, 321, + /* 1180 */ 324, 119, 365, 365, 365, 365, 365, 365, 365, 90, + /* 1190 */ 113, 101, 297, 301, 316, 74, 365, 365, 321, 324, + /* 1200 */ 365, 319, 365, 365, 119, 365, 365, 7, 365, 365, + /* 1210 */ 323, 71, 91, 113, 101, 297, 301, 316, 74, 365, + /* 1220 */ 365, 321, 324, 319, 365, 365, 119, 365, 365, 365, + /* 1230 */ 365, 365, 365, 365, 92, 113, 101, 297, 301, 316, + /* 1240 */ 74, 365, 319, 321, 324, 119, 365, 365, 365, 365, + /* 1250 */ 365, 365, 365, 93, 113, 101, 297, 301, 316, 74, + /* 1260 */ 365, 319, 321, 324, 119, 325, 326, 327, 328, 329, + /* 1270 */ 4, 365, 94, 113, 101, 297, 301, 316, 74, 365, + /* 1280 */ 365, 321, 324, 365, 319, 365, 365, 119, 365, 365, + /* 1290 */ 365, 365, 365, 365, 365, 95, 113, 101, 297, 301, + /* 1300 */ 316, 74, 365, 365, 321, 324, 319, 365, 365, 119, + /* 1310 */ 365, 365, 365, 365, 365, 365, 365, 96, 113, 101, + /* 1320 */ 297, 301, 316, 74, 365, 319, 321, 324, 119, 365, + /* 1330 */ 365, 365, 365, 365, 365, 365, 97, 113, 101, 297, + /* 1340 */ 301, 316, 74, 365, 319, 321, 324, 119, 365, 365, + /* 1350 */ 365, 365, 365, 365, 365, 98, 113, 101, 297, 301, + /* 1360 */ 316, 74, 365, 365, 321, 324, 365, 319, 365, 365, + /* 1370 */ 119, 365, 365, 365, 365, 365, 365, 365, 99, 113, + /* 1380 */ 101, 297, 301, 316, 74, 365, 365, 321, 324, 319, + /* 1390 */ 365, 365, 119, 365, 365, 365, 365, 365, 365, 365, + /* 1400 */ 102, 113, 101, 297, 301, 316, 74, 365, 319, 321, + /* 1410 */ 324, 119, 365, 365, 365, 365, 365, 365, 365, 104, + /* 1420 */ 113, 101, 297, 301, 316, 74, 365, 319, 321, 324, + /* 1430 */ 119, 365, 365, 365, 365, 365, 365, 365, 106, 113, + /* 1440 */ 101, 297, 301, 316, 74, 365, 365, 321, 324, 365, + /* 1450 */ 319, 365, 365, 119, 365, 365, 365, 365, 365, 365, + /* 1460 */ 365, 365, 114, 101, 297, 301, 316, 74, 365, 365, + /* 1470 */ 321, 324, 319, 365, 365, 119, 365, 365, 365, 365, + /* 1480 */ 365, 365, 365, 365, 116, 101, 297, 301, 316, 74, + /* 1490 */ 365, 319, 321, 324, 119, 365, 365, 365, 365, 365, + /* 1500 */ 365, 365, 365, 120, 101, 297, 301, 316, 74, 365, + /* 1510 */ 365, 321, 324, 363, 365, 365, 83, 82, 79, 238, + /* 1520 */ 73, 365, 81, 142, 9, 319, 70, 365, 119, 365, + /* 1530 */ 365, 365, 365, 365, 365, 365, 365, 365, 103, 297, + /* 1540 */ 301, 316, 74, 365, 365, 321, 324, 319, 365, 365, + /* 1550 */ 119, 365, 365, 365, 365, 319, 365, 365, 119, 365, + /* 1560 */ 105, 297, 301, 316, 74, 365, 365, 321, 324, 300, + /* 1570 */ 301, 316, 74, 365, 319, 321, 324, 119, 365, 365, + /* 1580 */ 365, 365, 365, 365, 365, 365, 365, 365, 299, 301, + /* 1590 */ 316, 74, 365, 365, 321, 324, 319, 365, 365, 119, + /* 1600 */ 365, 365, 365, 365, 365, 319, 365, 365, 119, 365, + /* 1610 */ 312, 301, 316, 74, 365, 365, 321, 324, 365, 311, + /* 1620 */ 301, 316, 74, 365, 319, 321, 324, 119, 365, 365, + /* 1630 */ 365, 365, 365, 319, 365, 365, 119, 365, 310, 301, + /* 1640 */ 316, 74, 365, 319, 321, 324, 119, 309, 301, 316, + /* 1650 */ 74, 365, 319, 321, 324, 119, 365, 308, 301, 316, + /* 1660 */ 74, 365, 365, 321, 324, 365, 307, 301, 316, 74, + /* 1670 */ 365, 319, 321, 324, 119, 365, 365, 365, 365, 319, + /* 1680 */ 365, 365, 119, 365, 365, 306, 301, 316, 74, 365, + /* 1690 */ 365, 321, 324, 305, 301, 316, 74, 365, 365, 321, + /* 1700 */ 324, 365, 319, 365, 365, 119, 365, 365, 365, 365, + /* 1710 */ 319, 365, 365, 119, 365, 365, 304, 301, 316, 74, + /* 1720 */ 365, 365, 321, 324, 303, 301, 316, 74, 365, 319, + /* 1730 */ 321, 324, 119, 365, 365, 365, 365, 319, 365, 365, + /* 1740 */ 119, 365, 365, 302, 301, 316, 74, 365, 365, 321, + /* 1750 */ 324, 298, 301, 316, 74, 365, 365, 321, 324, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 1, 2, 48, 49, 50, 6, 7, 9, 9, 10, - /* 10 */ 11, 78, 13, 82, 28, 82, 83, 84, 85, 86, - /* 20 */ 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, - /* 30 */ 97, 98, 99, 102, 103, 102, 103, 3, 4, 106, - /* 40 */ 107, 108, 6, 7, 77, 9, 10, 11, 81, 13, - /* 50 */ 51, 52, 106, 107, 108, 56, 57, 58, 59, 60, + /* 0 */ 1, 2, 106, 107, 108, 6, 7, 77, 9, 10, + /* 10 */ 11, 81, 13, 76, 77, 78, 10, 82, 81, 82, + /* 20 */ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, + /* 30 */ 93, 94, 95, 96, 97, 98, 99, 102, 103, 102, + /* 40 */ 103, 6, 7, 81, 9, 10, 11, 65, 13, 67, + /* 50 */ 51, 52, 48, 49, 50, 56, 57, 58, 59, 60, /* 60 */ 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, - /* 70 */ 76, 77, 78, 32, 33, 81, 82, 83, 84, 85, - /* 80 */ 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, - /* 90 */ 96, 97, 98, 99, 77, 78, 102, 103, 81, 82, - /* 100 */ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, - /* 110 */ 93, 94, 95, 96, 97, 98, 99, 51, 52, 102, - /* 120 */ 103, 6, 7, 30, 9, 10, 11, 29, 13, 53, - /* 130 */ 54, 55, 31, 82, 83, 84, 85, 86, 87, 88, - /* 140 */ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - /* 150 */ 99, 57, 58, 102, 103, 104, 105, 12, 7, 14, - /* 160 */ 28, 10, 11, 7, 53, 5, 51, 52, 14, 111, - /* 170 */ 112, 56, 57, 58, 59, 60, 61, 62, 63, 64, - /* 180 */ 65, 66, 67, 68, 69, 70, 7, 27, 65, 10, - /* 190 */ 11, 79, 10, 14, 82, 83, 84, 85, 86, 87, - /* 200 */ 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - /* 210 */ 98, 99, 107, 108, 102, 103, 65, 66, 67, 68, - /* 220 */ 69, 70, 110, 8, 39, 71, 70, 8, 72, 14, - /* 230 */ 51, 52, 12, 14, 14, 56, 57, 58, 59, 60, - /* 240 */ 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, - /* 250 */ 71, 7, 100, 101, 10, 11, 78, 67, 14, 28, - /* 260 */ 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, - /* 270 */ 92, 93, 94, 95, 96, 97, 98, 99, 28, 28, - /* 280 */ 102, 103, 14, 81, 3, 4, 5, 6, 7, 8, - /* 290 */ 9, 10, 11, 104, 13, 51, 52, 81, 81, 81, - /* 300 */ 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, - /* 310 */ 66, 67, 68, 69, 70, 71, 7, 78, 81, 10, - /* 320 */ 11, 82, 83, 84, 85, 86, 87, 88, 89, 90, - /* 330 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 71, - /* 340 */ 81, 102, 103, 10, 34, 35, 36, 37, 38, 39, - /* 350 */ 40, 41, 42, 43, 44, 45, 46, 47, 113, 113, - /* 360 */ 51, 52, 53, 113, 113, 56, 57, 58, 59, 60, - /* 370 */ 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, - /* 380 */ 78, 113, 73, 113, 82, 83, 84, 85, 86, 87, - /* 390 */ 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - /* 400 */ 98, 99, 113, 10, 102, 103, 82, 83, 84, 85, - /* 410 */ 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, - /* 420 */ 96, 97, 98, 99, 113, 7, 102, 103, 10, 11, - /* 430 */ 113, 113, 14, 109, 82, 83, 84, 85, 86, 87, + /* 70 */ 78, 53, 54, 55, 82, 83, 84, 85, 86, 87, + /* 80 */ 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, + /* 90 */ 98, 99, 107, 108, 102, 103, 100, 101, 106, 107, + /* 100 */ 108, 6, 7, 81, 9, 10, 11, 80, 13, 77, + /* 110 */ 78, 111, 112, 81, 82, 83, 84, 85, 86, 87, + /* 120 */ 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, + /* 130 */ 98, 99, 81, 7, 102, 103, 10, 11, 111, 112, + /* 140 */ 81, 14, 3, 4, 8, 81, 51, 52, 51, 52, + /* 150 */ 14, 56, 57, 58, 59, 60, 61, 62, 63, 64, + /* 160 */ 65, 66, 67, 68, 69, 70, 3, 4, 5, 6, + /* 170 */ 7, 8, 9, 10, 11, 8, 13, 51, 52, 53, + /* 180 */ 81, 14, 56, 57, 58, 59, 60, 61, 62, 63, + /* 190 */ 64, 65, 66, 67, 68, 69, 70, 79, 71, 73, + /* 200 */ 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, + /* 210 */ 92, 93, 94, 95, 96, 97, 98, 99, 104, 7, + /* 220 */ 102, 103, 10, 11, 32, 33, 14, 7, 110, 82, + /* 230 */ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, + /* 240 */ 93, 94, 95, 96, 97, 98, 99, 0, 0, 102, + /* 250 */ 103, 104, 105, 7, 57, 58, 10, 11, 28, 28, + /* 260 */ 14, 14, 14, 51, 52, 12, 14, 14, 56, 57, + /* 270 */ 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, + /* 280 */ 68, 69, 70, 71, 7, 9, 67, 10, 11, 39, + /* 290 */ 70, 14, 72, 12, 65, 14, 5, 51, 52, 0, + /* 300 */ 29, 28, 56, 57, 58, 59, 60, 61, 62, 63, + /* 310 */ 64, 65, 66, 67, 68, 69, 70, 71, 27, 53, + /* 320 */ 10, 31, 30, 71, 28, 113, 113, 113, 51, 52, + /* 330 */ 113, 113, 113, 56, 57, 58, 59, 60, 61, 62, + /* 340 */ 63, 64, 65, 66, 67, 68, 69, 70, 113, 113, + /* 350 */ 51, 82, 83, 84, 85, 86, 87, 88, 89, 90, + /* 360 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 113, + /* 370 */ 113, 102, 103, 113, 113, 113, 113, 113, 113, 110, + /* 380 */ 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, + /* 390 */ 92, 93, 94, 95, 96, 97, 98, 99, 113, 113, + /* 400 */ 102, 103, 113, 113, 113, 113, 113, 109, 78, 113, + /* 410 */ 113, 113, 82, 83, 84, 85, 86, 87, 88, 89, + /* 420 */ 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, + /* 430 */ 78, 113, 102, 103, 82, 83, 84, 85, 86, 87, /* 440 */ 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, - /* 450 */ 98, 99, 0, 7, 102, 103, 10, 11, 65, 80, - /* 460 */ 67, 113, 110, 113, 113, 113, 14, 113, 113, 51, - /* 470 */ 52, 113, 113, 113, 56, 57, 58, 59, 60, 61, - /* 480 */ 62, 63, 64, 65, 66, 67, 68, 69, 70, 113, - /* 490 */ 111, 112, 113, 113, 113, 113, 113, 51, 52, 113, + /* 450 */ 98, 99, 113, 7, 102, 103, 10, 11, 78, 113, + /* 460 */ 113, 113, 82, 83, 84, 85, 86, 87, 88, 89, + /* 470 */ 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, + /* 480 */ 113, 7, 102, 103, 10, 11, 113, 113, 113, 113, + /* 490 */ 113, 113, 113, 113, 113, 113, 113, 51, 52, 113, /* 500 */ 113, 113, 56, 57, 58, 59, 60, 61, 62, 63, - /* 510 */ 64, 65, 66, 67, 68, 69, 70, 82, 83, 84, - /* 520 */ 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, - /* 530 */ 95, 96, 97, 98, 99, 113, 113, 102, 103, 82, - /* 540 */ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, - /* 550 */ 93, 94, 95, 96, 97, 98, 99, 113, 113, 102, - /* 560 */ 103, 82, 83, 84, 85, 86, 87, 88, 89, 90, - /* 570 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 113, - /* 580 */ 113, 102, 103, 82, 83, 84, 85, 86, 87, 88, - /* 590 */ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - /* 600 */ 99, 113, 113, 102, 103, 82, 83, 84, 85, 86, - /* 610 */ 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, - /* 620 */ 97, 98, 99, 113, 113, 102, 103, 82, 83, 84, - /* 630 */ 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, - /* 640 */ 95, 96, 97, 98, 99, 113, 113, 102, 103, 82, - /* 650 */ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, - /* 660 */ 93, 94, 95, 96, 97, 98, 99, 113, 113, 102, - /* 670 */ 103, 82, 83, 84, 85, 86, 87, 88, 89, 90, - /* 680 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 113, - /* 690 */ 113, 102, 103, 82, 83, 84, 85, 86, 87, 88, - /* 700 */ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - /* 710 */ 99, 113, 113, 102, 103, 82, 83, 84, 85, 86, - /* 720 */ 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, - /* 730 */ 97, 98, 99, 113, 113, 102, 103, 82, 83, 84, - /* 740 */ 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, - /* 750 */ 95, 96, 97, 98, 99, 113, 113, 102, 103, 82, - /* 760 */ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, - /* 770 */ 93, 94, 95, 96, 97, 98, 99, 113, 113, 102, - /* 780 */ 103, 82, 83, 84, 85, 86, 87, 88, 89, 90, - /* 790 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 113, - /* 800 */ 113, 102, 103, 82, 83, 84, 85, 86, 87, 88, - /* 810 */ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - /* 820 */ 99, 113, 113, 102, 103, 82, 83, 84, 85, 86, - /* 830 */ 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, - /* 840 */ 97, 98, 99, 113, 113, 102, 103, 82, 83, 84, - /* 850 */ 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, - /* 860 */ 95, 96, 97, 98, 99, 113, 113, 102, 103, 82, - /* 870 */ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, - /* 880 */ 93, 94, 95, 96, 97, 98, 99, 0, 113, 102, - /* 890 */ 103, 82, 83, 84, 85, 86, 87, 88, 89, 90, - /* 900 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 113, - /* 910 */ 113, 102, 103, 82, 83, 84, 85, 86, 87, 88, - /* 920 */ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - /* 930 */ 99, 113, 7, 102, 103, 10, 11, 82, 51, 113, - /* 940 */ 85, 0, 87, 88, 89, 90, 91, 92, 93, 94, - /* 950 */ 95, 96, 97, 98, 99, 14, 113, 102, 103, 0, - /* 960 */ 113, 113, 3, 4, 5, 6, 7, 113, 9, 10, - /* 970 */ 11, 113, 13, 113, 113, 113, 51, 52, 113, 113, - /* 980 */ 113, 56, 57, 58, 59, 60, 61, 62, 63, 64, - /* 990 */ 65, 66, 67, 68, 69, 70, 82, 113, 113, 85, - /* 1000 */ 113, 113, 88, 89, 90, 91, 92, 93, 94, 95, - /* 1010 */ 96, 97, 98, 99, 113, 82, 102, 103, 85, 113, - /* 1020 */ 113, 88, 89, 90, 91, 92, 93, 94, 95, 96, - /* 1030 */ 97, 98, 99, 113, 82, 102, 103, 85, 113, 113, - /* 1040 */ 113, 89, 90, 91, 92, 93, 94, 95, 96, 97, - /* 1050 */ 98, 99, 113, 113, 102, 103, 15, 16, 17, 18, - /* 1060 */ 19, 20, 21, 22, 23, 24, 25, 26, 82, 113, - /* 1070 */ 113, 85, 113, 113, 113, 113, 90, 91, 92, 93, - /* 1080 */ 94, 95, 96, 97, 98, 99, 113, 113, 102, 103, - /* 1090 */ 113, 82, 113, 113, 85, 113, 113, 113, 57, 58, - /* 1100 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 113, - /* 1110 */ 82, 102, 103, 85, 113, 113, 113, 113, 113, 113, - /* 1120 */ 92, 93, 94, 95, 96, 97, 98, 99, 113, 82, - /* 1130 */ 102, 103, 85, 113, 113, 113, 113, 113, 113, 92, - /* 1140 */ 93, 94, 95, 96, 97, 98, 99, 113, 82, 102, - /* 1150 */ 103, 85, 113, 113, 113, 113, 113, 113, 113, 93, - /* 1160 */ 94, 95, 96, 97, 98, 99, 113, 82, 102, 103, - /* 1170 */ 85, 113, 113, 113, 113, 113, 113, 113, 93, 94, - /* 1180 */ 95, 96, 97, 98, 99, 113, 82, 102, 103, 85, - /* 1190 */ 113, 113, 113, 113, 113, 113, 113, 93, 94, 95, - /* 1200 */ 96, 97, 98, 99, 113, 82, 102, 103, 85, 113, - /* 1210 */ 113, 113, 113, 113, 113, 113, 93, 94, 95, 96, - /* 1220 */ 97, 98, 99, 113, 82, 102, 103, 85, 113, 113, - /* 1230 */ 113, 113, 113, 113, 113, 93, 94, 95, 96, 97, - /* 1240 */ 98, 99, 113, 82, 102, 103, 85, 113, 113, 113, - /* 1250 */ 113, 113, 113, 113, 93, 94, 95, 96, 97, 98, - /* 1260 */ 99, 113, 82, 102, 103, 85, 113, 113, 113, 113, - /* 1270 */ 113, 113, 113, 93, 94, 95, 96, 97, 98, 99, - /* 1280 */ 113, 82, 102, 103, 85, 113, 113, 113, 113, 113, - /* 1290 */ 113, 113, 93, 94, 95, 96, 97, 98, 99, 113, - /* 1300 */ 82, 102, 103, 85, 113, 113, 113, 113, 113, 113, - /* 1310 */ 113, 93, 94, 95, 96, 97, 98, 99, 113, 82, - /* 1320 */ 102, 103, 85, 113, 113, 113, 113, 113, 113, 113, - /* 1330 */ 93, 94, 95, 96, 97, 98, 99, 113, 82, 102, - /* 1340 */ 103, 85, 113, 113, 113, 113, 113, 113, 113, 93, - /* 1350 */ 94, 95, 96, 97, 98, 99, 113, 82, 102, 103, - /* 1360 */ 85, 113, 113, 113, 113, 113, 113, 113, 93, 94, - /* 1370 */ 95, 96, 97, 98, 99, 113, 82, 102, 103, 85, - /* 1380 */ 113, 113, 113, 113, 113, 113, 113, 93, 94, 95, - /* 1390 */ 96, 97, 98, 99, 113, 82, 102, 103, 85, 113, - /* 1400 */ 113, 113, 113, 113, 113, 113, 93, 94, 95, 96, - /* 1410 */ 97, 98, 99, 113, 82, 102, 103, 85, 113, 113, - /* 1420 */ 113, 113, 113, 113, 113, 113, 94, 95, 96, 97, - /* 1430 */ 98, 99, 113, 82, 102, 103, 85, 113, 113, 113, - /* 1440 */ 113, 113, 113, 113, 113, 94, 95, 96, 97, 98, - /* 1450 */ 99, 113, 82, 102, 103, 85, 113, 113, 113, 113, - /* 1460 */ 113, 113, 113, 113, 94, 95, 96, 97, 98, 99, - /* 1470 */ 113, 82, 102, 103, 85, 113, 113, 113, 113, 113, - /* 1480 */ 82, 113, 113, 85, 95, 96, 97, 98, 99, 113, - /* 1490 */ 113, 102, 103, 95, 96, 97, 98, 99, 113, 82, - /* 1500 */ 102, 103, 85, 113, 113, 113, 113, 113, 113, 82, - /* 1510 */ 113, 113, 85, 96, 97, 98, 99, 113, 82, 102, - /* 1520 */ 103, 85, 113, 96, 97, 98, 99, 113, 82, 102, - /* 1530 */ 103, 85, 96, 97, 98, 99, 113, 82, 102, 103, - /* 1540 */ 85, 113, 96, 97, 98, 99, 113, 82, 102, 103, - /* 1550 */ 85, 96, 97, 98, 99, 113, 82, 102, 103, 85, - /* 1560 */ 113, 96, 97, 98, 99, 113, 82, 102, 103, 85, - /* 1570 */ 96, 97, 98, 99, 113, 82, 102, 103, 85, 113, - /* 1580 */ 96, 97, 98, 99, 113, 82, 102, 103, 85, 96, - /* 1590 */ 97, 98, 99, 113, 113, 102, 103, 113, 113, 96, - /* 1600 */ 97, 98, 99, 113, 82, 102, 103, 85, 113, 113, - /* 1610 */ 113, 113, 82, 113, 113, 85, 113, 113, 96, 97, - /* 1620 */ 98, 99, 113, 113, 102, 103, 96, 97, 98, 99, - /* 1630 */ 113, 82, 102, 103, 85, 113, 113, 113, 113, 82, - /* 1640 */ 113, 113, 85, 113, 113, 96, 97, 98, 99, 113, - /* 1650 */ 113, 102, 103, 96, 97, 98, 99, 113, 113, 102, - /* 1660 */ 103, + /* 510 */ 64, 65, 66, 67, 68, 69, 70, 113, 113, 113, + /* 520 */ 113, 113, 113, 113, 113, 51, 52, 113, 113, 113, + /* 530 */ 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, + /* 540 */ 66, 67, 68, 69, 70, 82, 83, 84, 85, 86, + /* 550 */ 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, + /* 560 */ 97, 98, 99, 113, 113, 102, 103, 82, 83, 84, + /* 570 */ 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, + /* 580 */ 95, 96, 97, 98, 99, 113, 113, 102, 103, 82, + /* 590 */ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, + /* 600 */ 93, 94, 95, 96, 97, 98, 99, 113, 113, 102, + /* 610 */ 103, 113, 113, 82, 83, 84, 85, 86, 87, 88, + /* 620 */ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, + /* 630 */ 99, 113, 113, 102, 103, 82, 83, 84, 85, 86, + /* 640 */ 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, + /* 650 */ 97, 98, 99, 113, 113, 102, 103, 82, 83, 84, + /* 660 */ 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, + /* 670 */ 95, 96, 97, 98, 99, 113, 113, 102, 103, 82, + /* 680 */ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, + /* 690 */ 93, 94, 95, 96, 97, 98, 99, 113, 113, 102, + /* 700 */ 103, 82, 83, 84, 85, 86, 87, 88, 89, 90, + /* 710 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 113, + /* 720 */ 113, 102, 103, 82, 83, 84, 85, 86, 87, 88, + /* 730 */ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, + /* 740 */ 99, 113, 113, 102, 103, 82, 83, 84, 85, 86, + /* 750 */ 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, + /* 760 */ 97, 98, 99, 113, 113, 102, 103, 82, 83, 84, + /* 770 */ 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, + /* 780 */ 95, 96, 97, 98, 99, 113, 113, 102, 103, 82, + /* 790 */ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, + /* 800 */ 93, 94, 95, 96, 97, 98, 99, 113, 113, 102, + /* 810 */ 103, 82, 83, 84, 85, 86, 87, 88, 89, 90, + /* 820 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 113, + /* 830 */ 113, 102, 103, 82, 83, 84, 85, 86, 87, 88, + /* 840 */ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, + /* 850 */ 99, 113, 113, 102, 103, 82, 83, 84, 85, 86, + /* 860 */ 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, + /* 870 */ 97, 98, 99, 113, 113, 102, 103, 82, 83, 84, + /* 880 */ 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, + /* 890 */ 95, 96, 97, 98, 99, 113, 113, 102, 103, 82, + /* 900 */ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, + /* 910 */ 93, 94, 95, 96, 97, 98, 99, 113, 113, 102, + /* 920 */ 103, 82, 83, 84, 85, 86, 87, 88, 89, 90, + /* 930 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 113, + /* 940 */ 113, 102, 103, 82, 83, 84, 85, 86, 87, 88, + /* 950 */ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, + /* 960 */ 99, 113, 82, 102, 103, 85, 113, 87, 88, 89, + /* 970 */ 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, + /* 980 */ 113, 82, 102, 103, 85, 113, 113, 88, 89, 90, + /* 990 */ 91, 92, 93, 94, 95, 96, 97, 98, 99, 113, + /* 1000 */ 113, 102, 103, 82, 113, 113, 85, 113, 113, 88, + /* 1010 */ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, + /* 1020 */ 99, 113, 113, 102, 103, 82, 113, 113, 85, 113, + /* 1030 */ 113, 113, 89, 90, 91, 92, 93, 94, 95, 96, + /* 1040 */ 97, 98, 99, 113, 113, 102, 103, 82, 113, 113, + /* 1050 */ 85, 113, 113, 113, 113, 90, 91, 92, 93, 94, + /* 1060 */ 95, 96, 97, 98, 99, 113, 113, 102, 103, 34, + /* 1070 */ 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, + /* 1080 */ 45, 46, 47, 15, 16, 17, 18, 19, 20, 21, + /* 1090 */ 22, 23, 24, 25, 26, 82, 113, 113, 85, 113, + /* 1100 */ 113, 113, 113, 113, 91, 92, 93, 94, 95, 96, + /* 1110 */ 97, 98, 99, 113, 113, 102, 103, 113, 82, 113, + /* 1120 */ 113, 85, 113, 113, 113, 57, 58, 113, 92, 93, + /* 1130 */ 94, 95, 96, 97, 98, 99, 113, 113, 102, 103, + /* 1140 */ 82, 113, 113, 85, 113, 113, 113, 113, 113, 113, + /* 1150 */ 92, 93, 94, 95, 96, 97, 98, 99, 113, 82, + /* 1160 */ 102, 103, 85, 113, 113, 113, 113, 113, 113, 113, + /* 1170 */ 93, 94, 95, 96, 97, 98, 99, 113, 82, 102, + /* 1180 */ 103, 85, 113, 113, 113, 113, 113, 113, 113, 93, + /* 1190 */ 94, 95, 96, 97, 98, 99, 113, 113, 102, 103, + /* 1200 */ 113, 82, 113, 113, 85, 113, 113, 7, 113, 113, + /* 1210 */ 10, 11, 93, 94, 95, 96, 97, 98, 99, 113, + /* 1220 */ 113, 102, 103, 82, 113, 113, 85, 113, 113, 113, + /* 1230 */ 113, 113, 113, 113, 93, 94, 95, 96, 97, 98, + /* 1240 */ 99, 113, 82, 102, 103, 85, 113, 113, 113, 113, + /* 1250 */ 113, 113, 113, 93, 94, 95, 96, 97, 98, 99, + /* 1260 */ 113, 82, 102, 103, 85, 65, 66, 67, 68, 69, + /* 1270 */ 70, 113, 93, 94, 95, 96, 97, 98, 99, 113, + /* 1280 */ 113, 102, 103, 113, 82, 113, 113, 85, 113, 113, + /* 1290 */ 113, 113, 113, 113, 113, 93, 94, 95, 96, 97, + /* 1300 */ 98, 99, 113, 113, 102, 103, 82, 113, 113, 85, + /* 1310 */ 113, 113, 113, 113, 113, 113, 113, 93, 94, 95, + /* 1320 */ 96, 97, 98, 99, 113, 82, 102, 103, 85, 113, + /* 1330 */ 113, 113, 113, 113, 113, 113, 93, 94, 95, 96, + /* 1340 */ 97, 98, 99, 113, 82, 102, 103, 85, 113, 113, + /* 1350 */ 113, 113, 113, 113, 113, 93, 94, 95, 96, 97, + /* 1360 */ 98, 99, 113, 113, 102, 103, 113, 82, 113, 113, + /* 1370 */ 85, 113, 113, 113, 113, 113, 113, 113, 93, 94, + /* 1380 */ 95, 96, 97, 98, 99, 113, 113, 102, 103, 82, + /* 1390 */ 113, 113, 85, 113, 113, 113, 113, 113, 113, 113, + /* 1400 */ 93, 94, 95, 96, 97, 98, 99, 113, 82, 102, + /* 1410 */ 103, 85, 113, 113, 113, 113, 113, 113, 113, 93, + /* 1420 */ 94, 95, 96, 97, 98, 99, 113, 82, 102, 103, + /* 1430 */ 85, 113, 113, 113, 113, 113, 113, 113, 93, 94, + /* 1440 */ 95, 96, 97, 98, 99, 113, 113, 102, 103, 113, + /* 1450 */ 82, 113, 113, 85, 113, 113, 113, 113, 113, 113, + /* 1460 */ 113, 113, 94, 95, 96, 97, 98, 99, 113, 113, + /* 1470 */ 102, 103, 82, 113, 113, 85, 113, 113, 113, 113, + /* 1480 */ 113, 113, 113, 113, 94, 95, 96, 97, 98, 99, + /* 1490 */ 113, 82, 102, 103, 85, 113, 113, 113, 113, 113, + /* 1500 */ 113, 113, 113, 94, 95, 96, 97, 98, 99, 113, + /* 1510 */ 113, 102, 103, 0, 113, 113, 3, 4, 5, 6, + /* 1520 */ 7, 113, 9, 10, 11, 82, 13, 113, 85, 113, + /* 1530 */ 113, 113, 113, 113, 113, 113, 113, 113, 95, 96, + /* 1540 */ 97, 98, 99, 113, 113, 102, 103, 82, 113, 113, + /* 1550 */ 85, 113, 113, 113, 113, 82, 113, 113, 85, 113, + /* 1560 */ 95, 96, 97, 98, 99, 113, 113, 102, 103, 96, + /* 1570 */ 97, 98, 99, 113, 82, 102, 103, 85, 113, 113, + /* 1580 */ 113, 113, 113, 113, 113, 113, 113, 113, 96, 97, + /* 1590 */ 98, 99, 113, 113, 102, 103, 82, 113, 113, 85, + /* 1600 */ 113, 113, 113, 113, 113, 82, 113, 113, 85, 113, + /* 1610 */ 96, 97, 98, 99, 113, 113, 102, 103, 113, 96, + /* 1620 */ 97, 98, 99, 113, 82, 102, 103, 85, 113, 113, + /* 1630 */ 113, 113, 113, 82, 113, 113, 85, 113, 96, 97, + /* 1640 */ 98, 99, 113, 82, 102, 103, 85, 96, 97, 98, + /* 1650 */ 99, 113, 82, 102, 103, 85, 113, 96, 97, 98, + /* 1660 */ 99, 113, 113, 102, 103, 113, 96, 97, 98, 99, + /* 1670 */ 113, 82, 102, 103, 85, 113, 113, 113, 113, 82, + /* 1680 */ 113, 113, 85, 113, 113, 96, 97, 98, 99, 113, + /* 1690 */ 113, 102, 103, 96, 97, 98, 99, 113, 113, 102, + /* 1700 */ 103, 113, 82, 113, 113, 85, 113, 113, 113, 113, + /* 1710 */ 82, 113, 113, 85, 113, 113, 96, 97, 98, 99, + /* 1720 */ 113, 113, 102, 103, 96, 97, 98, 99, 113, 82, + /* 1730 */ 102, 103, 85, 113, 113, 113, 113, 82, 113, 113, + /* 1740 */ 85, 113, 113, 96, 97, 98, 99, 113, 113, 102, + /* 1750 */ 103, 96, 97, 98, 99, 113, 113, 102, 103, }; -#define YY_SHIFT_USE_DFLT (-47) -#define YY_SHIFT_COUNT (143) -#define YY_SHIFT_MIN (-46) -#define YY_SHIFT_MAX (1041) +#define YY_SHIFT_USE_DFLT (-19) +#define YY_SHIFT_COUNT (142) +#define YY_SHIFT_MIN (-18) +#define YY_SHIFT_MAX (1513) static const short yy_shift_ofst[] = { - /* 0 */ -1, 925, 115, 309, 418, 309, 446, 446, 446, 446, - /* 10 */ 244, 179, 446, 446, 446, 446, 446, 446, 446, 446, - /* 20 */ 446, 446, 446, 446, 446, 446, 446, 446, 446, 446, - /* 30 */ 446, 446, 446, 446, 446, 446, 446, 446, 446, 446, - /* 40 */ 446, 446, 446, 446, 446, 446, 446, 446, 446, 446, - /* 50 */ 446, 446, 446, 446, 446, 446, 446, 446, 446, 446, - /* 60 */ 446, 446, 446, 446, 446, 446, 446, 446, 446, 446, - /* 70 */ 151, 393, 333, 36, 393, 156, 333, 281, 959, 36, - /* 80 */ 36, 36, 36, 36, 268, 310, 310, 310, 1041, -46, - /* 90 */ -46, -46, -46, -46, -46, -46, -46, -46, -46, -46, - /* 100 */ -46, 76, -46, 76, -46, 76, -46, 887, 941, 452, - /* 110 */ 34, 219, 220, 66, 66, 215, 66, 41, 154, 94, - /* 120 */ 66, 41, 34, 160, 145, 251, 250, 231, -2, 190, - /* 130 */ 185, 123, 111, 98, 182, 132, 101, 93, 98, 101, - /* 140 */ 93, 98, -14, -2, + /* 0 */ -1, 446, 95, 126, 277, 126, 474, 474, 474, 474, + /* 10 */ 212, 246, 474, 474, 474, 474, 474, 474, 474, 474, + /* 20 */ 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, + /* 30 */ 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, + /* 40 */ 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, + /* 50 */ 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, + /* 60 */ 474, 474, 474, 474, 474, 474, 474, 474, 474, 474, + /* 70 */ 1200, -18, 6, 35, 220, -18, 6, 163, 1513, 35, + /* 80 */ 35, 35, 35, 35, 127, 1035, 1035, 1035, 1068, 4, + /* 90 */ 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + /* 100 */ 4, 18, 4, 18, 4, 18, 4, 299, 247, 248, + /* 110 */ 139, 136, 253, 97, 97, 167, 97, 192, 252, 197, + /* 120 */ 97, 192, 139, 291, 281, 230, 231, 276, 219, 250, + /* 130 */ 229, 266, 271, 310, 273, 290, 292, 271, 290, 292, + /* 140 */ 271, 296, 276, }; -#define YY_REDUCE_USE_DFLT (-70) +#define YY_REDUCE_USE_DFLT (-105) #define YY_REDUCE_COUNT (84) -#define YY_REDUCE_MIN (-69) -#define YY_REDUCE_MAX (1557) +#define YY_REDUCE_MIN (-104) +#define YY_REDUCE_MAX (1655) static const short yy_reduce_ofst[] = { - /* 0 */ -6, -67, 17, 112, 51, 352, 324, 302, 239, 178, - /* 10 */ 831, 809, 787, 765, 743, 721, 699, 677, 655, 633, - /* 20 */ 611, 589, 567, 545, 523, 501, 479, 457, 435, 855, - /* 30 */ 933, 914, 952, 986, 1009, 1047, 1028, 1313, 1294, 1275, - /* 40 */ 1256, 1237, 1218, 1199, 1180, 1161, 1142, 1123, 1104, 1085, - /* 50 */ 1066, 1370, 1351, 1332, 1398, 1389, 1557, 1549, 1530, 1522, - /* 60 */ 1503, 1493, 1484, 1474, 1465, 1455, 1446, 1436, 1427, 1417, - /* 70 */ -69, -54, 379, -33, 105, 152, 58, 259, 259, 237, - /* 80 */ 218, 217, 216, 202, 189, + /* 0 */ -63, -8, 32, 118, 147, 269, 298, 330, 352, 380, + /* 10 */ 463, 485, 507, 531, 553, 575, 597, 619, 641, 663, + /* 20 */ 685, 707, 729, 751, 773, 795, 817, 839, 861, 880, + /* 30 */ 899, 921, 943, 965, 1013, 1036, 1058, 1077, 1096, 1119, + /* 40 */ 1141, 1160, 1179, 1202, 1224, 1243, 1262, 1285, 1307, 1326, + /* 50 */ 1345, 1368, 1390, 1409, 1443, 1465, 1473, 1492, 1514, 1523, + /* 60 */ 1542, 1551, 1561, 1570, 1589, 1597, 1620, 1628, 1647, 1655, + /* 70 */ -65, -104, 27, -70, -4, -15, 0, -38, -38, 22, + /* 80 */ 51, 59, 64, 99, 114, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 366, 341, 366, 354, 366, 366, 351, 366, 366, 366, - /* 10 */ 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, - /* 20 */ 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, - /* 30 */ 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, - /* 40 */ 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, - /* 50 */ 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, - /* 60 */ 366, 366, 366, 366, 366, 366, 366, 366, 366, 366, - /* 70 */ 366, 341, 360, 366, 366, 319, 366, 366, 366, 366, - /* 80 */ 366, 366, 366, 366, 366, 274, 276, 275, 315, 291, - /* 90 */ 290, 289, 288, 287, 286, 285, 284, 283, 282, 281, - /* 100 */ 277, 296, 280, 298, 279, 297, 278, 366, 366, 366, - /* 110 */ 264, 366, 366, 292, 295, 366, 294, 272, 366, 315, - /* 120 */ 293, 273, 263, 261, 366, 329, 327, 325, 325, 366, - /* 130 */ 366, 366, 363, 267, 366, 366, 270, 268, 265, 271, - /* 140 */ 269, 266, 366, 366, 361, 365, 364, 362, 355, 359, - /* 150 */ 358, 357, 356, 241, 239, 245, 260, 259, 258, 257, - /* 160 */ 256, 255, 254, 253, 252, 251, 250, 352, 353, 350, - /* 170 */ 349, 337, 335, 334, 339, 333, 342, 347, 346, 345, - /* 180 */ 344, 343, 340, 338, 336, 332, 299, 331, 330, 329, - /* 190 */ 328, 327, 326, 325, 302, 324, 323, 321, 301, 348, - /* 200 */ 246, 322, 320, 318, 317, 316, 314, 313, 312, 311, - /* 210 */ 310, 309, 308, 307, 306, 305, 304, 303, 300, 262, - /* 220 */ 249, 248, 247, 244, 243, 242, 238, 235, 240, 237, - /* 230 */ 236, + /* 0 */ 497, 473, 497, 485, 497, 497, 482, 497, 497, 497, + /* 10 */ 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, + /* 20 */ 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, + /* 30 */ 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, + /* 40 */ 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, + /* 50 */ 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, + /* 60 */ 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, + /* 70 */ 497, 473, 491, 497, 451, 497, 497, 497, 497, 497, + /* 80 */ 497, 497, 497, 497, 497, 406, 408, 407, 447, 423, + /* 90 */ 422, 421, 420, 419, 418, 417, 416, 415, 414, 413, + /* 100 */ 409, 428, 412, 430, 411, 429, 410, 497, 497, 497, + /* 110 */ 396, 497, 497, 424, 427, 497, 426, 404, 497, 447, + /* 120 */ 425, 405, 395, 393, 497, 461, 459, 457, 497, 497, + /* 130 */ 497, 494, 399, 497, 497, 402, 400, 397, 403, 401, + /* 140 */ 398, 497, 497, }; +/********** End of lemon-generated parsing tables *****************************/ -/* The next table maps tokens into fallback tokens. If a construct -** like the following: +/* The next table maps tokens (terminal symbols) into fallback tokens. +** If a construct like the following: ** ** %fallback ID X Y Z. ** @@ -554,6 +604,10 @@ static const YYACTIONTYPE yy_default[] = { ** and Z. Whenever one of the tokens X, Y, or Z is input to the parser ** but it does not parse, the type of the token is changed to ID and ** the parse is retried before an error is thrown. +** +** This feature can be used, for example, to cause some keywords in a language +** to revert to identifiers if they keyword does not apply in the context where +** it appears. */ #ifdef YYFALLBACK static const YYCODETYPE yyFallback[] = { @@ -571,9 +625,13 @@ static const YYCODETYPE yyFallback[] = { ** + The semantic value stored at this level of the stack. This is ** the information used by the action routines in the grammar. ** It is sometimes called the "minor" token. +** +** After the "shift" half of a SHIFTREDUCE action, the stateno field +** actually contains the reduce action for the second half of the +** SHIFTREDUCE. */ struct yyStackEntry { - YYACTIONTYPE stateno; /* The state-number */ + YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */ YYCODETYPE major; /* The major token value. This is the code ** number for the token at this stack level */ YYMINORTYPE minor; /* The user-supplied minor token value. This @@ -785,27 +843,26 @@ static const char *const yyRuleName[] = { /* 111 */ "property_name_and_value_list ::= property_name_and_value", /* 112 */ "property_name_and_value_list ::= property_name_and_value_list COMMA property_name_and_value", /* 113 */ "property_name_and_value ::= property_name COLON assignment_expression", - /* 114 */ "property_name ::= IDENTIFIER", - /* 115 */ "property_name ::= STRING", - /* 116 */ "property_name ::= DECIMAL", - /* 117 */ "member_expression_part ::= BRACKETL expression BRACKETR", - /* 118 */ "member_expression_part ::= DOT IDENTIFIER", - /* 119 */ "arguments ::= PARENL argument_list PARENR", - /* 120 */ "argument_list ::=", - /* 121 */ "argument_list ::= assignment_expression", - /* 122 */ "argument_list ::= argument_list COMMA assignment_expression", - /* 123 */ "output_columns ::=", - /* 124 */ "output_columns ::= output_column", - /* 125 */ "output_columns ::= output_columns COMMA output_column", - /* 126 */ "output_column ::= STAR", - /* 127 */ "output_column ::= NONEXISTENT_COLUMN", - /* 128 */ "output_column ::= assignment_expression", - /* 129 */ "adjuster ::=", - /* 130 */ "adjuster ::= adjust_expression", - /* 131 */ "adjuster ::= adjuster PLUS adjust_expression", - /* 132 */ "adjust_expression ::= adjust_match_expression", - /* 133 */ "adjust_expression ::= adjust_match_expression STAR DECIMAL", - /* 134 */ "adjust_match_expression ::= IDENTIFIER MATCH STRING", + /* 114 */ "property_name ::= STRING", + /* 115 */ "property_name ::= DECIMAL", + /* 116 */ "member_expression_part ::= BRACKETL expression BRACKETR", + /* 117 */ "member_expression_part ::= DOT IDENTIFIER", + /* 118 */ "arguments ::= PARENL argument_list PARENR", + /* 119 */ "argument_list ::=", + /* 120 */ "argument_list ::= assignment_expression", + /* 121 */ "argument_list ::= argument_list COMMA assignment_expression", + /* 122 */ "output_columns ::=", + /* 123 */ "output_columns ::= output_column", + /* 124 */ "output_columns ::= output_columns COMMA output_column", + /* 125 */ "output_column ::= STAR", + /* 126 */ "output_column ::= NONEXISTENT_COLUMN", + /* 127 */ "output_column ::= assignment_expression", + /* 128 */ "adjuster ::=", + /* 129 */ "adjuster ::= adjust_expression", + /* 130 */ "adjuster ::= adjuster PLUS adjust_expression", + /* 131 */ "adjust_expression ::= adjust_match_expression", + /* 132 */ "adjust_expression ::= adjust_match_expression STAR DECIMAL", + /* 133 */ "adjust_match_expression ::= IDENTIFIER MATCH STRING", }; #endif /* NDEBUG */ @@ -833,6 +890,15 @@ static void yyGrowStack(yyParser *p){ } #endif +/* Datatype of the argument to the memory allocated passed as the +** second argument to grn_expr_parserAlloc() below. This can be changed by +** putting an appropriate #define in the %include section of the input +** grammar. +*/ +#ifndef YYMALLOCARGTYPE +# define YYMALLOCARGTYPE size_t +#endif + /* ** This function allocates a new parser. ** The only argument is a pointer to a function which works like @@ -845,9 +911,9 @@ static void yyGrowStack(yyParser *p){ ** A pointer to a parser. This pointer is used in subsequent calls ** to grn_expr_parser and grn_expr_parserFree. */ -void *grn_expr_parserAlloc(void *(*mallocProc)(size_t)){ +void *grn_expr_parserAlloc(void *(*mallocProc)(YYMALLOCARGTYPE)){ yyParser *pParser; - pParser = (yyParser*)(*mallocProc)( (size_t)sizeof(yyParser) ); + pParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) ); if( pParser ){ pParser->yyidx = -1; #ifdef YYTRACKMAXSTACKDEPTH @@ -862,10 +928,12 @@ void *grn_expr_parserAlloc(void *(*mallocProc)(size_t)){ return pParser; } -/* The following function deletes the value associated with a -** symbol. The symbol can be either a terminal or nonterminal. -** "yymajor" is the symbol code, and "yypminor" is a pointer to -** the value. +/* The following function deletes the "minor type" or semantic value +** associated with a symbol. The symbol can be either a terminal +** or nonterminal. "yymajor" is the symbol code, and "yypminor" is +** a pointer to the value to be deleted. The code used to do the +** deletions is derived from the %destructor and/or %token_destructor +** directives of the input grammar. */ static void yy_destructor( yyParser *yypParser, /* The parser */ @@ -881,18 +949,20 @@ static void yy_destructor( ** being destroyed before it is finished parsing. ** ** Note: during a reduce, the only symbols destroyed are those - ** which appear on the RHS of the rule, but which are not used + ** which appear on the RHS of the rule, but which are *not* used ** inside the C code. */ +/********* Begin destructor definitions ***************************************/ case 75: /* suppress_unused_variable_warning */ { #line 11 "grn_ecmascript.lemon" (void)efsi; -#line 894 "grn_ecmascript.c" +#line 963 "grn_ecmascript.c" } break; +/********* End destructor definitions *****************************************/ default: break; /* If no destructor action specified: do nothing */ } } @@ -902,45 +972,37 @@ static void yy_destructor( ** ** If there is a destructor routine associated with the token which ** is popped from the stack, then call it. -** -** Return the major token number for the symbol popped. */ -static int yy_pop_parser_stack(yyParser *pParser){ - YYCODETYPE yymajor; - yyStackEntry *yytos = &pParser->yystack[pParser->yyidx]; - - if( pParser->yyidx<0 ) return 0; +static void yy_pop_parser_stack(yyParser *pParser){ + yyStackEntry *yytos; + assert( pParser->yyidx>=0 ); + yytos = &pParser->yystack[pParser->yyidx--]; #ifndef NDEBUG - if( yyTraceFILE && pParser->yyidx>=0 ){ + if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sPopping %s\n", yyTracePrompt, yyTokenName[yytos->major]); } #endif - yymajor = yytos->major; - yy_destructor(pParser, yymajor, &yytos->minor); - pParser->yyidx--; - return yymajor; + yy_destructor(pParser, yytos->major, &yytos->minor); } /* -** Deallocate and destroy a parser. Destructors are all called for +** Deallocate and destroy a parser. Destructors are called for ** all stack elements before shutting the parser down. ** -** Inputs: -** <ul> -** <li> A pointer to the parser. This should be a pointer -** obtained from grn_expr_parserAlloc. -** <li> A pointer to a function used to reclaim memory obtained -** from malloc. -** </ul> +** If the YYPARSEFREENEVERNULL macro exists (for example because it +** is defined in a %include section of the input grammar) then it is +** assumed that the input pointer is never NULL. */ void grn_expr_parserFree( void *p, /* The parser to be deleted */ void (*freeProc)(void*) /* Function used to reclaim memory */ ){ yyParser *pParser = (yyParser*)p; +#ifndef YYPARSEFREENEVERNULL if( pParser==0 ) return; +#endif while( pParser->yyidx>=0 ) yy_pop_parser_stack(pParser); #if YYSTACKDEPTH<=0 free(pParser->yystack); @@ -961,10 +1023,6 @@ int grn_expr_parserStackPeak(void *p){ /* ** Find the appropriate action for a parser given the terminal ** look-ahead token iLookAhead. -** -** If the look-ahead token is YYNOCODE, then check to see if the action is -** independent of the look-ahead. If it is, return the action, otherwise -** return YY_NO_ACTION. */ static int yy_find_shift_action( yyParser *pParser, /* The parser */ @@ -973,63 +1031,64 @@ static int yy_find_shift_action( int i; int stateno = pParser->yystack[pParser->yyidx].stateno; - if( stateno>YY_SHIFT_COUNT - || (i = yy_shift_ofst[stateno])==YY_SHIFT_USE_DFLT ){ - return yy_default[stateno]; - } - assert( iLookAhead!=YYNOCODE ); - i += iLookAhead; - if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){ - if( iLookAhead>0 ){ + if( stateno>=YY_MIN_REDUCE ) return stateno; + assert( stateno <= YY_SHIFT_COUNT ); + do{ + i = yy_shift_ofst[stateno]; + if( i==YY_SHIFT_USE_DFLT ) return yy_default[stateno]; + assert( iLookAhead!=YYNOCODE ); + i += iLookAhead; + if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){ + if( iLookAhead>0 ){ #ifdef YYFALLBACK - YYCODETYPE iFallback; /* Fallback token */ - if( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0]) - && (iFallback = yyFallback[iLookAhead])!=0 ){ + YYCODETYPE iFallback; /* Fallback token */ + if( iLookAhead<sizeof(yyFallback)/sizeof(yyFallback[0]) + && (iFallback = yyFallback[iLookAhead])!=0 ){ #ifndef NDEBUG - if( yyTraceFILE ){ - fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n", - yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]); - } + if( yyTraceFILE ){ + fprintf(yyTraceFILE, "%sFALLBACK %s => %s\n", + yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]); + } #endif - return yy_find_shift_action(pParser, iFallback); - } + assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */ + iLookAhead = iFallback; + continue; + } #endif #ifdef YYWILDCARD - { - int j = i - iLookAhead + YYWILDCARD; - if( + { + int j = i - iLookAhead + YYWILDCARD; + if( #if YY_SHIFT_MIN+YYWILDCARD<0 - j>=0 && + j>=0 && #endif #if YY_SHIFT_MAX+YYWILDCARD>=YY_ACTTAB_COUNT - j<YY_ACTTAB_COUNT && + j<YY_ACTTAB_COUNT && #endif - yy_lookahead[j]==YYWILDCARD - ){ + yy_lookahead[j]==YYWILDCARD + ){ #ifndef NDEBUG - if( yyTraceFILE ){ - fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n", - yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[YYWILDCARD]); - } + if( yyTraceFILE ){ + fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n", + yyTracePrompt, yyTokenName[iLookAhead], + yyTokenName[YYWILDCARD]); + } #endif /* NDEBUG */ - return yy_action[j]; + return yy_action[j]; + } } - } #endif /* YYWILDCARD */ + } + return yy_default[stateno]; + }else{ + return yy_action[i]; } - return yy_default[stateno]; - }else{ - return yy_action[i]; - } + }while(1); } /* ** Find the appropriate action for a parser given the non-terminal ** look-ahead token iLookAhead. -** -** If the look-ahead token is YYNOCODE, then check to see if the action is -** independent of the look-ahead. If it is, return the action, otherwise -** return YY_NO_ACTION. */ static int yy_find_reduce_action( int stateno, /* Current state number */ @@ -1072,10 +1131,32 @@ static void yyStackOverflow(yyParser *yypParser, YYMINORTYPE *yypMinor){ while( yypParser->yyidx>=0 ) yy_pop_parser_stack(yypParser); /* Here code is inserted which will execute if the parser ** stack every overflows */ +/******** Begin %stack_overflow code ******************************************/ +/******** End %stack_overflow code ********************************************/ grn_expr_parserARG_STORE; /* Suppress warning about unused %extra_argument var */ } /* +** Print tracing information for a SHIFT action +*/ +#ifndef NDEBUG +static void yyTraceShift(yyParser *yypParser, int yyNewState){ + if( yyTraceFILE ){ + if( yyNewState<YYNSTATE ){ + fprintf(yyTraceFILE,"%sShift '%s', go to state %d\n", + yyTracePrompt,yyTokenName[yypParser->yystack[yypParser->yyidx].major], + yyNewState); + }else{ + fprintf(yyTraceFILE,"%sShift '%s'\n", + yyTracePrompt,yyTokenName[yypParser->yystack[yypParser->yyidx].major]); + } + } +} +#else +# define yyTraceShift(X,Y) +#endif + +/* ** Perform a shift action. */ static void yy_shift( @@ -1109,16 +1190,7 @@ static void yy_shift( yytos->stateno = (YYACTIONTYPE)yyNewState; yytos->major = (YYCODETYPE)yyMajor; yytos->minor = *yypMinor; -#ifndef NDEBUG - if( yyTraceFILE && yypParser->yyidx>0 ){ - int i; - fprintf(yyTraceFILE,"%sShift %d\n",yyTracePrompt,yyNewState); - fprintf(yyTraceFILE,"%sStack:",yyTracePrompt); - for(i=1; i<=yypParser->yyidx; i++) - fprintf(yyTraceFILE," %s",yyTokenName[yypParser->yystack[i].major]); - fprintf(yyTraceFILE,"\n"); - } -#endif + yyTraceShift(yypParser, yyNewState); } /* The following table contains information about every rule that @@ -1244,7 +1316,6 @@ static const struct { { 107, 3 }, { 108, 1 }, { 108, 1 }, - { 108, 1 }, { 101, 3 }, { 101, 2 }, { 100, 3 }, @@ -1285,29 +1356,13 @@ static void yy_reduce( #ifndef NDEBUG if( yyTraceFILE && yyruleno>=0 && yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ){ - fprintf(yyTraceFILE, "%sReduce [%s].\n", yyTracePrompt, - yyRuleName[yyruleno]); + yysize = yyRuleInfo[yyruleno].nrhs; + fprintf(yyTraceFILE, "%sReduce [%s], go to state %d.\n", yyTracePrompt, + yyRuleName[yyruleno], yymsp[-yysize].stateno); } #endif /* NDEBUG */ - - /* Silence complaints from purify about yygotominor being uninitialized - ** in some cases when it is copied into the stack after the following - ** switch. yygotominor is uninitialized when a rule reduces that does - ** not set the value of its left-hand side nonterminal. Leaving the - ** value of the nonterminal uninitialized is utterly harmless as long - ** as the value is never used. So really the only thing this code - ** accomplishes is to quieten purify. - ** - ** 2007-01-16: The wireshark project (www.wireshark.org) reports that - ** without this code, their parser segfaults. I'm not sure what there - ** parser is doing to make this happen. This is the second bug report - ** from wireshark this week. Clearly they are stressing Lemon in ways - ** that it has not been previously stressed... (SQLite ticket #2172) - */ - /*memset(&yygotominor, 0, sizeof(yygotominor));*/ yygotominor = yyzerominor; - switch( yyruleno ){ /* Beginning here are the reduction cases. A typical example ** follows: @@ -1317,12 +1372,13 @@ static void yy_reduce( ** #line <lineno> <thisfile> ** break; */ +/********** Begin reduce actions **********************************************/ case 5: /* query ::= query query_element */ #line 53 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, grn_int32_value_at(&efsi->op_stack, -1), 2); } -#line 1326 "grn_ecmascript.c" +#line 1382 "grn_ecmascript.c" break; case 6: /* query ::= query LOGICAL_AND query_element */ case 35: /* logical_and_expression ::= logical_and_expression LOGICAL_AND bitwise_or_expression */ yytestcase(yyruleno==35); @@ -1330,7 +1386,7 @@ static void yy_reduce( { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_AND, 2); } -#line 1334 "grn_ecmascript.c" +#line 1390 "grn_ecmascript.c" break; case 7: /* query ::= query LOGICAL_AND_NOT query_element */ case 36: /* logical_and_expression ::= logical_and_expression LOGICAL_AND_NOT bitwise_or_expression */ yytestcase(yyruleno==36); @@ -1338,7 +1394,7 @@ static void yy_reduce( { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_AND_NOT, 2); } -#line 1342 "grn_ecmascript.c" +#line 1398 "grn_ecmascript.c" break; case 8: /* query ::= query LOGICAL_OR query_element */ case 33: /* logical_or_expression ::= logical_or_expression LOGICAL_OR logical_and_expression */ yytestcase(yyruleno==33); @@ -1346,7 +1402,7 @@ static void yy_reduce( { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_OR, 2); } -#line 1350 "grn_ecmascript.c" +#line 1406 "grn_ecmascript.c" break; case 11: /* query_element ::= RELATIVE_OP query_element */ #line 69 "grn_ecmascript.lemon" @@ -1354,7 +1410,7 @@ static void yy_reduce( int mode; GRN_INT32_POP(&efsi->mode_stack, mode); } -#line 1358 "grn_ecmascript.c" +#line 1414 "grn_ecmascript.c" break; case 12: /* query_element ::= IDENTIFIER RELATIVE_OP query_element */ #line 73 "grn_ecmascript.lemon" @@ -1381,7 +1437,7 @@ static void yy_reduce( break; } } -#line 1385 "grn_ecmascript.c" +#line 1441 "grn_ecmascript.c" break; case 13: /* query_element ::= BRACEL expression BRACER */ case 14: /* query_element ::= EVAL primary_expression */ yytestcase(yyruleno==14); @@ -1389,98 +1445,98 @@ static void yy_reduce( { efsi->flags = efsi->default_flags; } -#line 1393 "grn_ecmascript.c" +#line 1449 "grn_ecmascript.c" break; case 16: /* expression ::= expression COMMA assignment_expression */ #line 104 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_COMMA, 2); } -#line 1400 "grn_ecmascript.c" +#line 1456 "grn_ecmascript.c" break; case 18: /* assignment_expression ::= lefthand_side_expression ASSIGN assignment_expression */ #line 109 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_ASSIGN, 2); } -#line 1407 "grn_ecmascript.c" +#line 1463 "grn_ecmascript.c" break; case 19: /* assignment_expression ::= lefthand_side_expression STAR_ASSIGN assignment_expression */ #line 112 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_STAR_ASSIGN, 2); } -#line 1414 "grn_ecmascript.c" +#line 1470 "grn_ecmascript.c" break; case 20: /* assignment_expression ::= lefthand_side_expression SLASH_ASSIGN assignment_expression */ #line 115 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SLASH_ASSIGN, 2); } -#line 1421 "grn_ecmascript.c" +#line 1477 "grn_ecmascript.c" break; case 21: /* assignment_expression ::= lefthand_side_expression MOD_ASSIGN assignment_expression */ #line 118 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_MOD_ASSIGN, 2); } -#line 1428 "grn_ecmascript.c" +#line 1484 "grn_ecmascript.c" break; case 22: /* assignment_expression ::= lefthand_side_expression PLUS_ASSIGN assignment_expression */ #line 121 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_PLUS_ASSIGN, 2); } -#line 1435 "grn_ecmascript.c" +#line 1491 "grn_ecmascript.c" break; case 23: /* assignment_expression ::= lefthand_side_expression MINUS_ASSIGN assignment_expression */ #line 124 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_MINUS_ASSIGN, 2); } -#line 1442 "grn_ecmascript.c" +#line 1498 "grn_ecmascript.c" break; case 24: /* assignment_expression ::= lefthand_side_expression SHIFTL_ASSIGN assignment_expression */ #line 127 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SHIFTL_ASSIGN, 2); } -#line 1449 "grn_ecmascript.c" +#line 1505 "grn_ecmascript.c" break; case 25: /* assignment_expression ::= lefthand_side_expression SHIFTR_ASSIGN assignment_expression */ #line 130 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SHIFTR_ASSIGN, 2); } -#line 1456 "grn_ecmascript.c" +#line 1512 "grn_ecmascript.c" break; case 26: /* assignment_expression ::= lefthand_side_expression SHIFTRR_ASSIGN assignment_expression */ #line 133 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SHIFTRR_ASSIGN, 2); } -#line 1463 "grn_ecmascript.c" +#line 1519 "grn_ecmascript.c" break; case 27: /* assignment_expression ::= lefthand_side_expression AND_ASSIGN assignment_expression */ #line 136 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_AND_ASSIGN, 2); } -#line 1470 "grn_ecmascript.c" +#line 1526 "grn_ecmascript.c" break; case 28: /* assignment_expression ::= lefthand_side_expression XOR_ASSIGN assignment_expression */ #line 139 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_XOR_ASSIGN, 2); } -#line 1477 "grn_ecmascript.c" +#line 1533 "grn_ecmascript.c" break; case 29: /* assignment_expression ::= lefthand_side_expression OR_ASSIGN assignment_expression */ #line 142 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_OR_ASSIGN, 2); } -#line 1484 "grn_ecmascript.c" +#line 1540 "grn_ecmascript.c" break; case 31: /* conditional_expression ::= logical_or_expression QUESTION assignment_expression COLON assignment_expression */ #line 147 "grn_ecmascript.lemon" @@ -1489,206 +1545,206 @@ static void yy_reduce( e->codes[yymsp[-3].minor.yy0].nargs = yymsp[-1].minor.yy0 - yymsp[-3].minor.yy0; e->codes[yymsp[-1].minor.yy0].nargs = e->codes_curr - yymsp[-1].minor.yy0 - 1; } -#line 1493 "grn_ecmascript.c" +#line 1549 "grn_ecmascript.c" break; case 38: /* bitwise_or_expression ::= bitwise_or_expression BITWISE_OR bitwise_xor_expression */ #line 167 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_BITWISE_OR, 2); } -#line 1500 "grn_ecmascript.c" +#line 1556 "grn_ecmascript.c" break; case 40: /* bitwise_xor_expression ::= bitwise_xor_expression BITWISE_XOR bitwise_and_expression */ #line 172 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_BITWISE_XOR, 2); } -#line 1507 "grn_ecmascript.c" +#line 1563 "grn_ecmascript.c" break; case 42: /* bitwise_and_expression ::= bitwise_and_expression BITWISE_AND equality_expression */ #line 177 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_BITWISE_AND, 2); } -#line 1514 "grn_ecmascript.c" +#line 1570 "grn_ecmascript.c" break; case 44: /* equality_expression ::= equality_expression EQUAL relational_expression */ #line 182 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_EQUAL, 2); } -#line 1521 "grn_ecmascript.c" +#line 1577 "grn_ecmascript.c" break; case 45: /* equality_expression ::= equality_expression NOT_EQUAL relational_expression */ #line 185 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_NOT_EQUAL, 2); } -#line 1528 "grn_ecmascript.c" +#line 1584 "grn_ecmascript.c" break; case 47: /* relational_expression ::= relational_expression LESS shift_expression */ #line 190 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_LESS, 2); } -#line 1535 "grn_ecmascript.c" +#line 1591 "grn_ecmascript.c" break; case 48: /* relational_expression ::= relational_expression GREATER shift_expression */ #line 193 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_GREATER, 2); } -#line 1542 "grn_ecmascript.c" +#line 1598 "grn_ecmascript.c" break; case 49: /* relational_expression ::= relational_expression LESS_EQUAL shift_expression */ #line 196 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_LESS_EQUAL, 2); } -#line 1549 "grn_ecmascript.c" +#line 1605 "grn_ecmascript.c" break; case 50: /* relational_expression ::= relational_expression GREATER_EQUAL shift_expression */ #line 199 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_GREATER_EQUAL, 2); } -#line 1556 "grn_ecmascript.c" +#line 1612 "grn_ecmascript.c" break; case 51: /* relational_expression ::= relational_expression IN shift_expression */ #line 202 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_IN, 2); } -#line 1563 "grn_ecmascript.c" +#line 1619 "grn_ecmascript.c" break; case 52: /* relational_expression ::= relational_expression MATCH shift_expression */ - case 134: /* adjust_match_expression ::= IDENTIFIER MATCH STRING */ yytestcase(yyruleno==134); + case 133: /* adjust_match_expression ::= IDENTIFIER MATCH STRING */ yytestcase(yyruleno==133); #line 205 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_MATCH, 2); } -#line 1571 "grn_ecmascript.c" +#line 1627 "grn_ecmascript.c" break; case 53: /* relational_expression ::= relational_expression NEAR shift_expression */ #line 208 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_NEAR, 2); } -#line 1578 "grn_ecmascript.c" +#line 1634 "grn_ecmascript.c" break; case 54: /* relational_expression ::= relational_expression NEAR2 shift_expression */ #line 211 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_NEAR2, 2); } -#line 1585 "grn_ecmascript.c" +#line 1641 "grn_ecmascript.c" break; case 55: /* relational_expression ::= relational_expression SIMILAR shift_expression */ #line 214 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SIMILAR, 2); } -#line 1592 "grn_ecmascript.c" +#line 1648 "grn_ecmascript.c" break; case 56: /* relational_expression ::= relational_expression TERM_EXTRACT shift_expression */ #line 217 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_TERM_EXTRACT, 2); } -#line 1599 "grn_ecmascript.c" +#line 1655 "grn_ecmascript.c" break; case 57: /* relational_expression ::= relational_expression LCP shift_expression */ #line 220 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_LCP, 2); } -#line 1606 "grn_ecmascript.c" +#line 1662 "grn_ecmascript.c" break; case 58: /* relational_expression ::= relational_expression PREFIX shift_expression */ #line 223 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_PREFIX, 2); } -#line 1613 "grn_ecmascript.c" +#line 1669 "grn_ecmascript.c" break; case 59: /* relational_expression ::= relational_expression SUFFIX shift_expression */ #line 226 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SUFFIX, 2); } -#line 1620 "grn_ecmascript.c" +#line 1676 "grn_ecmascript.c" break; case 60: /* relational_expression ::= relational_expression REGEXP shift_expression */ #line 229 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_REGEXP, 2); } -#line 1627 "grn_ecmascript.c" +#line 1683 "grn_ecmascript.c" break; case 62: /* shift_expression ::= shift_expression SHIFTL additive_expression */ #line 234 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SHIFTL, 2); } -#line 1634 "grn_ecmascript.c" +#line 1690 "grn_ecmascript.c" break; case 63: /* shift_expression ::= shift_expression SHIFTR additive_expression */ #line 237 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SHIFTR, 2); } -#line 1641 "grn_ecmascript.c" +#line 1697 "grn_ecmascript.c" break; case 64: /* shift_expression ::= shift_expression SHIFTRR additive_expression */ #line 240 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SHIFTRR, 2); } -#line 1648 "grn_ecmascript.c" +#line 1704 "grn_ecmascript.c" break; case 66: /* additive_expression ::= additive_expression PLUS multiplicative_expression */ - case 131: /* adjuster ::= adjuster PLUS adjust_expression */ yytestcase(yyruleno==131); + case 130: /* adjuster ::= adjuster PLUS adjust_expression */ yytestcase(yyruleno==130); #line 245 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_PLUS, 2); } -#line 1656 "grn_ecmascript.c" +#line 1712 "grn_ecmascript.c" break; case 67: /* additive_expression ::= additive_expression MINUS multiplicative_expression */ #line 248 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_MINUS, 2); } -#line 1663 "grn_ecmascript.c" +#line 1719 "grn_ecmascript.c" break; case 69: /* multiplicative_expression ::= multiplicative_expression STAR unary_expression */ - case 133: /* adjust_expression ::= adjust_match_expression STAR DECIMAL */ yytestcase(yyruleno==133); + case 132: /* adjust_expression ::= adjust_match_expression STAR DECIMAL */ yytestcase(yyruleno==132); #line 253 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_STAR, 2); } -#line 1671 "grn_ecmascript.c" +#line 1727 "grn_ecmascript.c" break; case 70: /* multiplicative_expression ::= multiplicative_expression SLASH unary_expression */ #line 256 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_SLASH, 2); } -#line 1678 "grn_ecmascript.c" +#line 1734 "grn_ecmascript.c" break; case 71: /* multiplicative_expression ::= multiplicative_expression MOD unary_expression */ #line 259 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_MOD, 2); } -#line 1685 "grn_ecmascript.c" +#line 1741 "grn_ecmascript.c" break; case 73: /* unary_expression ::= DELETE unary_expression */ #line 264 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_DELETE, 1); } -#line 1692 "grn_ecmascript.c" +#line 1748 "grn_ecmascript.c" break; case 74: /* unary_expression ::= INCR unary_expression */ #line 267 "grn_ecmascript.lemon" @@ -1709,7 +1765,7 @@ static void yy_reduce( grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_INCR, 1); } } -#line 1713 "grn_ecmascript.c" +#line 1769 "grn_ecmascript.c" break; case 75: /* unary_expression ::= DECR unary_expression */ #line 284 "grn_ecmascript.lemon" @@ -1730,63 +1786,63 @@ static void yy_reduce( grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_DECR, 1); } } -#line 1734 "grn_ecmascript.c" +#line 1790 "grn_ecmascript.c" break; case 76: /* unary_expression ::= PLUS unary_expression */ #line 301 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_PLUS, 1); } -#line 1741 "grn_ecmascript.c" +#line 1797 "grn_ecmascript.c" break; case 77: /* unary_expression ::= MINUS unary_expression */ #line 304 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_MINUS, 1); } -#line 1748 "grn_ecmascript.c" +#line 1804 "grn_ecmascript.c" break; case 78: /* unary_expression ::= NOT unary_expression */ #line 307 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_NOT, 1); } -#line 1755 "grn_ecmascript.c" +#line 1811 "grn_ecmascript.c" break; case 79: /* unary_expression ::= BITWISE_NOT unary_expression */ #line 310 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_BITWISE_NOT, 1); } -#line 1762 "grn_ecmascript.c" +#line 1818 "grn_ecmascript.c" break; case 80: /* unary_expression ::= ADJUST unary_expression */ #line 313 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_ADJUST, 1); } -#line 1769 "grn_ecmascript.c" +#line 1825 "grn_ecmascript.c" break; case 81: /* unary_expression ::= EXACT unary_expression */ #line 316 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_EXACT, 1); } -#line 1776 "grn_ecmascript.c" +#line 1832 "grn_ecmascript.c" break; case 82: /* unary_expression ::= PARTIAL unary_expression */ #line 319 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_PARTIAL, 1); } -#line 1783 "grn_ecmascript.c" +#line 1839 "grn_ecmascript.c" break; case 83: /* unary_expression ::= UNSPLIT unary_expression */ #line 322 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_UNSPLIT, 1); } -#line 1790 "grn_ecmascript.c" +#line 1846 "grn_ecmascript.c" break; case 85: /* postfix_expression ::= lefthand_side_expression INCR */ #line 327 "grn_ecmascript.lemon" @@ -1807,7 +1863,7 @@ static void yy_reduce( grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_INCR_POST, 1); } } -#line 1811 "grn_ecmascript.c" +#line 1867 "grn_ecmascript.c" break; case 86: /* postfix_expression ::= lefthand_side_expression DECR */ #line 344 "grn_ecmascript.lemon" @@ -1828,14 +1884,14 @@ static void yy_reduce( grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_DECR_POST, 1); } } -#line 1832 "grn_ecmascript.c" +#line 1888 "grn_ecmascript.c" break; case 89: /* call_expression ::= member_expression arguments */ #line 365 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_CALL, yymsp[0].minor.yy0); } -#line 1839 "grn_ecmascript.c" +#line 1895 "grn_ecmascript.c" break; case 109: /* object_literal ::= BRACEL property_name_and_value_list BRACER */ #line 393 "grn_ecmascript.lemon" @@ -1845,7 +1901,7 @@ static void yy_reduce( grn_expr_append_const_ptr(ctx, (grn_obj *)e, (grn_obj *)efsi->hash_args, GRN_OP_PUSH, 1); } -#line 1849 "grn_ecmascript.c" +#line 1905 "grn_ecmascript.c" break; case 113: /* property_name_and_value ::= property_name COLON assignment_expression */ #line 404 "grn_ecmascript.lemon" @@ -1905,44 +1961,44 @@ static void yy_reduce( } } } -#line 1909 "grn_ecmascript.c" +#line 1965 "grn_ecmascript.c" break; - case 117: /* member_expression_part ::= BRACKETL expression BRACKETR */ -#line 465 "grn_ecmascript.lemon" + case 116: /* member_expression_part ::= BRACKETL expression BRACKETR */ +#line 464 "grn_ecmascript.lemon" { grn_expr_append_op(efsi->ctx, efsi->e, GRN_OP_GET_MEMBER, 2); } -#line 1916 "grn_ecmascript.c" +#line 1972 "grn_ecmascript.c" break; - case 119: /* arguments ::= PARENL argument_list PARENR */ -#line 470 "grn_ecmascript.lemon" + case 118: /* arguments ::= PARENL argument_list PARENR */ +#line 469 "grn_ecmascript.lemon" { yygotominor.yy0 = yymsp[-1].minor.yy0; } -#line 1921 "grn_ecmascript.c" +#line 1977 "grn_ecmascript.c" break; - case 120: /* argument_list ::= */ -#line 471 "grn_ecmascript.lemon" + case 119: /* argument_list ::= */ +#line 470 "grn_ecmascript.lemon" { yygotominor.yy0 = 0; } -#line 1926 "grn_ecmascript.c" +#line 1982 "grn_ecmascript.c" break; - case 121: /* argument_list ::= assignment_expression */ -#line 472 "grn_ecmascript.lemon" + case 120: /* argument_list ::= assignment_expression */ +#line 471 "grn_ecmascript.lemon" { yygotominor.yy0 = 1; } -#line 1931 "grn_ecmascript.c" +#line 1987 "grn_ecmascript.c" break; - case 122: /* argument_list ::= argument_list COMMA assignment_expression */ -#line 473 "grn_ecmascript.lemon" + case 121: /* argument_list ::= argument_list COMMA assignment_expression */ +#line 472 "grn_ecmascript.lemon" { yygotominor.yy0 = yymsp[-2].minor.yy0 + 1; } -#line 1936 "grn_ecmascript.c" +#line 1992 "grn_ecmascript.c" break; - case 123: /* output_columns ::= */ -#line 475 "grn_ecmascript.lemon" + case 122: /* output_columns ::= */ +#line 474 "grn_ecmascript.lemon" { yygotominor.yy0 = 0; } -#line 1943 "grn_ecmascript.c" +#line 1999 "grn_ecmascript.c" break; - case 124: /* output_columns ::= output_column */ -#line 478 "grn_ecmascript.lemon" + case 123: /* output_columns ::= output_column */ +#line 477 "grn_ecmascript.lemon" { if (yymsp[0].minor.yy0) { yygotominor.yy0 = 0; @@ -1950,10 +2006,10 @@ static void yy_reduce( yygotominor.yy0 = 1; } } -#line 1954 "grn_ecmascript.c" +#line 2010 "grn_ecmascript.c" break; - case 125: /* output_columns ::= output_columns COMMA output_column */ -#line 486 "grn_ecmascript.lemon" + case 124: /* output_columns ::= output_columns COMMA output_column */ +#line 485 "grn_ecmascript.lemon" { if (yymsp[0].minor.yy0) { yygotominor.yy0 = yymsp[-2].minor.yy0; @@ -1964,10 +2020,10 @@ static void yy_reduce( yygotominor.yy0 = 1; } } -#line 1968 "grn_ecmascript.c" +#line 2024 "grn_ecmascript.c" break; - case 126: /* output_column ::= STAR */ -#line 497 "grn_ecmascript.lemon" + case 125: /* output_column ::= STAR */ +#line 496 "grn_ecmascript.lemon" { grn_ctx *ctx = efsi->ctx; grn_obj *expr = efsi->e; @@ -2005,21 +2061,21 @@ static void yy_reduce( yygotominor.yy0 = GRN_TRUE; } } -#line 2009 "grn_ecmascript.c" +#line 2065 "grn_ecmascript.c" break; - case 127: /* output_column ::= NONEXISTENT_COLUMN */ -#line 534 "grn_ecmascript.lemon" + case 126: /* output_column ::= NONEXISTENT_COLUMN */ +#line 533 "grn_ecmascript.lemon" { yygotominor.yy0 = GRN_TRUE; } -#line 2016 "grn_ecmascript.c" +#line 2072 "grn_ecmascript.c" break; - case 128: /* output_column ::= assignment_expression */ -#line 537 "grn_ecmascript.lemon" + case 127: /* output_column ::= assignment_expression */ +#line 536 "grn_ecmascript.lemon" { yygotominor.yy0 = GRN_FALSE; } -#line 2023 "grn_ecmascript.c" +#line 2079 "grn_ecmascript.c" break; default: /* (0) input ::= query */ yytestcase(yyruleno==0); @@ -2068,22 +2124,23 @@ static void yy_reduce( /* (110) property_name_and_value_list ::= */ yytestcase(yyruleno==110); /* (111) property_name_and_value_list ::= property_name_and_value */ yytestcase(yyruleno==111); /* (112) property_name_and_value_list ::= property_name_and_value_list COMMA property_name_and_value */ yytestcase(yyruleno==112); - /* (114) property_name ::= IDENTIFIER */ yytestcase(yyruleno==114); - /* (115) property_name ::= STRING */ yytestcase(yyruleno==115); - /* (116) property_name ::= DECIMAL */ yytestcase(yyruleno==116); - /* (118) member_expression_part ::= DOT IDENTIFIER */ yytestcase(yyruleno==118); - /* (129) adjuster ::= */ yytestcase(yyruleno==129); - /* (130) adjuster ::= adjust_expression */ yytestcase(yyruleno==130); - /* (132) adjust_expression ::= adjust_match_expression */ yytestcase(yyruleno==132); - break; + /* (114) property_name ::= STRING */ yytestcase(yyruleno==114); + /* (115) property_name ::= DECIMAL */ yytestcase(yyruleno==115); + /* (117) member_expression_part ::= DOT IDENTIFIER */ yytestcase(yyruleno==117); + /* (128) adjuster ::= */ yytestcase(yyruleno==128); + /* (129) adjuster ::= adjust_expression */ yytestcase(yyruleno==129); + /* (131) adjust_expression ::= adjust_match_expression */ yytestcase(yyruleno==131); + break; +/********** End reduce actions ************************************************/ }; + assert( yyruleno>=0 && yyruleno<sizeof(yyRuleInfo)/sizeof(yyRuleInfo[0]) ); yygoto = yyRuleInfo[yyruleno].lhs; yysize = yyRuleInfo[yyruleno].nrhs; yypParser->yyidx -= yysize; yyact = yy_find_reduce_action(yymsp[-yysize].stateno,(YYCODETYPE)yygoto); - if( yyact < YYNSTATE ){ -#ifdef NDEBUG - /* If we are not debugging and the reduce action popped at least + if( yyact <= YY_MAX_SHIFTREDUCE ){ + if( yyact>YY_MAX_SHIFT ) yyact += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE; + /* If the reduce action popped at least ** one element off the stack, then we can push the new element back ** onto the stack here, and skip the stack overflow test in yy_shift(). ** That gives a significant speed improvement. */ @@ -2093,13 +2150,12 @@ static void yy_reduce( yymsp->stateno = (YYACTIONTYPE)yyact; yymsp->major = (YYCODETYPE)yygoto; yymsp->minor = yygotominor; - }else -#endif - { + yyTraceShift(yypParser, yyact); + }else{ yy_shift(yypParser,yyact,yygoto,&yygotominor); } }else{ - assert( yyact == YYNSTATE + YYNRULE + 1 ); + assert( yyact == YY_ACCEPT_ACTION ); yy_accept(yypParser); } } @@ -2120,6 +2176,8 @@ static void yy_parse_failed( while( yypParser->yyidx>=0 ) yy_pop_parser_stack(yypParser); /* Here code is inserted which will be executed whenever the ** parser fails */ +/************ Begin %parse_failure code ***************************************/ +/************ End %parse_failure code *****************************************/ grn_expr_parserARG_STORE; /* Suppress warning about unused %extra_argument variable */ } #endif /* YYNOERRORRECOVERY */ @@ -2134,6 +2192,7 @@ static void yy_syntax_error( ){ grn_expr_parserARG_FETCH; #define TOKEN (yyminor.yy0) +/************ Begin %syntax_error code ****************************************/ #line 17 "grn_ecmascript.lemon" { @@ -2163,7 +2222,8 @@ static void yy_syntax_error( GRN_OBJ_FIN(ctx, &message); } } -#line 2167 "grn_ecmascript.c" +#line 2226 "grn_ecmascript.c" +/************ End %syntax_error code ******************************************/ grn_expr_parserARG_STORE; /* Suppress warning about unused %extra_argument variable */ } @@ -2182,6 +2242,8 @@ static void yy_accept( while( yypParser->yyidx>=0 ) yy_pop_parser_stack(yypParser); /* Here code is inserted which will be executed whenever the ** parser accepts */ +/*********** Begin %parse_accept code *****************************************/ +/*********** End %parse_accept code *******************************************/ grn_expr_parserARG_STORE; /* Suppress warning about unused %extra_argument variable */ } @@ -2212,7 +2274,9 @@ void grn_expr_parser( ){ YYMINORTYPE yyminorunion; int yyact; /* The parser action. */ +#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY) int yyendofinput; /* True if we are at the end of input */ +#endif #ifdef YYERRORSYMBOL int yyerrorhit = 0; /* True if yymajor has invoked an error */ #endif @@ -2233,26 +2297,34 @@ void grn_expr_parser( yypParser->yyerrcnt = -1; yypParser->yystack[0].stateno = 0; yypParser->yystack[0].major = 0; +#ifndef NDEBUG + if( yyTraceFILE ){ + fprintf(yyTraceFILE,"%sInitialize. Empty stack. State 0\n", + yyTracePrompt); + } +#endif } yyminorunion.yy0 = yyminor; +#if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY) yyendofinput = (yymajor==0); +#endif grn_expr_parserARG_STORE; #ifndef NDEBUG if( yyTraceFILE ){ - fprintf(yyTraceFILE,"%sInput %s\n",yyTracePrompt,yyTokenName[yymajor]); + fprintf(yyTraceFILE,"%sInput '%s'\n",yyTracePrompt,yyTokenName[yymajor]); } #endif do{ yyact = yy_find_shift_action(yypParser,(YYCODETYPE)yymajor); - if( yyact<YYNSTATE ){ - assert( !yyendofinput ); /* Impossible to shift the $ token */ + if( yyact <= YY_MAX_SHIFTREDUCE ){ + if( yyact > YY_MAX_SHIFT ) yyact += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE; yy_shift(yypParser,yyact,yymajor,&yyminorunion); yypParser->yyerrcnt--; yymajor = YYNOCODE; - }else if( yyact < YYNSTATE + YYNRULE ){ - yy_reduce(yypParser,yyact-YYNSTATE); + }else if( yyact <= YY_MAX_REDUCE ){ + yy_reduce(yypParser,yyact-YY_MIN_REDUCE); }else{ assert( yyact == YY_ERROR_ACTION ); #ifdef YYERRORSYMBOL @@ -2302,7 +2374,7 @@ void grn_expr_parser( yymx != YYERRORSYMBOL && (yyact = yy_find_reduce_action( yypParser->yystack[yypParser->yyidx].stateno, - YYERRORSYMBOL)) >= YYNSTATE + YYERRORSYMBOL)) >= YY_MIN_REDUCE ){ yy_pop_parser_stack(yypParser); } @@ -2352,5 +2424,15 @@ void grn_expr_parser( #endif } }while( yymajor!=YYNOCODE && yypParser->yyidx>=0 ); +#ifndef NDEBUG + if( yyTraceFILE ){ + int i; + fprintf(yyTraceFILE,"%sReturn. Stack=",yyTracePrompt); + for(i=1; i<=yypParser->yyidx; i++) + fprintf(yyTraceFILE,"%c%s", i==1 ? '[' : ' ', + yyTokenName[yypParser->yystack[i].major]); + fprintf(yyTraceFILE,"]\n"); + } +#endif return; } Modified: lib/grn_ecmascript.h (+73 -73) =================================================================== --- lib/grn_ecmascript.h 2016-02-20 18:07:03 +0900 (9051290) +++ lib/grn_ecmascript.h 2016-02-20 18:13:17 +0900 (6280690) @@ -1,73 +1,73 @@ -#define GRN_EXPR_TOKEN_START_OUTPUT_COLUMNS 1 -#define GRN_EXPR_TOKEN_START_ADJUSTER 2 -#define GRN_EXPR_TOKEN_LOGICAL_AND 3 -#define GRN_EXPR_TOKEN_LOGICAL_AND_NOT 4 -#define GRN_EXPR_TOKEN_LOGICAL_OR 5 -#define GRN_EXPR_TOKEN_QSTRING 6 -#define GRN_EXPR_TOKEN_PARENL 7 -#define GRN_EXPR_TOKEN_PARENR 8 -#define GRN_EXPR_TOKEN_RELATIVE_OP 9 -#define GRN_EXPR_TOKEN_IDENTIFIER 10 -#define GRN_EXPR_TOKEN_BRACEL 11 -#define GRN_EXPR_TOKEN_BRACER 12 -#define GRN_EXPR_TOKEN_EVAL 13 -#define GRN_EXPR_TOKEN_COMMA 14 -#define GRN_EXPR_TOKEN_ASSIGN 15 -#define GRN_EXPR_TOKEN_STAR_ASSIGN 16 -#define GRN_EXPR_TOKEN_SLASH_ASSIGN 17 -#define GRN_EXPR_TOKEN_MOD_ASSIGN 18 -#define GRN_EXPR_TOKEN_PLUS_ASSIGN 19 -#define GRN_EXPR_TOKEN_MINUS_ASSIGN 20 -#define GRN_EXPR_TOKEN_SHIFTL_ASSIGN 21 -#define GRN_EXPR_TOKEN_SHIFTR_ASSIGN 22 -#define GRN_EXPR_TOKEN_SHIFTRR_ASSIGN 23 -#define GRN_EXPR_TOKEN_AND_ASSIGN 24 -#define GRN_EXPR_TOKEN_XOR_ASSIGN 25 -#define GRN_EXPR_TOKEN_OR_ASSIGN 26 -#define GRN_EXPR_TOKEN_QUESTION 27 -#define GRN_EXPR_TOKEN_COLON 28 -#define GRN_EXPR_TOKEN_BITWISE_OR 29 -#define GRN_EXPR_TOKEN_BITWISE_XOR 30 -#define GRN_EXPR_TOKEN_BITWISE_AND 31 -#define GRN_EXPR_TOKEN_EQUAL 32 -#define GRN_EXPR_TOKEN_NOT_EQUAL 33 -#define GRN_EXPR_TOKEN_LESS 34 -#define GRN_EXPR_TOKEN_GREATER 35 -#define GRN_EXPR_TOKEN_LESS_EQUAL 36 -#define GRN_EXPR_TOKEN_GREATER_EQUAL 37 -#define GRN_EXPR_TOKEN_IN 38 -#define GRN_EXPR_TOKEN_MATCH 39 -#define GRN_EXPR_TOKEN_NEAR 40 -#define GRN_EXPR_TOKEN_NEAR2 41 -#define GRN_EXPR_TOKEN_SIMILAR 42 -#define GRN_EXPR_TOKEN_TERM_EXTRACT 43 -#define GRN_EXPR_TOKEN_LCP 44 -#define GRN_EXPR_TOKEN_PREFIX 45 -#define GRN_EXPR_TOKEN_SUFFIX 46 -#define GRN_EXPR_TOKEN_REGEXP 47 -#define GRN_EXPR_TOKEN_SHIFTL 48 -#define GRN_EXPR_TOKEN_SHIFTR 49 -#define GRN_EXPR_TOKEN_SHIFTRR 50 -#define GRN_EXPR_TOKEN_PLUS 51 -#define GRN_EXPR_TOKEN_MINUS 52 -#define GRN_EXPR_TOKEN_STAR 53 -#define GRN_EXPR_TOKEN_SLASH 54 -#define GRN_EXPR_TOKEN_MOD 55 -#define GRN_EXPR_TOKEN_DELETE 56 -#define GRN_EXPR_TOKEN_INCR 57 -#define GRN_EXPR_TOKEN_DECR 58 -#define GRN_EXPR_TOKEN_NOT 59 -#define GRN_EXPR_TOKEN_BITWISE_NOT 60 -#define GRN_EXPR_TOKEN_ADJUST 61 -#define GRN_EXPR_TOKEN_EXACT 62 -#define GRN_EXPR_TOKEN_PARTIAL 63 -#define GRN_EXPR_TOKEN_UNSPLIT 64 -#define GRN_EXPR_TOKEN_DECIMAL 65 -#define GRN_EXPR_TOKEN_HEX_INTEGER 66 -#define GRN_EXPR_TOKEN_STRING 67 -#define GRN_EXPR_TOKEN_BOOLEAN 68 -#define GRN_EXPR_TOKEN_NULL 69 -#define GRN_EXPR_TOKEN_BRACKETL 70 -#define GRN_EXPR_TOKEN_BRACKETR 71 -#define GRN_EXPR_TOKEN_DOT 72 -#define GRN_EXPR_TOKEN_NONEXISTENT_COLUMN 73 +#define GRN_EXPR_TOKEN_START_OUTPUT_COLUMNS 1 +#define GRN_EXPR_TOKEN_START_ADJUSTER 2 +#define GRN_EXPR_TOKEN_LOGICAL_AND 3 +#define GRN_EXPR_TOKEN_LOGICAL_AND_NOT 4 +#define GRN_EXPR_TOKEN_LOGICAL_OR 5 +#define GRN_EXPR_TOKEN_QSTRING 6 +#define GRN_EXPR_TOKEN_PARENL 7 +#define GRN_EXPR_TOKEN_PARENR 8 +#define GRN_EXPR_TOKEN_RELATIVE_OP 9 +#define GRN_EXPR_TOKEN_IDENTIFIER 10 +#define GRN_EXPR_TOKEN_BRACEL 11 +#define GRN_EXPR_TOKEN_BRACER 12 +#define GRN_EXPR_TOKEN_EVAL 13 +#define GRN_EXPR_TOKEN_COMMA 14 +#define GRN_EXPR_TOKEN_ASSIGN 15 +#define GRN_EXPR_TOKEN_STAR_ASSIGN 16 +#define GRN_EXPR_TOKEN_SLASH_ASSIGN 17 +#define GRN_EXPR_TOKEN_MOD_ASSIGN 18 +#define GRN_EXPR_TOKEN_PLUS_ASSIGN 19 +#define GRN_EXPR_TOKEN_MINUS_ASSIGN 20 +#define GRN_EXPR_TOKEN_SHIFTL_ASSIGN 21 +#define GRN_EXPR_TOKEN_SHIFTR_ASSIGN 22 +#define GRN_EXPR_TOKEN_SHIFTRR_ASSIGN 23 +#define GRN_EXPR_TOKEN_AND_ASSIGN 24 +#define GRN_EXPR_TOKEN_XOR_ASSIGN 25 +#define GRN_EXPR_TOKEN_OR_ASSIGN 26 +#define GRN_EXPR_TOKEN_QUESTION 27 +#define GRN_EXPR_TOKEN_COLON 28 +#define GRN_EXPR_TOKEN_BITWISE_OR 29 +#define GRN_EXPR_TOKEN_BITWISE_XOR 30 +#define GRN_EXPR_TOKEN_BITWISE_AND 31 +#define GRN_EXPR_TOKEN_EQUAL 32 +#define GRN_EXPR_TOKEN_NOT_EQUAL 33 +#define GRN_EXPR_TOKEN_LESS 34 +#define GRN_EXPR_TOKEN_GREATER 35 +#define GRN_EXPR_TOKEN_LESS_EQUAL 36 +#define GRN_EXPR_TOKEN_GREATER_EQUAL 37 +#define GRN_EXPR_TOKEN_IN 38 +#define GRN_EXPR_TOKEN_MATCH 39 +#define GRN_EXPR_TOKEN_NEAR 40 +#define GRN_EXPR_TOKEN_NEAR2 41 +#define GRN_EXPR_TOKEN_SIMILAR 42 +#define GRN_EXPR_TOKEN_TERM_EXTRACT 43 +#define GRN_EXPR_TOKEN_LCP 44 +#define GRN_EXPR_TOKEN_PREFIX 45 +#define GRN_EXPR_TOKEN_SUFFIX 46 +#define GRN_EXPR_TOKEN_REGEXP 47 +#define GRN_EXPR_TOKEN_SHIFTL 48 +#define GRN_EXPR_TOKEN_SHIFTR 49 +#define GRN_EXPR_TOKEN_SHIFTRR 50 +#define GRN_EXPR_TOKEN_PLUS 51 +#define GRN_EXPR_TOKEN_MINUS 52 +#define GRN_EXPR_TOKEN_STAR 53 +#define GRN_EXPR_TOKEN_SLASH 54 +#define GRN_EXPR_TOKEN_MOD 55 +#define GRN_EXPR_TOKEN_DELETE 56 +#define GRN_EXPR_TOKEN_INCR 57 +#define GRN_EXPR_TOKEN_DECR 58 +#define GRN_EXPR_TOKEN_NOT 59 +#define GRN_EXPR_TOKEN_BITWISE_NOT 60 +#define GRN_EXPR_TOKEN_ADJUST 61 +#define GRN_EXPR_TOKEN_EXACT 62 +#define GRN_EXPR_TOKEN_PARTIAL 63 +#define GRN_EXPR_TOKEN_UNSPLIT 64 +#define GRN_EXPR_TOKEN_DECIMAL 65 +#define GRN_EXPR_TOKEN_HEX_INTEGER 66 +#define GRN_EXPR_TOKEN_STRING 67 +#define GRN_EXPR_TOKEN_BOOLEAN 68 +#define GRN_EXPR_TOKEN_NULL 69 +#define GRN_EXPR_TOKEN_BRACKETL 70 +#define GRN_EXPR_TOKEN_BRACKETR 71 +#define GRN_EXPR_TOKEN_DOT 72 +#define GRN_EXPR_TOKEN_NONEXISTENT_COLUMN 73