parser.c
This file
Path
parser.c
3,914 lines · 132.0 KiB · C
Last changed by
Resolve remaining shift/reduce conflicts involving '?'David Tolnaybefore adoptionf5a7bba
History of this fileTake it
1/* A Bison parser, made by GNU Bison 3.0.2. */23/* Bison implementation for Yacc-like parsers in C45 Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.67 This program is free software: you can redistribute it and/or modify8 it under the terms of the GNU General Public License as published by9 the Free Software Foundation, either version 3 of the License, or10 (at your option) any later version.1112 This program is distributed in the hope that it will be useful,13 but WITHOUT ANY WARRANTY; without even the implied warranty of14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15 GNU General Public License for more details.1617 You should have received a copy of the GNU General Public License18 along with this program. If not, see <http://www.gnu.org/licenses/>. */1920/* As a special exception, you may create a larger work that contains21 part or all of the Bison parser skeleton and distribute that work22 under terms of your choice, so long as that work isn't itself a23 parser generator using the skeleton or a modified version thereof24 as a parser skeleton. Alternatively, if you modify or redistribute25 the parser skeleton itself, you may (at your option) remove this26 special exception, which will cause the skeleton and the resulting27 Bison output files to be licensed under the GNU General Public28 License without this special exception.2930 This special exception was added by the Free Software Foundation in31 version 2.2 of Bison. */3233/* C LALR(1) parser skeleton written by Richard Stallman, by34 simplifying the original so-called "semantic" parser. */3536/* All symbols defined below should begin with yy or YY, to avoid37 infringing on user name space. This should be done even for local38 variables, as they might otherwise be expanded by user macros.39 There are some unavoidable exceptions within include files to40 define necessary library symbols; they are noted "INFRINGES ON41 USER NAME SPACE" below. */4243/* Identify Bison output. */44#define YYBISON 14546/* Bison version. */47#define YYBISON_VERSION "3.0.2"4849/* Skeleton name. */50#define YYSKELETON_NAME "yacc.c"5152/* Pure parsers. */53#define YYPURE 15455/* Push parsers. */56#define YYPUSH 05758/* Pull parsers. */59#define YYPULL 16061626364/* Copy the first part of user declarations. */65#line 1 "parser.y" /* yacc.c:339 */6667#include <assert.h>68#include <math.h>69#include <stdio.h>70#include <string.h>71#include "compile.h"72#include "jv_alloc.h"73#define YYMALLOC jv_mem_alloc74#define YYFREE jv_mem_free7576#line 77 "parser.c" /* yacc.c:339 */7778# ifndef YY_NULLPTR79# if defined __cplusplus && 201103L <= __cplusplus80# define YY_NULLPTR nullptr81# else82# define YY_NULLPTR 083# endif84# endif8586/* Enabling verbose error messages. */87#ifdef YYERROR_VERBOSE88# undef YYERROR_VERBOSE89# define YYERROR_VERBOSE 190#else91# define YYERROR_VERBOSE 192#endif9394/* In a future release of Bison, this section will be replaced95 by #include "y.tab.h". */96#ifndef YY_YY_PARSER_H_INCLUDED97# define YY_YY_PARSER_H_INCLUDED98/* Debug traces. */99#ifndef YYDEBUG100# define YYDEBUG 0101#endif102#if YYDEBUG103extern int yydebug;104#endif105/* "%code requires" blocks. */106#line 11 "parser.y" /* yacc.c:355 */107108#include "locfile.h"109struct lexer_param;110111#define YYLTYPE location112#define YYLLOC_DEFAULT(Loc, Rhs, N) \113 do { \114 if (N) { \115 (Loc).start = YYRHSLOC(Rhs, 1).start; \116 (Loc).end = YYRHSLOC(Rhs, N).end; \117 } else { \118 (Loc).start = YYRHSLOC(Rhs, 0).end; \119 (Loc).end = YYRHSLOC(Rhs, 0).end; \120 } \121 } while (0)122123#line 124 "parser.c" /* yacc.c:355 */124125/* Token type. */126#ifndef YYTOKENTYPE127# define YYTOKENTYPE128 enum yytokentype129 {130 INVALID_CHARACTER = 258,131 IDENT = 259,132 FIELD = 260,133 LITERAL = 261,134 FORMAT = 262,135 REC = 263,136 SETMOD = 264,137 EQ = 265,138 NEQ = 266,139 DEFINEDOR = 267,140 AS = 268,141 DEF = 269,142 MODULE = 270,143 IMPORT = 271,144 INCLUDE = 272,145 IF = 273,146 THEN = 274,147 ELSE = 275,148 ELSE_IF = 276,149 REDUCE = 277,150 FOREACH = 278,151 END = 279,152 AND = 280,153 OR = 281,154 TRY = 282,155 CATCH = 283,156 LABEL = 284,157 BREAK = 285,158 LOC = 286,159 SETPIPE = 287,160 SETPLUS = 288,161 SETMINUS = 289,162 SETMULT = 290,163 SETDIV = 291,164 SETDEFINEDOR = 292,165 LESSEQ = 293,166 GREATEREQ = 294,167 QQSTRING_START = 295,168 QQSTRING_TEXT = 296,169 QQSTRING_INTERP_START = 297,170 QQSTRING_INTERP_END = 298,171 QQSTRING_END = 299,172 FUNCDEF = 300,173 NONOPT = 301174 };175#endif176/* Tokens. */177#define INVALID_CHARACTER 258178#define IDENT 259179#define FIELD 260180#define LITERAL 261181#define FORMAT 262182#define REC 263183#define SETMOD 264184#define EQ 265185#define NEQ 266186#define DEFINEDOR 267187#define AS 268188#define DEF 269189#define MODULE 270190#define IMPORT 271191#define INCLUDE 272192#define IF 273193#define THEN 274194#define ELSE 275195#define ELSE_IF 276196#define REDUCE 277197#define FOREACH 278198#define END 279199#define AND 280200#define OR 281201#define TRY 282202#define CATCH 283203#define LABEL 284204#define BREAK 285205#define LOC 286206#define SETPIPE 287207#define SETPLUS 288208#define SETMINUS 289209#define SETMULT 290210#define SETDIV 291211#define SETDEFINEDOR 292212#define LESSEQ 293213#define GREATEREQ 294214#define QQSTRING_START 295215#define QQSTRING_TEXT 296216#define QQSTRING_INTERP_START 297217#define QQSTRING_INTERP_END 298218#define QQSTRING_END 299219#define FUNCDEF 300220#define NONOPT 301221222/* Value type. */223#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED224typedef union YYSTYPE YYSTYPE;225union YYSTYPE226{227#line 31 "parser.y" /* yacc.c:355 */228229 jv literal;230 block blk;231232#line 233 "parser.c" /* yacc.c:355 */233};234# define YYSTYPE_IS_TRIVIAL 1235# define YYSTYPE_IS_DECLARED 1236#endif237238/* Location type. */239#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED240typedef struct YYLTYPE YYLTYPE;241struct YYLTYPE242{243 int first_line;244 int first_column;245 int last_line;246 int last_column;247};248# define YYLTYPE_IS_DECLARED 1249# define YYLTYPE_IS_TRIVIAL 1250#endif251252253254int yyparse (block* answer, int* errors, struct locfile* locations, struct lexer_param* lexer_param_ptr);255256#endif /* !YY_YY_PARSER_H_INCLUDED */257258/* Copy the second part of user declarations. */259#line 118 "parser.y" /* yacc.c:358 */260261#include "lexer.h"262struct lexer_param {263 yyscan_t lexer;264};265#define FAIL(loc, msg) \266 do { \267 location l = loc; \268 yyerror(&l, answer, errors, locations, lexer_param_ptr, msg); \269 /*YYERROR*/; \270 } while (0)271272void yyerror(YYLTYPE* loc, block* answer, int* errors,273 struct locfile* locations, struct lexer_param* lexer_param_ptr, const char *s){274 (*errors)++;275 if (strstr(s, "unexpected")) {276#ifdef WIN32277 locfile_locate(locations, *loc, "jq: error: %s (Windows cmd shell quoting issues?)", s);278#else279 locfile_locate(locations, *loc, "jq: error: %s (Unix shell quoting issues?)", s);280#endif281 } else {282 locfile_locate(locations, *loc, "jq: error: %s", s);283 }284}285286int yylex(YYSTYPE* yylval, YYLTYPE* yylloc, block* answer, int* errors,287 struct locfile* locations, struct lexer_param* lexer_param_ptr) {288 yyscan_t lexer = lexer_param_ptr->lexer;289 int tok = jq_yylex(yylval, yylloc, lexer);290 if ((tok == LITERAL || tok == QQSTRING_TEXT) && !jv_is_valid(yylval->literal)) {291 jv msg = jv_invalid_get_msg(jv_copy(yylval->literal));292 if (jv_get_kind(msg) == JV_KIND_STRING) {293 FAIL(*yylloc, jv_string_value(msg));294 } else {295 FAIL(*yylloc, "Invalid literal");296 }297 jv_free(msg);298 jv_free(yylval->literal);299 yylval->literal = jv_null();300 }301 return tok;302}303304static block gen_dictpair(block k, block v) {305 return BLOCK(gen_subexp(k), gen_subexp(v), gen_op_simple(INSERT));306}307308static block gen_index(block obj, block key) {309 return BLOCK(gen_subexp(key), obj, gen_op_simple(INDEX));310}311312static block gen_index_opt(block obj, block key) {313 return BLOCK(gen_subexp(key), obj, gen_op_simple(INDEX_OPT));314}315316static block gen_slice_index(block obj, block start, block end, opcode idx_op) {317 block key = BLOCK(gen_subexp(gen_const(jv_object())),318 gen_subexp(gen_const(jv_string("start"))),319 gen_subexp(start),320 gen_op_simple(INSERT),321 gen_subexp(gen_const(jv_string("end"))),322 gen_subexp(end),323 gen_op_simple(INSERT));324 return BLOCK(key, obj, gen_op_simple(idx_op));325}326327static block constant_fold(block a, block b, int op) {328 if (!block_is_single(a) || !block_is_const(a) ||329 !block_is_single(b) || !block_is_const(b))330 return gen_noop();331 if (block_const_kind(a) != block_const_kind(b))332 return gen_noop();333334 jv res = jv_invalid();335336 if (block_const_kind(a) == JV_KIND_NUMBER) {337 double na = jv_number_value(block_const(a));338 double nb = jv_number_value(block_const(b));339 switch (op) {340 case '+': res = jv_number(na + nb); break;341 case '-': res = jv_number(na - nb); break;342 case '*': res = jv_number(na * nb); break;343 case '/': res = jv_number(na / nb); break;344 case EQ: res = (na == nb ? jv_true() : jv_false()); break;345 case NEQ: res = (na != nb ? jv_true() : jv_false()); break;346 case '<': res = (na < nb ? jv_true() : jv_false()); break;347 case '>': res = (na > nb ? jv_true() : jv_false()); break;348 case LESSEQ: res = (na <= nb ? jv_true() : jv_false()); break;349 case GREATEREQ: res = (na >= nb ? jv_true() : jv_false()); break;350 default: break;351 }352 } else if (op == '+' && block_const_kind(a) == JV_KIND_STRING) {353 res = jv_string_concat(block_const(a), block_const(b));354 } else {355 return gen_noop();356 }357358 if (jv_get_kind(res) == JV_KIND_INVALID)359 return gen_noop();360361 block_free(a);362 block_free(b);363 return gen_const(res);364}365366static block gen_binop(block a, block b, int op) {367 block folded = constant_fold(a, b, op);368 if (!block_is_noop(folded))369 return folded;370371 const char* funcname = 0;372 switch (op) {373 case '+': funcname = "_plus"; break;374 case '-': funcname = "_minus"; break;375 case '*': funcname = "_multiply"; break;376 case '/': funcname = "_divide"; break;377 case '%': funcname = "_mod"; break;378 case EQ: funcname = "_equal"; break;379 case NEQ: funcname = "_notequal"; break;380 case '<': funcname = "_less"; break;381 case '>': funcname = "_greater"; break;382 case LESSEQ: funcname = "_lesseq"; break;383 case GREATEREQ: funcname = "_greatereq"; break;384 }385 assert(funcname);386387 return gen_call(funcname, BLOCK(gen_lambda(a), gen_lambda(b)));388}389390static block gen_format(block a, jv fmt) {391 return BLOCK(a, gen_call("format", BLOCK(gen_lambda(gen_const(fmt)))));392}393394static block gen_definedor_assign(block object, block val) {395 block tmp = gen_op_var_fresh(STOREV, "tmp");396 return BLOCK(gen_op_simple(DUP),397 val, tmp,398 gen_call("_modify", BLOCK(gen_lambda(object),399 gen_lambda(gen_definedor(gen_noop(),400 gen_op_bound(LOADV, tmp))))));401}402403static block gen_update(block object, block val, int optype) {404 block tmp = gen_op_var_fresh(STOREV, "tmp");405 return BLOCK(gen_op_simple(DUP),406 val,407 tmp,408 gen_call("_modify", BLOCK(gen_lambda(object),409 gen_lambda(gen_binop(gen_noop(),410 gen_op_bound(LOADV, tmp),411 optype)))));412}413414415#line 416 "parser.c" /* yacc.c:358 */416417#ifdef short418# undef short419#endif420421#ifdef YYTYPE_UINT8422typedef YYTYPE_UINT8 yytype_uint8;423#else424typedef unsigned char yytype_uint8;425#endif426427#ifdef YYTYPE_INT8428typedef YYTYPE_INT8 yytype_int8;429#else430typedef signed char yytype_int8;431#endif432433#ifdef YYTYPE_UINT16434typedef YYTYPE_UINT16 yytype_uint16;435#else436typedef unsigned short int yytype_uint16;437#endif438439#ifdef YYTYPE_INT16440typedef YYTYPE_INT16 yytype_int16;441#else442typedef short int yytype_int16;443#endif444445#ifndef YYSIZE_T446# ifdef __SIZE_TYPE__447# define YYSIZE_T __SIZE_TYPE__448# elif defined size_t449# define YYSIZE_T size_t450# elif ! defined YYSIZE_T451# include <stddef.h> /* INFRINGES ON USER NAME SPACE */452# define YYSIZE_T size_t453# else454# define YYSIZE_T unsigned int455# endif456#endif457458#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)459460#ifndef YY_461# if defined YYENABLE_NLS && YYENABLE_NLS462# if ENABLE_NLS463# include <libintl.h> /* INFRINGES ON USER NAME SPACE */464# define YY_(Msgid) dgettext ("bison-runtime", Msgid)465# endif466# endif467# ifndef YY_468# define YY_(Msgid) Msgid469# endif470#endif471472#ifndef YY_ATTRIBUTE473# if (defined __GNUC__ \474 && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \475 || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C476# define YY_ATTRIBUTE(Spec) __attribute__(Spec)477# else478# define YY_ATTRIBUTE(Spec) /* empty */479# endif480#endif481482#ifndef YY_ATTRIBUTE_PURE483# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))484#endif485486#ifndef YY_ATTRIBUTE_UNUSED487# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))488#endif489490#if !defined _Noreturn \491 && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112)492# if defined _MSC_VER && 1200 <= _MSC_VER493# define _Noreturn __declspec (noreturn)494# else495# define _Noreturn YY_ATTRIBUTE ((__noreturn__))496# endif497#endif498499/* Suppress unused-variable warnings by "using" E. */500#if ! defined lint || defined __GNUC__501# define YYUSE(E) ((void) (E))502#else503# define YYUSE(E) /* empty */504#endif505506#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__507/* Suppress an incorrect diagnostic about yylval being uninitialized. */508# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \509 _Pragma ("GCC diagnostic push") \510 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\511 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")512# define YY_IGNORE_MAYBE_UNINITIALIZED_END \513 _Pragma ("GCC diagnostic pop")514#else515# define YY_INITIAL_VALUE(Value) Value516#endif517#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN518# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN519# define YY_IGNORE_MAYBE_UNINITIALIZED_END520#endif521#ifndef YY_INITIAL_VALUE522# define YY_INITIAL_VALUE(Value) /* Nothing. */523#endif524525526#if ! defined yyoverflow || YYERROR_VERBOSE527528/* The parser invokes alloca or malloc; define the necessary symbols. */529530# ifdef YYSTACK_USE_ALLOCA531# if YYSTACK_USE_ALLOCA532# ifdef __GNUC__533# define YYSTACK_ALLOC __builtin_alloca534# elif defined __BUILTIN_VA_ARG_INCR535# include <alloca.h> /* INFRINGES ON USER NAME SPACE */536# elif defined _AIX537# define YYSTACK_ALLOC __alloca538# elif defined _MSC_VER539# include <malloc.h> /* INFRINGES ON USER NAME SPACE */540# define alloca _alloca541# else542# define YYSTACK_ALLOC alloca543# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS544# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */545 /* Use EXIT_SUCCESS as a witness for stdlib.h. */546# ifndef EXIT_SUCCESS547# define EXIT_SUCCESS 0548# endif549# endif550# endif551# endif552# endif553554# ifdef YYSTACK_ALLOC555 /* Pacify GCC's 'empty if-body' warning. */556# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)557# ifndef YYSTACK_ALLOC_MAXIMUM558 /* The OS might guarantee only one guard page at the bottom of the stack,559 and a page size can be as small as 4096 bytes. So we cannot safely560 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number561 to allow for a few compiler-allocated temporary stack slots. */562# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */563# endif564# else565# define YYSTACK_ALLOC YYMALLOC566# define YYSTACK_FREE YYFREE567# ifndef YYSTACK_ALLOC_MAXIMUM568# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM569# endif570# if (defined __cplusplus && ! defined EXIT_SUCCESS \571 && ! ((defined YYMALLOC || defined malloc) \572 && (defined YYFREE || defined free)))573# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */574# ifndef EXIT_SUCCESS575# define EXIT_SUCCESS 0576# endif577# endif578# ifndef YYMALLOC579# define YYMALLOC malloc580# if ! defined malloc && ! defined EXIT_SUCCESS581void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */582# endif583# endif584# ifndef YYFREE585# define YYFREE free586# if ! defined free && ! defined EXIT_SUCCESS587void free (void *); /* INFRINGES ON USER NAME SPACE */588# endif589# endif590# endif591#endif /* ! defined yyoverflow || YYERROR_VERBOSE */592593594#if (! defined yyoverflow \595 && (! defined __cplusplus \596 || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \597 && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))598599/* A type that is properly aligned for any stack member. */600union yyalloc601{602 yytype_int16 yyss_alloc;603 YYSTYPE yyvs_alloc;604 YYLTYPE yyls_alloc;605};606607/* The size of the maximum gap between one aligned stack and the next. */608# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)609610/* The size of an array large to enough to hold all stacks, each with611 N elements. */612# define YYSTACK_BYTES(N) \613 ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \614 + 2 * YYSTACK_GAP_MAXIMUM)615616# define YYCOPY_NEEDED 1617618/* Relocate STACK from its old location to the new one. The619 local variables YYSIZE and YYSTACKSIZE give the old and new number of620 elements in the stack, and YYPTR gives the new location of the621 stack. Advance YYPTR to a properly aligned location for the next622 stack. */623# define YYSTACK_RELOCATE(Stack_alloc, Stack) \624 do \625 { \626 YYSIZE_T yynewbytes; \627 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \628 Stack = &yyptr->Stack_alloc; \629 yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \630 yyptr += yynewbytes / sizeof (*yyptr); \631 } \632 while (0)633634#endif635636#if defined YYCOPY_NEEDED && YYCOPY_NEEDED637/* Copy COUNT objects from SRC to DST. The source and destination do638 not overlap. */639# ifndef YYCOPY640# if defined __GNUC__ && 1 < __GNUC__641# define YYCOPY(Dst, Src, Count) \642 __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))643# else644# define YYCOPY(Dst, Src, Count) \645 do \646 { \647 YYSIZE_T yyi; \648 for (yyi = 0; yyi < (Count); yyi++) \649 (Dst)[yyi] = (Src)[yyi]; \650 } \651 while (0)652# endif653# endif654#endif /* !YYCOPY_NEEDED */655656/* YYFINAL -- State number of the termination state. */657#define YYFINAL 27658/* YYLAST -- Last index in YYTABLE. */659#define YYLAST 2110660661/* YYNTOKENS -- Number of terminals. */662#define YYNTOKENS 68663/* YYNNTS -- Number of nonterminals. */664#define YYNNTS 26665/* YYNRULES -- Number of rules. */666#define YYNRULES 156667/* YYNSTATES -- Number of states. */668#define YYNSTATES 310669670/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned671 by yylex, with out-of-bounds checking. */672#define YYUNDEFTOK 2673#define YYMAXUTOK 301674675#define YYTRANSLATE(YYX) \676 ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)677678/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM679 as returned by yylex, without out-of-bounds checking. */680static const yytype_uint8 yytranslate[] =681{682 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,683 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,684 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,685 2, 2, 2, 2, 2, 2, 61, 55, 2, 2,686 59, 60, 53, 51, 47, 52, 63, 54, 2, 2,687 2, 2, 2, 2, 2, 2, 2, 2, 62, 58,688 49, 48, 50, 57, 2, 2, 2, 2, 2, 2,689 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,690 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,691 2, 64, 2, 65, 2, 2, 2, 2, 2, 2,692 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,693 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,694 2, 2, 2, 66, 46, 67, 2, 2, 2, 2,695 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,696 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,697 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,698 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,699 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,700 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,701 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,702 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,703 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,704 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,705 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,706 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,707 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,708 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,709 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,710 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,711 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,712 45, 56713};714715#if YYDEBUG716 /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */717static const yytype_uint16 yyrline[] =718{719 0, 276, 276, 279, 284, 287, 297, 300, 305, 308,720 313, 317, 321, 325, 329, 333, 336, 341, 345, 349,721 354, 361, 365, 369, 373, 377, 381, 385, 389, 393,722 397, 401, 405, 409, 413, 417, 421, 425, 431, 437,723 441, 445, 449, 453, 457, 461, 465, 469, 474, 483,724 490, 496, 508, 519, 533, 538, 544, 547, 552, 557,725 564, 564, 568, 568, 575, 578, 581, 587, 590, 595,726 598, 601, 607, 610, 613, 621, 625, 628, 631, 634,727 637, 640, 643, 646, 649, 653, 659, 662, 665, 668,728 671, 674, 677, 680, 683, 686, 689, 692, 695, 698,729 701, 704, 707, 714, 718, 722, 734, 739, 740, 741,730 742, 745, 748, 753, 758, 762, 765, 770, 773, 778,731 781, 786, 789, 792, 795, 798, 803, 806, 809, 812,732 815, 818, 821, 824, 827, 830, 833, 836, 839, 842,733 845, 848, 851, 854, 857, 862, 865, 866, 867, 870,734 873, 876, 879, 883, 887, 891, 894735};736#endif737738#if YYDEBUG || YYERROR_VERBOSE || 1739/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.740 First, the terminals, then, starting at YYNTOKENS, nonterminals. */741static const char *const yytname[] =742{743 "$end", "error", "$undefined", "INVALID_CHARACTER", "IDENT", "FIELD",744 "LITERAL", "FORMAT", "\"..\"", "\"%=\"", "\"==\"", "\"!=\"", "\"//\"",745 "\"as\"", "\"def\"", "\"module\"", "\"import\"", "\"include\"", "\"if\"",746 "\"then\"", "\"else\"", "\"elif\"", "\"reduce\"", "\"foreach\"",747 "\"end\"", "\"and\"", "\"or\"", "\"try\"", "\"catch\"", "\"label\"",748 "\"break\"", "\"__loc__\"", "\"|=\"", "\"+=\"", "\"-=\"", "\"*=\"",749 "\"/=\"", "\"//=\"", "\"<=\"", "\">=\"", "QQSTRING_START",750 "QQSTRING_TEXT", "QQSTRING_INTERP_START", "QQSTRING_INTERP_END",751 "QQSTRING_END", "FUNCDEF", "'|'", "','", "'='", "'<'", "'>'", "'+'",752 "'-'", "'*'", "'/'", "'%'", "NONOPT", "'?'", "';'", "'('", "')'", "'$'",753 "':'", "'.'", "'['", "']'", "'{'", "'}'", "$accept", "TopLevel",754 "Module", "Imports", "FuncDefs", "Exp", "Import", "FuncDef", "Params",755 "Param", "String", "@1", "@2", "QQString", "ElseBody", "ExpD", "Term",756 "Args", "Arg", "Pattern", "ArrayPats", "ObjPats", "ObjPat", "Keyword",757 "MkDict", "MkDictPair", YY_NULLPTR758};759#endif760761# ifdef YYPRINT762/* YYTOKNUM[NUM] -- (External) token number corresponding to the763 (internal) symbol number NUM (which must be that of a token). */764static const yytype_uint16 yytoknum[] =765{766 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,767 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,768 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,769 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,770 295, 296, 297, 298, 299, 300, 124, 44, 61, 60,771 62, 43, 45, 42, 47, 37, 301, 63, 59, 40,772 41, 36, 58, 46, 91, 93, 123, 125773};774# endif775776#define YYPACT_NINF -152777778#define yypact_value_is_default(Yystate) \779 (!!((Yystate) == (-152)))780781#define YYTABLE_NINF -146782783#define yytable_value_is_error(Yytable_value) \784 (!!((Yytable_value) == (-146)))785786 /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing787 STATE-NUM. */788static const yytype_int16 yypact[] =789{790 22, 828, 42, 46, 9, -2, -152, 27, -152, 55,791 828, 871, 871, 828, 20, 0, -152, 828, 466, 23,792 276, 439, 341, 1374, 828, -152, 1, -152, 3, 3,793 828, 46, 828, -152, -152, -18, 1823, 6, 8, 50,794 107, -152, 109, -152, -8, 57, 1209, -152, -152, -152,795 114, 27, 65, 61, -152, 1010, -19, 68, -152, -152,796 -152, -152, -152, -152, -152, -152, -152, -152, -152, -152,797 -152, -152, -152, -152, -152, -152, -152, 530, 127, 72,798 74, 71, 92, 828, 828, 828, 828, 828, 828, 828,799 828, 828, 828, 828, 828, 828, 828, 828, 828, 828,800 828, 828, 828, 828, 828, 828, 828, -152, -152, 1987,801 83, -26, 3, 190, 131, 648, -152, 1987, 828, -152,802 1987, -7, -152, -152, 18, 828, 557, -26, -26, 621,803 99, -152, 16, -152, -152, -152, -152, -152, -152, 397,804 -152, 865, 88, 1242, -152, 865, 865, -152, 397, 2053,805 336, 336, 2020, 928, 108, 2053, 2053, 2053, 2053, 2053,806 2053, 336, 336, 1987, 2020, 2053, 336, 336, -8, -8,807 93, 93, 93, -152, 145, -26, 929, 105, 96, 89,808 828, 98, 961, 19, -152, 1424, -152, 828, -152, 79,809 -152, 152, 17, -152, 1474, -152, 1774, 110, 111, -152,810 -152, 828, -152, 828, -152, 117, -152, 865, 120, 10,811 106, 112, 120, 120, -152, -152, -152, -13, 113, 828,812 163, 115, -11, -152, 116, 828, -152, -152, 1059, -152,813 711, 119, 738, 168, -152, -152, -152, -152, 18, 121,814 -152, 828, 828, -152, 828, 828, 1987, 1856, -152, 865,815 865, 865, -26, -152, -26, 1275, -152, -26, 929, -152,816 -26, 1987, 124, 125, 1108, -152, -152, 1524, 801, -152,817 828, 1905, 1954, 1574, 1624, -152, 120, 120, 120, -152,818 -152, 122, -152, -152, -152, -152, -152, 128, -152, -152,819 1674, 1724, -152, 828, 828, 828, -26, -152, -152, -152,820 1774, 1308, 1157, -152, -152, -152, 828, -152, 1341, -152821};822823 /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.824 Performed when YYTABLE does not specify something else to do. Zero825 means the default is an error. */826static const yytype_uint8 yydefact[] =827{828 4, 0, 0, 6, 105, 81, 96, 98, 73, 0,829 0, 0, 0, 0, 0, 0, 60, 0, 0, 0,830 0, 0, 0, 0, 0, 97, 47, 1, 0, 0,831 8, 6, 0, 77, 62, 0, 0, 0, 0, 18,832 0, 75, 0, 64, 32, 0, 0, 104, 103, 84,833 0, 0, 83, 0, 101, 0, 0, 154, 126, 127,834 128, 129, 130, 131, 132, 133, 134, 135, 136, 137,835 138, 139, 140, 141, 142, 143, 144, 0, 0, 152,836 0, 0, 146, 0, 0, 0, 0, 0, 0, 0,837 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,838 0, 0, 0, 0, 0, 0, 0, 21, 5, 10,839 80, 0, 0, 0, 0, 0, 3, 2, 8, 7,840 113, 0, 111, 64, 0, 0, 0, 0, 0, 0,841 0, 74, 0, 107, 99, 85, 79, 108, 100, 0,842 110, 0, 0, 0, 153, 0, 0, 102, 0, 40,843 41, 42, 25, 24, 23, 27, 31, 34, 36, 39,844 26, 45, 46, 28, 29, 22, 43, 44, 30, 33,845 35, 37, 38, 76, 0, 0, 0, 0, 82, 0,846 0, 89, 0, 0, 50, 0, 9, 0, 106, 0,847 59, 0, 0, 56, 0, 16, 0, 0, 0, 19,848 17, 0, 65, 0, 61, 0, 148, 0, 149, 71,849 0, 0, 151, 150, 147, 114, 117, 0, 0, 0,850 0, 0, 0, 119, 0, 0, 78, 109, 0, 88,851 0, 87, 0, 0, 52, 112, 63, 58, 0, 0,852 54, 0, 0, 15, 0, 0, 20, 0, 70, 0,853 0, 0, 0, 115, 0, 0, 121, 0, 0, 116,854 0, 11, 95, 94, 0, 86, 49, 0, 0, 57,855 0, 0, 0, 0, 0, 66, 69, 156, 155, 118,856 122, 0, 124, 120, 123, 92, 91, 93, 51, 48,857 0, 0, 68, 0, 0, 0, 0, 90, 53, 55,858 0, 0, 0, 125, 67, 12, 0, 14, 0, 13859};860861 /* YYPGOTO[NTERM-NUM]. */862static const yytype_int16 yypgoto[] =863{864 -152, -152, -152, 142, 69, -1, -152, -12, -152, -50,865 4, -152, -152, 66, -110, -141, -4, -152, 5, -125,866 -152, -152, -65, -151, -109, -152867};868869 /* YYDEFGOTO[NTERM-NUM]. */870static const yytype_int16 yydefgoto[] =871{872 -1, 2, 3, 30, 116, 109, 31, 24, 192, 193,873 25, 43, 123, 132, 243, 208, 26, 121, 122, 177,874 217, 222, 223, 80, 81, 82875};876877 /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If878 positive, shift that token. If negative, reduce the rule whose879 number is the opposite. If YYTABLE_NINF, syntax error. */880static const yytype_int16 yytable[] =881{882 23, 41, 197, 198, 212, 213, 110, 37, 38, 36,883 51, 110, 39, 110, 111, 110, 44, 46, 118, 127,884 55, 128, 190, 232, 52, 224, 79, 47, 139, 117,885 206, 120, 114, 115, 252, 174, 258, 1, 175, 214,886 176, 124, 27, 16, 125, 104, 105, 106, 140, 107,887 216, 187, 253, 188, 48, 33, 259, 202, 203, 35,888 204, 42, 28, 29, 112, 113, 248, 34, 32, 112,889 113, 112, 113, 112, 113, 238, 143, 239, 129, 191,890 233, 40, 149, 150, 151, 152, 153, 154, 155, 156,891 157, 158, 159, 160, 161, 162, 163, 164, 165, 166,892 167, 168, 169, 170, 171, 172, 118, 224, 276, 277,893 278, 130, 182, 131, 185, 135, 178, 133, 84, 85,894 202, 203, 136, 236, 194, 196, 137, 279, 200, 280,895 141, 144, 282, 87, 145, 284, 146, 209, 147, 148,896 173, 209, 209, 79, 183, 201, 95, 96, 210, 215,897 107, 225, 79, 226, 227, 229, 237, 100, 101, 102,898 103, 104, 105, 106, 139, 107, 249, 256, 250, 244,899 245, 303, 268, 119, 251, 254, 265, 257, 260, 228,900 221, 285, 286, 270, 296, 297, 120, 186, 269, 189,901 304, 179, 235, 283, 4, 5, 6, 7, 8, 0,902 246, 0, 247, 209, 9, 0, 0, 0, 10, 0,903 0, 0, 11, 12, 0, 0, 0, 13, 255, 14,904 15, 0, 0, 0, 261, 0, 0, 0, 0, 264,905 16, 267, 0, 0, 0, 0, 0, 0, 0, 0,906 271, 272, 17, 273, 274, 209, 209, 209, 0, 18,907 0, 19, 180, 20, 21, 181, 22, 0, 0, 0,908 0, 0, 221, 0, 0, 0, 0, 290, 0, 291,909 0, 0, 0, 0, 0, 0, -72, 49, 0, 0,910 50, -72, 0, 51, 0, -72, -72, -72, -72, -72,911 0, 0, 300, 301, 302, -72, -72, -72, 0, 0,912 -72, -72, -72, 0, -72, 308, 0, 0, -72, -72,913 -72, -72, -72, -72, -72, -72, 16, 0, 0, -72,914 0, 0, -72, -72, -72, -72, -72, -72, -72, -72,915 -72, -72, 0, -72, -72, 0, -72, 0, -72, -72,916 -72, -72, 56, -72, 0, 57, -146, -146, 51, 0,917 0, 0, 0, 0, 58, 59, 60, 61, 62, 63,918 64, 65, 66, 67, 68, 69, 70, 71, 72, 73,919 74, 75, 76, 0, -146, -146, 0, 0, 0, 0,920 0, 16, 0, 0, 0, -146, -146, 102, 103, 104,921 105, 106, 0, 107, 0, 0, 0, 0, 205, 0,922 77, 57, 78, 0, 51, 0, 0, 0, -145, 0,923 58, 59, 60, 61, 62, 63, 64, 65, 66, 67,924 68, 69, 70, 71, 72, 73, 74, 75, 76, 0,925 0, 0, 0, 0, 0, 0, 0, 16, 0, 0,926 53, 0, 0, 4, 5, 6, 7, 8, 0, 0,927 0, 0, 0, 9, 0, 0, 77, 10, 78, 0,928 0, 11, 12, 0, -145, 0, 13, 45, 14, 15,929 4, 5, 6, 7, 8, 0, 0, 0, 0, 16,930 9, 0, 0, 0, 10, 0, 0, 0, 11, 12,931 0, 17, 0, 13, 0, 14, 15, 0, 18, 0,932 19, 0, 20, 21, 54, 22, 16, 0, 0, 0,933 0, 0, 0, 0, 0, 0, 0, 0, 17, 0,934 0, 0, 0, 0, 0, 18, 0, 19, 0, 20,935 21, 142, 22, 0, 4, 5, 6, 7, 8, 0,936 0, 0, 0, 0, 9, 0, 0, 0, 10, 0,937 0, 0, 11, 12, 0, 0, 0, 13, 195, 14,938 15, 4, 5, 6, 7, 8, 0, 0, 0, 0,939 16, 9, 0, 0, 0, 10, 0, 0, 0, 11,940 12, 0, 17, 0, 13, 0, 14, 15, 0, 18,941 0, 19, 0, 20, 21, 0, 22, 16, 0, 0,942 0, 0, 0, 0, 0, 0, 0, 0, 0, 17,943 0, 0, 0, 0, 0, 0, 18, 0, 19, 0,944 20, 21, 199, 22, 0, 4, 5, 6, 7, 8,945 0, 0, 0, 0, 0, 9, 0, 0, 0, 10,946 0, 0, 0, 11, 12, 0, 0, 0, 13, 0,947 14, 15, 4, 5, 6, 7, 8, 0, 0, 0,948 0, 16, 9, 0, 0, 0, 10, 0, 0, 0,949 11, 12, 0, 17, 0, 13, 0, 14, 15, 0,950 18, 0, 19, 0, 20, 21, 0, 22, 16, 0,951 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,952 17, 0, 0, 0, 0, 0, 184, 18, 0, 19,953 0, 20, 21, 0, 22, 4, 5, 6, 7, 8,954 0, 0, 0, 0, 0, 9, 0, 0, 0, 10,955 0, 0, 0, 11, 12, 0, 0, 0, 13, 0,956 14, 15, 4, 5, 6, 7, 8, 0, 0, 0,957 0, 16, 9, 0, 0, 0, 10, 0, 0, 0,958 11, 12, 0, 17, 0, 13, 0, 14, 15, 0,959 18, 0, 19, 0, 20, 21, 263, 22, 16, 0,960 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,961 17, 0, 0, 0, 0, 0, 266, 18, 0, 19,962 0, 20, 21, 0, 22, 4, 5, 6, 7, 8,963 0, 0, 0, 0, 0, 9, 0, 0, 0, 10,964 0, 0, 0, 11, 12, 0, 0, 0, 13, 0,965 14, 15, 4, 5, 6, 7, 8, 0, 0, 0,966 0, 16, 9, 0, 0, 0, 10, 0, 0, 0,967 11, 12, 0, 17, 0, 13, 0, 14, 15, 289,968 18, 0, 19, 0, 20, 21, 0, 22, 16, 4,969 5, 6, 7, 8, 0, 4, 5, 6, 7, 8,970 17, 0, 0, 0, 0, 0, 0, 18, 0, 19,971 0, 20, 21, 0, 22, 15, 0, 0, 0, 0,972 0, 15, 0, 0, 0, 16, 0, 0, 0, 0,973 0, 16, 0, 0, 0, 0, 0, 207, 0, 0,974 0, 0, 0, 0, 18, 0, 19, 0, 20, 21,975 18, 22, 19, 218, 20, 21, 51, 22, 84, 85,976 0, 0, 58, 59, 60, 61, 62, 63, 64, 65,977 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,978 76, 0, 0, 0, 0, 0, 95, 96, 0, 16,979 83, 84, 85, 86, 0, 0, 0, 100, 101, 102,980 103, 104, 105, 106, 0, 107, 87, 88, 219, 0,981 220, 0, 0, 89, 90, 91, 92, 93, 94, 95,982 96, 0, 0, 0, 0, 0, 0, 97, 98, 99,983 100, 101, 102, 103, 104, 105, 106, 0, 107, 83,984 84, 85, 86, 230, 0, 0, 231, 0, 0, 0,985 0, 0, 0, 0, 0, 87, 88, 0, 0, 0,986 0, 0, 89, 90, 91, 92, 93, 94, 95, 96,987 0, 0, 0, 0, 0, 0, 97, 98, 99, 100,988 101, 102, 103, 104, 105, 106, 0, 107, 83, 84,989 85, 86, 0, 0, 0, 138, 0, 0, 0, 0,990 0, 0, 0, 0, 87, 88, 0, 0, 0, 0,991 0, 89, 90, 91, 92, 93, 94, 95, 96, 0,992 0, 0, 0, 0, 0, 97, 98, 99, 100, 101,993 102, 103, 104, 105, 106, 0, 107, 83, 84, 85,994 86, 0, 0, 0, 262, 0, 0, 0, 0, 0,995 0, 0, 0, 87, 88, 0, 0, 0, 0, 0,996 89, 90, 91, 92, 93, 94, 95, 96, 0, 0,997 0, 0, 0, 0, 97, 98, 99, 100, 101, 102,998 103, 104, 105, 106, 0, 107, 83, 84, 85, 86,999 0, 0, 0, 287, 0, 0, 0, 0, 0, 0,1000 0, 0, 87, 88, 0, 0, 0, 0, 0, 89,1001 90, 91, 92, 93, 94, 95, 96, 0, 0, 0,1002 0, 0, 0, 97, 98, 99, 100, 101, 102, 103,1003 104, 105, 106, 0, 107, 306, 0, 307, 83, 84,1004 85, 86, 0, 0, 0, 0, 0, 0, 0, 0,1005 0, 0, 0, 0, 87, 88, 0, 0, 0, 0,1006 0, 89, 90, 91, 92, 93, 94, 95, 96, 0,1007 0, 83, 84, 85, 86, 97, 98, 99, 100, 101,1008 102, 103, 104, 105, 106, 0, 107, 87, 88, 134,1009 0, 0, 0, 0, 89, 90, 91, 92, 93, 94,1010 95, 96, 0, 0, 83, 84, 85, 86, 97, 98,1011 99, 100, 101, 102, 103, 104, 105, 106, 0, 107,1012 87, 88, 211, 0, 0, 0, 0, 89, 90, 91,1013 92, 93, 94, 95, 96, 0, 0, 83, 84, 85,1014 86, 97, 98, 99, 100, 101, 102, 103, 104, 105,1015 106, 0, 107, 87, 88, 281, 0, 0, 0, 0,1016 89, 90, 91, 92, 93, 94, 95, 96, 0, 0,1017 83, 84, 85, 86, 97, 98, 99, 100, 101, 102,1018 103, 104, 105, 106, 0, 107, 87, 88, 305, 0,1019 0, 0, 0, 89, 90, 91, 92, 93, 94, 95,1020 96, 0, 0, 83, 84, 85, 86, 97, 98, 99,1021 100, 101, 102, 103, 104, 105, 106, 0, 107, 87,1022 88, 309, 0, 0, 0, 0, 89, 90, 91, 92,1023 93, 94, 95, 96, 0, 0, 0, 0, 0, 0,1024 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,1025 0, 107, 108, 83, 84, 85, 86, 0, 0, 0,1026 0, 0, 0, 0, 0, 0, 0, 0, 0, 87,1027 88, 0, 0, 0, 0, 0, 89, 90, 91, 92,1028 93, 94, 95, 96, 0, 0, 0, 0, 0, 0,1029 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,1030 0, 107, 234, 83, 84, 85, 86, 0, 0, 0,1031 0, 0, 0, 0, 0, 0, 0, 0, 0, 87,1032 88, 0, 0, 0, 0, 0, 89, 90, 91, 92,1033 93, 94, 95, 96, 0, 0, 0, 0, 0, 0,1034 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,1035 0, 107, 240, 83, 84, 85, 86, 0, 0, 0,1036 0, 0, 0, 0, 0, 0, 0, 0, 0, 87,1037 88, 0, 0, 0, 0, 0, 89, 90, 91, 92,1038 93, 94, 95, 96, 0, 0, 0, 0, 0, 0,1039 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,1040 0, 107, 288, 83, 84, 85, 86, 0, 0, 0,1041 0, 0, 0, 0, 0, 0, 0, 0, 0, 87,1042 88, 0, 0, 0, 0, 0, 89, 90, 91, 92,1043 93, 94, 95, 96, 0, 0, 0, 0, 0, 0,1044 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,1045 0, 107, 294, 83, 84, 85, 86, 0, 0, 0,1046 0, 0, 0, 0, 0, 0, 0, 0, 0, 87,1047 88, 0, 0, 0, 0, 0, 89, 90, 91, 92,1048 93, 94, 95, 96, 0, 0, 0, 0, 0, 0,1049 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,1050 0, 107, 295, 83, 84, 85, 86, 0, 0, 0,1051 0, 0, 0, 0, 0, 0, 0, 0, 0, 87,1052 88, 0, 0, 0, 0, 0, 89, 90, 91, 92,1053 93, 94, 95, 96, 0, 0, 0, 0, 0, 0,1054 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,1055 0, 107, 298, 83, 84, 85, 86, 0, 0, 0,1056 0, 0, 0, 0, 0, 0, 0, 0, 0, 87,1057 88, 0, 0, 0, 0, 0, 89, 90, 91, 92,1058 93, 94, 95, 96, 0, 0, 0, 0, 0, 0,1059 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,1060 0, 107, 299, 83, 84, 85, 86, 0, 0, 0,1061 0, 0, 0, 0, 241, 242, 0, 0, 0, 87,1062 88, 0, 0, 0, 0, 0, 89, 90, 91, 92,1063 93, 94, 95, 96, 0, 0, 0, 0, 0, 0,1064 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,1065 0, 107, 83, 84, 85, 86, 0, 0, 0, 0,1066 0, 0, 126, 0, 0, 0, 0, 0, 87, 88,1067 0, 0, 0, 0, 0, 89, 90, 91, 92, 93,1068 94, 95, 96, 0, 0, 83, 84, 85, 86, 97,1069 98, 99, 100, 101, 102, 103, 104, 105, 106, 0,1070 107, 87, 88, 0, 0, 0, 0, 0, 89, 90,1071 91, 92, 93, 94, 95, 96, 0, 0, 0, 275,1072 0, 0, 97, 98, 99, 100, 101, 102, 103, 104,1073 105, 106, 0, 107, 83, 84, 85, 86, 0, 0,1074 0, 0, 0, 0, 0, 0, 0, 0, 0, 292,1075 87, 88, 0, 0, 0, 0, 0, 89, 90, 91,1076 92, 93, 94, 95, 96, 0, 0, 0, 0, 0,1077 0, 97, 98, 99, 100, 101, 102, 103, 104, 105,1078 106, 0, 107, 83, 84, 85, 86, 0, 0, 0,1079 0, 0, 0, 293, 0, 0, 0, 0, 0, 87,1080 88, 0, 0, 0, 0, 0, 89, 90, 91, 92,1081 93, 94, 95, 96, 0, 0, 83, 84, 85, 86,1082 97, 98, 99, 100, 101, 102, 103, 104, 105, 106,1083 0, 107, 87, 88, 0, 0, 0, 0, 0, 89,1084 90, 91, 92, 93, 94, 95, 96, 0, 0, 83,1085 84, 85, 86, 97, 98, 99, 100, 101, 102, 103,1086 104, 105, 106, 0, 107, 87, 88, 0, 0, 0,1087 0, 0, 89, 90, 91, 92, 93, 94, 95, 96,1088 0, 0, -146, 84, 85, 0, 0, 0, 99, 100,1089 101, 102, 103, 104, 105, 106, 0, 107, 87, 88,1090 0, 0, 0, 0, 0, -146, -146, -146, -146, -146,1091 -146, 95, 96, 0, 0, 0, 0, 0, 0, 0,1092 0, -146, 100, 101, 102, 103, 104, 105, 106, 0,1093 1071094};10951096static const yytype_int16 yycheck[] =1097{1098 1, 1, 127, 128, 145, 146, 5, 11, 12, 10,1099 7, 5, 13, 5, 13, 5, 17, 18, 30, 13,1100 21, 13, 4, 4, 20, 176, 22, 4, 47, 30,1101 139, 32, 28, 29, 47, 61, 47, 15, 64, 148,1102 66, 59, 0, 40, 62, 53, 54, 55, 67, 57,1103 175, 58, 65, 60, 31, 57, 67, 41, 42, 4,1104 44, 61, 16, 17, 63, 64, 207, 40, 59, 63,1105 64, 63, 64, 63, 64, 58, 77, 60, 28, 61,1106 61, 61, 83, 84, 85, 86, 87, 88, 89, 90,1107 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,1108 101, 102, 103, 104, 105, 106, 118, 258, 249, 250,1109 251, 4, 113, 4, 115, 1, 112, 60, 10, 11,1110 41, 42, 57, 44, 125, 126, 65, 252, 129, 254,1111 62, 4, 257, 25, 62, 260, 62, 141, 67, 47,1112 57, 145, 146, 139, 13, 46, 38, 39, 60, 4,1113 57, 46, 148, 57, 65, 57, 4, 49, 50, 51,1114 52, 53, 54, 55, 47, 57, 46, 4, 62, 59,1115 59, 296, 4, 31, 62, 62, 57, 62, 62, 180,1116 176, 57, 57, 62, 62, 57, 187, 118, 238, 123,1117 300, 1, 187, 258, 4, 5, 6, 7, 8, -1,1118 201, -1, 203, 207, 14, -1, -1, -1, 18, -1,1119 -1, -1, 22, 23, -1, -1, -1, 27, 219, 29,1120 30, -1, -1, -1, 225, -1, -1, -1, -1, 230,1121 40, 232, -1, -1, -1, -1, -1, -1, -1, -1,1122 241, 242, 52, 244, 245, 249, 250, 251, -1, 59,1123 -1, 61, 62, 63, 64, 65, 66, -1, -1, -1,1124 -1, -1, 258, -1, -1, -1, -1, 268, -1, 270,1125 -1, -1, -1, -1, -1, -1, 0, 1, -1, -1,1126 4, 5, -1, 7, -1, 9, 10, 11, 12, 13,1127 -1, -1, 293, 294, 295, 19, 20, 21, -1, -1,1128 24, 25, 26, -1, 28, 306, -1, -1, 32, 33,1129 34, 35, 36, 37, 38, 39, 40, -1, -1, 43,1130 -1, -1, 46, 47, 48, 49, 50, 51, 52, 53,1131 54, 55, -1, 57, 58, -1, 60, -1, 62, 63,1132 64, 65, 1, 67, -1, 4, 10, 11, 7, -1,1133 -1, -1, -1, -1, 13, 14, 15, 16, 17, 18,1134 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,1135 29, 30, 31, -1, 38, 39, -1, -1, -1, -1,1136 -1, 40, -1, -1, -1, 49, 50, 51, 52, 53,1137 54, 55, -1, 57, -1, -1, -1, -1, 1, -1,1138 59, 4, 61, -1, 7, -1, -1, -1, 67, -1,1139 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,1140 23, 24, 25, 26, 27, 28, 29, 30, 31, -1,1141 -1, -1, -1, -1, -1, -1, -1, 40, -1, -1,1142 1, -1, -1, 4, 5, 6, 7, 8, -1, -1,1143 -1, -1, -1, 14, -1, -1, 59, 18, 61, -1,1144 -1, 22, 23, -1, 67, -1, 27, 1, 29, 30,1145 4, 5, 6, 7, 8, -1, -1, -1, -1, 40,1146 14, -1, -1, -1, 18, -1, -1, -1, 22, 23,1147 -1, 52, -1, 27, -1, 29, 30, -1, 59, -1,1148 61, -1, 63, 64, 65, 66, 40, -1, -1, -1,1149 -1, -1, -1, -1, -1, -1, -1, -1, 52, -1,1150 -1, -1, -1, -1, -1, 59, -1, 61, -1, 63,1151 64, 1, 66, -1, 4, 5, 6, 7, 8, -1,1152 -1, -1, -1, -1, 14, -1, -1, -1, 18, -1,1153 -1, -1, 22, 23, -1, -1, -1, 27, 1, 29,1154 30, 4, 5, 6, 7, 8, -1, -1, -1, -1,1155 40, 14, -1, -1, -1, 18, -1, -1, -1, 22,1156 23, -1, 52, -1, 27, -1, 29, 30, -1, 59,1157 -1, 61, -1, 63, 64, -1, 66, 40, -1, -1,1158 -1, -1, -1, -1, -1, -1, -1, -1, -1, 52,1159 -1, -1, -1, -1, -1, -1, 59, -1, 61, -1,1160 63, 64, 1, 66, -1, 4, 5, 6, 7, 8,1161 -1, -1, -1, -1, -1, 14, -1, -1, -1, 18,1162 -1, -1, -1, 22, 23, -1, -1, -1, 27, -1,1163 29, 30, 4, 5, 6, 7, 8, -1, -1, -1,1164 -1, 40, 14, -1, -1, -1, 18, -1, -1, -1,1165 22, 23, -1, 52, -1, 27, -1, 29, 30, -1,1166 59, -1, 61, -1, 63, 64, -1, 66, 40, -1,1167 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,1168 52, -1, -1, -1, -1, -1, 58, 59, -1, 61,1169 -1, 63, 64, -1, 66, 4, 5, 6, 7, 8,1170 -1, -1, -1, -1, -1, 14, -1, -1, -1, 18,1171 -1, -1, -1, 22, 23, -1, -1, -1, 27, -1,1172 29, 30, 4, 5, 6, 7, 8, -1, -1, -1,1173 -1, 40, 14, -1, -1, -1, 18, -1, -1, -1,1174 22, 23, -1, 52, -1, 27, -1, 29, 30, -1,1175 59, -1, 61, -1, 63, 64, 65, 66, 40, -1,1176 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,1177 52, -1, -1, -1, -1, -1, 58, 59, -1, 61,1178 -1, 63, 64, -1, 66, 4, 5, 6, 7, 8,1179 -1, -1, -1, -1, -1, 14, -1, -1, -1, 18,1180 -1, -1, -1, 22, 23, -1, -1, -1, 27, -1,1181 29, 30, 4, 5, 6, 7, 8, -1, -1, -1,1182 -1, 40, 14, -1, -1, -1, 18, -1, -1, -1,1183 22, 23, -1, 52, -1, 27, -1, 29, 30, 58,1184 59, -1, 61, -1, 63, 64, -1, 66, 40, 4,1185 5, 6, 7, 8, -1, 4, 5, 6, 7, 8,1186 52, -1, -1, -1, -1, -1, -1, 59, -1, 61,1187 -1, 63, 64, -1, 66, 30, -1, -1, -1, -1,1188 -1, 30, -1, -1, -1, 40, -1, -1, -1, -1,1189 -1, 40, -1, -1, -1, -1, -1, 52, -1, -1,1190 -1, -1, -1, -1, 59, -1, 61, -1, 63, 64,1191 59, 66, 61, 4, 63, 64, 7, 66, 10, 11,1192 -1, -1, 13, 14, 15, 16, 17, 18, 19, 20,1193 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,1194 31, -1, -1, -1, -1, -1, 38, 39, -1, 40,1195 9, 10, 11, 12, -1, -1, -1, 49, 50, 51,1196 52, 53, 54, 55, -1, 57, 25, 26, 59, -1,1197 61, -1, -1, 32, 33, 34, 35, 36, 37, 38,1198 39, -1, -1, -1, -1, -1, -1, 46, 47, 48,1199 49, 50, 51, 52, 53, 54, 55, -1, 57, 9,1200 10, 11, 12, 62, -1, -1, 65, -1, -1, -1,1201 -1, -1, -1, -1, -1, 25, 26, -1, -1, -1,1202 -1, -1, 32, 33, 34, 35, 36, 37, 38, 39,1203 -1, -1, -1, -1, -1, -1, 46, 47, 48, 49,1204 50, 51, 52, 53, 54, 55, -1, 57, 9, 10,1205 11, 12, -1, -1, -1, 65, -1, -1, -1, -1,1206 -1, -1, -1, -1, 25, 26, -1, -1, -1, -1,1207 -1, 32, 33, 34, 35, 36, 37, 38, 39, -1,1208 -1, -1, -1, -1, -1, 46, 47, 48, 49, 50,1209 51, 52, 53, 54, 55, -1, 57, 9, 10, 11,1210 12, -1, -1, -1, 65, -1, -1, -1, -1, -1,1211 -1, -1, -1, 25, 26, -1, -1, -1, -1, -1,1212 32, 33, 34, 35, 36, 37, 38, 39, -1, -1,1213 -1, -1, -1, -1, 46, 47, 48, 49, 50, 51,1214 52, 53, 54, 55, -1, 57, 9, 10, 11, 12,1215 -1, -1, -1, 65, -1, -1, -1, -1, -1, -1,1216 -1, -1, 25, 26, -1, -1, -1, -1, -1, 32,1217 33, 34, 35, 36, 37, 38, 39, -1, -1, -1,1218 -1, -1, -1, 46, 47, 48, 49, 50, 51, 52,1219 53, 54, 55, -1, 57, 58, -1, 60, 9, 10,1220 11, 12, -1, -1, -1, -1, -1, -1, -1, -1,1221 -1, -1, -1, -1, 25, 26, -1, -1, -1, -1,1222 -1, 32, 33, 34, 35, 36, 37, 38, 39, -1,1223 -1, 9, 10, 11, 12, 46, 47, 48, 49, 50,1224 51, 52, 53, 54, 55, -1, 57, 25, 26, 60,1225 -1, -1, -1, -1, 32, 33, 34, 35, 36, 37,1226 38, 39, -1, -1, 9, 10, 11, 12, 46, 47,1227 48, 49, 50, 51, 52, 53, 54, 55, -1, 57,1228 25, 26, 60, -1, -1, -1, -1, 32, 33, 34,1229 35, 36, 37, 38, 39, -1, -1, 9, 10, 11,1230 12, 46, 47, 48, 49, 50, 51, 52, 53, 54,1231 55, -1, 57, 25, 26, 60, -1, -1, -1, -1,1232 32, 33, 34, 35, 36, 37, 38, 39, -1, -1,1233 9, 10, 11, 12, 46, 47, 48, 49, 50, 51,1234 52, 53, 54, 55, -1, 57, 25, 26, 60, -1,1235 -1, -1, -1, 32, 33, 34, 35, 36, 37, 38,1236 39, -1, -1, 9, 10, 11, 12, 46, 47, 48,1237 49, 50, 51, 52, 53, 54, 55, -1, 57, 25,1238 26, 60, -1, -1, -1, -1, 32, 33, 34, 35,1239 36, 37, 38, 39, -1, -1, -1, -1, -1, -1,1240 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,1241 -1, 57, 58, 9, 10, 11, 12, -1, -1, -1,1242 -1, -1, -1, -1, -1, -1, -1, -1, -1, 25,1243 26, -1, -1, -1, -1, -1, 32, 33, 34, 35,1244 36, 37, 38, 39, -1, -1, -1, -1, -1, -1,1245 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,1246 -1, 57, 58, 9, 10, 11, 12, -1, -1, -1,1247 -1, -1, -1, -1, -1, -1, -1, -1, -1, 25,1248 26, -1, -1, -1, -1, -1, 32, 33, 34, 35,1249 36, 37, 38, 39, -1, -1, -1, -1, -1, -1,1250 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,1251 -1, 57, 58, 9, 10, 11, 12, -1, -1, -1,1252 -1, -1, -1, -1, -1, -1, -1, -1, -1, 25,1253 26, -1, -1, -1, -1, -1, 32, 33, 34, 35,1254 36, 37, 38, 39, -1, -1, -1, -1, -1, -1,1255 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,1256 -1, 57, 58, 9, 10, 11, 12, -1, -1, -1,1257 -1, -1, -1, -1, -1, -1, -1, -1, -1, 25,1258 26, -1, -1, -1, -1, -1, 32, 33, 34, 35,1259 36, 37, 38, 39, -1, -1, -1, -1, -1, -1,1260 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,1261 -1, 57, 58, 9, 10, 11, 12, -1, -1, -1,1262 -1, -1, -1, -1, -1, -1, -1, -1, -1, 25,1263 26, -1, -1, -1, -1, -1, 32, 33, 34, 35,1264 36, 37, 38, 39, -1, -1, -1, -1, -1, -1,1265 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,1266 -1, 57, 58, 9, 10, 11, 12, -1, -1, -1,1267 -1, -1, -1, -1, -1, -1, -1, -1, -1, 25,1268 26, -1, -1, -1, -1, -1, 32, 33, 34, 35,1269 36, 37, 38, 39, -1, -1, -1, -1, -1, -1,1270 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,1271 -1, 57, 58, 9, 10, 11, 12, -1, -1, -1,1272 -1, -1, -1, -1, -1, -1, -1, -1, -1, 25,1273 26, -1, -1, -1, -1, -1, 32, 33, 34, 35,1274 36, 37, 38, 39, -1, -1, -1, -1, -1, -1,1275 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,1276 -1, 57, 58, 9, 10, 11, 12, -1, -1, -1,1277 -1, -1, -1, -1, 20, 21, -1, -1, -1, 25,1278 26, -1, -1, -1, -1, -1, 32, 33, 34, 35,1279 36, 37, 38, 39, -1, -1, -1, -1, -1, -1,1280 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,1281 -1, 57, 9, 10, 11, 12, -1, -1, -1, -1,1282 -1, -1, 19, -1, -1, -1, -1, -1, 25, 26,1283 -1, -1, -1, -1, -1, 32, 33, 34, 35, 36,1284 37, 38, 39, -1, -1, 9, 10, 11, 12, 46,1285 47, 48, 49, 50, 51, 52, 53, 54, 55, -1,1286 57, 25, 26, -1, -1, -1, -1, -1, 32, 33,1287 34, 35, 36, 37, 38, 39, -1, -1, -1, 43,1288 -1, -1, 46, 47, 48, 49, 50, 51, 52, 53,1289 54, 55, -1, 57, 9, 10, 11, 12, -1, -1,1290 -1, -1, -1, -1, -1, -1, -1, -1, -1, 24,1291 25, 26, -1, -1, -1, -1, -1, 32, 33, 34,1292 35, 36, 37, 38, 39, -1, -1, -1, -1, -1,1293 -1, 46, 47, 48, 49, 50, 51, 52, 53, 54,1294 55, -1, 57, 9, 10, 11, 12, -1, -1, -1,1295 -1, -1, -1, 19, -1, -1, -1, -1, -1, 25,1296 26, -1, -1, -1, -1, -1, 32, 33, 34, 35,1297 36, 37, 38, 39, -1, -1, 9, 10, 11, 12,1298 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,1299 -1, 57, 25, 26, -1, -1, -1, -1, -1, 32,1300 33, 34, 35, 36, 37, 38, 39, -1, -1, 9,1301 10, 11, 12, 46, 47, 48, 49, 50, 51, 52,1302 53, 54, 55, -1, 57, 25, 26, -1, -1, -1,1303 -1, -1, 32, 33, 34, 35, 36, 37, 38, 39,1304 -1, -1, 9, 10, 11, -1, -1, -1, 48, 49,1305 50, 51, 52, 53, 54, 55, -1, 57, 25, 26,1306 -1, -1, -1, -1, -1, 32, 33, 34, 35, 36,1307 37, 38, 39, -1, -1, -1, -1, -1, -1, -1,1308 -1, 48, 49, 50, 51, 52, 53, 54, 55, -1,1309 571310};13111312 /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing1313 symbol of state STATE-NUM. */1314static const yytype_uint8 yystos[] =1315{1316 0, 15, 69, 70, 4, 5, 6, 7, 8, 14,1317 18, 22, 23, 27, 29, 30, 40, 52, 59, 61,1318 63, 64, 66, 73, 75, 78, 84, 0, 16, 17,1319 71, 74, 59, 57, 40, 4, 73, 84, 84, 73,1320 61, 1, 61, 79, 73, 1, 73, 4, 31, 1,1321 4, 7, 78, 1, 65, 73, 1, 4, 13, 14,1322 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,1323 25, 26, 27, 28, 29, 30, 31, 59, 61, 78,1324 91, 92, 93, 9, 10, 11, 12, 25, 26, 32,1325 33, 34, 35, 36, 37, 38, 39, 46, 47, 48,1326 49, 50, 51, 52, 53, 54, 55, 57, 58, 73,1327 5, 13, 63, 64, 78, 78, 72, 73, 75, 71,1328 73, 85, 86, 80, 59, 62, 19, 13, 13, 28,1329 4, 4, 81, 60, 60, 1, 57, 65, 65, 47,1330 67, 62, 1, 73, 4, 62, 62, 67, 47, 73,1331 73, 73, 73, 73, 73, 73, 73, 73, 73, 73,1332 73, 73, 73, 73, 73, 73, 73, 73, 73, 73,1333 73, 73, 73, 57, 61, 64, 66, 87, 78, 1,1334 62, 65, 73, 13, 58, 73, 72, 58, 60, 81,1335 4, 61, 76, 77, 73, 1, 73, 87, 87, 1,1336 73, 46, 41, 42, 44, 1, 92, 52, 83, 84,1337 60, 60, 83, 83, 92, 4, 87, 88, 4, 59,1338 61, 78, 89, 90, 91, 46, 57, 65, 73, 57,1339 62, 65, 4, 61, 58, 86, 44, 4, 58, 60,1340 58, 20, 21, 82, 59, 59, 73, 73, 83, 46,1341 62, 62, 47, 65, 62, 73, 4, 62, 47, 67,1342 62, 73, 65, 65, 73, 57, 58, 73, 4, 77,1343 62, 73, 73, 73, 73, 43, 83, 83, 83, 87,1344 87, 60, 87, 90, 87, 57, 57, 65, 58, 58,1345 73, 73, 24, 19, 58, 58, 62, 57, 58, 58,1346 73, 73, 73, 87, 82, 60, 58, 60, 73, 601347};13481349 /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */1350static const yytype_uint8 yyr1[] =1351{1352 0, 68, 69, 69, 70, 70, 71, 71, 72, 72,1353 73, 73, 73, 73, 73, 73, 73, 73, 73, 73,1354 73, 73, 73, 73, 73, 73, 73, 73, 73, 73,1355 73, 73, 73, 73, 73, 73, 73, 73, 73, 73,1356 73, 73, 73, 73, 73, 73, 73, 73, 74, 74,1357 74, 74, 74, 74, 75, 75, 76, 76, 77, 77,1358 79, 78, 80, 78, 81, 81, 81, 82, 82, 83,1359 83, 83, 84, 84, 84, 84, 84, 84, 84, 84,1360 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,1361 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,1362 84, 84, 84, 84, 84, 84, 84, 84, 84, 84,1363 84, 85, 85, 86, 87, 87, 87, 88, 88, 89,1364 89, 90, 90, 90, 90, 90, 91, 91, 91, 91,1365 91, 91, 91, 91, 91, 91, 91, 91, 91, 91,1366 91, 91, 91, 91, 91, 92, 92, 92, 92, 93,1367 93, 93, 93, 93, 93, 93, 931368};13691370 /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */1371static const yytype_uint8 yyr2[] =1372{1373 0, 2, 3, 3, 0, 3, 0, 2, 0, 2,1374 2, 5, 9, 11, 9, 5, 4, 4, 2, 4,1375 5, 2, 3, 3, 3, 3, 3, 3, 3, 3,1376 3, 3, 2, 3, 3, 3, 3, 3, 3, 3,1377 3, 3, 3, 3, 3, 3, 3, 1, 6, 5,1378 3, 6, 4, 7, 5, 8, 1, 3, 2, 1,1379 0, 4, 0, 5, 0, 2, 4, 5, 3, 3,1380 2, 1, 1, 1, 3, 2, 3, 2, 4, 3,1381 2, 1, 3, 2, 2, 3, 5, 4, 4, 3,1382 7, 6, 6, 6, 5, 5, 1, 1, 1, 3,1383 3, 2, 3, 2, 2, 1, 4, 3, 3, 4,1384 3, 1, 3, 1, 2, 3, 3, 1, 3, 1,1385 3, 2, 3, 3, 3, 5, 1, 1, 1, 1,1386 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1387 1, 1, 1, 1, 1, 0, 1, 3, 3, 3,1388 3, 3, 1, 2, 1, 5, 51389};139013911392#define yyerrok (yyerrstatus = 0)1393#define yyclearin (yychar = YYEMPTY)1394#define YYEMPTY (-2)1395#define YYEOF 013961397#define YYACCEPT goto yyacceptlab1398#define YYABORT goto yyabortlab1399#define YYERROR goto yyerrorlab140014011402#define YYRECOVERING() (!!yyerrstatus)14031404#define YYBACKUP(Token, Value) \1405do \1406 if (yychar == YYEMPTY) \1407 { \1408 yychar = (Token); \1409 yylval = (Value); \1410 YYPOPSTACK (yylen); \1411 yystate = *yyssp; \1412 goto yybackup; \1413 } \1414 else \1415 { \1416 yyerror (&yylloc, answer, errors, locations, lexer_param_ptr, YY_("syntax error: cannot back up")); \1417 YYERROR; \1418 } \1419while (0)14201421/* Error token number */1422#define YYTERROR 11423#define YYERRCODE 256142414251426/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].1427 If N is 0, then set CURRENT to the empty location which ends1428 the previous symbol: RHS[0] (always defined). */14291430#ifndef YYLLOC_DEFAULT1431# define YYLLOC_DEFAULT(Current, Rhs, N) \1432 do \1433 if (N) \1434 { \1435 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \1436 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \1437 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \1438 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \1439 } \1440 else \1441 { \1442 (Current).first_line = (Current).last_line = \1443 YYRHSLOC (Rhs, 0).last_line; \1444 (Current).first_column = (Current).last_column = \1445 YYRHSLOC (Rhs, 0).last_column; \1446 } \1447 while (0)1448#endif14491450#define YYRHSLOC(Rhs, K) ((Rhs)[K])145114521453/* Enable debugging if requested. */1454#if YYDEBUG14551456# ifndef YYFPRINTF1457# include <stdio.h> /* INFRINGES ON USER NAME SPACE */1458# define YYFPRINTF fprintf1459# endif14601461# define YYDPRINTF(Args) \1462do { \1463 if (yydebug) \1464 YYFPRINTF Args; \1465} while (0)146614671468/* YY_LOCATION_PRINT -- Print the location on the stream.1469 This macro was not mandated originally: define only if we know1470 we won't break user code: when these are the locations we know. */14711472#ifndef YY_LOCATION_PRINT1473# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL14741475/* Print *YYLOCP on YYO. Private, do not rely on its existence. */14761477YY_ATTRIBUTE_UNUSED1478static unsigned1479yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)1480{1481 unsigned res = 0;1482 int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0;1483 if (0 <= yylocp->first_line)1484 {1485 res += YYFPRINTF (yyo, "%d", yylocp->first_line);1486 if (0 <= yylocp->first_column)1487 res += YYFPRINTF (yyo, ".%d", yylocp->first_column);1488 }1489 if (0 <= yylocp->last_line)1490 {1491 if (yylocp->first_line < yylocp->last_line)1492 {1493 res += YYFPRINTF (yyo, "-%d", yylocp->last_line);1494 if (0 <= end_col)1495 res += YYFPRINTF (yyo, ".%d", end_col);1496 }1497 else if (0 <= end_col && yylocp->first_column < end_col)1498 res += YYFPRINTF (yyo, "-%d", end_col);1499 }1500 return res;1501 }15021503# define YY_LOCATION_PRINT(File, Loc) \1504 yy_location_print_ (File, &(Loc))15051506# else1507# define YY_LOCATION_PRINT(File, Loc) ((void) 0)1508# endif1509#endif151015111512# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \1513do { \1514 if (yydebug) \1515 { \1516 YYFPRINTF (stderr, "%s ", Title); \1517 yy_symbol_print (stderr, \1518 Type, Value, Location, answer, errors, locations, lexer_param_ptr); \1519 YYFPRINTF (stderr, "\n"); \1520 } \1521} while (0)152215231524/*----------------------------------------.1525| Print this symbol's value on YYOUTPUT. |1526`----------------------------------------*/15271528static void1529yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, block* answer, int* errors, struct locfile* locations, struct lexer_param* lexer_param_ptr)1530{1531 FILE *yyo = yyoutput;1532 YYUSE (yyo);1533 YYUSE (yylocationp);1534 YYUSE (answer);1535 YYUSE (errors);1536 YYUSE (locations);1537 YYUSE (lexer_param_ptr);1538 if (!yyvaluep)1539 return;1540# ifdef YYPRINT1541 if (yytype < YYNTOKENS)1542 YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);1543# endif1544 YYUSE (yytype);1545}154615471548/*--------------------------------.1549| Print this symbol on YYOUTPUT. |1550`--------------------------------*/15511552static void1553yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, block* answer, int* errors, struct locfile* locations, struct lexer_param* lexer_param_ptr)1554{1555 YYFPRINTF (yyoutput, "%s %s (",1556 yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);15571558 YY_LOCATION_PRINT (yyoutput, *yylocationp);1559 YYFPRINTF (yyoutput, ": ");1560 yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp, answer, errors, locations, lexer_param_ptr);1561 YYFPRINTF (yyoutput, ")");1562}15631564/*------------------------------------------------------------------.1565| yy_stack_print -- Print the state stack from its BOTTOM up to its |1566| TOP (included). |1567`------------------------------------------------------------------*/15681569static void1570yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)1571{1572 YYFPRINTF (stderr, "Stack now");1573 for (; yybottom <= yytop; yybottom++)1574 {1575 int yybot = *yybottom;1576 YYFPRINTF (stderr, " %d", yybot);1577 }1578 YYFPRINTF (stderr, "\n");1579}15801581# define YY_STACK_PRINT(Bottom, Top) \1582do { \1583 if (yydebug) \1584 yy_stack_print ((Bottom), (Top)); \1585} while (0)158615871588/*------------------------------------------------.1589| Report that the YYRULE is going to be reduced. |1590`------------------------------------------------*/15911592static void1593yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule, block* answer, int* errors, struct locfile* locations, struct lexer_param* lexer_param_ptr)1594{1595 unsigned long int yylno = yyrline[yyrule];1596 int yynrhs = yyr2[yyrule];1597 int yyi;1598 YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",1599 yyrule - 1, yylno);1600 /* The symbols being reduced. */1601 for (yyi = 0; yyi < yynrhs; yyi++)1602 {1603 YYFPRINTF (stderr, " $%d = ", yyi + 1);1604 yy_symbol_print (stderr,1605 yystos[yyssp[yyi + 1 - yynrhs]],1606 &(yyvsp[(yyi + 1) - (yynrhs)])1607 , &(yylsp[(yyi + 1) - (yynrhs)]) , answer, errors, locations, lexer_param_ptr);1608 YYFPRINTF (stderr, "\n");1609 }1610}16111612# define YY_REDUCE_PRINT(Rule) \1613do { \1614 if (yydebug) \1615 yy_reduce_print (yyssp, yyvsp, yylsp, Rule, answer, errors, locations, lexer_param_ptr); \1616} while (0)16171618/* Nonzero means print parse trace. It is left uninitialized so that1619 multiple parsers can coexist. */1620int yydebug;1621#else /* !YYDEBUG */1622# define YYDPRINTF(Args)1623# define YY_SYMBOL_PRINT(Title, Type, Value, Location)1624# define YY_STACK_PRINT(Bottom, Top)1625# define YY_REDUCE_PRINT(Rule)1626#endif /* !YYDEBUG */162716281629/* YYINITDEPTH -- initial size of the parser's stacks. */1630#ifndef YYINITDEPTH1631# define YYINITDEPTH 2001632#endif16331634/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only1635 if the built-in stack extension method is used).16361637 Do not make this value too large; the results are undefined if1638 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)1639 evaluated with infinite-precision integer arithmetic. */16401641#ifndef YYMAXDEPTH1642# define YYMAXDEPTH 100001643#endif164416451646#if YYERROR_VERBOSE16471648# ifndef yystrlen1649# if defined __GLIBC__ && defined _STRING_H1650# define yystrlen strlen1651# else1652/* Return the length of YYSTR. */1653static YYSIZE_T1654yystrlen (const char *yystr)1655{1656 YYSIZE_T yylen;1657 for (yylen = 0; yystr[yylen]; yylen++)1658 continue;1659 return yylen;1660}1661# endif1662# endif16631664# ifndef yystpcpy1665# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE1666# define yystpcpy stpcpy1667# else1668/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in1669 YYDEST. */1670static char *1671yystpcpy (char *yydest, const char *yysrc)1672{1673 char *yyd = yydest;1674 const char *yys = yysrc;16751676 while ((*yyd++ = *yys++) != '\0')1677 continue;16781679 return yyd - 1;1680}1681# endif1682# endif16831684# ifndef yytnamerr1685/* Copy to YYRES the contents of YYSTR after stripping away unnecessary1686 quotes and backslashes, so that it's suitable for yyerror. The1687 heuristic is that double-quoting is unnecessary unless the string1688 contains an apostrophe, a comma, or backslash (other than1689 backslash-backslash). YYSTR is taken from yytname. If YYRES is1690 null, do not copy; instead, return the length of what the result1691 would have been. */1692static YYSIZE_T1693yytnamerr (char *yyres, const char *yystr)1694{1695 if (*yystr == '"')1696 {1697 YYSIZE_T yyn = 0;1698 char const *yyp = yystr;16991700 for (;;)1701 switch (*++yyp)1702 {1703 case '\'':1704 case ',':1705 goto do_not_strip_quotes;17061707 case '\\':1708 if (*++yyp != '\\')1709 goto do_not_strip_quotes;1710 /* Fall through. */1711 default:1712 if (yyres)1713 yyres[yyn] = *yyp;1714 yyn++;1715 break;17161717 case '"':1718 if (yyres)1719 yyres[yyn] = '\0';1720 return yyn;1721 }1722 do_not_strip_quotes: ;1723 }17241725 if (! yyres)1726 return yystrlen (yystr);17271728 return yystpcpy (yyres, yystr) - yyres;1729}1730# endif17311732/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message1733 about the unexpected token YYTOKEN for the state stack whose top is1734 YYSSP.17351736 Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is1737 not large enough to hold the message. In that case, also set1738 *YYMSG_ALLOC to the required number of bytes. Return 2 if the1739 required number of bytes is too large to store. */1740static int1741yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,1742 yytype_int16 *yyssp, int yytoken)1743{1744 YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);1745 YYSIZE_T yysize = yysize0;1746 enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };1747 /* Internationalized format string. */1748 const char *yyformat = YY_NULLPTR;1749 /* Arguments of yyformat. */1750 char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];1751 /* Number of reported tokens (one for the "unexpected", one per1752 "expected"). */1753 int yycount = 0;17541755 /* There are many possibilities here to consider:1756 - If this state is a consistent state with a default action, then1757 the only way this function was invoked is if the default action1758 is an error action. In that case, don't check for expected1759 tokens because there are none.1760 - The only way there can be no lookahead present (in yychar) is if1761 this state is a consistent state with a default action. Thus,1762 detecting the absence of a lookahead is sufficient to determine1763 that there is no unexpected or expected token to report. In that1764 case, just report a simple "syntax error".1765 - Don't assume there isn't a lookahead just because this state is a1766 consistent state with a default action. There might have been a1767 previous inconsistent state, consistent state with a non-default1768 action, or user semantic action that manipulated yychar.1769 - Of course, the expected token list depends on states to have1770 correct lookahead information, and it depends on the parser not1771 to perform extra reductions after fetching a lookahead from the1772 scanner and before detecting a syntax error. Thus, state merging1773 (from LALR or IELR) and default reductions corrupt the expected1774 token list. However, the list is correct for canonical LR with1775 one exception: it will still contain any token that will not be1776 accepted due to an error action in a later state.1777 */1778 if (yytoken != YYEMPTY)1779 {1780 int yyn = yypact[*yyssp];1781 yyarg[yycount++] = yytname[yytoken];1782 if (!yypact_value_is_default (yyn))1783 {1784 /* Start YYX at -YYN if negative to avoid negative indexes in1785 YYCHECK. In other words, skip the first -YYN actions for1786 this state because they are default actions. */1787 int yyxbegin = yyn < 0 ? -yyn : 0;1788 /* Stay within bounds of both yycheck and yytname. */1789 int yychecklim = YYLAST - yyn + 1;1790 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;1791 int yyx;17921793 for (yyx = yyxbegin; yyx < yyxend; ++yyx)1794 if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR1795 && !yytable_value_is_error (yytable[yyx + yyn]))1796 {1797 if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)1798 {1799 yycount = 1;1800 yysize = yysize0;1801 break;1802 }1803 yyarg[yycount++] = yytname[yyx];1804 {1805 YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);1806 if (! (yysize <= yysize11807 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))1808 return 2;1809 yysize = yysize1;1810 }1811 }1812 }1813 }18141815 switch (yycount)1816 {1817# define YYCASE_(N, S) \1818 case N: \1819 yyformat = S; \1820 break1821 YYCASE_(0, YY_("syntax error"));1822 YYCASE_(1, YY_("syntax error, unexpected %s"));1823 YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));1824 YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));1825 YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));1826 YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));1827# undef YYCASE_1828 }18291830 {1831 YYSIZE_T yysize1 = yysize + yystrlen (yyformat);1832 if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))1833 return 2;1834 yysize = yysize1;1835 }18361837 if (*yymsg_alloc < yysize)1838 {1839 *yymsg_alloc = 2 * yysize;1840 if (! (yysize <= *yymsg_alloc1841 && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))1842 *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;1843 return 1;1844 }18451846 /* Avoid sprintf, as that infringes on the user's name space.1847 Don't have undefined behavior even if the translation1848 produced a string with the wrong number of "%s"s. */1849 {1850 char *yyp = *yymsg;1851 int yyi = 0;1852 while ((*yyp = *yyformat) != '\0')1853 if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)1854 {1855 yyp += yytnamerr (yyp, yyarg[yyi++]);1856 yyformat += 2;1857 }1858 else1859 {1860 yyp++;1861 yyformat++;1862 }1863 }1864 return 0;1865}1866#endif /* YYERROR_VERBOSE */18671868/*-----------------------------------------------.1869| Release the memory associated to this symbol. |1870`-----------------------------------------------*/18711872static void1873yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp, block* answer, int* errors, struct locfile* locations, struct lexer_param* lexer_param_ptr)1874{1875 YYUSE (yyvaluep);1876 YYUSE (yylocationp);1877 YYUSE (answer);1878 YYUSE (errors);1879 YYUSE (locations);1880 YYUSE (lexer_param_ptr);1881 if (!yymsg)1882 yymsg = "Deleting";1883 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);18841885 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN1886 switch (yytype)1887 {1888 case 4: /* IDENT */1889#line 36 "parser.y" /* yacc.c:1257 */1890 { jv_free(((*yyvaluep).literal)); }1891#line 1892 "parser.c" /* yacc.c:1257 */1892 break;18931894 case 5: /* FIELD */1895#line 36 "parser.y" /* yacc.c:1257 */1896 { jv_free(((*yyvaluep).literal)); }1897#line 1898 "parser.c" /* yacc.c:1257 */1898 break;18991900 case 6: /* LITERAL */1901#line 36 "parser.y" /* yacc.c:1257 */1902 { jv_free(((*yyvaluep).literal)); }1903#line 1904 "parser.c" /* yacc.c:1257 */1904 break;19051906 case 7: /* FORMAT */1907#line 36 "parser.y" /* yacc.c:1257 */1908 { jv_free(((*yyvaluep).literal)); }1909#line 1910 "parser.c" /* yacc.c:1257 */1910 break;19111912 case 41: /* QQSTRING_TEXT */1913#line 36 "parser.y" /* yacc.c:1257 */1914 { jv_free(((*yyvaluep).literal)); }1915#line 1916 "parser.c" /* yacc.c:1257 */1916 break;19171918 case 70: /* Module */1919#line 37 "parser.y" /* yacc.c:1257 */1920 { block_free(((*yyvaluep).blk)); }1921#line 1922 "parser.c" /* yacc.c:1257 */1922 break;19231924 case 71: /* Imports */1925#line 37 "parser.y" /* yacc.c:1257 */1926 { block_free(((*yyvaluep).blk)); }1927#line 1928 "parser.c" /* yacc.c:1257 */1928 break;19291930 case 72: /* FuncDefs */1931#line 37 "parser.y" /* yacc.c:1257 */1932 { block_free(((*yyvaluep).blk)); }1933#line 1934 "parser.c" /* yacc.c:1257 */1934 break;19351936 case 73: /* Exp */1937#line 37 "parser.y" /* yacc.c:1257 */1938 { block_free(((*yyvaluep).blk)); }1939#line 1940 "parser.c" /* yacc.c:1257 */1940 break;19411942 case 74: /* Import */1943#line 37 "parser.y" /* yacc.c:1257 */1944 { block_free(((*yyvaluep).blk)); }1945#line 1946 "parser.c" /* yacc.c:1257 */1946 break;19471948 case 75: /* FuncDef */1949#line 37 "parser.y" /* yacc.c:1257 */1950 { block_free(((*yyvaluep).blk)); }1951#line 1952 "parser.c" /* yacc.c:1257 */1952 break;19531954 case 76: /* Params */1955#line 37 "parser.y" /* yacc.c:1257 */1956 { block_free(((*yyvaluep).blk)); }1957#line 1958 "parser.c" /* yacc.c:1257 */1958 break;19591960 case 77: /* Param */1961#line 37 "parser.y" /* yacc.c:1257 */1962 { block_free(((*yyvaluep).blk)); }1963#line 1964 "parser.c" /* yacc.c:1257 */1964 break;19651966 case 78: /* String */1967#line 37 "parser.y" /* yacc.c:1257 */1968 { block_free(((*yyvaluep).blk)); }1969#line 1970 "parser.c" /* yacc.c:1257 */1970 break;19711972 case 81: /* QQString */1973#line 37 "parser.y" /* yacc.c:1257 */1974 { block_free(((*yyvaluep).blk)); }1975#line 1976 "parser.c" /* yacc.c:1257 */1976 break;19771978 case 82: /* ElseBody */1979#line 37 "parser.y" /* yacc.c:1257 */1980 { block_free(((*yyvaluep).blk)); }1981#line 1982 "parser.c" /* yacc.c:1257 */1982 break;19831984 case 83: /* ExpD */1985#line 37 "parser.y" /* yacc.c:1257 */1986 { block_free(((*yyvaluep).blk)); }1987#line 1988 "parser.c" /* yacc.c:1257 */1988 break;19891990 case 84: /* Term */1991#line 37 "parser.y" /* yacc.c:1257 */1992 { block_free(((*yyvaluep).blk)); }1993#line 1994 "parser.c" /* yacc.c:1257 */1994 break;19951996 case 85: /* Args */1997#line 37 "parser.y" /* yacc.c:1257 */1998 { block_free(((*yyvaluep).blk)); }1999#line 2000 "parser.c" /* yacc.c:1257 */2000 break;The first 2,000 of 3,914 lines.