parser.c
This file
Path
src/parser.c
4,356 lines · 150.3 KiB · C
Last changed by
Constant fold all kinds of constantsEmanuele Torrebefore adoption3b6e7dd
History of this fileTake it
1/* A Bison parser, made by GNU Bison 3.8.2. */23/* Bison implementation for Yacc-like parsers in C45 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,6 Inc.78 This program is free software: you can redistribute it and/or modify9 it under the terms of the GNU General Public License as published by10 the Free Software Foundation, either version 3 of the License, or11 (at your option) any later version.1213 This program is distributed in the hope that it will be useful,14 but WITHOUT ANY WARRANTY; without even the implied warranty of15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16 GNU General Public License for more details.1718 You should have received a copy of the GNU General Public License19 along with this program. If not, see <https://www.gnu.org/licenses/>. */2021/* As a special exception, you may create a larger work that contains22 part or all of the Bison parser skeleton and distribute that work23 under terms of your choice, so long as that work isn't itself a24 parser generator using the skeleton or a modified version thereof25 as a parser skeleton. Alternatively, if you modify or redistribute26 the parser skeleton itself, you may (at your option) remove this27 special exception, which will cause the skeleton and the resulting28 Bison output files to be licensed under the GNU General Public29 License without this special exception.3031 This special exception was added by the Free Software Foundation in32 version 2.2 of Bison. */3334/* C LALR(1) parser skeleton written by Richard Stallman, by35 simplifying the original so-called "semantic" parser. */3637/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,38 especially those whose name start with YY_ or yy_. They are39 private implementation details that can be changed or removed. */4041/* All symbols defined below should begin with yy or YY, to avoid42 infringing on user name space. This should be done even for local43 variables, as they might otherwise be expanded by user macros.44 There are some unavoidable exceptions within include files to45 define necessary library symbols; they are noted "INFRINGES ON46 USER NAME SPACE" below. */4748/* Identify Bison output, and Bison version. */49#define YYBISON 308025051/* Bison version string. */52#define YYBISON_VERSION "3.8.2"5354/* Skeleton name. */55#define YYSKELETON_NAME "yacc.c"5657/* Pure parsers. */58#define YYPURE 15960/* Push parsers. */61#define YYPUSH 06263/* Pull parsers. */64#define YYPULL 16566676869/* First part of user prologue. */70#line 1 "src/parser.y"7172#include <assert.h>73#include <math.h>74#include <stdio.h>75#include <string.h>76#include "compile.h"77#include "jv_alloc.h"78#include "builtin.h"79#define YYMALLOC jv_mem_alloc80#define YYFREE jv_mem_free8182#line 83 "src/parser.c"8384# ifndef YY_CAST85# ifdef __cplusplus86# define YY_CAST(Type, Val) static_cast<Type> (Val)87# define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)88# else89# define YY_CAST(Type, Val) ((Type) (Val))90# define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))91# endif92# endif93# ifndef YY_NULLPTR94# if defined __cplusplus95# if 201103L <= __cplusplus96# define YY_NULLPTR nullptr97# else98# define YY_NULLPTR 099# endif100# else101# define YY_NULLPTR ((void*)0)102# endif103# endif104105/* Use api.header.include to #include this header106 instead of duplicating it here. */107#ifndef YY_YY_SRC_PARSER_H_INCLUDED108# define YY_YY_SRC_PARSER_H_INCLUDED109/* Debug traces. */110#ifndef YYDEBUG111# define YYDEBUG 0112#endif113#if YYDEBUG114extern int yydebug;115#endif116/* "%code requires" blocks. */117#line 12 "src/parser.y"118119#include "locfile.h"120struct lexer_param;121122#define YYLTYPE location123#define YYLLOC_DEFAULT(Loc, Rhs, N) \124 do { \125 if (N) { \126 (Loc).start = YYRHSLOC(Rhs, 1).start; \127 (Loc).end = YYRHSLOC(Rhs, N).end; \128 } else { \129 (Loc).start = YYRHSLOC(Rhs, 0).end; \130 (Loc).end = YYRHSLOC(Rhs, 0).end; \131 } \132 } while (0)133134#line 135 "src/parser.c"135136/* Token kinds. */137#ifndef YYTOKENTYPE138# define YYTOKENTYPE139 enum yytokentype140 {141 YYEMPTY = -2,142 YYEOF = 0, /* "end of file" */143 YYerror = 256, /* error */144 YYUNDEF = 257, /* "invalid token" */145 INVALID_CHARACTER = 258, /* INVALID_CHARACTER */146 IDENT = 259, /* IDENT */147 FIELD = 260, /* FIELD */148 BINDING = 261, /* BINDING */149 LITERAL = 262, /* LITERAL */150 FORMAT = 263, /* FORMAT */151 REC = 264, /* ".." */152 SETMOD = 265, /* "%=" */153 EQ = 266, /* "==" */154 NEQ = 267, /* "!=" */155 DEFINEDOR = 268, /* "//" */156 AS = 269, /* "as" */157 DEF = 270, /* "def" */158 MODULE = 271, /* "module" */159 IMPORT = 272, /* "import" */160 INCLUDE = 273, /* "include" */161 IF = 274, /* "if" */162 THEN = 275, /* "then" */163 ELSE = 276, /* "else" */164 ELSE_IF = 277, /* "elif" */165 REDUCE = 278, /* "reduce" */166 FOREACH = 279, /* "foreach" */167 END = 280, /* "end" */168 AND = 281, /* "and" */169 OR = 282, /* "or" */170 TRY = 283, /* "try" */171 CATCH = 284, /* "catch" */172 LABEL = 285, /* "label" */173 BREAK = 286, /* "break" */174 LOC = 287, /* "$__loc__" */175 SETPIPE = 288, /* "|=" */176 SETPLUS = 289, /* "+=" */177 SETMINUS = 290, /* "-=" */178 SETMULT = 291, /* "*=" */179 SETDIV = 292, /* "/=" */180 SETDEFINEDOR = 293, /* "//=" */181 LESSEQ = 294, /* "<=" */182 GREATEREQ = 295, /* ">=" */183 ALTERNATION = 296, /* "?//" */184 QQSTRING_START = 297, /* QQSTRING_START */185 QQSTRING_TEXT = 298, /* QQSTRING_TEXT */186 QQSTRING_INTERP_START = 299, /* QQSTRING_INTERP_START */187 QQSTRING_INTERP_END = 300, /* QQSTRING_INTERP_END */188 QQSTRING_END = 301, /* QQSTRING_END */189 FUNCDEF = 302, /* FUNCDEF */190 NONOPT = 303 /* NONOPT */191 };192 typedef enum yytokentype yytoken_kind_t;193#endif194/* Token kinds. */195#define YYEMPTY -2196#define YYEOF 0197#define YYerror 256198#define YYUNDEF 257199#define INVALID_CHARACTER 258200#define IDENT 259201#define FIELD 260202#define BINDING 261203#define LITERAL 262204#define FORMAT 263205#define REC 264206#define SETMOD 265207#define EQ 266208#define NEQ 267209#define DEFINEDOR 268210#define AS 269211#define DEF 270212#define MODULE 271213#define IMPORT 272214#define INCLUDE 273215#define IF 274216#define THEN 275217#define ELSE 276218#define ELSE_IF 277219#define REDUCE 278220#define FOREACH 279221#define END 280222#define AND 281223#define OR 282224#define TRY 283225#define CATCH 284226#define LABEL 285227#define BREAK 286228#define LOC 287229#define SETPIPE 288230#define SETPLUS 289231#define SETMINUS 290232#define SETMULT 291233#define SETDIV 292234#define SETDEFINEDOR 293235#define LESSEQ 294236#define GREATEREQ 295237#define ALTERNATION 296238#define QQSTRING_START 297239#define QQSTRING_TEXT 298240#define QQSTRING_INTERP_START 299241#define QQSTRING_INTERP_END 300242#define QQSTRING_END 301243#define FUNCDEF 302244#define NONOPT 303245246/* Value type. */247#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED248union YYSTYPE249{250#line 32 "src/parser.y"251252 jv literal;253 block blk;254255#line 256 "src/parser.c"256257};258typedef union YYSTYPE YYSTYPE;259# define YYSTYPE_IS_TRIVIAL 1260# define YYSTYPE_IS_DECLARED 1261#endif262263/* Location type. */264#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED265typedef struct YYLTYPE YYLTYPE;266struct YYLTYPE267{268 int first_line;269 int first_column;270 int last_line;271 int last_column;272};273# define YYLTYPE_IS_DECLARED 1274# define YYLTYPE_IS_TRIVIAL 1275#endif276277278279280int yyparse (block* answer, int* errors, struct locfile* locations, struct lexer_param* lexer_param_ptr);281282283#endif /* !YY_YY_SRC_PARSER_H_INCLUDED */284/* Symbol kind. */285enum yysymbol_kind_t286{287 YYSYMBOL_YYEMPTY = -2,288 YYSYMBOL_YYEOF = 0, /* "end of file" */289 YYSYMBOL_YYerror = 1, /* error */290 YYSYMBOL_YYUNDEF = 2, /* "invalid token" */291 YYSYMBOL_INVALID_CHARACTER = 3, /* INVALID_CHARACTER */292 YYSYMBOL_IDENT = 4, /* IDENT */293 YYSYMBOL_FIELD = 5, /* FIELD */294 YYSYMBOL_BINDING = 6, /* BINDING */295 YYSYMBOL_LITERAL = 7, /* LITERAL */296 YYSYMBOL_FORMAT = 8, /* FORMAT */297 YYSYMBOL_REC = 9, /* ".." */298 YYSYMBOL_SETMOD = 10, /* "%=" */299 YYSYMBOL_EQ = 11, /* "==" */300 YYSYMBOL_NEQ = 12, /* "!=" */301 YYSYMBOL_DEFINEDOR = 13, /* "//" */302 YYSYMBOL_AS = 14, /* "as" */303 YYSYMBOL_DEF = 15, /* "def" */304 YYSYMBOL_MODULE = 16, /* "module" */305 YYSYMBOL_IMPORT = 17, /* "import" */306 YYSYMBOL_INCLUDE = 18, /* "include" */307 YYSYMBOL_IF = 19, /* "if" */308 YYSYMBOL_THEN = 20, /* "then" */309 YYSYMBOL_ELSE = 21, /* "else" */310 YYSYMBOL_ELSE_IF = 22, /* "elif" */311 YYSYMBOL_REDUCE = 23, /* "reduce" */312 YYSYMBOL_FOREACH = 24, /* "foreach" */313 YYSYMBOL_END = 25, /* "end" */314 YYSYMBOL_AND = 26, /* "and" */315 YYSYMBOL_OR = 27, /* "or" */316 YYSYMBOL_TRY = 28, /* "try" */317 YYSYMBOL_CATCH = 29, /* "catch" */318 YYSYMBOL_LABEL = 30, /* "label" */319 YYSYMBOL_BREAK = 31, /* "break" */320 YYSYMBOL_LOC = 32, /* "$__loc__" */321 YYSYMBOL_SETPIPE = 33, /* "|=" */322 YYSYMBOL_SETPLUS = 34, /* "+=" */323 YYSYMBOL_SETMINUS = 35, /* "-=" */324 YYSYMBOL_SETMULT = 36, /* "*=" */325 YYSYMBOL_SETDIV = 37, /* "/=" */326 YYSYMBOL_SETDEFINEDOR = 38, /* "//=" */327 YYSYMBOL_LESSEQ = 39, /* "<=" */328 YYSYMBOL_GREATEREQ = 40, /* ">=" */329 YYSYMBOL_ALTERNATION = 41, /* "?//" */330 YYSYMBOL_QQSTRING_START = 42, /* QQSTRING_START */331 YYSYMBOL_QQSTRING_TEXT = 43, /* QQSTRING_TEXT */332 YYSYMBOL_QQSTRING_INTERP_START = 44, /* QQSTRING_INTERP_START */333 YYSYMBOL_QQSTRING_INTERP_END = 45, /* QQSTRING_INTERP_END */334 YYSYMBOL_QQSTRING_END = 46, /* QQSTRING_END */335 YYSYMBOL_FUNCDEF = 47, /* FUNCDEF */336 YYSYMBOL_48_ = 48, /* '|' */337 YYSYMBOL_49_ = 49, /* ',' */338 YYSYMBOL_50_ = 50, /* '=' */339 YYSYMBOL_51_ = 51, /* '<' */340 YYSYMBOL_52_ = 52, /* '>' */341 YYSYMBOL_53_ = 53, /* '+' */342 YYSYMBOL_54_ = 54, /* '-' */343 YYSYMBOL_55_ = 55, /* '*' */344 YYSYMBOL_56_ = 56, /* '/' */345 YYSYMBOL_57_ = 57, /* '%' */346 YYSYMBOL_NONOPT = 58, /* NONOPT */347 YYSYMBOL_59_ = 59, /* '?' */348 YYSYMBOL_60_ = 60, /* ';' */349 YYSYMBOL_61_ = 61, /* '(' */350 YYSYMBOL_62_ = 62, /* ')' */351 YYSYMBOL_63_ = 63, /* ':' */352 YYSYMBOL_64_ = 64, /* '.' */353 YYSYMBOL_65_ = 65, /* '[' */354 YYSYMBOL_66_ = 66, /* ']' */355 YYSYMBOL_67_ = 67, /* '{' */356 YYSYMBOL_68_ = 68, /* '}' */357 YYSYMBOL_69_ = 69, /* '$' */358 YYSYMBOL_YYACCEPT = 70, /* $accept */359 YYSYMBOL_TopLevel = 71, /* TopLevel */360 YYSYMBOL_Module = 72, /* Module */361 YYSYMBOL_Imports = 73, /* Imports */362 YYSYMBOL_FuncDefs = 74, /* FuncDefs */363 YYSYMBOL_Exp = 75, /* Exp */364 YYSYMBOL_Import = 76, /* Import */365 YYSYMBOL_ImportWhat = 77, /* ImportWhat */366 YYSYMBOL_ImportFrom = 78, /* ImportFrom */367 YYSYMBOL_FuncDef = 79, /* FuncDef */368 YYSYMBOL_Params = 80, /* Params */369 YYSYMBOL_Param = 81, /* Param */370 YYSYMBOL_StringStart = 82, /* StringStart */371 YYSYMBOL_String = 83, /* String */372 YYSYMBOL_QQString = 84, /* QQString */373 YYSYMBOL_ElseBody = 85, /* ElseBody */374 YYSYMBOL_ExpD = 86, /* ExpD */375 YYSYMBOL_Term = 87, /* Term */376 YYSYMBOL_Args = 88, /* Args */377 YYSYMBOL_Arg = 89, /* Arg */378 YYSYMBOL_RepPatterns = 90, /* RepPatterns */379 YYSYMBOL_Patterns = 91, /* Patterns */380 YYSYMBOL_Pattern = 92, /* Pattern */381 YYSYMBOL_ArrayPats = 93, /* ArrayPats */382 YYSYMBOL_ObjPats = 94, /* ObjPats */383 YYSYMBOL_ObjPat = 95, /* ObjPat */384 YYSYMBOL_Keyword = 96, /* Keyword */385 YYSYMBOL_MkDict = 97, /* MkDict */386 YYSYMBOL_MkDictPair = 98 /* MkDictPair */387};388typedef enum yysymbol_kind_t yysymbol_kind_t;389390391/* Second part of user prologue. */392#line 127 "src/parser.y"393394#include "lexer.h"395struct lexer_param {396 yyscan_t lexer;397};398#define FAIL(loc, msg) \399 do { \400 location l = loc; \401 yyerror(&l, answer, errors, locations, lexer_param_ptr, msg); \402 /*YYERROR*/; \403 } while (0)404405void yyerror(YYLTYPE* loc, block* answer, int* errors,406 struct locfile* locations, struct lexer_param* lexer_param_ptr, const char *s){407 (*errors)++;408 if (strstr(s, "unexpected")) {409#ifdef WIN32410 locfile_locate(locations, *loc, "jq: error: %s (Windows cmd shell quoting issues?)", s);411#else412 locfile_locate(locations, *loc, "jq: error: %s (Unix shell quoting issues?)", s);413#endif414 } else {415 locfile_locate(locations, *loc, "jq: error: %s", s);416 }417}418419int yylex(YYSTYPE* yylval, YYLTYPE* yylloc, block* answer, int* errors,420 struct locfile* locations, struct lexer_param* lexer_param_ptr) {421 yyscan_t lexer = lexer_param_ptr->lexer;422 int tok = jq_yylex(yylval, yylloc, lexer);423 if ((tok == LITERAL || tok == QQSTRING_TEXT) && !jv_is_valid(yylval->literal)) {424 jv msg = jv_invalid_get_msg(jv_copy(yylval->literal));425 if (jv_get_kind(msg) == JV_KIND_STRING) {426 FAIL(*yylloc, jv_string_value(msg));427 } else {428 FAIL(*yylloc, "Invalid literal");429 }430 jv_free(msg);431 jv_free(yylval->literal);432 yylval->literal = jv_null();433 }434 return tok;435}436437/* Returns string message if the block is a constant that is not valid as an438 * object key. */439static jv check_object_key(block k) {440 if (block_is_const(k) && block_const_kind(k) != JV_KIND_STRING) {441 char errbuf[15];442 return jv_string_fmt("Cannot use %s (%s) as object key",443 jv_kind_name(block_const_kind(k)),444 jv_dump_string_trunc(block_const(k), errbuf, sizeof(errbuf)));445 }446 return jv_invalid();447}448449static block gen_index(block obj, block key) {450 return BLOCK(gen_subexp(key), obj, gen_op_simple(INDEX));451}452453static block gen_index_opt(block obj, block key) {454 return BLOCK(gen_subexp(key), obj, gen_op_simple(INDEX_OPT));455}456457static block gen_slice_index(block obj, block start, block end, opcode idx_op) {458 block key = BLOCK(gen_subexp(gen_const(jv_object())),459 gen_subexp(gen_const(jv_string("start"))),460 gen_subexp(start),461 gen_op_simple(INSERT),462 gen_subexp(gen_const(jv_string("end"))),463 gen_subexp(end),464 gen_op_simple(INSERT));465 return BLOCK(key, obj, gen_op_simple(idx_op));466}467468static block constant_fold(block a, block b, int op) {469 if (!block_is_single(a) || !block_is_const(a) ||470 !block_is_single(b) || !block_is_const(b))471 return gen_noop();472473 jv jv_a = block_const(a);474 block_free(a);475 jv jv_b = block_const(b);476 block_free(b);477478 jv res = jv_invalid();479 switch (op) {480 case '+': res = binop_plus(jv_a, jv_b); break;481 case '-': res = binop_minus(jv_a, jv_b); break;482 case '*': res = binop_multiply(jv_a, jv_b); break;483 case '/': res = binop_divide(jv_a, jv_b); break;484 case '%': res = binop_mod(jv_a, jv_b); break;485 case EQ: res = binop_equal(jv_a, jv_b); break;486 case NEQ: res = binop_notequal(jv_a, jv_b); break;487 case '<': res = binop_less(jv_a, jv_b); break;488 case '>': res = binop_greater(jv_a, jv_b); break;489 case LESSEQ: res = binop_lesseq(jv_a, jv_b); break;490 case GREATEREQ: res = binop_greatereq(jv_a, jv_b); break;491 }492493 if (jv_is_valid(res))494 return gen_const(res);495496 return gen_error(jv_invalid_get_msg(res));497}498499static block gen_binop(block a, block b, int op) {500 block folded = constant_fold(a, b, op);501 if (!block_is_noop(folded))502 return folded;503504 const char* funcname = 0;505 switch (op) {506 case '+': funcname = "_plus"; break;507 case '-': funcname = "_minus"; break;508 case '*': funcname = "_multiply"; break;509 case '/': funcname = "_divide"; break;510 case '%': funcname = "_mod"; break;511 case EQ: funcname = "_equal"; break;512 case NEQ: funcname = "_notequal"; break;513 case '<': funcname = "_less"; break;514 case '>': funcname = "_greater"; break;515 case LESSEQ: funcname = "_lesseq"; break;516 case GREATEREQ: funcname = "_greatereq"; break;517 }518 assert(funcname);519520 return gen_call(funcname, BLOCK(gen_lambda(a), gen_lambda(b)));521}522523static block gen_format(block a, jv fmt) {524 return BLOCK(a, gen_call("format", gen_lambda(gen_const(fmt))));525}526527static block gen_definedor_assign(block object, block val) {528 block tmp = gen_op_var_fresh(STOREV, "tmp");529 return BLOCK(gen_op_simple(DUP),530 val, tmp,531 gen_call("_modify", BLOCK(gen_lambda(object),532 gen_lambda(gen_definedor(gen_noop(),533 gen_op_bound(LOADV, tmp))))));534}535536static block gen_update(block object, block val, int optype) {537 block tmp = gen_op_var_fresh(STOREV, "tmp");538 return BLOCK(gen_op_simple(DUP),539 val,540 tmp,541 gen_call("_modify", BLOCK(gen_lambda(object),542 gen_lambda(gen_binop(gen_noop(),543 gen_op_bound(LOADV, tmp),544 optype)))));545}546547static block gen_loc_object(location *loc, struct locfile *locations) {548 return gen_const(JV_OBJECT(jv_string("file"), jv_copy(locations->fname),549 jv_string("line"), jv_number(locfile_get_line(locations, loc->start) + 1)));550}551552553#line 554 "src/parser.c"554555556#ifdef short557# undef short558#endif559560/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure561 <limits.h> and (if available) <stdint.h> are included562 so that the code can choose integer types of a good width. */563564#ifndef __PTRDIFF_MAX__565# include <limits.h> /* INFRINGES ON USER NAME SPACE */566# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__567# include <stdint.h> /* INFRINGES ON USER NAME SPACE */568# define YY_STDINT_H569# endif570#endif571572/* Narrow types that promote to a signed type and that can represent a573 signed or unsigned integer of at least N bits. In tables they can574 save space and decrease cache pressure. Promoting to a signed type575 helps avoid bugs in integer arithmetic. */576577#ifdef __INT_LEAST8_MAX__578typedef __INT_LEAST8_TYPE__ yytype_int8;579#elif defined YY_STDINT_H580typedef int_least8_t yytype_int8;581#else582typedef signed char yytype_int8;583#endif584585#ifdef __INT_LEAST16_MAX__586typedef __INT_LEAST16_TYPE__ yytype_int16;587#elif defined YY_STDINT_H588typedef int_least16_t yytype_int16;589#else590typedef short yytype_int16;591#endif592593/* Work around bug in HP-UX 11.23, which defines these macros594 incorrectly for preprocessor constants. This workaround can likely595 be removed in 2023, as HPE has promised support for HP-UX 11.23596 (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of597 <https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>. */598#ifdef __hpux599# undef UINT_LEAST8_MAX600# undef UINT_LEAST16_MAX601# define UINT_LEAST8_MAX 255602# define UINT_LEAST16_MAX 65535603#endif604605#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__606typedef __UINT_LEAST8_TYPE__ yytype_uint8;607#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \608 && UINT_LEAST8_MAX <= INT_MAX)609typedef uint_least8_t yytype_uint8;610#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX611typedef unsigned char yytype_uint8;612#else613typedef short yytype_uint8;614#endif615616#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__617typedef __UINT_LEAST16_TYPE__ yytype_uint16;618#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \619 && UINT_LEAST16_MAX <= INT_MAX)620typedef uint_least16_t yytype_uint16;621#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX622typedef unsigned short yytype_uint16;623#else624typedef int yytype_uint16;625#endif626627#ifndef YYPTRDIFF_T628# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__629# define YYPTRDIFF_T __PTRDIFF_TYPE__630# define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__631# elif defined PTRDIFF_MAX632# ifndef ptrdiff_t633# include <stddef.h> /* INFRINGES ON USER NAME SPACE */634# endif635# define YYPTRDIFF_T ptrdiff_t636# define YYPTRDIFF_MAXIMUM PTRDIFF_MAX637# else638# define YYPTRDIFF_T long639# define YYPTRDIFF_MAXIMUM LONG_MAX640# endif641#endif642643#ifndef YYSIZE_T644# ifdef __SIZE_TYPE__645# define YYSIZE_T __SIZE_TYPE__646# elif defined size_t647# define YYSIZE_T size_t648# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__649# include <stddef.h> /* INFRINGES ON USER NAME SPACE */650# define YYSIZE_T size_t651# else652# define YYSIZE_T unsigned653# endif654#endif655656#define YYSIZE_MAXIMUM \657 YY_CAST (YYPTRDIFF_T, \658 (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1) \659 ? YYPTRDIFF_MAXIMUM \660 : YY_CAST (YYSIZE_T, -1)))661662#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))663664665/* Stored state numbers (used for stacks). */666typedef yytype_int16 yy_state_t;667668/* State numbers in computations. */669typedef int yy_state_fast_t;670671#ifndef YY_672# if defined YYENABLE_NLS && YYENABLE_NLS673# if ENABLE_NLS674# include <libintl.h> /* INFRINGES ON USER NAME SPACE */675# define YY_(Msgid) dgettext ("bison-runtime", Msgid)676# endif677# endif678# ifndef YY_679# define YY_(Msgid) Msgid680# endif681#endif682683684#ifndef YY_ATTRIBUTE_PURE685# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)686# define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))687# else688# define YY_ATTRIBUTE_PURE689# endif690#endif691692#ifndef YY_ATTRIBUTE_UNUSED693# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)694# define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))695# else696# define YY_ATTRIBUTE_UNUSED697# endif698#endif699700/* Suppress unused-variable warnings by "using" E. */701#if ! defined lint || defined __GNUC__702# define YY_USE(E) ((void) (E))703#else704# define YY_USE(E) /* empty */705#endif706707/* Suppress an incorrect diagnostic about yylval being uninitialized. */708#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__709# if __GNUC__ * 100 + __GNUC_MINOR__ < 407710# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \711 _Pragma ("GCC diagnostic push") \712 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")713# else714# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \715 _Pragma ("GCC diagnostic push") \716 _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"") \717 _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")718# endif719# define YY_IGNORE_MAYBE_UNINITIALIZED_END \720 _Pragma ("GCC diagnostic pop")721#else722# define YY_INITIAL_VALUE(Value) Value723#endif724#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN725# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN726# define YY_IGNORE_MAYBE_UNINITIALIZED_END727#endif728#ifndef YY_INITIAL_VALUE729# define YY_INITIAL_VALUE(Value) /* Nothing. */730#endif731732#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__733# define YY_IGNORE_USELESS_CAST_BEGIN \734 _Pragma ("GCC diagnostic push") \735 _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")736# define YY_IGNORE_USELESS_CAST_END \737 _Pragma ("GCC diagnostic pop")738#endif739#ifndef YY_IGNORE_USELESS_CAST_BEGIN740# define YY_IGNORE_USELESS_CAST_BEGIN741# define YY_IGNORE_USELESS_CAST_END742#endif743744745#define YY_ASSERT(E) ((void) (0 && (E)))746747#if 1748749/* The parser invokes alloca or malloc; define the necessary symbols. */750751# ifdef YYSTACK_USE_ALLOCA752# if YYSTACK_USE_ALLOCA753# ifdef __GNUC__754# define YYSTACK_ALLOC __builtin_alloca755# elif defined __BUILTIN_VA_ARG_INCR756# include <alloca.h> /* INFRINGES ON USER NAME SPACE */757# elif defined _AIX758# define YYSTACK_ALLOC __alloca759# elif defined _MSC_VER760# include <malloc.h> /* INFRINGES ON USER NAME SPACE */761# define alloca _alloca762# else763# define YYSTACK_ALLOC alloca764# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS765# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */766 /* Use EXIT_SUCCESS as a witness for stdlib.h. */767# ifndef EXIT_SUCCESS768# define EXIT_SUCCESS 0769# endif770# endif771# endif772# endif773# endif774775# ifdef YYSTACK_ALLOC776 /* Pacify GCC's 'empty if-body' warning. */777# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)778# ifndef YYSTACK_ALLOC_MAXIMUM779 /* The OS might guarantee only one guard page at the bottom of the stack,780 and a page size can be as small as 4096 bytes. So we cannot safely781 invoke alloca (N) if N exceeds 4096. Use a slightly smaller number782 to allow for a few compiler-allocated temporary stack slots. */783# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */784# endif785# else786# define YYSTACK_ALLOC YYMALLOC787# define YYSTACK_FREE YYFREE788# ifndef YYSTACK_ALLOC_MAXIMUM789# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM790# endif791# if (defined __cplusplus && ! defined EXIT_SUCCESS \792 && ! ((defined YYMALLOC || defined malloc) \793 && (defined YYFREE || defined free)))794# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */795# ifndef EXIT_SUCCESS796# define EXIT_SUCCESS 0797# endif798# endif799# ifndef YYMALLOC800# define YYMALLOC malloc801# if ! defined malloc && ! defined EXIT_SUCCESS802void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */803# endif804# endif805# ifndef YYFREE806# define YYFREE free807# if ! defined free && ! defined EXIT_SUCCESS808void free (void *); /* INFRINGES ON USER NAME SPACE */809# endif810# endif811# endif812#endif /* 1 */813814#if (! defined yyoverflow \815 && (! defined __cplusplus \816 || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \817 && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))818819/* A type that is properly aligned for any stack member. */820union yyalloc821{822 yy_state_t yyss_alloc;823 YYSTYPE yyvs_alloc;824 YYLTYPE yyls_alloc;825};826827/* The size of the maximum gap between one aligned stack and the next. */828# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)829830/* The size of an array large to enough to hold all stacks, each with831 N elements. */832# define YYSTACK_BYTES(N) \833 ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE) \834 + YYSIZEOF (YYLTYPE)) \835 + 2 * YYSTACK_GAP_MAXIMUM)836837# define YYCOPY_NEEDED 1838839/* Relocate STACK from its old location to the new one. The840 local variables YYSIZE and YYSTACKSIZE give the old and new number of841 elements in the stack, and YYPTR gives the new location of the842 stack. Advance YYPTR to a properly aligned location for the next843 stack. */844# define YYSTACK_RELOCATE(Stack_alloc, Stack) \845 do \846 { \847 YYPTRDIFF_T yynewbytes; \848 YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \849 Stack = &yyptr->Stack_alloc; \850 yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \851 yyptr += yynewbytes / YYSIZEOF (*yyptr); \852 } \853 while (0)854855#endif856857#if defined YYCOPY_NEEDED && YYCOPY_NEEDED858/* Copy COUNT objects from SRC to DST. The source and destination do859 not overlap. */860# ifndef YYCOPY861# if defined __GNUC__ && 1 < __GNUC__862# define YYCOPY(Dst, Src, Count) \863 __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))864# else865# define YYCOPY(Dst, Src, Count) \866 do \867 { \868 YYPTRDIFF_T yyi; \869 for (yyi = 0; yyi < (Count); yyi++) \870 (Dst)[yyi] = (Src)[yyi]; \871 } \872 while (0)873# endif874# endif875#endif /* !YYCOPY_NEEDED */876877/* YYFINAL -- State number of the termination state. */878#define YYFINAL 30879/* YYLAST -- Last index in YYTABLE. */880#define YYLAST 2051881882/* YYNTOKENS -- Number of terminals. */883#define YYNTOKENS 70884/* YYNNTS -- Number of nonterminals. */885#define YYNNTS 29886/* YYNRULES -- Number of rules. */887#define YYNRULES 169888/* YYNSTATES -- Number of states. */889#define YYNSTATES 315890891/* YYMAXUTOK -- Last valid token kind. */892#define YYMAXUTOK 303893894895/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM896 as returned by yylex, with out-of-bounds checking. */897#define YYTRANSLATE(YYX) \898 (0 <= (YYX) && (YYX) <= YYMAXUTOK \899 ? YY_CAST (yysymbol_kind_t, yytranslate[YYX]) \900 : YYSYMBOL_YYUNDEF)901902/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM903 as returned by yylex. */904static const yytype_int8 yytranslate[] =905{906 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,907 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,908 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,909 2, 2, 2, 2, 2, 2, 69, 57, 2, 2,910 61, 62, 55, 53, 49, 54, 64, 56, 2, 2,911 2, 2, 2, 2, 2, 2, 2, 2, 63, 60,912 51, 50, 52, 59, 2, 2, 2, 2, 2, 2,913 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,914 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,915 2, 65, 2, 66, 2, 2, 2, 2, 2, 2,916 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,917 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,918 2, 2, 2, 67, 48, 68, 2, 2, 2, 2,919 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,920 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,921 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,922 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,923 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,924 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,925 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,926 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,927 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,928 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,929 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,930 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,931 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,932 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,933 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,934 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,935 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,936 45, 46, 47, 58937};938939#if YYDEBUG940/* YYRLINE[YYN] -- Source line where rule number YYN was defined. */941static const yytype_int16 yyrline[] =942{943 0, 290, 290, 293, 298, 301, 316, 319, 324, 327,944 332, 336, 339, 343, 347, 351, 354, 359, 362, 365,945 370, 377, 381, 385, 389, 393, 397, 401, 405, 409,946 413, 417, 421, 425, 429, 433, 437, 441, 445, 449,947 453, 457, 461, 465, 469, 473, 477, 481, 486, 489,948 506, 515, 522, 530, 541, 546, 552, 555, 560, 564,949 571, 574, 580, 587, 590, 593, 599, 602, 605, 610,950 613, 616, 622, 625, 628, 636, 640, 643, 646, 649,951 652, 655, 658, 661, 664, 668, 674, 677, 680, 683,952 686, 689, 692, 695, 698, 701, 704, 707, 710, 713,953 716, 719, 722, 725, 728, 731, 734, 756, 760, 764,954 767, 779, 784, 785, 786, 787, 790, 793, 798, 803,955 806, 811, 814, 819, 823, 826, 831, 834, 839, 842,956 847, 850, 853, 856, 859, 862, 870, 876, 879, 882,957 885, 888, 891, 894, 897, 900, 903, 906, 909, 912,958 915, 918, 921, 924, 927, 932, 935, 936, 937, 940,959 943, 946, 949, 953, 958, 962, 966, 970, 974, 982960};961#endif962963/** Accessing symbol of state STATE. */964#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])965966#if 1967/* The user-facing name of the symbol whose (internal) number is968 YYSYMBOL. No bounds checking. */969static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;970971/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.972 First, the terminals, then, starting at YYNTOKENS, nonterminals. */973static const char *const yytname[] =974{975 "\"end of file\"", "error", "\"invalid token\"", "INVALID_CHARACTER",976 "IDENT", "FIELD", "BINDING", "LITERAL", "FORMAT", "\"..\"", "\"%=\"",977 "\"==\"", "\"!=\"", "\"//\"", "\"as\"", "\"def\"", "\"module\"",978 "\"import\"", "\"include\"", "\"if\"", "\"then\"", "\"else\"",979 "\"elif\"", "\"reduce\"", "\"foreach\"", "\"end\"", "\"and\"", "\"or\"",980 "\"try\"", "\"catch\"", "\"label\"", "\"break\"", "\"$__loc__\"",981 "\"|=\"", "\"+=\"", "\"-=\"", "\"*=\"", "\"/=\"", "\"//=\"", "\"<=\"",982 "\">=\"", "\"?//\"", "QQSTRING_START", "QQSTRING_TEXT",983 "QQSTRING_INTERP_START", "QQSTRING_INTERP_END", "QQSTRING_END",984 "FUNCDEF", "'|'", "','", "'='", "'<'", "'>'", "'+'", "'-'", "'*'", "'/'",985 "'%'", "NONOPT", "'?'", "';'", "'('", "')'", "':'", "'.'", "'['", "']'",986 "'{'", "'}'", "'$'", "$accept", "TopLevel", "Module", "Imports",987 "FuncDefs", "Exp", "Import", "ImportWhat", "ImportFrom", "FuncDef",988 "Params", "Param", "StringStart", "String", "QQString", "ElseBody",989 "ExpD", "Term", "Args", "Arg", "RepPatterns", "Patterns", "Pattern",990 "ArrayPats", "ObjPats", "ObjPat", "Keyword", "MkDict", "MkDictPair", YY_NULLPTR991};992993static const char *994yysymbol_name (yysymbol_kind_t yysymbol)995{996 return yytname[yysymbol];997}998#endif9991000#define YYPACT_NINF (-157)10011002#define yypact_value_is_default(Yyn) \1003 ((Yyn) == YYPACT_NINF)10041005#define YYTABLE_NINF (-156)10061007#define yytable_value_is_error(Yyn) \1008 ((Yyn) == YYTABLE_NINF)10091010/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing1011 STATE-NUM. */1012static const yytype_int16 yypact[] =1013{1014 -14, 881, 15, 62, -33, -23, -157, -157, -9, -157,1015 37, 881, 912, 912, 881, 40, 2, -157, -157, 881,1016 193, 282, 415, 595, -18, 1400, 881, -157, -157, 12,1017 -157, 1, 1, 881, 62, 683, 881, -157, -157, -11,1018 1756, 17, 49, 26, 10, -157, -157, 14, 21, 1230,1019 -157, 74, -9, 53, 51, -157, 1041, -26, 63, 64,1020 -157, -157, -157, -157, -157, -157, -157, -157, -157, -157,1021 -157, -157, -157, -157, -157, -157, -157, -157, -157, 881,1022 65, 69, 70, 82, 67, 881, 881, 881, 881, 881,1023 881, 881, 881, 881, 881, 881, 881, 881, 881, 881,1024 881, 881, 881, 881, 881, 881, 881, 881, 881, -157,1025 -157, 1924, 13, 87, -5, -4, 348, 127, -157, -157,1026 -157, 1924, 881, -157, -157, 1451, 1924, 56, -157, 68,1027 881, 482, -5, -5, 533, 881, -157, -157, -157, -157,1028 -157, -157, 651, 513, -157, 513, 513, 1264, 513, 513,1029 -157, 651, 144, 1992, 113, 113, 1958, 594, 913, 1992,1030 1992, 1992, 1992, 1992, 1992, 113, 113, 1924, 1958, 1992,1031 113, 113, 14, 14, 98, 98, 98, -157, 881, -157,1032 -157, -157, -5, 974, 117, 111, 119, 749, 102, 96,1033 881, 104, 1007, 116, -157, -157, 881, -157, -157, -157,1034 61, -157, 1502, -157, 1706, 110, 112, -157, -157, 1924,1035 -10, -157, 513, 126, 0, 126, 126, 115, 126, 126,1036 -157, -157, 1790, -157, -37, 118, 120, 121, 881, 122,1037 -38, -157, 124, -5, 881, 123, 1075, -157, -157, 1109,1038 -157, 815, 131, -157, -157, -157, 68, 128, -157, 881,1039 881, -157, -157, 881, 881, -157, 513, 513, -157, -5,1040 -157, -5, -5, -5, 1298, -5, 974, -157, -5, 134,1041 1924, -157, 133, 137, 145, 1143, -157, -157, 881, 1840,1042 1890, 1553, 1604, 126, 126, -157, -157, -157, -157, 130,1043 -157, -157, -157, -157, -157, -157, 146, 1655, -157, 881,1044 881, 881, -5, -157, -157, 1706, 1332, 1177, -157, -157,1045 -157, 881, -157, 1366, -1571046};10471048/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.1049 Performed when YYTABLE does not specify something else to do. Zero1050 means the default is an error. */1051static const yytype_uint8 yydefact[] =1052{1053 4, 0, 0, 6, 110, 81, 108, 100, 102, 73,1054 0, 0, 0, 0, 0, 0, 0, 109, 61, 0,1055 0, 0, 0, 0, 0, 0, 0, 63, 101, 47,1056 1, 0, 0, 8, 6, 0, 0, 77, 60, 0,1057 0, 0, 0, 18, 0, 75, 74, 32, 0, 0,1058 84, 0, 0, 83, 0, 105, 0, 0, 165, 164,1059 137, 138, 139, 140, 141, 142, 143, 144, 145, 146,1060 147, 148, 149, 150, 151, 152, 153, 154, 166, 0,1061 162, 167, 0, 156, 0, 0, 0, 0, 0, 0,1062 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1063 0, 0, 0, 0, 0, 0, 0, 0, 0, 21,1064 5, 10, 0, 80, 0, 0, 0, 0, 53, 52,1065 3, 2, 8, 7, 48, 0, 118, 0, 116, 0,1066 0, 0, 0, 0, 0, 0, 112, 103, 85, 79,1067 113, 104, 0, 0, 115, 0, 0, 0, 0, 0,1068 106, 0, 0, 40, 41, 42, 25, 24, 23, 27,1069 31, 34, 36, 39, 26, 45, 46, 28, 29, 22,1070 43, 44, 30, 33, 35, 37, 38, 64, 0, 62,1071 76, 123, 0, 0, 0, 0, 122, 0, 82, 0,1072 0, 91, 0, 0, 9, 49, 0, 111, 59, 58,1073 0, 56, 0, 16, 0, 0, 0, 19, 17, 20,1074 0, 158, 0, 169, 71, 159, 163, 0, 161, 160,1075 157, 107, 0, 126, 0, 0, 0, 130, 0, 0,1076 0, 128, 0, 0, 0, 93, 0, 78, 114, 0,1077 90, 0, 87, 51, 50, 117, 0, 0, 54, 0,1078 0, 68, 15, 0, 0, 70, 0, 0, 65, 0,1079 124, 0, 0, 0, 0, 0, 0, 125, 0, 121,1080 11, 92, 89, 99, 98, 0, 86, 57, 0, 0,1081 0, 0, 0, 69, 168, 127, 136, 132, 131, 0,1082 134, 129, 133, 88, 96, 95, 97, 0, 67, 0,1083 0, 0, 0, 94, 55, 0, 0, 0, 135, 66,1084 12, 0, 14, 0, 131085};10861087/* YYPGOTO[NTERM-NUM]. */1088static const yytype_int16 yypgoto[] =1089{1090 -157, -157, -157, 169, 57, -1, -157, -157, 148, -13,1091 -157, -39, -157, -7, -157, -96, -101, -6, -157, 18,1092 -157, -66, -114, -157, -157, -56, -156, -102, -1571093};10941095/* YYDEFGOTO[NTERM-NUM]. */1096static const yytype_uint8 yydefgoto[] =1097{1098 0, 2, 3, 33, 120, 111, 34, 35, 117, 26,1099 200, 201, 27, 28, 112, 252, 213, 29, 127, 128,1100 184, 185, 186, 224, 230, 231, 81, 82, 831101};11021103/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If1104 positive, shift that token. If negative, reduce the rule whose1105 number is the opposite. If YYTABLE_NINF, syntax error. */1106static const yytype_int16 yytable[] =1107{1108 25, 181, 1, 45, 52, 113, 41, 42, 46, 52,1109 40, 266, 259, 43, 53, 30, 80, 113, 47, 49,1110 122, 56, 113, 142, 118, 118, 114, 232, 36, 260,1111 267, 132, 121, 38, 125, 126, 37, 143, 18, 142,1112 211, 39, 144, 18, 215, 216, 44, 218, 219, 220,1113 129, 84, 130, 143, 113, 134, 177, 178, 135, 179,1114 182, 187, 183, 133, 115, 116, 205, 206, 223, 106,1115 107, 108, 198, 109, 199, 138, 115, 116, 147, 31,1116 32, 115, 116, 136, 153, 154, 155, 156, 157, 158,1117 159, 160, 161, 162, 163, 164, 165, 166, 167, 168,1118 169, 170, 171, 172, 173, 174, 175, 176, 188, 122,1119 232, 255, 139, 115, 116, 192, 196, 140, 197, 269,1120 243, 246, 244, 247, -156, -156, 145, 146, 148, 202,1121 204, 151, 149, 208, 209, 80, 152, 214, 150, 214,1122 214, 193, 214, 214, 80, 285, 180, 286, 287, 288,1123 221, 290, -156, -156, 292, 283, 284, 109, 233, 234,1124 -120, 237, 238, 240, -156, -156, 104, 105, 106, 107,1125 108, 253, 109, 254, 256, -119, 229, 222, 257, 194,1126 119, 261, 271, 262, 263, 265, 236, 268, 308, 239,1127 276, 278, 293, 302, 48, 126, 294, 4, 5, 6,1128 7, 8, 9, 123, 295, 303, 214, 277, 10, 309,1129 291, 0, 11, 0, 245, 0, 12, 13, 0, 0,1130 0, 14, 0, 15, 16, 17, 0, 264, 0, 0,1131 0, 0, 0, 270, 0, 18, 0, 0, 0, 0,1132 275, 0, 0, 0, 0, 0, 0, 19, 279, 280,1133 214, 214, 281, 282, 20, 0, 0, 21, 22, 229,1134 23, 0, 24, 0, 0, 0, 0, 0, 0, 0,1135 0, 0, 0, 0, 0, 0, 0, 297, 0, 0,1136 0, 0, -72, 50, 0, 0, 51, -72, 0, 0,1137 52, 0, -72, -72, -72, -72, -72, 0, 305, 306,1138 307, 0, -72, -72, -72, 0, 0, -72, -72, -72,1139 313, -72, 0, 0, 0, -72, -72, -72, -72, -72,1140 -72, -72, -72, 0, 18, 0, 0, -72, 0, 0,1141 -72, -72, -72, -72, -72, -72, -72, -72, -72, -72,1142 0, -72, -72, 0, -72, -72, -72, -72, -72, 189,1143 -72, 0, 4, 5, 6, 7, 8, 9, 0, 0,1144 0, 0, 0, 10, 0, 0, 0, 11, 0, 0,1145 0, 12, 13, 0, 0, 0, 14, 0, 15, 16,1146 17, 0, 0, 0, 0, 0, 0, 0, 0, 0,1147 18, 0, 0, 0, 0, 0, 0, 0, 0, 0,1148 0, 0, 19, 0, 0, 0, 0, 0, 0, 20,1149 0, 190, 21, 22, 191, 23, 54, 24, 0, 4,1150 5, 6, 7, 8, 9, 0, 0, 0, 0, 0,1151 10, 0, 0, 0, 11, 0, 0, 0, 12, 13,1152 0, 0, 0, 14, 0, 15, 16, 17, 0, 0,1153 0, 0, 0, 0, 0, 0, 0, 18, 0, 0,1154 0, 0, 0, 0, 0, 0, 0, 0, 0, 19,1155 0, 0, 0, 0, 0, 0, 20, 0, 0, 21,1156 22, 55, 23, 203, 24, 0, 4, 5, 6, 7,1157 8, 9, 0, 0, 0, 0, 0, 10, 0, 0,1158 0, 11, 0, 0, 0, 12, 13, 0, 0, 0,1159 14, 0, 15, 16, 17, 0, 0, 4, 5, 6,1160 7, 8, 9, 0, 18, 0, 0, 0, 0, 0,1161 0, 0, 0, 0, 207, 0, 19, 4, 5, 6,1162 7, 8, 9, 20, 16, 17, 21, 22, 10, 23,1163 0, 24, 11, 0, 0, 18, 12, 13, 0, 0,1164 0, 14, 0, 15, 16, 17, 0, 212, 0, 0,1165 0, 0, 0, 0, 20, 18, 0, 21, 22, 0,1166 23, 0, 24, 0, 0, 0, 0, 19, 0, 0,1167 0, 0, 0, 0, 20, 0, 57, 21, 22, 58,1168 23, 59, 24, 52, 0, 86, 87, 0, 0, 60,1169 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,1170 71, 72, 73, 74, 75, 76, 77, 78, 0, 0,1171 0, 0, 0, 97, 98, 0, 0, 18, 0, 0,1172 0, 0, 0, 0, 0, 102, 103, 104, 105, 106,1173 107, 108, 210, 109, 0, 58, 79, 59, 0, 52,1174 0, 0, 0, -155, 0, 60, 61, 62, 63, 64,1175 65, 66, 67, 68, 69, 70, 71, 72, 73, 74,1176 75, 76, 77, 78, 0, 0, 0, 4, 5, 6,1177 7, 8, 9, 18, 0, 0, 0, 0, 10, 0,1178 0, 0, 11, 0, 0, 0, 12, 13, 0, 0,1179 0, 14, 79, 15, 16, 17, 0, 0, 0, -155,1180 0, 0, 0, 0, 0, 18, 0, 0, 0, 0,1181 0, 0, 0, 0, 0, 0, 0, 19, 0, 0,1182 0, 0, 0, 124, 20, 0, 0, 21, 22, 0,1183 23, 0, 24, 4, 5, 6, 7, 8, 9, 0,1184 0, 0, 0, 0, 10, 0, 0, 0, 11, 0,1185 0, 0, 12, 13, 0, 0, 0, 14, 0, 15,1186 16, 17, 0, 0, 0, 0, 0, 0, 0, 0,1187 0, 18, 0, 0, 0, 0, 0, 0, 0, 0,1188 0, 0, 0, 19, 0, 0, 0, 0, 0, 0,1189 20, 0, 0, 21, 22, 235, 23, 0, 24, 4,1190 5, 6, 7, 8, 9, 0, 0, 0, 0, 0,1191 10, 0, 0, 0, 11, 0, 0, 0, 12, 13,1192 0, 0, 0, 14, 0, 15, 16, 17, 0, 0,1193 0, 0, 0, 0, 0, 0, 0, 18, 0, 0,1194 0, 0, 0, 0, 0, 0, 0, 0, 0, 19,1195 0, 0, 0, 0, 0, 0, 20, 0, 0, 21,1196 22, 274, 23, 0, 24, 4, 5, 6, 7, 8,1197 9, 0, 0, 0, 0, 0, 10, 0, 0, 0,1198 11, 0, 0, 0, 12, 13, 0, 0, 0, 14,1199 0, 15, 16, 17, 0, 0, 4, 5, 6, 7,1200 8, 9, 0, 18, 86, 87, 0, 0, 0, 0,1201 0, 0, 0, 0, 0, 19, 0, 0, 0, 89,1202 0, 0, 20, 16, 17, 21, 22, 0, 23, 0,1203 24, 0, 97, 98, 18, 0, 0, 0, 0, 0,1204 0, 0, 0, 0, 102, 103, 104, 105, 106, 107,1205 108, 0, 109, 20, 0, 225, 21, 22, 226, 23,1206 227, 24, 52, 0, 0, 0, 0, 0, 60, 61,1207 62, 63, 64, 65, 66, 67, 68, 69, 70, 71,1208 72, 73, 74, 75, 76, 77, 0, 0, 0, 0,1209 0, 0, 0, 0, 0, 0, 18, 85, 86, 87,1210 88, 0, 0, 0, 0, 0, 0, 0, 0, 0,1211 0, 0, 0, 89, 90, 228, 0, 0, 0, 0,1212 91, 92, 93, 94, 95, 96, 97, 98, 0, 0,1213 0, 85, 86, 87, 88, 99, 100, 101, 102, 103,1214 104, 105, 106, 107, 108, 0, 109, 89, 90, 0,1215 241, 0, 0, 242, 91, 92, 93, 94, 95, 96,1216 97, 98, 0, 0, 0, 85, 86, 87, 88, 99,1217 100, 101, 102, 103, 104, 105, 106, 107, 108, 0,1218 109, 89, 90, 0, 0, 0, 0, 141, 91, 92,1219 93, 94, 95, 96, 97, 98, 0, 0, 0, 85,1220 86, 87, 88, 99, 100, 101, 102, 103, 104, 105,1221 106, 107, 108, 0, 109, 89, 90, 0, 0, 0,1222 0, 272, 91, 92, 93, 94, 95, 96, 97, 98,1223 0, 0, 0, 85, 86, 87, 88, 99, 100, 101,1224 102, 103, 104, 105, 106, 107, 108, 0, 109, 89,1225 90, 0, 0, 0, 0, 273, 91, 92, 93, 94,1226 95, 96, 97, 98, 0, 0, 0, 85, 86, 87,1227 88, 99, 100, 101, 102, 103, 104, 105, 106, 107,1228 108, 0, 109, 89, 90, 0, 0, 0, 0, 296,1229 91, 92, 93, 94, 95, 96, 97, 98, 0, 0,1230 0, 0, 0, 0, 0, 99, 100, 101, 102, 103,1231 104, 105, 106, 107, 108, 0, 109, 311, 0, 312,1232 85, 86, 87, 88, 0, 0, 0, 0, 0, 0,1233 0, 0, 0, 0, 0, 0, 89, 90, 0, 0,1234 0, 0, 0, 91, 92, 93, 94, 95, 96, 97,1235 98, 0, 0, 0, 85, 86, 87, 88, 99, 100,1236 101, 102, 103, 104, 105, 106, 107, 108, 0, 109,1237 89, 90, 137, 0, 0, 0, 0, 91, 92, 93,1238 94, 95, 96, 97, 98, 0, 0, 0, 85, 86,1239 87, 88, 99, 100, 101, 102, 103, 104, 105, 106,1240 107, 108, 0, 109, 89, 90, 217, 0, 0, 0,1241 0, 91, 92, 93, 94, 95, 96, 97, 98, 0,1242 0, 0, 85, 86, 87, 88, 99, 100, 101, 102,1243 103, 104, 105, 106, 107, 108, 0, 109, 89, 90,1244 289, 0, 0, 0, 0, 91, 92, 93, 94, 95,1245 96, 97, 98, 0, 0, 0, 85, 86, 87, 88,1246 99, 100, 101, 102, 103, 104, 105, 106, 107, 108,1247 0, 109, 89, 90, 310, 0, 0, 0, 0, 91,1248 92, 93, 94, 95, 96, 97, 98, 0, 0, 0,1249 85, 86, 87, 88, 99, 100, 101, 102, 103, 104,1250 105, 106, 107, 108, 0, 109, 89, 90, 314, 0,1251 0, 0, 0, 91, 92, 93, 94, 95, 96, 97,1252 98, 0, 0, 0, 0, 0, 0, 0, 99, 100,1253 101, 102, 103, 104, 105, 106, 107, 108, 0, 109,1254 110, 85, 86, 87, 88, 0, 0, 0, 0, 0,1255 0, 0, 0, 0, 0, 0, 0, 89, 90, 0,1256 0, 0, 0, 0, 91, 92, 93, 94, 95, 96,1257 97, 98, 0, 0, 0, 0, 0, 0, 0, 99,1258 100, 101, 102, 103, 104, 105, 106, 107, 108, 0,1259 109, 195, 85, 86, 87, 88, 0, 0, 0, 0,1260 0, 0, 0, 0, 0, 0, 0, 0, 89, 90,1261 0, 0, 0, 0, 0, 91, 92, 93, 94, 95,1262 96, 97, 98, 0, 0, 0, 0, 0, 0, 0,1263 99, 100, 101, 102, 103, 104, 105, 106, 107, 108,1264 0, 109, 248, 85, 86, 87, 88, 0, 0, 0,1265 0, 0, 0, 0, 0, 0, 0, 0, 0, 89,1266 90, 0, 0, 0, 0, 0, 91, 92, 93, 94,1267 95, 96, 97, 98, 0, 0, 0, 0, 0, 0,1268 0, 99, 100, 101, 102, 103, 104, 105, 106, 107,1269 108, 0, 109, 300, 85, 86, 87, 88, 0, 0,1270 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1271 89, 90, 0, 0, 0, 0, 0, 91, 92, 93,1272 94, 95, 96, 97, 98, 0, 0, 0, 0, 0,1273 0, 0, 99, 100, 101, 102, 103, 104, 105, 106,1274 107, 108, 0, 109, 301, 85, 86, 87, 88, 0,1275 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,1276 0, 89, 90, 0, 0, 0, 0, 0, 91, 92,1277 93, 94, 95, 96, 97, 98, 0, 0, 0, 0,1278 0, 0, 0, 99, 100, 101, 102, 103, 104, 105,1279 106, 107, 108, 0, 109, 304, 85, 86, 87, 88,1280 0, 0, 0, 0, 0, 0, 0, 249, 250, 0,1281 0, 251, 89, 90, 0, 0, 0, 0, 0, 91,1282 92, 93, 94, 95, 96, 97, 98, 0, 0, 0,1283 0, 0, 0, 0, 99, 100, 101, 102, 103, 104,1284 105, 106, 107, 108, 0, 109, 85, 86, 87, 88,1285 0, 0, 0, 0, 0, 0, 131, 0, 0, 0,1286 0, 0, 89, 90, 0, 0, 0, 0, 0, 91,1287 92, 93, 94, 95, 96, 97, 98, 0, 0, 0,1288 85, 86, 87, 88, 99, 100, 101, 102, 103, 104,1289 105, 106, 107, 108, 0, 109, 89, 90, 0, 0,1290 0, 0, 0, 91, 92, 93, 94, 95, 96, 97,1291 98, 0, 0, 0, 0, 258, 0, 0, 99, 100,1292 101, 102, 103, 104, 105, 106, 107, 108, 0, 109,1293 85, 86, 87, 88, 0, 0, 0, 0, 0, 0,1294 0, 0, 0, 0, 0, 298, 89, 90, 0, 0,1295 0, 0, 0, 91, 92, 93, 94, 95, 96, 97,1296 98, 0, 0, 0, 0, 0, 0, 0, 99, 100,1297 101, 102, 103, 104, 105, 106, 107, 108, 0, 109,1298 85, 86, 87, 88, 0, 0, 0, 0, 0, 0,1299 299, 0, 0, 0, 0, 0, 89, 90, 0, 0,1300 0, 0, 0, 91, 92, 93, 94, 95, 96, 97,1301 98, 0, 0, 0, 85, 86, 87, 88, 99, 100,1302 101, 102, 103, 104, 105, 106, 107, 108, 0, 109,1303 89, 90, 0, 0, 0, 0, 0, 91, 92, 93,1304 94, 95, 96, 97, 98, 0, 0, 0, 85, 86,1305 87, 88, 99, 100, 101, 102, 103, 104, 105, 106,1306 107, 108, 0, 109, 89, 90, 0, 0, 0, 0,1307 0, 91, 92, 93, 94, 95, 96, 97, 98, 0,1308 0, 0, -156, 86, 87, 0, 0, 0, 101, 102,1309 103, 104, 105, 106, 107, 108, 0, 109, 89, 90,1310 0, 0, 0, 0, 0, -156, -156, -156, -156, -156,1311 -156, 97, 98, 0, 0, 0, 0, 0, 0, 0,1312 0, 0, -156, 102, 103, 104, 105, 106, 107, 108,1313 0, 1091314};13151316static const yytype_int16 yycheck[] =1317{1318 1, 6, 16, 1, 8, 5, 12, 13, 6, 8,1319 11, 49, 49, 14, 21, 0, 23, 5, 19, 20,1320 33, 22, 5, 49, 31, 32, 14, 183, 61, 66,1321 68, 14, 33, 42, 35, 36, 59, 63, 42, 49,1322 142, 4, 68, 42, 145, 146, 6, 148, 149, 151,1323 61, 69, 63, 63, 5, 29, 43, 44, 48, 46,1324 65, 65, 67, 14, 64, 65, 132, 133, 182, 55,1325 56, 57, 4, 59, 6, 1, 64, 65, 79, 17,1326 18, 64, 65, 62, 85, 86, 87, 88, 89, 90,1327 91, 92, 93, 94, 95, 96, 97, 98, 99, 100,1328 101, 102, 103, 104, 105, 106, 107, 108, 115, 122,1329 266, 212, 59, 64, 65, 116, 60, 66, 62, 233,1330 4, 60, 6, 62, 11, 12, 63, 63, 63, 130,1331 131, 49, 63, 134, 135, 142, 69, 143, 68, 145,1332 146, 14, 148, 149, 151, 259, 59, 261, 262, 263,1333 6, 265, 39, 40, 268, 256, 257, 59, 41, 48,1334 41, 59, 66, 59, 51, 52, 53, 54, 55, 56,1335 57, 61, 59, 61, 48, 41, 183, 178, 63, 122,1336 32, 63, 59, 63, 63, 63, 187, 63, 302, 190,1337 59, 63, 59, 63, 1, 196, 59, 4, 5, 6,1338 7, 8, 9, 34, 59, 59, 212, 246, 15, 305,1339 266, -1, 19, -1, 196, -1, 23, 24, -1, -1,1340 -1, 28, -1, 30, 31, 32, -1, 228, -1, -1,1341 -1, -1, -1, 234, -1, 42, -1, -1, -1, -1,1342 241, -1, -1, -1, -1, -1, -1, 54, 249, 250,1343 256, 257, 253, 254, 61, -1, -1, 64, 65, 266,1344 67, -1, 69, -1, -1, -1, -1, -1, -1, -1,1345 -1, -1, -1, -1, -1, -1, -1, 278, -1, -1,1346 -1, -1, 0, 1, -1, -1, 4, 5, -1, -1,1347 8, -1, 10, 11, 12, 13, 14, -1, 299, 300,1348 301, -1, 20, 21, 22, -1, -1, 25, 26, 27,1349 311, 29, -1, -1, -1, 33, 34, 35, 36, 37,1350 38, 39, 40, -1, 42, -1, -1, 45, -1, -1,1351 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,1352 -1, 59, 60, -1, 62, 63, 64, 65, 66, 1,1353 68, -1, 4, 5, 6, 7, 8, 9, -1, -1,1354 -1, -1, -1, 15, -1, -1, -1, 19, -1, -1,1355 -1, 23, 24, -1, -1, -1, 28, -1, 30, 31,1356 32, -1, -1, -1, -1, -1, -1, -1, -1, -1,1357 42, -1, -1, -1, -1, -1, -1, -1, -1, -1,1358 -1, -1, 54, -1, -1, -1, -1, -1, -1, 61,1359 -1, 63, 64, 65, 66, 67, 1, 69, -1, 4,1360 5, 6, 7, 8, 9, -1, -1, -1, -1, -1,1361 15, -1, -1, -1, 19, -1, -1, -1, 23, 24,1362 -1, -1, -1, 28, -1, 30, 31, 32, -1, -1,1363 -1, -1, -1, -1, -1, -1, -1, 42, -1, -1,1364 -1, -1, -1, -1, -1, -1, -1, -1, -1, 54,1365 -1, -1, -1, -1, -1, -1, 61, -1, -1, 64,1366 65, 66, 67, 1, 69, -1, 4, 5, 6, 7,1367 8, 9, -1, -1, -1, -1, -1, 15, -1, -1,1368 -1, 19, -1, -1, -1, 23, 24, -1, -1, -1,1369 28, -1, 30, 31, 32, -1, -1, 4, 5, 6,1370 7, 8, 9, -1, 42, -1, -1, -1, -1, -1,1371 -1, -1, -1, -1, 1, -1, 54, 4, 5, 6,1372 7, 8, 9, 61, 31, 32, 64, 65, 15, 67,1373 -1, 69, 19, -1, -1, 42, 23, 24, -1, -1,1374 -1, 28, -1, 30, 31, 32, -1, 54, -1, -1,1375 -1, -1, -1, -1, 61, 42, -1, 64, 65, -1,1376 67, -1, 69, -1, -1, -1, -1, 54, -1, -1,1377 -1, -1, -1, -1, 61, -1, 1, 64, 65, 4,1378 67, 6, 69, 8, -1, 11, 12, -1, -1, 14,1379 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,1380 25, 26, 27, 28, 29, 30, 31, 32, -1, -1,1381 -1, -1, -1, 39, 40, -1, -1, 42, -1, -1,1382 -1, -1, -1, -1, -1, 51, 52, 53, 54, 55,1383 56, 57, 1, 59, -1, 4, 61, 6, -1, 8,1384 -1, -1, -1, 68, -1, 14, 15, 16, 17, 18,1385 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,1386 29, 30, 31, 32, -1, -1, -1, 4, 5, 6,1387 7, 8, 9, 42, -1, -1, -1, -1, 15, -1,1388 -1, -1, 19, -1, -1, -1, 23, 24, -1, -1,1389 -1, 28, 61, 30, 31, 32, -1, -1, -1, 68,1390 -1, -1, -1, -1, -1, 42, -1, -1, -1, -1,1391 -1, -1, -1, -1, -1, -1, -1, 54, -1, -1,1392 -1, -1, -1, 60, 61, -1, -1, 64, 65, -1,1393 67, -1, 69, 4, 5, 6, 7, 8, 9, -1,1394 -1, -1, -1, -1, 15, -1, -1, -1, 19, -1,1395 -1, -1, 23, 24, -1, -1, -1, 28, -1, 30,1396 31, 32, -1, -1, -1, -1, -1, -1, -1, -1,1397 -1, 42, -1, -1, -1, -1, -1, -1, -1, -1,1398 -1, -1, -1, 54, -1, -1, -1, -1, -1, -1,1399 61, -1, -1, 64, 65, 66, 67, -1, 69, 4,1400 5, 6, 7, 8, 9, -1, -1, -1, -1, -1,1401 15, -1, -1, -1, 19, -1, -1, -1, 23, 24,1402 -1, -1, -1, 28, -1, 30, 31, 32, -1, -1,1403 -1, -1, -1, -1, -1, -1, -1, 42, -1, -1,1404 -1, -1, -1, -1, -1, -1, -1, -1, -1, 54,1405 -1, -1, -1, -1, -1, -1, 61, -1, -1, 64,1406 65, 66, 67, -1, 69, 4, 5, 6, 7, 8,1407 9, -1, -1, -1, -1, -1, 15, -1, -1, -1,1408 19, -1, -1, -1, 23, 24, -1, -1, -1, 28,1409 -1, 30, 31, 32, -1, -1, 4, 5, 6, 7,1410 8, 9, -1, 42, 11, 12, -1, -1, -1, -1,1411 -1, -1, -1, -1, -1, 54, -1, -1, -1, 26,1412 -1, -1, 61, 31, 32, 64, 65, -1, 67, -1,1413 69, -1, 39, 40, 42, -1, -1, -1, -1, -1,1414 -1, -1, -1, -1, 51, 52, 53, 54, 55, 56,1415 57, -1, 59, 61, -1, 1, 64, 65, 4, 67,1416 6, 69, 8, -1, -1, -1, -1, -1, 14, 15,1417 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,1418 26, 27, 28, 29, 30, 31, -1, -1, -1, -1,1419 -1, -1, -1, -1, -1, -1, 42, 10, 11, 12,1420 13, -1, -1, -1, -1, -1, -1, -1, -1, -1,1421 -1, -1, -1, 26, 27, 61, -1, -1, -1, -1,1422 33, 34, 35, 36, 37, 38, 39, 40, -1, -1,1423 -1, 10, 11, 12, 13, 48, 49, 50, 51, 52,1424 53, 54, 55, 56, 57, -1, 59, 26, 27, -1,1425 63, -1, -1, 66, 33, 34, 35, 36, 37, 38,1426 39, 40, -1, -1, -1, 10, 11, 12, 13, 48,1427 49, 50, 51, 52, 53, 54, 55, 56, 57, -1,1428 59, 26, 27, -1, -1, -1, -1, 66, 33, 34,1429 35, 36, 37, 38, 39, 40, -1, -1, -1, 10,1430 11, 12, 13, 48, 49, 50, 51, 52, 53, 54,1431 55, 56, 57, -1, 59, 26, 27, -1, -1, -1,1432 -1, 66, 33, 34, 35, 36, 37, 38, 39, 40,1433 -1, -1, -1, 10, 11, 12, 13, 48, 49, 50,1434 51, 52, 53, 54, 55, 56, 57, -1, 59, 26,1435 27, -1, -1, -1, -1, 66, 33, 34, 35, 36,1436 37, 38, 39, 40, -1, -1, -1, 10, 11, 12,1437 13, 48, 49, 50, 51, 52, 53, 54, 55, 56,1438 57, -1, 59, 26, 27, -1, -1, -1, -1, 66,1439 33, 34, 35, 36, 37, 38, 39, 40, -1, -1,1440 -1, -1, -1, -1, -1, 48, 49, 50, 51, 52,1441 53, 54, 55, 56, 57, -1, 59, 60, -1, 62,1442 10, 11, 12, 13, -1, -1, -1, -1, -1, -1,1443 -1, -1, -1, -1, -1, -1, 26, 27, -1, -1,1444 -1, -1, -1, 33, 34, 35, 36, 37, 38, 39,1445 40, -1, -1, -1, 10, 11, 12, 13, 48, 49,1446 50, 51, 52, 53, 54, 55, 56, 57, -1, 59,1447 26, 27, 62, -1, -1, -1, -1, 33, 34, 35,1448 36, 37, 38, 39, 40, -1, -1, -1, 10, 11,1449 12, 13, 48, 49, 50, 51, 52, 53, 54, 55,1450 56, 57, -1, 59, 26, 27, 62, -1, -1, -1,1451 -1, 33, 34, 35, 36, 37, 38, 39, 40, -1,1452 -1, -1, 10, 11, 12, 13, 48, 49, 50, 51,1453 52, 53, 54, 55, 56, 57, -1, 59, 26, 27,1454 62, -1, -1, -1, -1, 33, 34, 35, 36, 37,1455 38, 39, 40, -1, -1, -1, 10, 11, 12, 13,1456 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,1457 -1, 59, 26, 27, 62, -1, -1, -1, -1, 33,1458 34, 35, 36, 37, 38, 39, 40, -1, -1, -1,1459 10, 11, 12, 13, 48, 49, 50, 51, 52, 53,1460 54, 55, 56, 57, -1, 59, 26, 27, 62, -1,1461 -1, -1, -1, 33, 34, 35, 36, 37, 38, 39,1462 40, -1, -1, -1, -1, -1, -1, -1, 48, 49,1463 50, 51, 52, 53, 54, 55, 56, 57, -1, 59,1464 60, 10, 11, 12, 13, -1, -1, -1, -1, -1,1465 -1, -1, -1, -1, -1, -1, -1, 26, 27, -1,1466 -1, -1, -1, -1, 33, 34, 35, 36, 37, 38,1467 39, 40, -1, -1, -1, -1, -1, -1, -1, 48,1468 49, 50, 51, 52, 53, 54, 55, 56, 57, -1,1469 59, 60, 10, 11, 12, 13, -1, -1, -1, -1,1470 -1, -1, -1, -1, -1, -1, -1, -1, 26, 27,1471 -1, -1, -1, -1, -1, 33, 34, 35, 36, 37,1472 38, 39, 40, -1, -1, -1, -1, -1, -1, -1,1473 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,1474 -1, 59, 60, 10, 11, 12, 13, -1, -1, -1,1475 -1, -1, -1, -1, -1, -1, -1, -1, -1, 26,1476 27, -1, -1, -1, -1, -1, 33, 34, 35, 36,1477 37, 38, 39, 40, -1, -1, -1, -1, -1, -1,1478 -1, 48, 49, 50, 51, 52, 53, 54, 55, 56,1479 57, -1, 59, 60, 10, 11, 12, 13, -1, -1,1480 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,1481 26, 27, -1, -1, -1, -1, -1, 33, 34, 35,1482 36, 37, 38, 39, 40, -1, -1, -1, -1, -1,1483 -1, -1, 48, 49, 50, 51, 52, 53, 54, 55,1484 56, 57, -1, 59, 60, 10, 11, 12, 13, -1,1485 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,1486 -1, 26, 27, -1, -1, -1, -1, -1, 33, 34,1487 35, 36, 37, 38, 39, 40, -1, -1, -1, -1,1488 -1, -1, -1, 48, 49, 50, 51, 52, 53, 54,1489 55, 56, 57, -1, 59, 60, 10, 11, 12, 13,1490 -1, -1, -1, -1, -1, -1, -1, 21, 22, -1,1491 -1, 25, 26, 27, -1, -1, -1, -1, -1, 33,1492 34, 35, 36, 37, 38, 39, 40, -1, -1, -1,1493 -1, -1, -1, -1, 48, 49, 50, 51, 52, 53,1494 54, 55, 56, 57, -1, 59, 10, 11, 12, 13,1495 -1, -1, -1, -1, -1, -1, 20, -1, -1, -1,1496 -1, -1, 26, 27, -1, -1, -1, -1, -1, 33,1497 34, 35, 36, 37, 38, 39, 40, -1, -1, -1,1498 10, 11, 12, 13, 48, 49, 50, 51, 52, 53,1499 54, 55, 56, 57, -1, 59, 26, 27, -1, -1,1500 -1, -1, -1, 33, 34, 35, 36, 37, 38, 39,1501 40, -1, -1, -1, -1, 45, -1, -1, 48, 49,1502 50, 51, 52, 53, 54, 55, 56, 57, -1, 59,1503 10, 11, 12, 13, -1, -1, -1, -1, -1, -1,1504 -1, -1, -1, -1, -1, 25, 26, 27, -1, -1,1505 -1, -1, -1, 33, 34, 35, 36, 37, 38, 39,1506 40, -1, -1, -1, -1, -1, -1, -1, 48, 49,1507 50, 51, 52, 53, 54, 55, 56, 57, -1, 59,1508 10, 11, 12, 13, -1, -1, -1, -1, -1, -1,1509 20, -1, -1, -1, -1, -1, 26, 27, -1, -1,1510 -1, -1, -1, 33, 34, 35, 36, 37, 38, 39,1511 40, -1, -1, -1, 10, 11, 12, 13, 48, 49,1512 50, 51, 52, 53, 54, 55, 56, 57, -1, 59,1513 26, 27, -1, -1, -1, -1, -1, 33, 34, 35,1514 36, 37, 38, 39, 40, -1, -1, -1, 10, 11,1515 12, 13, 48, 49, 50, 51, 52, 53, 54, 55,1516 56, 57, -1, 59, 26, 27, -1, -1, -1, -1,1517 -1, 33, 34, 35, 36, 37, 38, 39, 40, -1,1518 -1, -1, 10, 11, 12, -1, -1, -1, 50, 51,1519 52, 53, 54, 55, 56, 57, -1, 59, 26, 27,1520 -1, -1, -1, -1, -1, 33, 34, 35, 36, 37,1521 38, 39, 40, -1, -1, -1, -1, -1, -1, -1,1522 -1, -1, 50, 51, 52, 53, 54, 55, 56, 57,1523 -1, 591524};15251526/* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of1527 state STATE-NUM. */1528static const yytype_int8 yystos[] =1529{1530 0, 16, 71, 72, 4, 5, 6, 7, 8, 9,1531 15, 19, 23, 24, 28, 30, 31, 32, 42, 54,1532 61, 64, 65, 67, 69, 75, 79, 82, 83, 87,1533 0, 17, 18, 73, 76, 77, 61, 59, 42, 4,1534 75, 87, 87, 75, 6, 1, 6, 75, 1, 75,1535 1, 4, 8, 83, 1, 66, 75, 1, 4, 6,1536 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,1537 24, 25, 26, 27, 28, 29, 30, 31, 32, 61,1538 83, 96, 97, 98, 69, 10, 11, 12, 13, 26,1539 27, 33, 34, 35, 36, 37, 38, 39, 40, 48,1540 49, 50, 51, 52, 53, 54, 55, 56, 57, 59,1541 60, 75, 84, 5, 14, 64, 65, 78, 83, 78,1542 74, 75, 79, 73, 60, 75, 75, 88, 89, 61,1543 63, 20, 14, 14, 29, 48, 62, 62, 1, 59,1544 66, 66, 49, 63, 68, 63, 63, 75, 63, 63,1545 68, 49, 69, 75, 75, 75, 75, 75, 75, 75,1546 75, 75, 75, 75, 75, 75, 75, 75, 75, 75,1547 75, 75, 75, 75, 75, 75, 75, 43, 44, 46,1548 59, 6, 65, 67, 90, 91, 92, 65, 83, 1,1549 63, 66, 75, 14, 74, 60, 60, 62, 4, 6,1550 80, 81, 75, 1, 75, 91, 91, 1, 75, 75,1551 1, 97, 54, 86, 87, 86, 86, 62, 86, 86,1552 97, 6, 75, 92, 93, 1, 4, 6, 61, 83,1553 94, 95, 96, 41, 48, 66, 75, 59, 66, 75,1554 59, 63, 66, 4, 6, 89, 60, 62, 60, 21,1555 22, 25, 85, 61, 61, 86, 48, 63, 45, 49,1556 66, 63, 63, 63, 75, 63, 49, 68, 63, 92,1557 75, 59, 66, 66, 66, 75, 59, 81, 63, 75,1558 75, 75, 75, 86, 86, 92, 92, 92, 92, 62,1559 92, 95, 92, 59, 59, 59, 66, 75, 25, 20,1560 60, 60, 63, 59, 60, 75, 75, 75, 92, 85,1561 62, 60, 62, 75, 621562};15631564/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM. */1565static const yytype_int8 yyr1[] =1566{1567 0, 70, 71, 71, 72, 72, 73, 73, 74, 74,1568 75, 75, 75, 75, 75, 75, 75, 75, 75, 75,1569 75, 75, 75, 75, 75, 75, 75, 75, 75, 75,1570 75, 75, 75, 75, 75, 75, 75, 75, 75, 75,1571 75, 75, 75, 75, 75, 75, 75, 75, 76, 76,1572 77, 77, 77, 78, 79, 79, 80, 80, 81, 81,1573 82, 82, 83, 84, 84, 84, 85, 85, 85, 86,1574 86, 86, 87, 87, 87, 87, 87, 87, 87, 87,1575 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,1576 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,1577 87, 87, 87, 87, 87, 87, 87, 87, 87, 87,1578 87, 87, 87, 87, 87, 87, 88, 88, 89, 90,1579 90, 91, 91, 92, 92, 92, 93, 93, 94, 94,1580 95, 95, 95, 95, 95, 95, 95, 96, 96, 96,1581 96, 96, 96, 96, 96, 96, 96, 96, 96, 96,1582 96, 96, 96, 96, 96, 97, 97, 97, 97, 98,1583 98, 98, 98, 98, 98, 98, 98, 98, 98, 981584};15851586/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM. */1587static const yytype_int8 yyr2[] =1588{1589 0, 2, 3, 3, 0, 3, 0, 2, 0, 2,1590 2, 5, 9, 11, 9, 5, 4, 4, 2, 4,1591 4, 2, 3, 3, 3, 3, 3, 3, 3, 3,1592 3, 3, 2, 3, 3, 3, 3, 3, 3, 3,1593 3, 3, 3, 3, 3, 3, 3, 1, 2, 3,1594 4, 4, 2, 1, 5, 8, 1, 3, 1, 1,1595 2, 1, 3, 0, 2, 4, 5, 3, 1, 3,1596 2, 1, 1, 1, 2, 2, 3, 2, 4, 3,1597 2, 1, 3, 2, 2, 3, 5, 4, 6, 5,1598 4, 3, 5, 4, 7, 6, 6, 6, 5, 5,1599 1, 1, 1, 3, 3, 2, 3, 4, 1, 1,1600 1, 4, 3, 3, 4, 3, 1, 3, 1, 3,1601 1, 3, 1, 1, 3, 3, 1, 3, 1, 3,1602 1, 3, 3, 3, 3, 5, 3, 1, 1, 1,1603 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,1604 1, 1, 1, 1, 1, 0, 1, 3, 3, 3,1605 3, 3, 1, 3, 1, 1, 1, 1, 5, 31606};160716081609enum { YYENOMEM = -2 };16101611#define yyerrok (yyerrstatus = 0)1612#define yyclearin (yychar = YYEMPTY)16131614#define YYACCEPT goto yyacceptlab1615#define YYABORT goto yyabortlab1616#define YYERROR goto yyerrorlab1617#define YYNOMEM goto yyexhaustedlab161816191620#define YYRECOVERING() (!!yyerrstatus)16211622#define YYBACKUP(Token, Value) \1623 do \1624 if (yychar == YYEMPTY) \1625 { \1626 yychar = (Token); \1627 yylval = (Value); \1628 YYPOPSTACK (yylen); \1629 yystate = *yyssp; \1630 goto yybackup; \1631 } \1632 else \1633 { \1634 yyerror (&yylloc, answer, errors, locations, lexer_param_ptr, YY_("syntax error: cannot back up")); \1635 YYERROR; \1636 } \1637 while (0)16381639/* Backward compatibility with an undocumented macro.1640 Use YYerror or YYUNDEF. */1641#define YYERRCODE YYUNDEF16421643/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].1644 If N is 0, then set CURRENT to the empty location which ends1645 the previous symbol: RHS[0] (always defined). */16461647#ifndef YYLLOC_DEFAULT1648# define YYLLOC_DEFAULT(Current, Rhs, N) \1649 do \1650 if (N) \1651 { \1652 (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \1653 (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \1654 (Current).last_line = YYRHSLOC (Rhs, N).last_line; \1655 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \1656 } \1657 else \1658 { \1659 (Current).first_line = (Current).last_line = \1660 YYRHSLOC (Rhs, 0).last_line; \1661 (Current).first_column = (Current).last_column = \1662 YYRHSLOC (Rhs, 0).last_column; \1663 } \1664 while (0)1665#endif16661667#define YYRHSLOC(Rhs, K) ((Rhs)[K])166816691670/* Enable debugging if requested. */1671#if YYDEBUG16721673# ifndef YYFPRINTF1674# include <stdio.h> /* INFRINGES ON USER NAME SPACE */1675# define YYFPRINTF fprintf1676# endif16771678# define YYDPRINTF(Args) \1679do { \1680 if (yydebug) \1681 YYFPRINTF Args; \1682} while (0)168316841685/* YYLOCATION_PRINT -- Print the location on the stream.1686 This macro was not mandated originally: define only if we know1687 we won't break user code: when these are the locations we know. */16881689# ifndef YYLOCATION_PRINT16901691# if defined YY_LOCATION_PRINT16921693 /* Temporary convenience wrapper in case some people defined the1694 undocumented and private YY_LOCATION_PRINT macros. */1695# define YYLOCATION_PRINT(File, Loc) YY_LOCATION_PRINT(File, *(Loc))16961697# elif defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL16981699/* Print *YYLOCP on YYO. Private, do not rely on its existence. */17001701YY_ATTRIBUTE_UNUSED1702static int1703yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)1704{1705 int res = 0;1706 int end_col = 0 != yylocp->last_column ? yylocp->last_column - 1 : 0;1707 if (0 <= yylocp->first_line)1708 {1709 res += YYFPRINTF (yyo, "%d", yylocp->first_line);1710 if (0 <= yylocp->first_column)1711 res += YYFPRINTF (yyo, ".%d", yylocp->first_column);1712 }1713 if (0 <= yylocp->last_line)1714 {1715 if (yylocp->first_line < yylocp->last_line)1716 {1717 res += YYFPRINTF (yyo, "-%d", yylocp->last_line);1718 if (0 <= end_col)1719 res += YYFPRINTF (yyo, ".%d", end_col);1720 }1721 else if (0 <= end_col && yylocp->first_column < end_col)1722 res += YYFPRINTF (yyo, "-%d", end_col);1723 }1724 return res;1725}17261727# define YYLOCATION_PRINT yy_location_print_17281729 /* Temporary convenience wrapper in case some people defined the1730 undocumented and private YY_LOCATION_PRINT macros. */1731# define YY_LOCATION_PRINT(File, Loc) YYLOCATION_PRINT(File, &(Loc))17321733# else17341735# define YYLOCATION_PRINT(File, Loc) ((void) 0)1736 /* Temporary convenience wrapper in case some people defined the1737 undocumented and private YY_LOCATION_PRINT macros. */1738# define YY_LOCATION_PRINT YYLOCATION_PRINT17391740# endif1741# endif /* !defined YYLOCATION_PRINT */174217431744# define YY_SYMBOL_PRINT(Title, Kind, Value, Location) \1745do { \1746 if (yydebug) \1747 { \1748 YYFPRINTF (stderr, "%s ", Title); \1749 yy_symbol_print (stderr, \1750 Kind, Value, Location, answer, errors, locations, lexer_param_ptr); \1751 YYFPRINTF (stderr, "\n"); \1752 } \1753} while (0)175417551756/*-----------------------------------.1757| Print this symbol's value on YYO. |1758`-----------------------------------*/17591760static void1761yy_symbol_value_print (FILE *yyo,1762 yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, block* answer, int* errors, struct locfile* locations, struct lexer_param* lexer_param_ptr)1763{1764 FILE *yyoutput = yyo;1765 YY_USE (yyoutput);1766 YY_USE (yylocationp);1767 YY_USE (answer);1768 YY_USE (errors);1769 YY_USE (locations);1770 YY_USE (lexer_param_ptr);1771 if (!yyvaluep)1772 return;1773 YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN1774 YY_USE (yykind);1775 YY_IGNORE_MAYBE_UNINITIALIZED_END1776}177717781779/*---------------------------.1780| Print this symbol on YYO. |1781`---------------------------*/17821783static void1784yy_symbol_print (FILE *yyo,1785 yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, block* answer, int* errors, struct locfile* locations, struct lexer_param* lexer_param_ptr)1786{1787 YYFPRINTF (yyo, "%s %s (",1788 yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));17891790 YYLOCATION_PRINT (yyo, yylocationp);1791 YYFPRINTF (yyo, ": ");1792 yy_symbol_value_print (yyo, yykind, yyvaluep, yylocationp, answer, errors, locations, lexer_param_ptr);1793 YYFPRINTF (yyo, ")");1794}17951796/*------------------------------------------------------------------.1797| yy_stack_print -- Print the state stack from its BOTTOM up to its |1798| TOP (included). |1799`------------------------------------------------------------------*/18001801static void1802yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)1803{1804 YYFPRINTF (stderr, "Stack now");1805 for (; yybottom <= yytop; yybottom++)1806 {1807 int yybot = *yybottom;1808 YYFPRINTF (stderr, " %d", yybot);1809 }1810 YYFPRINTF (stderr, "\n");1811}18121813# define YY_STACK_PRINT(Bottom, Top) \1814do { \1815 if (yydebug) \1816 yy_stack_print ((Bottom), (Top)); \1817} while (0)181818191820/*------------------------------------------------.1821| Report that the YYRULE is going to be reduced. |1822`------------------------------------------------*/18231824static void1825yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp, YYLTYPE *yylsp,1826 int yyrule, block* answer, int* errors, struct locfile* locations, struct lexer_param* lexer_param_ptr)1827{1828 int yylno = yyrline[yyrule];1829 int yynrhs = yyr2[yyrule];1830 int yyi;1831 YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",1832 yyrule - 1, yylno);1833 /* The symbols being reduced. */1834 for (yyi = 0; yyi < yynrhs; yyi++)1835 {1836 YYFPRINTF (stderr, " $%d = ", yyi + 1);1837 yy_symbol_print (stderr,1838 YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),1839 &yyvsp[(yyi + 1) - (yynrhs)],1840 &(yylsp[(yyi + 1) - (yynrhs)]), answer, errors, locations, lexer_param_ptr);1841 YYFPRINTF (stderr, "\n");1842 }1843}18441845# define YY_REDUCE_PRINT(Rule) \1846do { \1847 if (yydebug) \1848 yy_reduce_print (yyssp, yyvsp, yylsp, Rule, answer, errors, locations, lexer_param_ptr); \1849} while (0)18501851/* Nonzero means print parse trace. It is left uninitialized so that1852 multiple parsers can coexist. */1853int yydebug;1854#else /* !YYDEBUG */1855# define YYDPRINTF(Args) ((void) 0)1856# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)1857# define YY_STACK_PRINT(Bottom, Top)1858# define YY_REDUCE_PRINT(Rule)1859#endif /* !YYDEBUG */186018611862/* YYINITDEPTH -- initial size of the parser's stacks. */1863#ifndef YYINITDEPTH1864# define YYINITDEPTH 2001865#endif18661867/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only1868 if the built-in stack extension method is used).18691870 Do not make this value too large; the results are undefined if1871 YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)1872 evaluated with infinite-precision integer arithmetic. */18731874#ifndef YYMAXDEPTH1875# define YYMAXDEPTH 100001876#endif187718781879/* Context of a parse error. */1880typedef struct1881{1882 yy_state_t *yyssp;1883 yysymbol_kind_t yytoken;1884 YYLTYPE *yylloc;1885} yypcontext_t;18861887/* Put in YYARG at most YYARGN of the expected tokens given the1888 current YYCTX, and return the number of tokens stored in YYARG. If1889 YYARG is null, return the number of expected tokens (guaranteed to1890 be less than YYNTOKENS). Return YYENOMEM on memory exhaustion.1891 Return 0 if there are more than YYARGN expected tokens, yet fill1892 YYARG up to YYARGN. */1893static int1894yypcontext_expected_tokens (const yypcontext_t *yyctx,1895 yysymbol_kind_t yyarg[], int yyargn)1896{1897 /* Actual size of YYARG. */1898 int yycount = 0;1899 int yyn = yypact[+*yyctx->yyssp];1900 if (!yypact_value_is_default (yyn))1901 {1902 /* Start YYX at -YYN if negative to avoid negative indexes in1903 YYCHECK. In other words, skip the first -YYN actions for1904 this state because they are default actions. */1905 int yyxbegin = yyn < 0 ? -yyn : 0;1906 /* Stay within bounds of both yycheck and yytname. */1907 int yychecklim = YYLAST - yyn + 1;1908 int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;1909 int yyx;1910 for (yyx = yyxbegin; yyx < yyxend; ++yyx)1911 if (yycheck[yyx + yyn] == yyx && yyx != YYSYMBOL_YYerror1912 && !yytable_value_is_error (yytable[yyx + yyn]))1913 {1914 if (!yyarg)1915 ++yycount;1916 else if (yycount == yyargn)1917 return 0;1918 else1919 yyarg[yycount++] = YY_CAST (yysymbol_kind_t, yyx);1920 }1921 }1922 if (yyarg && yycount == 0 && 0 < yyargn)1923 yyarg[0] = YYSYMBOL_YYEMPTY;1924 return yycount;1925}19261927192819291930#ifndef yystrlen1931# if defined __GLIBC__ && defined _STRING_H1932# define yystrlen(S) (YY_CAST (YYPTRDIFF_T, strlen (S)))1933# else1934/* Return the length of YYSTR. */1935static YYPTRDIFF_T1936yystrlen (const char *yystr)1937{1938 YYPTRDIFF_T yylen;1939 for (yylen = 0; yystr[yylen]; yylen++)1940 continue;1941 return yylen;1942}1943# endif1944#endif19451946#ifndef yystpcpy1947# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE1948# define yystpcpy stpcpy1949# else1950/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in1951 YYDEST. */1952static char *1953yystpcpy (char *yydest, const char *yysrc)1954{1955 char *yyd = yydest;1956 const char *yys = yysrc;19571958 while ((*yyd++ = *yys++) != '\0')1959 continue;19601961 return yyd - 1;1962}1963# endif1964#endif19651966#ifndef yytnamerr1967/* Copy to YYRES the contents of YYSTR after stripping away unnecessary1968 quotes and backslashes, so that it's suitable for yyerror. The1969 heuristic is that double-quoting is unnecessary unless the string1970 contains an apostrophe, a comma, or backslash (other than1971 backslash-backslash). YYSTR is taken from yytname. If YYRES is1972 null, do not copy; instead, return the length of what the result1973 would have been. */1974static YYPTRDIFF_T1975yytnamerr (char *yyres, const char *yystr)1976{1977 if (*yystr == '"')1978 {1979 YYPTRDIFF_T yyn = 0;1980 char const *yyp = yystr;1981 for (;;)1982 switch (*++yyp)1983 {1984 case '\'':1985 case ',':1986 goto do_not_strip_quotes;19871988 case '\\':1989 if (*++yyp != '\\')1990 goto do_not_strip_quotes;1991 else1992 goto append;19931994 append:1995 default:1996 if (yyres)1997 yyres[yyn] = *yyp;1998 yyn++;1999 break;2000The first 2,000 of 4,356 lines.