/* A Bison parser, made by GNU Bison 2.3. */ /* Skeleton implementation for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ #define YYBISON_VERSION "2.3" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 0 /* Using locations. */ #define YYLSP_NEEDED 0 /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { YEOF = 0, AEQ = 258, AND = 259, ARROW = 260, ATTRIBUTE = 261, ATTRIBUTE_SELECT = 262, AX = 263, AXIOM = 264, BODY = 265, CHECK_INSTANCE = 266, CHECK_UNION = 267, COMPONENTS = 268, DATAFLOW = 269, DEFINE = 270, DESCRIPTION = 271, DIV = 272, DOTDOT = 273, ELSE = 274, END = 275, EQ = 276, EQEQ = 277, EQUATIONS = 278, EXCEPT = 279, EXISTS = 280, EXPORT = 281, EXTENDS = 282, FORALL = 283, FUNC = 284, FUNCTION = 285, GEQ = 286, GET_INSTANCE = 287, IF = 288, IFF = 289, IMPLIES = 290, IMPORT = 291, IN = 292, INCLUDE = 293, INPUTS = 294, IS = 295, LAMBDA = 296, LEQ = 297, LET = 298, MOD = 299, MODULE = 300, NEQ = 301, NOT = 302, OBJ = 303, OBJECT = 304, OP = 305, OPERATION = 306, OPERATIONS = 307, OPS = 308, OR = 309, OUT = 310, OUTPUTS = 311, PARENTS = 312, PARTS = 313, POST = 314, POSTCONDITION = 315, PRE = 316, PRECONDITION = 317, QARROW = 318, QUESTION_MARK_IDENTIFIER = 319, REF = 320, RULE = 321, SET = 322, THEN = 323, THEOREM = 324, THM = 325, UNYPLUS = 326, VAL = 327, VALUE = 328, VAR = 329, VARIABLE = 330, XOR = 331, ACTIONS = 332, ARRAY = 333, CONST = 334, LIST = 335, RECORD = 336, TYPE = 337, WHERE = 338, IDENTIFIER = 339, ATTRIBUTE_IDENTIFIER = 340, INTEGER_LITERAL = 341, REAL_LITERAL = 342, STRING_LITERAL = 343, ATTRIBUTE_TEXT = 344, NIL_LITERAL = 345, QRTARROW = 346, POUNDPOUND = 347, UNARY_MINUS = 348, UNARY_PLUS = 349 }; #endif /* Tokens. */ #define YEOF 0 #define AEQ 258 #define AND 259 #define ARROW 260 #define ATTRIBUTE 261 #define ATTRIBUTE_SELECT 262 #define AX 263 #define AXIOM 264 #define BODY 265 #define CHECK_INSTANCE 266 #define CHECK_UNION 267 #define COMPONENTS 268 #define DATAFLOW 269 #define DEFINE 270 #define DESCRIPTION 271 #define DIV 272 #define DOTDOT 273 #define ELSE 274 #define END 275 #define EQ 276 #define EQEQ 277 #define EQUATIONS 278 #define EXCEPT 279 #define EXISTS 280 #define EXPORT 281 #define EXTENDS 282 #define FORALL 283 #define FUNC 284 #define FUNCTION 285 #define GEQ 286 #define GET_INSTANCE 287 #define IF 288 #define IFF 289 #define IMPLIES 290 #define IMPORT 291 #define IN 292 #define INCLUDE 293 #define INPUTS 294 #define IS 295 #define LAMBDA 296 #define LEQ 297 #define LET 298 #define MOD 299 #define MODULE 300 #define NEQ 301 #define NOT 302 #define OBJ 303 #define OBJECT 304 #define OP 305 #define OPERATION 306 #define OPERATIONS 307 #define OPS 308 #define OR 309 #define OUT 310 #define OUTPUTS 311 #define PARENTS 312 #define PARTS 313 #define POST 314 #define POSTCONDITION 315 #define PRE 316 #define PRECONDITION 317 #define QARROW 318 #define QUESTION_MARK_IDENTIFIER 319 #define REF 320 #define RULE 321 #define SET 322 #define THEN 323 #define THEOREM 324 #define THM 325 #define UNYPLUS 326 #define VAL 327 #define VALUE 328 #define VAR 329 #define VARIABLE 330 #define XOR 331 #define ACTIONS 332 #define ARRAY 333 #define CONST 334 #define LIST 335 #define RECORD 336 #define TYPE 337 #define WHERE 338 #define IDENTIFIER 339 #define ATTRIBUTE_IDENTIFIER 340 #define INTEGER_LITERAL 341 #define REAL_LITERAL 342 #define STRING_LITERAL 343 #define ATTRIBUTE_TEXT 344 #define NIL_LITERAL 345 #define QRTARROW 346 #define POUNDPOUND 347 #define UNARY_MINUS 348 #define UNARY_PLUS 349 /* Copy the first part of user declarations. */ #line 16 "../../source/c/parser.y" #include "std-macros.h" #include #include "parse-tree.h" #include "parser.h" #include "sym.h" #include "translator.h" #include "parser-aux.h" #include "sym-aux.h" #include "lex.h" #include "token-mapping.h" int inAttribute; /* exported to lexer.l, q.v. */ int inParts; /* ditto */ int anonopnum; /* counter for anonymous op types */ int anonaxnum; /* counter for anonymous axioms */ int anonthmnum; /* counter for anonymous theorems */ bool input_parm; /* inherited attr, true if processing in parm */ char* name; /* inherited attr for axiom name */ extern int yydebug; /* imported from lexer.l */ extern int yylineno; /* ibid. */ extern int yycharno; /* ibid. */ extern char* yyfilename; /* ibid. */ /* Browser hooks */ int startp,endp; /* start and end position of a NAME */ int startp2,endp2; /* start and end position of a NAME */ extern int bm_startpos,bm_endpos; nodep dp; #define YYERROR_VERBOSE 1 /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 0 #endif /* Enabling the token table. */ #ifndef YYTOKEN_TABLE # define YYTOKEN_TABLE 0 #endif #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef int YYSTYPE; # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_TRIVIAL 1 #endif /* Copy the second part of user declarations. */ /* Line 216 of yacc.c. */ #line 330 "y.tab.c" #ifdef short # undef short #endif #ifdef YYTYPE_UINT8 typedef YYTYPE_UINT8 yytype_uint8; #else typedef unsigned char yytype_uint8; #endif #ifdef YYTYPE_INT8 typedef YYTYPE_INT8 yytype_int8; #elif (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) typedef signed char yytype_int8; #else typedef short int yytype_int8; #endif #ifdef YYTYPE_UINT16 typedef YYTYPE_UINT16 yytype_uint16; #else typedef unsigned short int yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else typedef short int yytype_int16; #endif #ifndef YYSIZE_T # ifdef __SIZE_TYPE__ # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else # define YYSIZE_T unsigned int # endif #endif #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ # if YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ # define YY_(msgid) dgettext ("bison-runtime", msgid) # endif # endif # ifndef YY_ # define YY_(msgid) msgid # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ # define YYUSE(e) ((void) (e)) #else # define YYUSE(e) /* empty */ #endif /* Identity function, used to suppress warnings about constant conditions. */ #ifndef lint # define YYID(n) (n) #else #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static int YYID (int i) #else static int YYID (i) int i; #endif { return i; } #endif #if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # elif defined __BUILTIN_VA_ARG_INCR # include /* INFRINGES ON USER NAME SPACE */ # elif defined _AIX # define YYSTACK_ALLOC __alloca # elif defined _MSC_VER # include /* INFRINGES ON USER NAME SPACE */ # define alloca _alloca # else # define YYSTACK_ALLOC alloca # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. */ # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif # else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif # if (defined __cplusplus && ! defined _STDLIB_H \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { yytype_int16 yyss; YYSTYPE yyvs; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (YYID (0)) # endif # endif /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack, Stack, yysize); \ Stack = &yyptr->Stack; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0)) #endif /* YYFINAL -- State number of the termination state. */ #define YYFINAL 119 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 2492 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 117 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 152 /* YYNRULES -- Number of rules. */ #define YYNRULES 383 /* YYNRULES -- Number of states. */ #define YYNSTATES 650 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 349 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 76, 2, 2, 2, 2, 78, 79, 80, 81, 82, 83, 84, 85, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 86, 87, 88, 89, 90, 91, 98, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 92, 2, 93, 94, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 95, 96, 97, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 77, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ static const yytype_uint16 yyprhs[] = { 0, 0, 3, 5, 7, 9, 12, 15, 17, 19, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 50, 56, 61, 65, 70, 75, 81, 83, 86, 90, 96, 104, 106, 110, 112, 114, 117, 121, 125, 131, 133, 136, 138, 142, 147, 150, 152, 156, 160, 166, 172, 175, 181, 188, 190, 192, 194, 198, 200, 202, 204, 207, 210, 214, 216, 218, 220, 222, 224, 228, 233, 235, 237, 239, 241, 242, 246, 250, 253, 256, 259, 261, 263, 267, 269, 273, 277, 283, 287, 293, 296, 298, 300, 302, 304, 306, 308, 310, 315, 316, 318, 322, 324, 328, 333, 335, 337, 338, 340, 344, 346, 349, 351, 356, 363, 366, 368, 370, 374, 379, 386, 388, 390, 391, 393, 397, 401, 405, 410, 415, 420, 422, 424, 428, 433, 436, 441, 445, 447, 449, 451, 453, 455, 458, 462, 468, 476, 478, 480, 481, 483, 487, 488, 490, 494, 496, 500, 504, 510, 512, 516, 518, 521, 524, 529, 534, 539, 544, 549, 554, 556, 558, 560, 562, 564, 566, 568, 570, 572, 573, 575, 577, 581, 585, 587, 589, 595, 603, 605, 607, 613, 621, 627, 633, 635, 637, 639, 645, 647, 649, 651, 653, 654, 659, 664, 669, 673, 678, 682, 684, 687, 689, 694, 695, 697, 701, 703, 706, 709, 711, 715, 717, 721, 723, 727, 728, 732, 736, 740, 744, 746, 748, 749, 752, 756, 758, 761, 764, 767, 771, 773, 775, 777, 781, 785, 788, 792, 796, 800, 805, 812, 814, 816, 820, 826, 834, 842, 850, 860, 868, 876, 886, 888, 890, 894, 898, 902, 905, 908, 910, 912, 914, 916, 918, 920, 922, 924, 926, 930, 934, 940, 946, 948, 950, 952, 954, 956, 958, 960, 962, 964, 966, 968, 970, 972, 974, 976, 978, 980, 982, 984, 986, 990, 996, 1000, 1004, 1008, 1012, 1016, 1018, 1020, 1022, 1024, 1029, 1036, 1043, 1048, 1055, 1060, 1062, 1064, 1066, 1068, 1071, 1076, 1083, 1092, 1093, 1095, 1099, 1101, 1103, 1107, 1108, 1110, 1114, 1116, 1118, 1122, 1123, 1125, 1127, 1131, 1132, 1134, 1136, 1138, 1142, 1144, 1148, 1150, 1154, 1156, 1158, 1159, 1161, 1163, 1168, 1170, 1173, 1178, 1184, 1186, 1189, 1194, 1200, 1202, 1206, 1208, 1210, 1212, 1214, 1218, 1220, 1222, 1224, 1226, 1228, 1230, 1232, 1234, 1236, 1238, 1239 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int16 yyrhs[] = { 118, 0, -1, 119, -1, 0, -1, 120, -1, 119, 120, -1, 120, 1, -1, 121, -1, 214, -1, 122, -1, 131, 87, -1, 168, 87, -1, 189, 87, -1, 191, 87, -1, 192, 87, -1, 195, 87, -1, 198, 87, -1, 201, 87, -1, 213, 87, -1, 1, -1, 123, 130, 20, 256, 87, -1, 123, 20, 256, 87, -1, 45, 254, 268, -1, 45, 254, 268, 124, -1, 45, 254, 268, 128, -1, 45, 254, 268, 124, 128, -1, 125, -1, 125, 124, -1, 36, 126, 87, -1, 36, 252, 84, 80, 87, -1, 36, 252, 84, 80, 24, 253, 87, -1, 127, -1, 126, 82, 127, -1, 252, -1, 129, -1, 129, 128, -1, 26, 253, 87, -1, 26, 80, 87, -1, 26, 80, 24, 253, 87, -1, 121, -1, 130, 121, -1, 132, -1, 132, 20, 256, -1, 132, 137, 20, 256, -1, 132, 1, -1, 133, -1, 133, 89, 143, -1, 133, 142, 251, -1, 133, 142, 251, 89, 143, -1, 133, 89, 143, 142, 251, -1, 134, 254, -1, 134, 254, 78, 135, 79, -1, 134, 254, 78, 135, 79, 1, -1, 49, -1, 48, -1, 136, -1, 135, 82, 136, -1, 254, -1, 264, -1, 138, -1, 137, 138, -1, 139, 87, -1, 139, 1, 87, -1, 140, -1, 150, -1, 154, -1, 159, -1, 166, -1, 141, 86, 143, -1, 57, 86, 251, 87, -1, 13, -1, 58, -1, 27, -1, 88, -1, -1, 143, 145, 143, -1, 143, 146, 143, -1, 143, 147, -1, 149, 172, -1, 148, 257, -1, 144, -1, 257, -1, 257, 89, 215, -1, 265, -1, 78, 143, 79, -1, 254, 86, 257, -1, 254, 86, 257, 89, 215, -1, 254, 86, 265, -1, 254, 86, 78, 143, 79, -1, 257, 1, -1, 4, -1, 82, -1, 54, -1, 96, -1, 80, -1, 65, -1, 170, -1, 105, 86, 151, 87, -1, -1, 152, -1, 151, 266, 152, -1, 153, -1, 254, 89, 254, -1, 155, 86, 156, 87, -1, 52, -1, 53, -1, -1, 157, -1, 156, 267, 157, -1, 254, -1, 158, 172, -1, 254, -1, 160, 86, 164, 87, -1, 160, 86, 161, 87, 164, 87, -1, 160, 1, -1, 23, -1, 162, -1, 161, 87, 162, -1, 163, 253, 86, 259, -1, 163, 253, 86, 259, 89, 215, -1, 75, -1, 74, -1, -1, 165, -1, 164, 87, 165, -1, 240, 22, 215, -1, 255, 167, 87, -1, 255, 167, 111, 87, -1, 255, 86, 251, 87, -1, 255, 86, 215, 87, -1, 86, -1, 169, -1, 169, 20, 256, -1, 169, 179, 20, 256, -1, 170, 171, -1, 170, 171, 89, 215, -1, 170, 171, 89, -1, 51, -1, 50, -1, 30, -1, 29, -1, 158, -1, 158, 172, -1, 173, 175, 79, -1, 173, 175, 79, 5, 178, -1, 173, 175, 79, 5, 174, 176, 79, -1, 78, -1, 78, -1, -1, 177, -1, 175, 145, 175, -1, -1, 178, -1, 176, 145, 176, -1, 258, -1, 258, 89, 215, -1, 254, 86, 258, -1, 254, 86, 258, 89, 215, -1, 258, -1, 254, 86, 258, -1, 180, -1, 179, 180, -1, 139, 87, -1, 181, 86, 175, 87, -1, 182, 86, 175, 87, -1, 183, 86, 185, 87, -1, 184, 86, 185, 87, -1, 14, 86, 186, 87, -1, 10, 86, 215, 87, -1, 166, -1, 39, -1, 37, -1, 56, -1, 55, -1, 62, -1, 61, -1, 60, -1, 59, -1, -1, 215, -1, 187, -1, 186, 82, 187, -1, 188, 5, 188, -1, 215, -1, 91, -1, 190, 254, 89, 215, 211, -1, 190, 254, 86, 259, 89, 215, 211, -1, 73, -1, 72, -1, 163, 253, 86, 259, 211, -1, 163, 253, 86, 259, 89, 215, 211, -1, 163, 253, 89, 215, 211, -1, 194, 193, 89, 215, 211, -1, 254, -1, 9, -1, 8, -1, 197, 196, 89, 215, 211, -1, 254, -1, 69, -1, 70, -1, 200, -1, -1, 200, 86, 199, 143, -1, 15, 49, 6, 253, -1, 15, 51, 6, 253, -1, 15, 6, 253, -1, 202, 89, 203, 211, -1, 202, 89, 211, -1, 202, -1, 66, 254, -1, 204, -1, 204, 95, 207, 97, -1, -1, 205, -1, 203, 96, 203, -1, 206, -1, 206, 147, -1, 205, 205, -1, 254, -1, 254, 86, 254, -1, 110, -1, 254, 86, 110, -1, 208, -1, 207, 87, 208, -1, -1, 209, 89, 210, -1, 254, 7, 255, -1, 254, 84, 255, -1, 254, 84, 254, -1, 254, -1, 215, -1, -1, 20, 256, -1, 212, 20, 256, -1, 166, -1, 212, 166, -1, 38, 110, -1, 215, 87, -1, 90, 215, 87, -1, 216, -1, 221, -1, 231, -1, 215, 4, 215, -1, 215, 54, 215, -1, 47, 215, -1, 215, 77, 215, -1, 215, 35, 215, -1, 215, 34, 215, -1, 33, 215, 68, 215, -1, 33, 215, 68, 215, 19, 215, -1, 217, -1, 218, -1, 215, 222, 215, -1, 254, 223, 215, 24, 225, -1, 254, 223, 215, 24, 78, 224, 79, -1, 219, 78, 253, 86, 261, 79, 215, -1, 219, 78, 253, 37, 215, 79, 215, -1, 219, 78, 253, 86, 261, 96, 215, 79, 215, -1, 220, 78, 253, 86, 261, 79, 215, -1, 220, 78, 253, 37, 215, 79, 215, -1, 220, 78, 253, 86, 261, 96, 215, 79, 215, -1, 28, -1, 25, -1, 215, 226, 215, -1, 215, 227, 215, -1, 215, 228, 215, -1, 230, 215, -1, 229, 215, -1, 89, -1, 88, -1, 90, -1, 46, -1, 42, -1, 31, -1, 37, -1, 3, -1, 225, -1, 224, 82, 225, -1, 224, 4, 225, -1, 254, 84, 254, 89, 215, -1, 254, 84, 108, 89, 215, -1, 81, -1, 83, -1, 80, -1, 85, -1, 17, -1, 44, -1, 94, -1, 76, -1, 81, -1, 83, -1, 232, -1, 233, -1, 235, -1, 236, -1, 237, -1, 240, -1, 241, -1, 244, -1, 254, -1, 265, -1, 78, 249, 79, -1, 92, 215, 18, 215, 93, -1, 92, 245, 93, -1, 95, 247, 97, -1, 231, 234, 254, -1, 231, 84, 108, -1, 231, 7, 255, -1, 84, -1, 12, -1, 32, -1, 11, -1, 231, 92, 215, 93, -1, 231, 92, 215, 18, 215, 93, -1, 231, 92, 215, 86, 215, 93, -1, 43, 253, 89, 215, -1, 43, 253, 86, 259, 89, 215, -1, 67, 238, 89, 215, -1, 254, -1, 233, -1, 235, -1, 239, -1, 98, 231, -1, 231, 78, 242, 79, -1, 231, 78, 242, 79, 63, 243, -1, 231, 78, 242, 79, 63, 78, 242, 79, -1, -1, 243, -1, 242, 82, 243, -1, 215, -1, 91, -1, 41, 172, 215, -1, -1, 246, -1, 245, 82, 246, -1, 215, -1, 248, -1, 247, 82, 248, -1, -1, 215, -1, 250, -1, 249, 87, 250, -1, -1, 215, -1, 162, -1, 252, -1, 251, 82, 252, -1, 254, -1, 252, 84, 254, -1, 254, -1, 253, 82, 254, -1, 106, -1, 107, -1, -1, 254, -1, 262, -1, 262, 78, 260, 79, -1, 262, -1, 262, 147, -1, 262, 78, 263, 79, -1, 262, 78, 263, 79, 147, -1, 261, -1, 261, 147, -1, 261, 78, 260, 79, -1, 261, 78, 260, 79, 147, -1, 261, -1, 260, 82, 261, -1, 252, -1, 252, -1, 264, -1, 262, -1, 263, 82, 262, -1, 64, -1, 110, -1, 108, -1, 109, -1, 112, -1, 87, -1, 82, -1, 87, -1, 82, -1, 4, -1, -1, 87, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { 0, 376, 376, 386, 394, 399, 404, 411, 413, 421, 423, 431, 439, 447, 449, 451, 453, 455, 463, 465, 470, 478, 498, 507, 516, 525, 536, 542, 550, 559, 568, 580, 583, 588, 593, 599, 607, 617, 626, 638, 643, 650, 661, 670, 686, 691, 696, 702, 709, 717, 727, 741, 755, 760, 763, 768, 771, 776, 779, 784, 787, 792, 794, 797, 802, 804, 806, 808, 812, 822, 830, 834, 840, 843, 849, 851, 858, 865, 879, 891, 905, 909, 923, 932, 940, 945, 954, 963, 971, 979, 984, 987, 992, 995, 1000, 1005, 1010, 1023, 1032, 1034, 1037, 1046, 1050, 1059, 1068, 1071, 1077, 1079, 1082, 1088, 1096, 1105, 1112, 1120, 1128, 1133, 1141, 1144, 1149, 1160, 1173, 1176, 1182, 1184, 1187, 1192, 1201, 1216, 1229, 1239, 1251, 1261, 1277, 1292, 1319, 1324, 1331, 1341, 1344, 1347, 1350, 1355, 1365, 1393, 1401, 1411, 1421, 1429, 1438, 1440, 1459, 1469, 1471, 1490, 1499, 1514, 1529, 1544, 1561, 1576, 1593, 1596, 1601, 1603, 1609, 1615, 1623, 1630, 1633, 1636, 1640, 1646, 1654, 1660, 1669, 1673, 1679, 1683, 1690, 1692, 1696, 1699, 1704, 1713, 1715, 1722, 1739, 1754, 1757, 1762, 1773, 1785, 1798, 1840, 1860, 1866, 1874, 1907, 1927, 1933, 1941, 1943, 1943, 1949, 1955, 1961, 1969, 1977, 1984, 1993, 2011, 2013, 2018, 2020, 2022, 2040, 2042, 2056, 2065, 2073, 2081, 2093, 2107, 2110, 2116, 2118, 2127, 2134, 2141, 2148, 2157, 2162, 2164, 2167, 2174, 2177, 2182, 2189, 2200, 2218, 2220, 2222, 2226, 2233, 2240, 2246, 2253, 2260, 2268, 2276, 2284, 2286, 2290, 2297, 2313, 2323, 2340, 2353, 2374, 2391, 2404, 2427, 2435, 2443, 2450, 2457, 2464, 2470, 2478, 2481, 2484, 2487, 2490, 2493, 2496, 2501, 2507, 2515, 2523, 2532, 2544, 2562, 2565, 2570, 2573, 2576, 2579, 2584, 2589, 2594, 2597, 2602, 2604, 2606, 2608, 2610, 2612, 2614, 2616, 2618, 2620, 2622, 2629, 2636, 2644, 2652, 2659, 2671, 2689, 2692, 2695, 2698, 2703, 2710, 2720, 2730, 2738, 2749, 2758, 2760, 2762, 2764, 2768, 2776, 2788, 2797, 2810, 2812, 2817, 2824, 2831, 2843, 2856, 2858, 2861, 2866, 2875, 2878, 2884, 2886, 2900, 2903, 2909, 2911, 2922, 2935, 2940, 2947, 2952, 2959, 2962, 2967, 2976, 2989, 2991, 2995, 2997, 3010, 3019, 3029, 3038, 3049, 3058, 3065, 3072, 3081, 3084, 3089, 3096, 3099, 3104, 3107, 3112, 3121, 3128, 3135, 3142, 3152, 3156, 3167, 3171, 3174, 3182, 3184 }; #endif #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "YEOF", "error", "$undefined", "AEQ", "AND", "ARROW", "ATTRIBUTE", "ATTRIBUTE_SELECT", "AX", "AXIOM", "BODY", "CHECK_INSTANCE", "CHECK_UNION", "COMPONENTS", "DATAFLOW", "DEFINE", "DESCRIPTION", "DIV", "DOTDOT", "ELSE", "END", "EQ", "EQEQ", "EQUATIONS", "EXCEPT", "EXISTS", "EXPORT", "EXTENDS", "FORALL", "FUNC", "FUNCTION", "GEQ", "GET_INSTANCE", "IF", "IFF", "IMPLIES", "IMPORT", "IN", "INCLUDE", "INPUTS", "IS", "LAMBDA", "LEQ", "LET", "MOD", "MODULE", "NEQ", "NOT", "OBJ", "OBJECT", "OP", "OPERATION", "OPERATIONS", "OPS", "OR", "OUT", "OUTPUTS", "PARENTS", "PARTS", "POST", "POSTCONDITION", "PRE", "PRECONDITION", "QARROW", "QUESTION_MARK_IDENTIFIER", "REF", "RULE", "SET", "THEN", "THEOREM", "THM", "UNYPLUS", "VAL", "VALUE", "VAR", "VARIABLE", "'#'", "XOR", "'('", "')'", "'*'", "'+'", "','", "'-'", "'.'", "'/'", "':'", "';'", "'<'", "'='", "'>'", "'?'", "'['", "']'", "'^'", "'{'", "'|'", "'}'", "'@'", "ACTIONS", "ARRAY", "CONST", "LIST", "RECORD", "TYPE", "WHERE", "IDENTIFIER", "ATTRIBUTE_IDENTIFIER", "INTEGER_LITERAL", "REAL_LITERAL", "STRING_LITERAL", "ATTRIBUTE_TEXT", "NIL_LITERAL", "QRTARROW", "POUNDPOUND", "UNARY_MINUS", "UNARY_PLUS", "$accept", "start", "top_level_items", "top_level_item", "declaration", "module", "module_heading", "imports", "import", "import_items", "import_item", "exports", "export", "declarations", "object", "simple_object_declaration", "object_heading", "object_symbol", "object_parameters", "object_parameter", "object_attributes", "object_attribute", "components", "parents", "components_symbol", "extends_symbol", "components_expression", "components_base_element", "component_and_op", "component_or_op", "component_list_op", "component_ref_op", "component_operation_heading", "where", "where_list", "where_item", "where_eq", "operations", "operations_symbol", "operation_names_optional_signatures", "operation_name_optional_signature", "operation_name", "equations", "equations_symbol", "simple_variables", "simple_variable", "variable_symbol", "equation_sequence", "equation", "user_defined_attribute", "attribute_colon", "operation", "simple_operation_declaration", "operation_symbol", "operation_heading", "operation_signature", "in_paren", "out_paren", "operation_parameters", "operation_outputs", "operation_parameter", "operation_output", "operation_attributes", "operation_attribute", "inputs_symbol", "outputs_symbol", "precondition_symbol", "postcondition_symbol", "condition", "connections", "connection", "connection_expression", "value", "value_symbol", "variable", "axiom", "axiom_name", "axiom_symbol", "theorem", "theorem_name", "theorem_symbol", "attribute", "@1", "untyped_attribute", "rule", "rule_heading", "rule_rhs", "rule_alternative", "rule_element", "rule_terminal", "actions", "action", "action_lhs", "action_rhs", "optional_attributes", "user_defined_attributes", "include", "top_level_expression", "expression", "boolean_expression", "relational_expression", "quantifier_expression", "forall_symbol", "exists_symbol", "arithmetic_expression", "relational_op", "almost_eq_op", "except_items", "except_item", "add_op", "mult_op", "exp_op", "length_op", "arithmetic_prefix_op", "callable_expression", "constructor_expression", "selector_expression", "select_op", "index_expression", "let", "set", "storage_designator", "dereference_expression", "invocation", "validation_invocation", "actual_parameters", "actual_parameter", "lambda", "expression_list", "expression_list_element", "expression_list_with_empties", "expression_possibly_empty", "expression_sequence", "expression_sequence_element", "qualified_names", "qualified_name", "names", "name", "attribute_name", "optional_name", "component_type_designator", "variable_type_designator", "type_designator", "type_names", "type_name", "type_name_or_variable", "type_names_or_variables", "question_mark_name", "literal", "semicolon_or_comma", "semicolon_or_comma_or_and", "optional_semicolon", 0 }; #endif # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 35, 331, 40, 41, 42, 43, 44, 45, 46, 47, 58, 59, 60, 61, 62, 63, 91, 93, 94, 123, 124, 125, 64, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_uint16 yyr1[] = { 0, 117, 118, 118, 119, 119, 119, 120, 120, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 121, 122, 122, 123, 123, 123, 123, 124, 124, 125, 125, 125, 126, 126, 127, 128, 128, 129, 129, 129, 130, 130, 131, 131, 131, 131, 132, 132, 132, 132, 132, 133, 133, 133, 134, 134, 135, 135, 136, 136, 137, 137, 138, 138, 138, 138, 138, 138, 138, 139, 140, 141, 141, 142, 142, 143, 143, 143, 143, 143, 143, 143, 144, 144, 144, 144, 144, 144, 144, 144, 144, 145, 145, 146, 146, 147, 148, 149, 150, 151, 151, 151, 152, 153, 154, 155, 155, 156, 156, 156, 157, 157, 158, 159, 159, 159, 160, 161, 161, 162, 162, 163, 163, 164, 164, 164, 165, 166, 166, 166, 166, 167, 168, 168, 168, 169, 169, 169, 170, 170, 170, 170, 171, 171, 172, 172, 172, 173, 174, 175, 175, 175, 176, 176, 176, 177, 177, 177, 177, 178, 178, 179, 179, 180, 180, 180, 180, 180, 180, 180, 180, 181, 181, 182, 182, 183, 183, 184, 184, 185, 185, 186, 186, 187, 188, 188, 189, 189, 190, 190, 191, 191, 191, 192, 193, 194, 194, 195, 196, 197, 197, 198, 199, 198, 200, 200, 200, 201, 201, 201, 202, 203, 203, 204, 204, 204, 205, 205, 205, 206, 206, 206, 206, 207, 207, 208, 208, 209, 209, 209, 209, 210, 211, 211, 211, 212, 212, 213, 214, 214, 215, 215, 215, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 217, 217, 217, 218, 218, 218, 218, 218, 218, 219, 220, 221, 221, 221, 221, 221, 222, 222, 222, 222, 222, 222, 222, 223, 224, 224, 224, 225, 225, 226, 226, 227, 227, 227, 227, 228, 229, 230, 230, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 231, 232, 232, 232, 233, 233, 233, 234, 234, 234, 234, 235, 235, 235, 236, 236, 237, 238, 238, 238, 238, 239, 240, 241, 241, 242, 242, 242, 243, 243, 244, 245, 245, 245, 246, 247, 247, 248, 248, 249, 249, 250, 250, 250, 251, 251, 252, 252, 253, 253, 254, 255, 256, 256, 257, 257, 258, 258, 258, 258, 259, 259, 259, 259, 260, 260, 261, 262, 262, 263, 263, 264, 265, 265, 265, 265, 266, 266, 267, 267, 267, 268, 268 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const yytype_uint8 yyr2[] = { 0, 2, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 5, 4, 3, 4, 4, 5, 1, 2, 3, 5, 7, 1, 3, 1, 1, 2, 3, 3, 5, 1, 2, 1, 3, 4, 2, 1, 3, 3, 5, 5, 2, 5, 6, 1, 1, 1, 3, 1, 1, 1, 2, 2, 3, 1, 1, 1, 1, 1, 3, 4, 1, 1, 1, 1, 0, 3, 3, 2, 2, 2, 1, 1, 3, 1, 3, 3, 5, 3, 5, 2, 1, 1, 1, 1, 1, 1, 1, 4, 0, 1, 3, 1, 3, 4, 1, 1, 0, 1, 3, 1, 2, 1, 4, 6, 2, 1, 1, 3, 4, 6, 1, 1, 0, 1, 3, 3, 3, 4, 4, 4, 1, 1, 3, 4, 2, 4, 3, 1, 1, 1, 1, 1, 2, 3, 5, 7, 1, 1, 0, 1, 3, 0, 1, 3, 1, 3, 3, 5, 1, 3, 1, 2, 2, 4, 4, 4, 4, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 3, 3, 1, 1, 5, 7, 1, 1, 5, 7, 5, 5, 1, 1, 1, 5, 1, 1, 1, 1, 0, 4, 4, 4, 3, 4, 3, 1, 2, 1, 4, 0, 1, 3, 1, 2, 2, 1, 3, 1, 3, 1, 3, 0, 3, 3, 3, 3, 1, 1, 0, 2, 3, 1, 2, 2, 2, 3, 1, 1, 1, 3, 3, 2, 3, 3, 3, 4, 6, 1, 1, 3, 5, 7, 7, 7, 9, 7, 7, 9, 1, 1, 3, 3, 3, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 5, 3, 3, 3, 3, 3, 1, 1, 1, 1, 4, 6, 6, 4, 6, 4, 1, 1, 1, 1, 2, 4, 6, 8, 0, 1, 3, 1, 1, 3, 0, 1, 3, 1, 1, 3, 0, 1, 1, 3, 0, 1, 1, 1, 3, 1, 3, 1, 3, 1, 1, 0, 1, 1, 4, 1, 2, 4, 5, 1, 2, 4, 5, 1, 3, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const yytype_uint16 yydefact[] = { 0, 3, 19, 195, 194, 0, 262, 261, 140, 139, 0, 0, 0, 0, 0, 0, 54, 53, 138, 137, 0, 0, 198, 199, 188, 187, 121, 120, 288, 342, 289, 290, 0, 332, 338, 351, 374, 375, 373, 376, 0, 0, 0, 7, 9, 0, 0, 0, 45, 0, 0, 0, 131, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 0, 208, 0, 8, 0, 239, 250, 251, 0, 0, 240, 0, 0, 241, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 0, 0, 0, 0, 236, 146, 0, 148, 0, 349, 382, 244, 209, 0, 0, 292, 293, 0, 321, 299, 344, 0, 343, 0, 340, 0, 335, 0, 333, 339, 0, 336, 1, 5, 6, 353, 39, 0, 10, 44, 70, 353, 115, 104, 105, 0, 71, 0, 352, 0, 59, 0, 63, 0, 64, 65, 0, 66, 0, 67, 0, 72, 73, 74, 0, 50, 0, 11, 0, 0, 353, 171, 170, 173, 172, 177, 176, 175, 174, 0, 169, 0, 160, 0, 0, 0, 0, 141, 134, 111, 12, 0, 13, 14, 0, 193, 15, 0, 197, 16, 201, 17, 212, 18, 0, 285, 273, 0, 0, 274, 272, 286, 271, 0, 0, 283, 281, 282, 284, 237, 269, 268, 270, 287, 0, 0, 0, 0, 0, 0, 267, 266, 0, 311, 309, 310, 326, 308, 0, 0, 275, 0, 205, 0, 0, 0, 331, 372, 0, 149, 368, 347, 154, 357, 369, 0, 0, 0, 383, 22, 322, 299, 0, 0, 301, 342, 238, 0, 0, 303, 338, 304, 354, 0, 353, 40, 42, 0, 98, 353, 60, 0, 61, 74, 106, 114, 122, 130, 0, 95, 74, 46, 80, 0, 0, 96, 347, 0, 355, 83, 47, 345, 347, 0, 0, 0, 0, 0, 132, 162, 353, 161, 148, 148, 178, 178, 142, 136, 0, 0, 0, 0, 74, 353, 220, 234, 231, 210, 213, 215, 207, 0, 218, 242, 247, 246, 243, 245, 252, 263, 264, 265, 0, 0, 307, 330, 329, 0, 327, 306, 0, 305, 0, 203, 204, 248, 90, 143, 91, 148, 0, 0, 0, 0, 94, 358, 350, 367, 0, 361, 315, 0, 0, 23, 26, 24, 34, 317, 0, 341, 0, 335, 334, 337, 21, 0, 0, 0, 99, 101, 0, 43, 62, 68, 0, 107, 0, 109, 0, 116, 0, 123, 296, 0, 0, 299, 126, 0, 0, 92, 93, 0, 74, 74, 77, 79, 78, 0, 89, 0, 0, 0, 74, 0, 55, 57, 58, 231, 231, 0, 184, 0, 180, 0, 183, 133, 0, 0, 0, 179, 0, 135, 0, 231, 231, 231, 202, 232, 212, 206, 224, 217, 216, 353, 235, 0, 0, 0, 0, 0, 323, 0, 0, 0, 312, 0, 0, 0, 150, 348, 156, 155, 370, 0, 0, 0, 362, 0, 0, 0, 31, 33, 25, 27, 35, 118, 302, 20, 69, 378, 97, 0, 0, 381, 380, 103, 0, 110, 122, 112, 0, 129, 128, 127, 84, 49, 75, 76, 74, 85, 87, 82, 0, 365, 346, 48, 0, 0, 0, 189, 191, 168, 0, 167, 0, 163, 164, 165, 166, 0, 185, 192, 196, 214, 0, 222, 0, 229, 233, 221, 219, 0, 0, 0, 0, 0, 328, 0, 0, 0, 253, 0, 249, 147, 151, 144, 347, 158, 0, 359, 0, 316, 0, 0, 37, 36, 0, 28, 0, 0, 100, 102, 108, 117, 0, 124, 125, 0, 0, 356, 0, 52, 56, 231, 181, 182, 231, 224, 211, 0, 0, 0, 0, 0, 0, 0, 0, 0, 326, 324, 313, 314, 0, 276, 0, 0, 152, 0, 157, 360, 371, 363, 0, 32, 33, 0, 119, 113, 88, 86, 366, 190, 186, 223, 225, 230, 226, 228, 227, 256, 255, 0, 259, 258, 0, 329, 0, 0, 254, 0, 0, 0, 145, 151, 159, 364, 38, 0, 29, 0, 0, 325, 278, 277, 0, 0, 153, 0, 257, 260, 280, 279, 30 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int16 yydefgoto[] = { -1, 40, 41, 42, 43, 44, 45, 360, 361, 466, 467, 362, 363, 124, 46, 47, 48, 49, 410, 411, 136, 137, 138, 139, 140, 151, 278, 279, 399, 400, 401, 280, 281, 141, 374, 375, 376, 142, 143, 381, 382, 383, 144, 145, 385, 107, 108, 387, 388, 312, 275, 51, 52, 282, 175, 93, 94, 541, 235, 592, 236, 593, 168, 169, 170, 171, 172, 173, 425, 418, 419, 420, 54, 55, 56, 57, 181, 58, 59, 184, 60, 61, 309, 62, 63, 64, 313, 314, 315, 316, 521, 522, 523, 611, 317, 318, 65, 66, 333, 68, 69, 70, 71, 72, 73, 211, 228, 589, 537, 212, 213, 214, 74, 75, 76, 77, 78, 226, 79, 80, 81, 104, 105, 82, 83, 334, 335, 84, 114, 115, 117, 118, 110, 111, 287, 237, 95, 85, 147, 260, 284, 239, 355, 499, 356, 285, 460, 241, 86, 478, 483, 246 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -464 static const yytype_int16 yypact[] = { 869, -464, -464, -464, -464, 190, -464, -464, -464, -464, 2206, 109, 160, 100, 100, 2206, -464, -464, -464, -464, 100, 426, -464, -464, -464, -464, -464, -464, -464, 2024, -464, -464, 2206, 2206, 2206, -464, -464, -464, -464, -464, 248, 957, 1045, -464, -464, 2361, 177, 328, 208, 100, 100, 212, 754, 100, 228, 100, 229, 266, 100, 286, 100, 287, 292, 296, 299, 306, -464, 1218, -464, -464, -464, 301, 332, -464, 2206, 2206, 324, -464, -464, -464, -464, -464, -464, -464, -464, 391, -464, 100, 405, 406, 1250, -464, -464, 2206, -18, 151, -464, 326, -464, -464, 1616, 324, 325, 329, 331, -464, 334, -464, 100, 1839, 147, -464, 1311, 1332, -23, -464, 1839, -11, -464, -464, -464, -464, 100, -464, 2417, -464, -464, -464, 100, -464, -464, -464, 338, -464, 342, -464, 59, -464, 41, -464, 346, -464, -464, 348, -464, 35, -464, 350, -464, -464, 574, 100, 339, 223, -464, 351, 352, 100, -464, -464, -464, -464, -464, -464, -464, -464, 353, -464, 1088, -464, 355, 356, 360, 365, 160, 363, -464, -464, 18, -464, -464, 370, -464, -464, 371, -464, -464, -464, -464, 19, -464, 2206, -464, -464, 2206, 2206, -464, -464, -464, -464, 2206, 2206, -464, -464, -464, -464, -464, -464, -464, -464, -464, 2206, 2206, 2206, 2206, 100, 100, -464, -464, 358, -464, -464, -464, 2068, 367, 2206, 100, -464, 2206, 357, 100, 100, 2206, 1839, -464, 91, -464, 384, 385, 389, 264, -464, 100, 100, 2206, -464, 73, 324, -464, 2206, -20, -464, 2024, -464, 2206, 2206, -464, 2206, -464, -464, 390, 100, -464, -464, 100, 100, 100, -464, 392, -464, 574, 100, -464, 388, 2206, 93, -464, 574, 26, -464, -18, 160, -464, 395, 665, 404, -464, 164, 384, -464, -18, 100, 2206, 2206, 2114, -464, -464, 100, -464, -18, -18, 2206, 2206, -464, 2206, 100, 2206, 2206, 2206, 574, 100, -464, -464, 17, 393, 99, 409, -464, 29, 398, 2313, 1913, 1913, 1932, 1932, 239, 185, 396, -464, 289, 290, -464, -464, 1839, 179, -464, -464, 1157, -464, 1399, 357, 357, 1858, -464, 480, -464, -18, 100, -18, 2206, -18, -464, -464, -464, 384, 402, 288, 239, -25, 100, 466, 459, -464, 466, 1839, 100, -464, 1415, 1839, -464, -464, -464, 412, 200, 243, -464, -464, 413, -464, -464, 163, 50, -464, 160, 423, 416, -464, 420, -464, 486, 1482, 250, 45, -464, 427, 23, -464, -464, 100, 574, 574, -464, -464, -464, 508, -464, 2206, 100, 100, 574, 209, -464, -464, -464, 76, 1125, 1498, -464, 256, -464, 505, 1839, -464, 87, 97, 428, 1839, 432, 1839, 431, 1125, 1125, 1125, 163, -464, 99, -464, 100, 99, -464, 100, -464, 141, 2206, 100, 2206, 100, 462, 2068, 2206, 2206, -464, -21, 2206, -17, -464, -464, 433, 2246, -464, 221, 2206, 100, -464, 66, 258, 272, -464, 442, -464, -464, -464, 440, -464, -464, -464, -464, 424, 100, 100, -464, -464, 425, 100, -464, 388, 1616, 2206, -464, -464, -464, -464, 451, 409, 80, 574, 448, -464, 2262, 308, -464, 384, 163, 369, -18, 2206, -464, -464, -464, 2114, -464, 2114, -464, -464, -464, -464, 2206, -464, -464, -464, -464, 121, -464, 452, 49, -464, -464, -464, 1514, 114, 1592, 128, 2160, -464, 1608, 1675, 100, -464, 458, 1913, -464, -18, -464, 457, -464, 2206, 409, -18, 239, 316, 100, -464, -464, 100, -464, -12, 2206, -464, -464, -464, -464, 460, -464, 1839, 96, 2206, -464, 100, -464, -464, 1125, -464, -464, 1125, 100, -464, 2206, 358, 183, 2206, 2206, 2206, 2206, 2206, 2206, 1967, -464, -464, -464, 184, -464, 293, 199, -464, -18, 2246, -464, -464, 409, 280, -464, 384, 175, 1839, 1616, -464, 2262, -464, -464, -464, -464, -464, 1839, -464, -464, -464, 1839, 1839, 1696, 1839, 1839, 1757, 1778, 321, 100, -464, 100, 455, 461, -464, -18, -464, -464, -464, 100, -464, 2206, 2206, -464, -464, -464, 2206, 2206, -464, 282, 1839, 1839, 239, 239, -464 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int16 yypgoto[] = { -464, -464, -464, 507, 7, -464, -464, 188, -464, -464, -7, 44, -464, -464, -464, -464, -464, -464, -464, 47, -464, 418, -26, -464, -464, 274, -265, -464, -234, -464, -233, -464, -464, -464, -464, 77, -464, -464, -464, -464, 74, 506, -464, -464, -464, -254, 22, 75, -446, -38, -464, -464, -464, 24, -464, -163, -464, -464, -249, -66, -464, 112, -464, 401, -464, -464, -464, -464, 271, -464, 69, 64, -464, -464, -464, -464, -464, -464, -464, -464, -464, -464, -464, -464, -464, -464, 154, -464, -295, -464, -464, 21, -464, -464, -275, -464, -464, -464, 0, -464, -464, -464, -464, -464, -464, -464, -464, -464, -463, -464, -464, -464, -464, -464, -13, -464, 571, -464, 572, -464, -464, -464, -464, -270, -464, 13, -417, -464, -464, 344, -464, 343, -464, 349, -239, -123, -44, 297, -217, -112, -257, -344, -213, 143, -386, -77, -464, -277, -132, -464, -464, -464 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -380 static const yytype_int16 yytable[] = { 67, 346, 331, 389, 457, 380, 153, 352, 101, 146, 90, 303, 395, 413, 167, 98, 263, 240, 286, 386, 438, 500, 50, 402, 53, 373, 166, 343, 288, 109, 343, 533, 112, 113, 116, 391, 272, 310, 436, 310, 562, 67, 268, 229, 433, 295, 234, 234, 227, 440, 423, 424, 123, 148, 480, 464, 577, 536, 529, 255, 531, 540, 242, 50, 250, 53, 365, 50, 602, 53, 256, 257, 127, 590, 217, 218, 500, 396, 414, 266, 396, 35, 129, 439, 343, 35, 258, 247, 35, 35, 550, 343, 429, 233, 35, 343, 310, 455, 146, 358, 343, 343, 491, 351, 305, 345, 351, 306, 345, 359, 544, 130, 131, 435, 149, 586, 132, 133, 403, 397, 354, 273, 397, 463, 135, 35, 135, -347, 269, 311, 167, 262, 481, 578, 493, 494, 135, 482, 286, 506, 507, 288, 166, 438, 502, 286, 50, 496, 53, 372, 396, 288, 472, 551, 378, 517, 518, 519, 562, 492, 351, 639, 345, 640, 134, 505, 135, 343, 354, 345, 344, 329, 330, 345, 512, 605, 351, 286, 345, 345, 393, 607, 354, 135, 513, 422, 340, 341, 624, 346, 346, 320, 397, 580, 321, 322, 87, 544, 434, 634, 323, 324, 192, 343, 394, 35, 35, 583, 574, 311, 581, 325, 326, 327, 328, 389, 389, 396, 575, 91, 484, 346, 240, 240, 584, 337, 251, 413, 339, 198, 564, 560, 342, 242, 252, 148, 468, 243, 92, 88, 244, 89, 354, 351, 357, 345, 408, 35, 119, 364, 631, 526, 109, 409, 367, 368, 192, 116, 447, 397, 101, 448, 635, 625, 125, 202, 626, 286, 286, 240, 205, 240, 497, 459, 390, 288, 196, 286, 629, 210, 441, 345, 408, 198, 354, 501, 544, 475, 503, 35, 135, 504, 415, 416, 421, 608, 149, 150, 609, 154, 546, 426, 426, 547, 428, 242, 430, 431, 432, 291, 96, 97, 292, 596, 465, 177, 179, 99, 106, 202, 203, 354, 204, 354, 205, 476, 443, 445, 525, 126, 477, 219, 408, 210, 389, 220, 221, 489, 509, 354, 242, 127, 350, 510, 351, 552, 152, 96, 128, 458, 176, 129, 178, 180, 553, 182, 222, 185, 630, 554, 613, 615, 242, 286, 242, 632, 462, 633, 351, 649, 568, 242, 242, 183, 186, 444, 446, 240, 187, 215, 130, 131, -51, 188, 96, 132, 133, 566, 189, -51, 567, 238, -51, 190, 227, 598, -51, 248, 567, 35, 638, 627, 223, 448, 469, 96, 498, 471, 224, 630, 216, 230, 231, 245, -319, -41, 225, 290, -320, 259, 249, -51, -51, -318, 264, 259, -51, -51, 265, 12, 601, 13, 270, 134, 271, 135, 274, 293, 294, 242, 296, 299, 300, 528, 354, 530, 301, 283, 289, 534, 535, 302, 304, 539, 259, 21, -51, -51, -51, 307, 308, 548, 26, 27, 240, 135, 29, 12, 347, 13, 597, 348, 101, 101, -51, 336, -51, 371, 349, 379, 33, 404, 407, 34, 442, 454, 319, 563, 437, 351, 210, 461, 358, 21, 35, 359, 36, 37, 38, 474, 39, -111, 479, 485, 29, 570, 599, 486, 487, 421, 511, 421, 96, 96, 490, 514, 573, 240, 33, 515, 516, 34, 545, 338, 100, 532, 555, 96, 96, 556, -377, -379, 35, 408, 36, 37, 38, 565, 39, 353, 289, 576, 591, 594, 641, 595, 600, 604, 120, 470, 642, 569, 398, 240, 267, 557, 603, 559, 259, 174, 561, 289, 377, 259, 643, 606, 542, 283, 384, 298, 248, 392, 234, 427, 283, 572, 612, 289, 571, 616, 617, 618, 619, 620, 621, 622, 495, 412, 289, 520, 644, 101, 102, 103, 259, 610, 238, 238, 623, 369, 370, 366, 289, 8, 9, 549, 283, 259, 0, 0, 0, 0, 319, 0, 35, 0, 36, 37, 38, 0, 39, 0, 0, 0, 18, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 645, 646, 234, 276, 0, 647, 648, 238, 456, 289, 0, 289, 0, 0, 0, 0, 277, 0, 0, 96, 289, 0, 0, 0, 0, 0, 289, 0, 0, 0, 405, 0, 0, -81, 0, 0, 0, 0, 0, 0, 0, 0, -81, 0, 35, 0, 36, 37, 38, -81, 39, 0, -81, 0, 0, 0, -81, 0, 0, 289, 283, 283, 0, 0, 0, 289, 0, 0, 289, 289, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -81, -81, -81, 0, 0, -81, -81, 0, 0, 0, 0, 0, 0, 0, 0, 319, 0, 524, 319, 0, 259, 0, 527, 0, 289, 0, 289, -81, -81, 0, -81, 0, 538, 0, 543, -81, -81, 406, 0, 0, 0, 0, 289, 0, -81, 0, 0, 155, 0, 0, 127, 156, 0, -81, 0, -81, 0, 157, 377, 558, 0, 0, 0, 384, 0, 248, 248, 0, 0, 0, 0, 0, 0, 0, 158, 283, 159, 0, 0, 0, 0, 0, 0, 0, 412, 0, 0, 0, 0, 0, 0, 0, 160, 161, 0, 133, 162, 163, 164, 165, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 538, 0, 0, 0, 0, 543, 0, 0, 0, 0, 0, 289, 0, 0, 96, 0, 0, 289, 0, 456, 0, 0, 0, 0, 0, 0, 0, 0, 135, 0, 0, 289, 0, 0, 0, 0, 1, 2, 524, 0, 0, 0, 614, 0, 3, 4, 0, 0, 0, 0, 0, 5, 0, 0, 0, 628, 0, 0, 289, 0, 0, 6, 0, 0, 7, 8, 9, 0, 248, 10, 0, 0, 0, 0, 11, 0, 0, 12, 0, 13, 0, 14, 0, 15, 16, 17, 18, 19, 538, 0, 538, 0, 0, 0, 543, 0, 0, 0, 96, 0, 0, 0, 20, 21, 0, 22, 23, 0, 24, 25, 26, 27, 28, 0, 29, 0, 0, 30, 0, 31, 0, 0, 0, 0, -2, 2, 32, 0, 33, 0, 0, 34, 3, 4, 0, 0, 0, 0, 0, 5, 0, 0, 35, 0, 36, 37, 38, 0, 39, 6, 0, 0, 7, 8, 9, 0, 0, 10, 0, 0, 0, 0, 11, 0, 0, 12, 0, 13, 0, 14, 0, 15, 16, 17, 18, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 21, 0, 22, 23, 0, 24, 25, 26, 27, 28, 0, 29, 0, 0, 30, 0, 31, 0, 0, 0, 0, -4, 121, 32, 0, 33, 0, 0, 34, -4, -4, 0, 0, 0, 0, 0, -4, 0, 0, 35, 0, 36, 37, 38, 0, 39, -4, 0, 0, -4, -4, -4, 0, 0, -4, 0, 0, 0, 0, -4, 0, 0, -4, 0, -4, 0, -4, 0, -4, -4, -4, -4, -4, 0, 155, 0, 0, 127, 156, 0, 0, 0, 0, 0, 297, 0, 0, -4, -4, 0, -4, -4, 0, -4, -4, -4, -4, -4, 0, -4, 0, 158, -4, 159, -4, 191, 0, 0, 0, 0, 0, -4, 0, -4, 0, 0, -4, 0, 192, 160, 161, 310, 133, 162, 163, 164, 165, -4, 0, -4, -4, -4, 193, -4, 0, 194, 195, 191, 196, 0, 0, 0, 0, 197, 0, 198, 0, 199, 0, 0, 192, 449, 0, 0, 0, 200, 0, 0, 0, 0, 0, 0, 0, 0, 193, 0, 0, 194, 195, 0, 196, 135, 0, 0, 0, 197, 0, 198, 201, 199, 0, 202, 203, 0, 204, 0, 205, 200, 0, 207, 208, 209, 0, 0, 0, 210, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 135, 0, 201, 192, 0, 202, 203, 0, 204, 0, 205, 450, 0, 207, 208, 209, 0, 193, 451, 210, 194, 195, 191, 196, 0, 0, 0, 0, 197, 0, 198, 0, 199, 0, 0, 192, 0, 0, 0, 0, 200, 0, 0, 0, 0, 0, 0, 0, 0, 193, 0, 0, 194, 195, 0, 196, 0, 0, 0, 0, 197, 0, 198, 201, 199, 0, 202, 203, 0, 204, 0, 205, 200, 206, 207, 208, 209, 0, 0, 0, 210, 0, 0, 191, 0, 0, 232, 0, 0, 0, 0, 0, 0, 0, 0, 201, 192, 0, 202, 203, 0, 204, 0, 205, 191, 0, 207, 208, 209, 0, 193, 0, 210, 194, 195, 0, 196, 192, 254, 0, 0, 197, 0, 198, 0, 199, 0, 0, 0, 0, 0, 193, 0, 200, 194, 195, 0, 196, 0, 0, 0, 0, 197, 0, 198, 0, 199, 0, 0, 0, 0, 0, 0, 0, 200, 0, 201, 0, 0, 202, 203, 0, 204, 0, 205, 0, 253, 207, 208, 209, 0, 191, 0, 210, 0, 0, 0, 201, 0, 0, 202, 203, 0, 204, 192, 205, 0, 191, 207, 208, 209, 452, 0, 0, 210, 0, 0, 0, 193, 0, 192, 194, 195, 0, 196, 0, 0, 0, 0, 197, 0, 198, 0, 199, 193, 0, 0, 194, 195, 0, 196, 200, 0, 0, 0, 197, 0, 198, 0, 199, 0, 0, 0, 0, 0, 0, 0, 200, 0, 0, 0, 0, 0, 0, 201, 0, 0, 202, 203, 0, 204, 0, 205, 0, 191, 207, 208, 209, 0, 0, 201, 210, 0, 202, 203, 0, 204, 192, 205, 0, 191, 207, 208, 209, 0, 0, 473, 210, 0, 0, 0, 193, 0, 192, 194, 195, 191, 196, 0, 0, 0, 0, 197, 0, 198, 0, 199, 193, 0, 192, 194, 195, 0, 196, 200, 0, 0, 0, 197, 0, 198, 0, 199, 193, 0, 0, 194, 195, 0, 196, 200, 0, 0, 0, 197, 0, 198, 201, 199, 0, 202, 203, 0, 204, 0, 205, 200, 488, 207, 208, 209, 0, 0, 201, 210, 0, 202, 203, 0, 204, 0, 205, 0, 508, 207, 208, 209, 0, 0, 201, 210, 579, 202, 203, 191, 204, 0, 205, 0, 0, 207, 208, 209, 0, 0, 0, 210, 192, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 0, 192, 194, 195, 0, 196, 0, 0, 0, 0, 197, 0, 198, 0, 199, 193, 0, 0, 194, 195, 0, 196, 200, 0, 0, 0, 197, 0, 198, 0, 199, 0, 0, 12, 0, 13, 0, 0, 200, 0, 0, 0, 0, 0, 0, 201, 0, 582, 202, 203, 0, 204, 0, 205, 0, 191, 207, 208, 209, 21, 0, 201, 210, 0, 202, 203, 0, 204, 192, 205, 29, 0, 207, 208, 209, 0, 191, 587, 210, 0, 0, 0, 193, 0, 33, 194, 195, 34, 196, 192, 0, 0, 0, 197, 0, 198, 0, 199, 35, 0, 36, 37, 38, 193, 39, 200, 194, 195, 0, 196, 0, 0, 0, 0, 197, 0, 198, 0, 199, 0, 0, 0, 0, 0, 0, 0, 200, 0, 201, 0, 0, 202, 203, 0, 204, 0, 205, 191, 0, 207, 208, 209, 0, 0, 588, 210, 0, 0, 0, 201, 192, 636, 202, 203, 0, 204, 0, 205, 191, 0, 207, 208, 209, 0, 193, 0, 210, 194, 195, 0, 196, 192, 0, 0, 0, 197, 0, 198, 0, 199, 0, 0, 0, 0, 0, 193, 0, 200, 194, 195, 0, 196, 0, 0, 0, 0, 197, 0, 198, 0, 199, 0, 0, 0, 0, 0, 0, 0, 200, 0, 201, 0, 637, 202, 203, 0, 204, 0, 205, 191, 0, 207, 208, 209, 0, 0, 0, 210, 0, 0, 0, 201, 192, 0, 202, 203, 0, 204, 191, 205, 0, -343, 207, 208, 209, 0, 193, 0, 210, 194, 195, 192, 196, 453, 0, 0, 0, 197, 0, 198, 0, 199, 0, 0, 0, 193, 0, 0, 0, 200, 0, 196, 0, 0, 0, 0, 197, 0, 198, 0, 199, 0, 0, 0, 0, 0, 0, 0, 200, 0, 0, 0, 201, 191, 0, 202, 203, 0, 204, 0, 205, 0, 0, 207, 208, 209, 192, 0, 0, 210, 0, 201, 191, 0, 202, 203, 0, 204, 0, 205, 193, 0, 207, 208, 209, 192, 196, 0, 210, 0, 0, 197, 0, 198, 0, 199, 0, 0, 0, 193, 0, 0, 0, 200, 0, 196, 0, 0, 0, 0, 197, 0, 198, 0, 199, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 201, 0, 6, 202, 203, 7, 204, 0, 205, 0, 10, 207, 208, 209, 0, 0, 0, 210, 12, 0, 13, 0, 202, 203, 15, 204, 0, 205, 0, 0, 207, 208, 209, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 26, 27, 28, 0, 29, 0, 0, 30, 6, 31, 0, 7, 0, -342, 0, 0, 10, 332, 33, 0, 0, 34, 0, 0, 12, 0, 13, 0, 0, 0, 15, 0, 35, 0, 36, 37, 38, 0, 39, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 21, 0, 6, 0, 0, 7, 0, 26, 27, 28, 10, 29, 0, 0, 30, 0, 31, 0, 12, 0, 13, 0, 0, 0, 15, 33, 0, 0, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 0, 36, 37, 38, 21, 39, 0, 0, 6, 0, 0, 7, 0, 28, 0, 29, 10, 0, 30, 0, 31, 0, 0, 0, 12, 0, 13, 0, 332, 33, 15, 0, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 0, 36, 37, 38, 0, 39, 21, 0, 0, 0, 6, 0, 0, 7, 0, 28, 0, 29, 10, 0, 30, 0, 31, 0, 0, 0, 12, 0, 13, 0, 417, 33, 15, 0, 34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 35, 0, 36, 37, 38, 0, 39, 21, 0, 0, 0, 6, 0, 0, 7, 0, 28, 0, 585, 10, 0, 30, 0, 31, 0, 0, 0, 12, 0, 13, 0, 332, 33, 15, 0, 34, 0, 0, 0, 0, 0, 0, 0, 192, 0, 0, 35, 0, 36, 37, 38, 0, 39, 21, 0, 0, 0, 193, 0, 192, 194, 195, 28, 196, 29, 0, 0, 30, 197, 31, 198, 0, 199, 193, 0, 0, 194, 195, 33, 196, 200, 34, 0, 0, 197, 0, 198, 0, 199, 0, 0, 0, 35, 0, 36, 37, 38, 0, 39, 0, 0, 0, 0, 201, 0, 0, 202, 203, 0, 204, 192, 205, 0, 0, 207, 208, 209, 0, 0, 201, 210, 0, 202, 203, 193, 204, 0, 205, 0, 0, 196, 208, 209, 0, 0, 197, 210, 198, 0, 199, 0, 0, 2, 0, 0, 0, 0, 0, 0, 3, 4, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 122, 0, 0, 0, 0, 0, 0, 0, 0, 8, 9, 0, 202, 203, 0, 204, 0, 205, 11, 0, 207, 208, 209, 0, 0, 14, 210, 0, 16, 17, 18, 19, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 3, 4, 20, 0, 0, 22, 23, 5, 24, 25, 26, 27, 261, 0, 0, 0, 0, 0, 0, 0, 0, 8, 9, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 14, 0, 0, 16, 17, 18, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 0, 0, 22, 23, 0, 24, 25, 26, 27 }; static const yytype_int16 yycheck[] = { 0, 235, 219, 273, 348, 270, 50, 240, 21, 47, 10, 174, 277, 290, 52, 15, 128, 94, 150, 273, 315, 407, 0, 280, 0, 264, 52, 4, 151, 29, 4, 448, 32, 33, 34, 274, 1, 20, 313, 20, 486, 41, 1, 87, 309, 157, 64, 64, 3, 20, 299, 300, 45, 27, 4, 80, 7, 78, 444, 82, 446, 78, 82, 41, 108, 41, 86, 45, 80, 45, 93, 82, 13, 536, 74, 75, 462, 54, 291, 20, 54, 106, 23, 316, 4, 106, 97, 100, 106, 106, 24, 4, 305, 93, 106, 4, 20, 346, 136, 26, 4, 4, 79, 80, 86, 82, 80, 89, 82, 36, 454, 52, 53, 96, 88, 532, 57, 58, 281, 96, 243, 86, 96, 356, 107, 106, 107, 82, 87, 110, 168, 124, 82, 84, 399, 400, 107, 87, 270, 414, 415, 264, 168, 438, 409, 277, 124, 404, 124, 261, 54, 274, 365, 87, 266, 430, 431, 432, 604, 398, 80, 624, 82, 626, 105, 89, 107, 4, 291, 82, 79, 215, 216, 82, 87, 79, 80, 309, 82, 82, 87, 567, 305, 107, 87, 297, 230, 231, 4, 423, 424, 191, 96, 79, 194, 195, 6, 541, 310, 24, 200, 201, 17, 4, 111, 106, 106, 79, 87, 110, 96, 211, 212, 213, 214, 485, 486, 54, 97, 110, 383, 455, 299, 300, 96, 225, 79, 504, 228, 44, 495, 485, 232, 82, 87, 27, 359, 86, 78, 49, 89, 51, 365, 80, 244, 82, 82, 106, 0, 249, 594, 110, 252, 89, 254, 255, 17, 257, 79, 96, 273, 82, 87, 79, 87, 80, 82, 399, 400, 346, 85, 348, 404, 350, 274, 398, 37, 409, 79, 94, 318, 82, 82, 44, 407, 408, 630, 87, 79, 106, 107, 82, 292, 293, 294, 570, 88, 89, 573, 87, 79, 301, 302, 82, 304, 82, 306, 307, 308, 86, 13, 14, 89, 546, 358, 87, 87, 20, 21, 80, 81, 444, 83, 446, 85, 82, 37, 37, 440, 1, 87, 7, 82, 94, 604, 11, 12, 87, 82, 462, 82, 13, 78, 87, 80, 87, 49, 50, 20, 349, 53, 23, 55, 87, 82, 58, 32, 60, 592, 87, 577, 578, 82, 495, 82, 598, 78, 87, 80, 87, 1, 82, 82, 87, 87, 86, 86, 454, 86, 78, 52, 53, 13, 87, 87, 57, 58, 79, 89, 20, 82, 94, 23, 87, 3, 79, 27, 100, 82, 106, 79, 108, 78, 82, 360, 108, 406, 363, 84, 643, 78, 6, 6, 87, 89, 87, 92, 78, 89, 122, 89, 52, 53, 89, 86, 128, 57, 58, 86, 41, 553, 43, 86, 105, 86, 107, 86, 86, 86, 82, 87, 86, 86, 443, 567, 445, 86, 150, 151, 449, 450, 86, 89, 453, 157, 67, 87, 88, 89, 89, 89, 461, 74, 75, 541, 107, 78, 41, 84, 43, 547, 86, 485, 486, 105, 108, 107, 87, 89, 87, 92, 86, 78, 95, 86, 5, 189, 487, 95, 80, 94, 89, 26, 67, 106, 36, 108, 109, 110, 87, 112, 78, 89, 87, 78, 505, 550, 87, 22, 509, 5, 511, 215, 216, 87, 87, 516, 594, 92, 87, 89, 95, 89, 226, 98, 63, 84, 230, 231, 89, 106, 106, 106, 82, 108, 109, 110, 89, 112, 242, 243, 89, 84, 86, 89, 545, 553, 87, 41, 361, 89, 504, 278, 630, 136, 478, 556, 483, 261, 53, 485, 264, 265, 266, 630, 565, 454, 270, 271, 168, 273, 274, 64, 302, 277, 511, 576, 280, 509, 579, 580, 581, 582, 583, 584, 585, 78, 290, 291, 435, 634, 604, 21, 21, 297, 574, 299, 300, 585, 255, 257, 252, 305, 29, 30, 462, 309, 310, -1, -1, -1, -1, 315, -1, 106, -1, 108, 109, 110, -1, 112, -1, -1, -1, 50, 51, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 636, 637, 64, 65, -1, 641, 642, 346, 347, 348, -1, 350, -1, -1, -1, -1, 78, -1, -1, 358, 359, -1, -1, -1, -1, -1, 365, -1, -1, -1, 1, -1, -1, 4, -1, -1, -1, -1, -1, -1, -1, -1, 13, -1, 106, -1, 108, 109, 110, 20, 112, -1, 23, -1, -1, -1, 27, -1, -1, 398, 399, 400, -1, -1, -1, 404, -1, -1, 407, 408, 409, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 52, 53, 54, -1, -1, 57, 58, -1, -1, -1, -1, -1, -1, -1, -1, 435, -1, 437, 438, -1, 440, -1, 442, -1, 444, -1, 446, 79, 80, -1, 82, -1, 452, -1, 454, 87, 88, 89, -1, -1, -1, -1, 462, -1, 96, -1, -1, 10, -1, -1, 13, 14, -1, 105, -1, 107, -1, 20, 478, 479, -1, -1, -1, 483, -1, 485, 486, -1, -1, -1, -1, -1, -1, -1, 37, 495, 39, -1, -1, -1, -1, -1, -1, -1, 504, -1, -1, -1, -1, -1, -1, -1, 55, 56, -1, 58, 59, 60, 61, 62, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 536, -1, -1, -1, -1, 541, -1, -1, -1, -1, -1, 547, -1, -1, 550, -1, -1, 553, -1, 555, -1, -1, -1, -1, -1, -1, -1, -1, 107, -1, -1, 567, -1, -1, -1, -1, 0, 1, 574, -1, -1, -1, 578, -1, 8, 9, -1, -1, -1, -1, -1, 15, -1, -1, -1, 591, -1, -1, 594, -1, -1, 25, -1, -1, 28, 29, 30, -1, 604, 33, -1, -1, -1, -1, 38, -1, -1, 41, -1, 43, -1, 45, -1, 47, 48, 49, 50, 51, 624, -1, 626, -1, -1, -1, 630, -1, -1, -1, 634, -1, -1, -1, 66, 67, -1, 69, 70, -1, 72, 73, 74, 75, 76, -1, 78, -1, -1, 81, -1, 83, -1, -1, -1, -1, 0, 1, 90, -1, 92, -1, -1, 95, 8, 9, -1, -1, -1, -1, -1, 15, -1, -1, 106, -1, 108, 109, 110, -1, 112, 25, -1, -1, 28, 29, 30, -1, -1, 33, -1, -1, -1, -1, 38, -1, -1, 41, -1, 43, -1, 45, -1, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 66, 67, -1, 69, 70, -1, 72, 73, 74, 75, 76, -1, 78, -1, -1, 81, -1, 83, -1, -1, -1, -1, 0, 1, 90, -1, 92, -1, -1, 95, 8, 9, -1, -1, -1, -1, -1, 15, -1, -1, 106, -1, 108, 109, 110, -1, 112, 25, -1, -1, 28, 29, 30, -1, -1, 33, -1, -1, -1, -1, 38, -1, -1, 41, -1, 43, -1, 45, -1, 47, 48, 49, 50, 51, -1, 10, -1, -1, 13, 14, -1, -1, -1, -1, -1, 20, -1, -1, 66, 67, -1, 69, 70, -1, 72, 73, 74, 75, 76, -1, 78, -1, 37, 81, 39, 83, 4, -1, -1, -1, -1, -1, 90, -1, 92, -1, -1, 95, -1, 17, 55, 56, 20, 58, 59, 60, 61, 62, 106, -1, 108, 109, 110, 31, 112, -1, 34, 35, 4, 37, -1, -1, -1, -1, 42, -1, 44, -1, 46, -1, -1, 17, 18, -1, -1, -1, 54, -1, -1, -1, -1, -1, -1, -1, -1, 31, -1, -1, 34, 35, -1, 37, 107, -1, -1, -1, 42, -1, 44, 77, 46, -1, 80, 81, -1, 83, -1, 85, 54, -1, 88, 89, 90, -1, -1, -1, 94, -1, -1, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, 107, -1, 77, 17, -1, 80, 81, -1, 83, -1, 85, 86, -1, 88, 89, 90, -1, 31, 93, 94, 34, 35, 4, 37, -1, -1, -1, -1, 42, -1, 44, -1, 46, -1, -1, 17, -1, -1, -1, -1, 54, -1, -1, -1, -1, -1, -1, -1, -1, 31, -1, -1, 34, 35, -1, 37, -1, -1, -1, -1, 42, -1, 44, 77, 46, -1, 80, 81, -1, 83, -1, 85, 54, 87, 88, 89, 90, -1, -1, -1, 94, -1, -1, 4, -1, -1, 68, -1, -1, -1, -1, -1, -1, -1, -1, 77, 17, -1, 80, 81, -1, 83, -1, 85, 4, -1, 88, 89, 90, -1, 31, -1, 94, 34, 35, -1, 37, 17, 18, -1, -1, 42, -1, 44, -1, 46, -1, -1, -1, -1, -1, 31, -1, 54, 34, 35, -1, 37, -1, -1, -1, -1, 42, -1, 44, -1, 46, -1, -1, -1, -1, -1, -1, -1, 54, -1, 77, -1, -1, 80, 81, -1, 83, -1, 85, -1, 87, 88, 89, 90, -1, 4, -1, 94, -1, -1, -1, 77, -1, -1, 80, 81, -1, 83, 17, 85, -1, 4, 88, 89, 90, 24, -1, -1, 94, -1, -1, -1, 31, -1, 17, 34, 35, -1, 37, -1, -1, -1, -1, 42, -1, 44, -1, 46, 31, -1, -1, 34, 35, -1, 37, 54, -1, -1, -1, 42, -1, 44, -1, 46, -1, -1, -1, -1, -1, -1, -1, 54, -1, -1, -1, -1, -1, -1, 77, -1, -1, 80, 81, -1, 83, -1, 85, -1, 4, 88, 89, 90, -1, -1, 77, 94, -1, 80, 81, -1, 83, 17, 85, -1, 4, 88, 89, 90, -1, -1, 93, 94, -1, -1, -1, 31, -1, 17, 34, 35, 4, 37, -1, -1, -1, -1, 42, -1, 44, -1, 46, 31, -1, 17, 34, 35, -1, 37, 54, -1, -1, -1, 42, -1, 44, -1, 46, 31, -1, -1, 34, 35, -1, 37, 54, -1, -1, -1, 42, -1, 44, 77, 46, -1, 80, 81, -1, 83, -1, 85, 54, 87, 88, 89, 90, -1, -1, 77, 94, -1, 80, 81, -1, 83, -1, 85, -1, 87, 88, 89, 90, -1, -1, 77, 94, 79, 80, 81, 4, 83, -1, 85, -1, -1, 88, 89, 90, -1, -1, -1, 94, 17, -1, -1, 4, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 31, -1, 17, 34, 35, -1, 37, -1, -1, -1, -1, 42, -1, 44, -1, 46, 31, -1, -1, 34, 35, -1, 37, 54, -1, -1, -1, 42, -1, 44, -1, 46, -1, -1, 41, -1, 43, -1, -1, 54, -1, -1, -1, -1, -1, -1, 77, -1, 79, 80, 81, -1, 83, -1, 85, -1, 4, 88, 89, 90, 67, -1, 77, 94, -1, 80, 81, -1, 83, 17, 85, 78, -1, 88, 89, 90, -1, 4, 93, 94, -1, -1, -1, 31, -1, 92, 34, 35, 95, 37, 17, -1, -1, -1, 42, -1, 44, -1, 46, 106, -1, 108, 109, 110, 31, 112, 54, 34, 35, -1, 37, -1, -1, -1, -1, 42, -1, 44, -1, 46, -1, -1, -1, -1, -1, -1, -1, 54, -1, 77, -1, -1, 80, 81, -1, 83, -1, 85, 4, -1, 88, 89, 90, -1, -1, 93, 94, -1, -1, -1, 77, 17, 79, 80, 81, -1, 83, -1, 85, 4, -1, 88, 89, 90, -1, 31, -1, 94, 34, 35, -1, 37, 17, -1, -1, -1, 42, -1, 44, -1, 46, -1, -1, -1, -1, -1, 31, -1, 54, 34, 35, -1, 37, -1, -1, -1, -1, 42, -1, 44, -1, 46, -1, -1, -1, -1, -1, -1, -1, 54, -1, 77, -1, 79, 80, 81, -1, 83, -1, 85, 4, -1, 88, 89, 90, -1, -1, -1, 94, -1, -1, -1, 77, 17, -1, 80, 81, -1, 83, 4, 85, -1, 87, 88, 89, 90, -1, 31, -1, 94, 34, 35, 17, 37, 19, -1, -1, -1, 42, -1, 44, -1, 46, -1, -1, -1, 31, -1, -1, -1, 54, -1, 37, -1, -1, -1, -1, 42, -1, 44, -1, 46, -1, -1, -1, -1, -1, -1, -1, 54, -1, -1, -1, 77, 4, -1, 80, 81, -1, 83, -1, 85, -1, -1, 88, 89, 90, 17, -1, -1, 94, -1, 77, 4, -1, 80, 81, -1, 83, -1, 85, 31, -1, 88, 89, 90, 17, 37, -1, 94, -1, -1, 42, -1, 44, -1, 46, -1, -1, -1, 31, -1, -1, -1, 54, -1, 37, -1, -1, -1, -1, 42, -1, 44, -1, 46, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 77, -1, 25, 80, 81, 28, 83, -1, 85, -1, 33, 88, 89, 90, -1, -1, -1, 94, 41, -1, 43, -1, 80, 81, 47, 83, -1, 85, -1, -1, 88, 89, 90, -1, -1, -1, 94, -1, -1, -1, -1, -1, -1, -1, 67, -1, -1, -1, -1, -1, -1, 74, 75, 76, -1, 78, -1, -1, 81, 25, 83, -1, 28, -1, 87, -1, -1, 33, 91, 92, -1, -1, 95, -1, -1, 41, -1, 43, -1, -1, -1, 47, -1, 106, -1, 108, 109, 110, -1, 112, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 67, -1, 25, -1, -1, 28, -1, 74, 75, 76, 33, 78, -1, -1, 81, -1, 83, -1, 41, -1, 43, -1, -1, -1, 47, 92, -1, -1, 95, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 106, -1, 108, 109, 110, 67, 112, -1, -1, 25, -1, -1, 28, -1, 76, -1, 78, 33, -1, 81, -1, 83, -1, -1, -1, 41, -1, 43, -1, 91, 92, 47, -1, 95, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 106, -1, 108, 109, 110, -1, 112, 67, -1, -1, -1, 25, -1, -1, 28, -1, 76, -1, 78, 33, -1, 81, -1, 83, -1, -1, -1, 41, -1, 43, -1, 91, 92, 47, -1, 95, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 106, -1, 108, 109, 110, -1, 112, 67, -1, -1, -1, 25, -1, -1, 28, -1, 76, -1, 78, 33, -1, 81, -1, 83, -1, -1, -1, 41, -1, 43, -1, 91, 92, 47, -1, 95, -1, -1, -1, -1, -1, -1, -1, 17, -1, -1, 106, -1, 108, 109, 110, -1, 112, 67, -1, -1, -1, 31, -1, 17, 34, 35, 76, 37, 78, -1, -1, 81, 42, 83, 44, -1, 46, 31, -1, -1, 34, 35, 92, 37, 54, 95, -1, -1, 42, -1, 44, -1, 46, -1, -1, -1, 106, -1, 108, 109, 110, -1, 112, -1, -1, -1, -1, 77, -1, -1, 80, 81, -1, 83, 17, 85, -1, -1, 88, 89, 90, -1, -1, 77, 94, -1, 80, 81, 31, 83, -1, 85, -1, -1, 37, 89, 90, -1, -1, 42, 94, 44, -1, 46, -1, -1, 1, -1, -1, -1, -1, -1, -1, 8, 9, -1, -1, -1, -1, -1, 15, -1, -1, -1, -1, 20, -1, -1, -1, -1, -1, -1, -1, -1, 29, 30, -1, 80, 81, -1, 83, -1, 85, 38, -1, 88, 89, 90, -1, -1, 45, 94, -1, 48, 49, 50, 51, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 8, 9, 66, -1, -1, 69, 70, 15, 72, 73, 74, 75, 20, -1, -1, -1, -1, -1, -1, -1, -1, 29, 30, -1, -1, -1, -1, -1, -1, -1, 38, -1, -1, -1, -1, -1, -1, 45, -1, -1, 48, 49, 50, 51, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 66, -1, -1, 69, 70, -1, 72, 73, 74, 75 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint16 yystos[] = { 0, 0, 1, 8, 9, 15, 25, 28, 29, 30, 33, 38, 41, 43, 45, 47, 48, 49, 50, 51, 66, 67, 69, 70, 72, 73, 74, 75, 76, 78, 81, 83, 90, 92, 95, 106, 108, 109, 110, 112, 118, 119, 120, 121, 122, 123, 131, 132, 133, 134, 163, 168, 169, 170, 189, 190, 191, 192, 194, 195, 197, 198, 200, 201, 202, 213, 214, 215, 216, 217, 218, 219, 220, 221, 229, 230, 231, 232, 233, 235, 236, 237, 240, 241, 244, 254, 265, 6, 49, 51, 215, 110, 78, 172, 173, 253, 254, 254, 215, 254, 98, 231, 233, 235, 238, 239, 254, 162, 163, 215, 249, 250, 215, 215, 245, 246, 215, 247, 248, 0, 120, 1, 20, 121, 130, 87, 1, 13, 20, 23, 52, 53, 57, 58, 105, 107, 137, 138, 139, 140, 141, 150, 154, 155, 159, 160, 166, 255, 27, 88, 89, 142, 254, 253, 87, 10, 14, 20, 37, 39, 55, 56, 59, 60, 61, 62, 139, 166, 179, 180, 181, 182, 183, 184, 158, 171, 254, 87, 254, 87, 87, 193, 254, 87, 196, 254, 87, 86, 87, 89, 87, 4, 17, 31, 34, 35, 37, 42, 44, 46, 54, 77, 80, 81, 83, 85, 87, 88, 89, 90, 94, 222, 226, 227, 228, 78, 78, 215, 215, 7, 11, 12, 32, 78, 84, 92, 234, 3, 223, 253, 6, 6, 68, 215, 64, 175, 177, 252, 254, 258, 262, 264, 82, 86, 89, 87, 268, 231, 254, 89, 253, 79, 87, 87, 18, 82, 93, 82, 97, 254, 256, 20, 121, 256, 86, 86, 20, 138, 1, 87, 86, 86, 1, 86, 86, 167, 65, 78, 143, 144, 148, 149, 170, 254, 257, 262, 265, 251, 252, 254, 78, 86, 89, 86, 86, 256, 87, 20, 180, 86, 86, 86, 86, 172, 89, 86, 89, 89, 89, 199, 20, 110, 166, 203, 204, 205, 206, 211, 212, 254, 215, 215, 215, 215, 215, 215, 215, 215, 215, 253, 253, 255, 91, 215, 242, 243, 108, 215, 254, 215, 253, 253, 215, 4, 79, 82, 145, 84, 86, 89, 78, 80, 147, 254, 252, 259, 261, 215, 26, 36, 124, 125, 128, 129, 215, 86, 250, 215, 215, 246, 248, 87, 256, 251, 151, 152, 153, 254, 256, 87, 143, 156, 157, 158, 254, 161, 162, 164, 165, 240, 215, 251, 254, 87, 111, 143, 54, 96, 142, 145, 146, 147, 257, 172, 86, 1, 89, 78, 82, 89, 135, 136, 254, 264, 259, 215, 215, 91, 186, 187, 188, 215, 256, 175, 175, 185, 215, 185, 215, 259, 215, 215, 215, 143, 256, 96, 211, 95, 205, 147, 20, 166, 86, 37, 86, 37, 86, 79, 82, 18, 86, 93, 24, 19, 5, 175, 254, 258, 215, 262, 263, 89, 78, 147, 80, 253, 126, 127, 252, 128, 124, 128, 259, 93, 87, 87, 82, 87, 266, 89, 4, 82, 87, 267, 172, 87, 87, 22, 87, 87, 87, 79, 251, 143, 143, 78, 257, 265, 215, 260, 261, 252, 143, 79, 82, 89, 211, 211, 87, 82, 87, 5, 87, 87, 87, 87, 89, 211, 211, 211, 203, 207, 208, 209, 254, 256, 110, 254, 215, 261, 215, 261, 63, 243, 215, 215, 78, 225, 254, 215, 78, 174, 178, 254, 258, 89, 79, 82, 215, 260, 24, 87, 87, 82, 87, 84, 89, 152, 254, 157, 162, 164, 165, 215, 143, 89, 79, 82, 1, 136, 215, 187, 188, 215, 87, 97, 89, 7, 84, 79, 79, 96, 79, 79, 96, 78, 243, 93, 93, 224, 225, 84, 176, 178, 86, 215, 147, 262, 79, 253, 127, 252, 80, 215, 87, 79, 215, 261, 211, 211, 208, 210, 215, 255, 254, 255, 215, 215, 215, 215, 215, 215, 215, 242, 4, 79, 82, 108, 254, 79, 145, 258, 147, 87, 24, 87, 79, 79, 79, 225, 225, 89, 89, 176, 253, 215, 215, 215, 215, 87 }; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0)) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ #define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ do \ if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (YYID (0)) #endif /* YY_LOCATION_PRINT -- Print the location on the stream. This macro was not mandated originally: define only if we know we won't break user code: when these are the locations we know. */ #ifndef YY_LOCATION_PRINT # if YYLTYPE_IS_TRIVIAL # define YY_LOCATION_PRINT(File, Loc) \ fprintf (File, "%d.%d-%d.%d", \ (Loc).first_line, (Loc).first_column, \ (Loc).last_line, (Loc).last_column) # else # define YY_LOCATION_PRINT(File, Loc) ((void) 0) # endif #endif /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM # define YYLEX yylex (YYLEX_PARAM) #else # define YYLEX yylex () #endif /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (YYID (0)) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (YYID (0)) /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_value_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # else YYUSE (yyoutput); # endif switch (yytype) { default: break; } } /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (yytype < YYNTOKENS) YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); yy_symbol_value_print (yyoutput, yytype, yyvaluep); YYFPRINTF (yyoutput, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_stack_print (yytype_int16 *bottom, yytype_int16 *top) #else static void yy_stack_print (bottom, top) yytype_int16 *bottom; yytype_int16 *top; #endif { YYFPRINTF (stderr, "Stack now"); for (; bottom <= top; ++bottom) YYFPRINTF (stderr, " %d", *bottom); YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (YYID (0)) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_reduce_print (YYSTYPE *yyvsp, int yyrule) #else static void yy_reduce_print (yyvsp, yyrule) YYSTYPE *yyvsp; int yyrule; #endif { int yynrhs = yyr2[yyrule]; int yyi; unsigned long int yylno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { fprintf (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], &(yyvsp[(yyi + 1) - (yynrhs)]) ); fprintf (stderr, "\n"); } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (yyvsp, Rule); \ } while (YYID (0)) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #if YYERROR_VERBOSE # ifndef yystrlen # if defined __GLIBC__ && defined _STRING_H # define yystrlen strlen # else /* Return the length of YYSTR. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static YYSIZE_T yystrlen (const char *yystr) #else static YYSIZE_T yystrlen (yystr) const char *yystr; #endif { YYSIZE_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } # endif # endif # ifndef yystpcpy # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static char * yystpcpy (char *yydest, const char *yysrc) #else static char * yystpcpy (yydest, yysrc) char *yydest; const char *yysrc; #endif { char *yyd = yydest; const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif # ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string contains an apostrophe, a comma, or backslash (other than backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ static YYSIZE_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { YYSIZE_T yyn = 0; char const *yyp = yystr; for (;;) switch (*++yyp) { case '\'': case ',': goto do_not_strip_quotes; case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; /* Fall through. */ default: if (yyres) yyres[yyn] = *yyp; yyn++; break; case '"': if (yyres) yyres[yyn] = '\0'; return yyn; } do_not_strip_quotes: ; } if (! yyres) return yystrlen (yystr); return yystpcpy (yyres, yystr) - yyres; } # endif /* Copy into YYRESULT an error message about the unexpected token YYCHAR while in state YYSTATE. Return the number of bytes copied, including the terminating null byte. If YYRESULT is null, do not copy anything; just return the number of bytes that would be copied. As a special case, return 0 if an ordinary "syntax error" message will do. Return YYSIZE_MAXIMUM if overflow occurs during size calculation. */ static YYSIZE_T yysyntax_error (char *yyresult, int yystate, int yychar) { int yyn = yypact[yystate]; if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) return 0; else { int yytype = YYTRANSLATE (yychar); YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); YYSIZE_T yysize = yysize0; YYSIZE_T yysize1; int yysize_overflow = 0; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; int yyx; # if 0 /* This is so xgettext sees the translatable formats that are constructed on the fly. */ YY_("syntax error, unexpected %s"); YY_("syntax error, unexpected %s, expecting %s"); YY_("syntax error, unexpected %s, expecting %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); # endif char *yyfmt; char const *yyf; static char const yyunexpected[] = "syntax error, unexpected %s"; static char const yyexpecting[] = ", expecting %s"; static char const yyor[] = " or %s"; char yyformat[sizeof yyunexpected + sizeof yyexpecting - 1 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) * (sizeof yyor - 1))]; char const *yyprefix = yyexpecting; /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn + 1; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yycount = 1; yyarg[0] = yytname[yytype]; yyfmt = yystpcpy (yyformat, yyunexpected); for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { yycount = 1; yysize = yysize0; yyformat[sizeof yyunexpected - 1] = '\0'; break; } yyarg[yycount++] = yytname[yyx]; yysize1 = yysize + yytnamerr (0, yytname[yyx]); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; yyfmt = yystpcpy (yyfmt, yyprefix); yyprefix = yyor; } yyf = YY_(yyformat); yysize1 = yysize + yystrlen (yyf); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; if (yysize_overflow) return YYSIZE_MAXIMUM; if (yyresult) { /* Avoid sprintf, as that infringes on the user's name space. Don't have undefined behavior even if the translation produced a string with the wrong number of "%s"s. */ char *yyp = yyresult; int yyi = 0; while ((*yyp = *yyf) != '\0') { if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) { yyp += yytnamerr (yyp, yyarg[yyi++]); yyf += 2; } else { yyp++; yyf++; } } } return yysize; } } #endif /* YYERROR_VERBOSE */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) #else static void yydestruct (yymsg, yytype, yyvaluep) const char *yymsg; int yytype; YYSTYPE *yyvaluep; #endif { YYUSE (yyvaluep); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); switch (yytype) { default: break; } } /* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM #if defined __STDC__ || defined __cplusplus int yyparse (void *YYPARSE_PARAM); #else int yyparse (); #endif #else /* ! YYPARSE_PARAM */ #if defined __STDC__ || defined __cplusplus int yyparse (void); #else int yyparse (); #endif #endif /* ! YYPARSE_PARAM */ /* The look-ahead symbol. */ int yychar; /* The semantic value of the look-ahead symbol. */ YYSTYPE yylval; /* Number of syntax errors so far. */ int yynerrs; /*----------. | yyparse. | `----------*/ #ifdef YYPARSE_PARAM #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void *YYPARSE_PARAM) #else int yyparse (YYPARSE_PARAM) void *YYPARSE_PARAM; #endif #else /* ! YYPARSE_PARAM */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void) #else int yyparse () #endif #endif { int yystate; int yyn; int yyresult; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* Look-ahead token as an internal (translated) token number. */ int yytoken = 0; #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif /* Three stacks and their tools: `yyss': related to states, `yyvs': related to semantic values, `yyls': related to locations. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ yytype_int16 yyssa[YYINITDEPTH]; yytype_int16 *yyss = yyssa; yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; YYSTYPE *yyvsp; #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) YYSIZE_T yystacksize = YYINITDEPTH; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. So pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyexhaustedlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { yytype_int16 *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss); YYSTACK_RELOCATE (yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a look-ahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to look-ahead token. */ yyn = yypact[yystate]; if (yyn == YYPACT_NINF) goto yydefault; /* Not known => get a look-ahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yyn == 0 || yyn == YYTABLE_NINF) goto yyerrlab; yyn = -yyn; goto yyreduce; } if (yyn == YYFINAL) YYACCEPT; /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the look-ahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the shifted token unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; yystate = yyn; *++yyvsp = yylval; goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; YY_REDUCE_PRINT (yyn); switch (yyn) { case 2: #line 377 "../../source/c/parser.y" { /* The follow-on processing is expecting an unfixed decl list, so we oblige here, and in the other top_level_item RHS elements. */ // parsetree = InitDeclList($1); parsetree = (yyvsp[(1) - (1)].nodeptr); YYACCEPT; } break; case 3: #line 387 "../../source/c/parser.y" { parsetree = null; YYACCEPT; } break; case 4: #line 395 "../../source/c/parser.y" { (yyval.nodeptr) = InitDeclList((yyvsp[(1) - (1)].nodeptr)); } break; case 5: #line 400 "../../source/c/parser.y" { (yyval.nodeptr) = AddToDeclList((yyvsp[(1) - (2)].nodeptr), (yyvsp[(2) - (2)].nodeptr)); } break; case 6: #line 405 "../../source/c/parser.y" { (yyval.nodeptr) = null; } break; case 10: #line 424 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (2)].nodeptr); if (not PARSE_ERROR) { EnterObject((yyval.nodeptr)); } } break; case 11: #line 432 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (2)].nodeptr); if (not PARSE_ERROR) { EnterOperation((yyval.nodeptr)); } } break; case 12: #line 440 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (2)].nodeptr); if (not PARSE_ERROR) { EnterObject((yyval.nodeptr)); } } break; case 17: #line 456 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (2)].nodeptr); if (not PARSE_ERROR) { EnterObject((yyval.nodeptr)); } } break; case 19: #line 466 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 20: #line 471 "../../source/c/parser.y" { parsetree = (yyvsp[(1) - (5)].nodeptr); SetSpecUnitBody((yyval.nodeptr), (yyvsp[(2) - (5)].nodeptr)); ExitModule((yyvsp[(1) - (5)].nodeptr)); ChkEnder(GetModuleName((yyvsp[(1) - (5)].nodeptr)), (yyvsp[(4) - (5)].nodeptr)); } break; case 21: #line 479 "../../source/c/parser.y" { nodep n; (yyvsp[(1) - (4)].nodeptr)->components.module.priority = null; /* * $1->components.module.imports = null; $1->components.module.exports = null; * */ (yyvsp[(1) - (4)].nodeptr)->components.module.body = (n = NewNode(SPEC_NODE, null, loc((yyvsp[(1) - (4)].nodeptr)))); n->components.spec.entities = null; parsetree = (yyvsp[(1) - (4)].nodeptr); ExitModule((yyvsp[(1) - (4)].nodeptr)); ChkEnder((yyvsp[(1) - (4)].nodeptr)->components.module.name, (yyvsp[(3) - (4)].nodeptr)); } break; case 22: #line 499 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(MODULE_NODE, YOBJ, (yyvsp[(1) - (3)].keyword).loc); (yyval.nodeptr)->components.module.name = (yyvsp[(2) - (3)].nodeptr); (yyval.nodeptr)->components.module.imports = null; (yyval.nodeptr)->components.module.exports = null; EnterModule((yyvsp[(2) - (3)].nodeptr), YMODULE); } break; case 23: #line 508 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(MODULE_NODE, YOBJ, (yyvsp[(1) - (4)].keyword).loc); (yyval.nodeptr)->components.module.name = (yyvsp[(2) - (4)].nodeptr); (yyval.nodeptr)->components.module.imports = (yyvsp[(4) - (4)].nodeptr); (yyval.nodeptr)->components.module.exports = null; EnterModule((yyvsp[(2) - (4)].nodeptr), YMODULE); } break; case 24: #line 517 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(MODULE_NODE, YOBJ, (yyvsp[(1) - (4)].keyword).loc); (yyval.nodeptr)->components.module.name = (yyvsp[(2) - (4)].nodeptr); (yyval.nodeptr)->components.module.imports = null; (yyval.nodeptr)->components.module.exports = (yyvsp[(4) - (4)].nodeptr); EnterModule((yyvsp[(2) - (4)].nodeptr), YMODULE); } break; case 25: #line 526 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(MODULE_NODE, YOBJ, (yyvsp[(1) - (5)].keyword).loc); (yyval.nodeptr)->components.module.name = (yyvsp[(2) - (5)].nodeptr); (yyval.nodeptr)->components.module.imports = (yyvsp[(4) - (5)].nodeptr); (yyval.nodeptr)->components.module.exports = (yyvsp[(5) - (5)].nodeptr); EnterModule((yyvsp[(2) - (5)].nodeptr), YMODULE); } break; case 26: #line 537 "../../source/c/parser.y" { (yyval.nodeptr)->components.decl.next = null; (yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr); } break; case 27: #line 543 "../../source/c/parser.y" { (yyvsp[(1) - (2)].nodeptr)->components.decl.next = (yyvsp[(2) - (2)].nodeptr); (yyval.nodeptr) = (yyvsp[(1) - (2)].nodeptr); } break; case 28: #line 551 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YIMPORT, (yyvsp[(1) - (3)].keyword).loc); (yyval.nodeptr)->components.decl.kind.import.items = FixAtomList2((yyvsp[(2) - (3)].nodeptr)); (yyval.nodeptr)->components.decl.kind.import.isall = false; (yyval.nodeptr)->components.decl.kind.import.except = null; } break; case 29: #line 560 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YIMPORT, (yyvsp[(1) - (5)].keyword).loc); (yyval.nodeptr)->components.decl.kind.import.items = FixAtomList((yyvsp[(2) - (5)].nodeptr)); (yyval.nodeptr)->components.decl.kind.import.isall = true; (yyval.nodeptr)->components.decl.kind.import.except = null; } break; case 30: #line 569 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YIMPORT, (yyvsp[(1) - (7)].keyword).loc); (yyval.nodeptr)->components.decl.kind.import.items = FixAtomList((yyvsp[(2) - (7)].nodeptr)); (yyval.nodeptr)->components.decl.kind.import.isall = true; (yyval.nodeptr)->components.decl.kind.import.except = FixAtomList((yyvsp[(6) - (7)].nodeptr)); } break; case 31: #line 581 "../../source/c/parser.y" {(yyval.nodeptr) = InitAtomList2((yyvsp[(1) - (1)].nodeptr));} break; case 32: #line 584 "../../source/c/parser.y" {(yyval.nodeptr) = AddToAtomList2((yyvsp[(1) - (3)].nodeptr), (yyvsp[(3) - (3)].nodeptr));} break; case 33: #line 589 "../../source/c/parser.y" {(yyval.nodeptr) = FixAtomList((yyvsp[(1) - (1)].nodeptr));} break; case 34: #line 594 "../../source/c/parser.y" { (yyval.nodeptr)->components.decl.next = null; (yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr); } break; case 35: #line 600 "../../source/c/parser.y" { (yyvsp[(1) - (2)].nodeptr)->components.decl.next = (yyvsp[(2) - (2)].nodeptr); (yyval.nodeptr) = (yyvsp[(1) - (2)].nodeptr); } break; case 36: #line 608 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YEXPORT, (yyvsp[(1) - (3)].keyword).loc); (yyval.nodeptr)->components.decl.kind.export_.names = FixAtomList((yyvsp[(2) - (3)].nodeptr)); (yyval.nodeptr)->components.decl.kind.export_.isall = false; (yyval.nodeptr)->components.decl.kind.export_.except = null; /*EnterExports($2, null);*/ } break; case 37: #line 618 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YEXPORT, (yyvsp[(1) - (3)].keyword).loc); (yyval.nodeptr)->components.decl.kind.export_.names = null; (yyval.nodeptr)->components.decl.kind.export_.isall = true; (yyval.nodeptr)->components.decl.kind.export_.except = null; /*EnterExports($2, null);*/ } break; case 38: #line 627 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YEXPORT, (yyvsp[(1) - (5)].keyword).loc); (yyval.nodeptr)->components.decl.kind.export_.names = null; (yyval.nodeptr)->components.decl.kind.export_.isall = true; (yyval.nodeptr)->components.decl.kind.export_.except = FixAtomList((yyvsp[(4) - (5)].nodeptr)); /*EnterExports($2, null);*/ } break; case 39: #line 639 "../../source/c/parser.y" { (yyval.nodeptr) = InitDeclList((yyvsp[(1) - (1)].nodeptr)); } break; case 40: #line 644 "../../source/c/parser.y" { (yyval.nodeptr) = AddToDeclList((yyvsp[(1) - (2)].nodeptr), (yyvsp[(2) - (2)].nodeptr)); } break; case 41: #line 651 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.ops = null; (yyval.nodeptr)->components.decl.kind.obj.eqns = null; (yyval.nodeptr)->components.decl.kind.obj.attrs = null; ProcessAbsObjAttrs((yyval.nodeptr), (yyvsp[(1) - (1)].nodeptr)->components.decl.kind.obj.parts, null); ExitObject((yyval.nodeptr), startp, endp); } break; case 42: #line 662 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.ops = null; (yyval.nodeptr)->components.decl.kind.obj.eqns = null; (yyval.nodeptr)->components.decl.kind.obj.attrs = null; ExitObject((yyval.nodeptr), startp, endp); } break; case 43: #line 671 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (4)].nodeptr); (yyvsp[(2) - (4)].nodeptr) = FixDeclList((yyvsp[(2) - (4)].nodeptr)); (yyval.nodeptr)->components.decl.kind.obj.where = FindAttr((yyvsp[(2) - (4)].nodeptr), YWHERE); (yyval.nodeptr)->components.decl.kind.obj.ops = FindAttr((yyvsp[(2) - (4)].nodeptr), YOPS); (yyval.nodeptr)->components.decl.kind.obj.eqns = FindAttr((yyvsp[(2) - (4)].nodeptr), YEQUATIONS); (yyval.nodeptr)->components.decl.kind.obj.attrs = (yyvsp[(2) - (4)].nodeptr); ProcessAbsObjAttrs((yyval.nodeptr), (yyvsp[(1) - (4)].nodeptr)->components.decl.kind.obj.parts, (yyvsp[(2) - (4)].nodeptr)); ExitObject((yyval.nodeptr), startp, endp); } break; case 44: #line 687 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 45: #line 692 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr); } break; case 46: #line 697 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.parts = (yyvsp[(3) - (3)].nodeptr); } break; case 47: #line 703 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.inheritsfrom = FixAtomList2((yyvsp[(3) - (3)].nodeptr)); } break; case 48: #line 710 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.parts = (yyvsp[(5) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.inheritsfrom = FixAtomList2((yyvsp[(3) - (5)].nodeptr)); } break; case 49: #line 718 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.parts = (yyvsp[(5) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.inheritsfrom = FixAtomList2((yyvsp[(3) - (5)].nodeptr)); } break; case 50: #line 728 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (2)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.name = (yyvsp[(2) - (2)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.parts = null; (yyval.nodeptr)->components.decl.kind.obj.flags = 0; (yyval.nodeptr)->components.decl.kind.obj.parms = null; (yyval.nodeptr)->components.decl.kind.obj.ops = null; (yyval.nodeptr)->components.decl.kind.obj.eqns = null; (yyval.nodeptr)->components.decl.kind.obj.attrs = null; (yyval.nodeptr)->components.decl.kind.obj.inheritsfrom = null; EnterObjectName((yyval.nodeptr), (yyvsp[(2) - (2)].nodeptr)); } break; case 51: #line 742 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.name = (yyvsp[(2) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.parts = null; (yyval.nodeptr)->components.decl.kind.obj.flags = 0; (yyval.nodeptr)->components.decl.kind.obj.parms = FixAtomList2((yyvsp[(4) - (5)].nodeptr)); (yyval.nodeptr)->components.decl.kind.obj.ops = null; (yyval.nodeptr)->components.decl.kind.obj.eqns = null; (yyval.nodeptr)->components.decl.kind.obj.attrs = null; (yyval.nodeptr)->components.decl.kind.obj.inheritsfrom = null; EnterObjectName((yyval.nodeptr), (yyvsp[(2) - (5)].nodeptr)); } break; case 52: #line 756 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 53: #line 761 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(DECL_NODE, YOBJ, (yyvsp[(1) - (1)].keyword).loc);} break; case 54: #line 764 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(DECL_NODE, YOBJ, (yyvsp[(1) - (1)].keyword).loc);} break; case 55: #line 769 "../../source/c/parser.y" {(yyval.nodeptr) = InitAtomList2((yyvsp[(1) - (1)].nodeptr));} break; case 56: #line 772 "../../source/c/parser.y" {(yyval.nodeptr) = AddToAtomList2((yyvsp[(1) - (3)].nodeptr), (yyvsp[(3) - (3)].nodeptr));} break; case 57: #line 777 "../../source/c/parser.y" {(yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr);} break; case 58: #line 780 "../../source/c/parser.y" {(yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr);} break; case 59: #line 785 "../../source/c/parser.y" {(yyval.nodeptr) = InitDeclList((yyvsp[(1) - (1)].nodeptr));} break; case 60: #line 788 "../../source/c/parser.y" {(yyval.nodeptr) = AddToDeclList((yyvsp[(1) - (2)].nodeptr), (yyvsp[(2) - (2)].nodeptr));} break; case 62: #line 795 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 68: #line 813 "../../source/c/parser.y" { ExitRecord((yyvsp[(1) - (3)].nodeptr)); (yyval.nodeptr) = NewNode(DECL_NODE, YPARTS, (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.decl.kind.parts = (yyvsp[(3) - (3)].nodeptr); inParts = false; } break; case 69: #line 823 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YPARENTS, (yyvsp[(2) - (4)].keyword).loc); (yyval.nodeptr)->components.decl.kind.parents = (yyvsp[(3) - (4)].nodeptr); } break; case 70: #line 831 "../../source/c/parser.y" {EnterRecord(); (yyval.nodeptr) = NewNode(TYPE_NODE, YRECORD, (yyvsp[(1) - (1)].keyword).loc);} break; case 71: #line 835 "../../source/c/parser.y" {EnterRecord(); (yyval.nodeptr) = NewNode(TYPE_NODE, YRECORD, (yyvsp[(1) - (1)].keyword).loc);} break; case 72: #line 841 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 73: #line 844 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 74: #line 849 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 75: #line 852 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (3)].nodeptr); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 76: #line 859 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (3)].nodeptr); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 77: #line 866 "../../source/c/parser.y" { if (isFullNameTypePair((yyvsp[(1) - (2)].nodeptr))) { (yyval.nodeptr) = (yyvsp[(1) - (2)].nodeptr); (yyvsp[(2) - (2)].nodeptr)->components.unop.operand = (yyvsp[(1) - (2)].nodeptr)->components.decl.kind.attr.value; (yyval.nodeptr)->components.decl.kind.attr.value = (yyvsp[(2) - (2)].nodeptr); } else { (yyval.nodeptr) = (yyvsp[(2) - (2)].nodeptr); (yyval.nodeptr)->components.unop.operand = (yyvsp[(1) - (2)].nodeptr); } } break; case 78: #line 880 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (2)].nodeptr); (yyval.nodeptr)->components.trinop.left_operand = (yyvsp[(2) - (2)].nodeptr)->components.decl.kind.opsig.ins; (yyval.nodeptr)->components.trinop.middle_operand = (yyvsp[(2) - (2)].nodeptr)->components.decl.kind.opsig.outs; (yyval.nodeptr)->components.trinop.right_operand = (nodep) CurSymtab->ParentEntry; ExitOperation(null, null, startp, endp); } break; case 79: #line 892 "../../source/c/parser.y" { if (isFullNameTypePair((yyvsp[(2) - (2)].nodeptr))) { (yyval.nodeptr) = (yyvsp[(2) - (2)].nodeptr); (yyvsp[(1) - (2)].nodeptr)->components.unop.operand = (yyvsp[(2) - (2)].nodeptr)->components.decl.kind.attr.value; (yyval.nodeptr)->components.decl.kind.attr.value = (yyvsp[(1) - (2)].nodeptr); } else { (yyval.nodeptr) = (yyvsp[(1) - (2)].nodeptr); (yyval.nodeptr)->components.unop.operand = (yyvsp[(2) - (2)].nodeptr); } } break; case 81: #line 910 "../../source/c/parser.y" { if ((yyvsp[(1) - (1)].nodeptr) == null) { (yyval.nodeptr) = null; } else { (yyval.nodeptr) = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (1)].nodeptr))); (yyval.nodeptr)->components.decl.kind.attr.name = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.colon = null; (yyval.nodeptr)->components.decl.kind.attr.value = null; (yyval.nodeptr)->components.decl.kind.attr.initvalue = null; } } break; case 82: #line 924 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (3)].nodeptr))); (yyval.nodeptr)->components.decl.kind.attr.name = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.colon = null; (yyval.nodeptr)->components.decl.kind.attr.value = null; (yyval.nodeptr)->components.decl.kind.attr.initvalue = (yyvsp[(3) - (3)].nodeptr); } break; case 83: #line 933 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (1)].nodeptr))); (yyval.nodeptr)->components.decl.kind.attr.name = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.colon = null; (yyval.nodeptr)->components.decl.kind.attr.value = null; } break; case 84: #line 941 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (3)].nodeptr); } break; case 85: #line 946 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (3)].nodeptr))); (yyval.nodeptr)->components.decl.kind.attr.name = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.colon = null; (yyval.nodeptr)->components.decl.kind.attr.value = (yyvsp[(3) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.initvalue = null; } break; case 86: #line 955 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (5)].nodeptr))); (yyval.nodeptr)->components.decl.kind.attr.name = (yyvsp[(1) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.colon = null; (yyval.nodeptr)->components.decl.kind.attr.value = (yyvsp[(3) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.initvalue = (yyvsp[(5) - (5)].nodeptr); } break; case 87: #line 964 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (3)].nodeptr))); (yyval.nodeptr)->components.decl.kind.attr.name = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.colon = null; (yyval.nodeptr)->components.decl.kind.attr.value = (yyvsp[(3) - (3)].nodeptr); } break; case 88: #line 972 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, ':', (yyvsp[(2) - (5)].keyword).loc); (yyval.nodeptr)->components.decl.kind.attr.name = (yyvsp[(1) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.colon = ':'; (yyval.nodeptr)->components.decl.kind.attr.value = (yyvsp[(4) - (5)].nodeptr); } break; case 89: #line 980 "../../source/c/parser.y" { (yyval.nodeptr) = null; } break; case 90: #line 985 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, YAND, (yyvsp[(1) - (1)].keyword).loc);} break; case 91: #line 988 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, YAND, (yyvsp[(1) - (1)].keyword).loc);} break; case 92: #line 993 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, YOR, (yyvsp[(1) - (1)].keyword).loc);} break; case 93: #line 996 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, YOR, (yyvsp[(1) - (1)].keyword).loc);} break; case 94: #line 1001 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(UNOP_NODE, YLIST, (yyvsp[(1) - (1)].keyword).loc);} break; case 95: #line 1006 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(UNOP_NODE, YREF, (yyvsp[(1) - (1)].keyword).loc);} break; case 96: #line 1011 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(TRINOP_NODE, YRTARROW, loc((yyvsp[(1) - (1)].nodeptr))); EnterAnonOpName(anonopnum++); } break; case 97: #line 1024 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YWHERE, (yyvsp[(2) - (4)].keyword).loc); (yyval.nodeptr)->components.decl.kind.where = FixDeclList((yyvsp[(3) - (4)].nodeptr)); } break; case 98: #line 1032 "../../source/c/parser.y" {(yyval.nodeptr) = NIL;} break; case 99: #line 1035 "../../source/c/parser.y" {(yyval.nodeptr) = InitDeclList((yyvsp[(1) - (1)].nodeptr));} break; case 100: #line 1038 "../../source/c/parser.y" {(yyval.nodeptr) = AddToDeclList((yyvsp[(1) - (3)].nodeptr), (yyvsp[(3) - (3)].nodeptr));} break; case 102: #line 1051 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, '=', (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.decl.kind.eq.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.eq.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 103: #line 1060 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YOPS, (yyvsp[(2) - (4)].keyword).loc); (yyval.nodeptr)->components.decl.kind.opsig.list = FixDeclList((yyvsp[(3) - (4)].nodeptr)); } break; case 104: #line 1069 "../../source/c/parser.y" {(yyval.nodeptr) = NULL;} break; case 105: #line 1072 "../../source/c/parser.y" {(yyval.nodeptr) = NULL;} break; case 106: #line 1077 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 107: #line 1080 "../../source/c/parser.y" {(yyval.nodeptr) = InitDeclList((yyvsp[(1) - (1)].nodeptr));} break; case 108: #line 1084 "../../source/c/parser.y" {(yyval.nodeptr) = AddToDeclList((yyvsp[(1) - (3)].nodeptr), (yyvsp[(3) - (3)].nodeptr));} break; case 109: #line 1089 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YOPS, loc((yyvsp[(1) - (1)].nodeptr))); (yyval.nodeptr)->components.decl.kind.opsig.name = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.decl.kind.opsig.ins = null; (yyval.nodeptr)->components.decl.kind.opsig.outs = null; } break; case 110: #line 1097 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (2)].nodeptr); (yyval.nodeptr)->components.decl.kind.opsig.name = (yyvsp[(1) - (2)].nodeptr); ExitOperation(null, null, startp, endp); } break; case 111: #line 1106 "../../source/c/parser.y" { EnterOpName((yyvsp[(1) - (1)].nodeptr)); } break; case 112: #line 1113 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (4)].nodeptr); (yyval.nodeptr)->components.decl.kind.eqns.vars = FixDeclList((yyvsp[(3) - (4)].nodeptr)); (yyval.nodeptr)->components.decl.kind.eqns.eqns = null; ExitEqns((yyval.nodeptr)); } break; case 113: #line 1121 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (6)].nodeptr); (yyval.nodeptr)->components.decl.kind.eqns.vars = FixDeclList((yyvsp[(3) - (6)].nodeptr)); (yyval.nodeptr)->components.decl.kind.eqns.eqns = FixDeclList((yyvsp[(5) - (6)].nodeptr)); ExitEqns((yyval.nodeptr)); } break; case 114: #line 1129 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 115: #line 1134 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YEQUATIONS, (yyvsp[(1) - (1)].keyword).loc); EnterEqns(); } break; case 116: #line 1142 "../../source/c/parser.y" {(yyval.nodeptr) = InitDeclList((yyvsp[(1) - (1)].nodeptr));} break; case 117: #line 1145 "../../source/c/parser.y" {(yyval.nodeptr) = AddToDeclList((yyvsp[(1) - (3)].nodeptr), (yyvsp[(3) - (3)].nodeptr));} break; case 118: #line 1150 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YVAR, (yyvsp[(3) - (4)].keyword).loc); (yyval.nodeptr)->components.decl.kind.var.vars = FixAtomList((yyvsp[(2) - (4)].nodeptr)); (yyval.nodeptr)->components.decl.kind.var.type = (yyvsp[(4) - (4)].nodeptr); (yyval.nodeptr)->components.decl.kind.var.init = null; (yyval.nodeptr)->components.decl.kind.var.attrs = null; EnterVars((yyval.nodeptr)->components.decl.kind.var.vars, BuildCompType1((yyval.nodeptr)->components.decl.kind.var.type)); } break; case 119: #line 1161 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YVAR, (yyvsp[(3) - (6)].keyword).loc); (yyval.nodeptr)->components.decl.kind.var.vars = FixAtomList((yyvsp[(2) - (6)].nodeptr)); (yyval.nodeptr)->components.decl.kind.var.type = (yyvsp[(4) - (6)].nodeptr); (yyval.nodeptr)->components.decl.kind.var.init = (yyvsp[(6) - (6)].nodeptr); (yyval.nodeptr)->components.decl.kind.var.attrs = null; EnterVars((yyval.nodeptr)->components.decl.kind.var.vars, BuildCompType1((yyval.nodeptr)->components.decl.kind.var.type)); } break; case 120: #line 1174 "../../source/c/parser.y" {(yyval.nodeptr) = NULL;} break; case 121: #line 1177 "../../source/c/parser.y" {(yyval.nodeptr) = NULL;} break; case 122: #line 1182 "../../source/c/parser.y" {(yyval.nodeptr) = NIL;} break; case 123: #line 1185 "../../source/c/parser.y" {(yyval.nodeptr) = InitDeclList((yyvsp[(1) - (1)].nodeptr));} break; case 124: #line 1188 "../../source/c/parser.y" {(yyval.nodeptr) = AddToDeclList((yyvsp[(1) - (3)].nodeptr), (yyvsp[(3) - (3)].nodeptr));} break; case 125: #line 1193 "../../source/c/parser.y" { (yyval.nodeptr)=NewNode(DECL_NODE, YEQEQ, (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.decl.kind.eqn.lhs = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.eqn.rhs = (yyvsp[(3) - (3)].nodeptr); } break; case 126: #line 1202 "../../source/c/parser.y" { nodep n; (yyval.nodeptr) = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (3)].nodeptr))); (yyval.nodeptr)->components.decl.kind.attr.name = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.colon = null; (yyval.nodeptr)->components.decl.kind.attr.value = (n = NewNode(ATOM_NODE,Ytext, loc((yyvsp[(2) - (3)].nodeptr)))); n->components.atom.val.string = GetLastComment(); n->components.atom.next = null; inAttribute = false; } break; case 127: #line 1217 "../../source/c/parser.y" { nodep n; (yyval.nodeptr) = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (4)].nodeptr))); (yyval.nodeptr)->components.decl.kind.attr.name = (yyvsp[(1) - (4)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.colon = null; (yyval.nodeptr)->components.decl.kind.attr.value = (n = NewNode(ATOM_NODE,Ytext,(yyvsp[(3) - (4)].YYSstring).loc)); n->components.atom.val.string = (yyvsp[(3) - (4)].YYSstring).val; n->components.atom.next = null; inAttribute = false; } break; case 128: #line 1230 "../../source/c/parser.y" { nodep n; (yyval.nodeptr) = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (4)].nodeptr))); (yyval.nodeptr)->components.decl.kind.attr.name = (yyvsp[(1) - (4)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.colon = null; (yyval.nodeptr)->components.decl.kind.attr.value = FixAtomList2((yyvsp[(3) - (4)].nodeptr)); inAttribute = false; } break; case 129: #line 1240 "../../source/c/parser.y" { nodep n; (yyval.nodeptr) = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (4)].nodeptr))); (yyval.nodeptr)->components.decl.kind.attr.name = (yyvsp[(1) - (4)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.colon = null; (yyval.nodeptr)->components.decl.kind.attr.value = (yyvsp[(3) - (4)].nodeptr); inAttribute = false; } break; case 130: #line 1252 "../../source/c/parser.y" { inAttribute = true; /* ClearComment(); -- now done in lex.l:SetIdent */ (yyval.nodeptr) = NewNode(ATOM_NODE, ':', (yyvsp[(1) - (1)].keyword).loc); (yyval.nodeptr)->components.atom.next = null; } break; case 131: #line 1262 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr); if (not (yyvsp[(1) - (1)].nodeptr)->components.decl.kind.op.ins) { (yyval.nodeptr)->components.decl.kind.op.ins = null; } if (not (yyvsp[(1) - (1)].nodeptr)->components.decl.kind.op.outs) { (yyval.nodeptr)->components.decl.kind.op.outs = null; } (yyval.nodeptr)->components.decl.kind.op.precond = null; (yyval.nodeptr)->components.decl.kind.op.postcond = null; (yyval.nodeptr)->components.decl.kind.op.attrs = null; ProcessOpAttrs((yyval.nodeptr),null,null,null); ExitOperation((yyval.nodeptr), null, startp, endp); } break; case 132: #line 1278 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (3)].nodeptr); if (not (yyvsp[(1) - (3)].nodeptr)->components.decl.kind.op.ins) { (yyval.nodeptr)->components.decl.kind.op.ins = null; } if (not (yyvsp[(1) - (3)].nodeptr)->components.decl.kind.op.outs) { (yyval.nodeptr)->components.decl.kind.op.outs = null; } (yyval.nodeptr)->components.decl.kind.op.precond = null; (yyval.nodeptr)->components.decl.kind.op.postcond = null; (yyval.nodeptr)->components.decl.kind.op.attrs = null; ExitOperation((yyval.nodeptr), null, startp, endp); } break; case 133: #line 1293 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (4)].nodeptr); (yyvsp[(2) - (4)].nodeptr) = FixDeclList((yyvsp[(2) - (4)].nodeptr)); if (not (yyvsp[(1) - (4)].nodeptr)->components.decl.kind.op.ins) { (yyval.nodeptr)->components.decl.kind.op.ins = FindAttr((yyvsp[(2) - (4)].nodeptr), YINPUTS); } if (not (yyvsp[(1) - (4)].nodeptr)->components.decl.kind.op.outs) { (yyval.nodeptr)->components.decl.kind.op.outs = FindAttr((yyvsp[(2) - (4)].nodeptr), YOUTPUTS); } if (not (yyval.nodeptr)->components.decl.kind.obj.parts) { (yyval.nodeptr)->components.decl.kind.obj.parts = FindAttr((yyvsp[(2) - (4)].nodeptr), YPARTS); } (yyval.nodeptr)->components.decl.kind.op.precond = FindAttr((yyvsp[(2) - (4)].nodeptr), YPRE); (yyval.nodeptr)->components.decl.kind.op.postcond = FindAttr((yyvsp[(2) - (4)].nodeptr), YPOST); (yyval.nodeptr)->components.decl.kind.op.attrs = (yyvsp[(2) - (4)].nodeptr); ProcessOpAttrs((yyval.nodeptr),null,null,(yyvsp[(2) - (4)].nodeptr)); ExitOperation((yyval.nodeptr), null, startp, endp); } break; case 134: #line 1320 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (2)].nodeptr); } break; case 135: #line 1325 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (4)].nodeptr); (yyval.nodeptr)->components.decl.kind.op.parts = (yyvsp[(4) - (4)].nodeptr); (yyval.nodeptr)->components.decl.kind.op.flags = isDef; } break; case 136: #line 1332 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.op.parts = null; (yyval.nodeptr)->components.decl.kind.op.flags = isDef; } break; case 137: #line 1342 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(DECL_NODE, YOP, (yyvsp[(1) - (1)].keyword).loc);} break; case 138: #line 1345 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(DECL_NODE, YOP, (yyvsp[(1) - (1)].keyword).loc);} break; case 139: #line 1348 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(DECL_NODE, YOP, (yyvsp[(1) - (1)].keyword).loc);} break; case 140: #line 1351 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(DECL_NODE, YOP, (yyvsp[(1) - (1)].keyword).loc);} break; case 141: #line 1356 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YOP, loc((yyvsp[(1) - (1)].nodeptr))); (yyval.nodeptr)->components.decl.kind.obj.name = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.flags = 0; (yyval.nodeptr)->components.decl.kind.obj.inheritsfrom = null; (yyval.nodeptr)->components.decl.kind.op.ins = null; (yyval.nodeptr)->components.decl.kind.op.outs = null; } break; case 142: #line 1366 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YOP, loc((yyvsp[(1) - (2)].nodeptr))); (yyval.nodeptr)->components.decl.kind.op.name = (yyvsp[(1) - (2)].nodeptr); (yyval.nodeptr)->components.decl.kind.op.flags = 0; (yyval.nodeptr)->components.decl.kind.op.ins = (yyvsp[(2) - (2)].nodeptr)->components.decl.kind.opsig.ins; (yyval.nodeptr)->components.decl.kind.op.outs = (yyvsp[(2) - (2)].nodeptr)->components.decl.kind.opsig.outs; } break; case 143: #line 1394 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YRTARROW, loc((yyvsp[(1) - (3)].nodeptr))); (yyval.nodeptr)->components.decl.kind.opsig.ins = (yyvsp[(2) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.opsig.outs = null; input_parm = false; } break; case 144: #line 1402 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YRTARROW, loc((yyvsp[(1) - (5)].nodeptr))); (yyval.nodeptr)->components.decl.kind.opsig.ins = (yyvsp[(2) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.opsig.outs = (yyvsp[(5) - (5)].nodeptr); EnterOpOutParm((yyvsp[(5) - (5)].nodeptr)->components.decl.kind.initdecl.decl, (yyvsp[(5) - (5)].nodeptr)->components.decl.kind.initdecl.islist); input_parm = false; } break; case 145: #line 1413 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YRTARROW, loc((yyvsp[(1) - (7)].nodeptr))); (yyval.nodeptr)->components.decl.kind.opsig.ins = (yyvsp[(2) - (7)].nodeptr); (yyval.nodeptr)->components.decl.kind.opsig.outs = (yyvsp[(6) - (7)].nodeptr); } break; case 146: #line 1422 "../../source/c/parser.y" { input_parm = true; (yyval.nodeptr) = NewNode(ATOM_NODE, '(', (yyvsp[(1) - (1)].keyword).loc); } break; case 147: #line 1430 "../../source/c/parser.y" { input_parm = false; (yyval.nodeptr) = NewNode(ATOM_NODE, '(', (yyvsp[(1) - (1)].keyword).loc); } break; case 148: #line 1438 "../../source/c/parser.y" { (yyval.nodeptr) = null; } break; case 149: #line 1441 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.decl.next = null; if (input_parm) { EnterOpInParm( (yyval.nodeptr)->components.decl.kind.initdecl.decl, (yyval.nodeptr)->components.decl.kind.initdecl.islist); } else { EnterOpOutParm( (yyval.nodeptr)->components.decl.kind.initdecl.decl, (yyval.nodeptr)->components.decl.kind.initdecl.islist); } } break; case 150: #line 1460 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (3)].nodeptr); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 151: #line 1469 "../../source/c/parser.y" { (yyval.nodeptr) = null; } break; case 152: #line 1472 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.decl.next = null; if (input_parm) { EnterOpInParm( (yyval.nodeptr)->components.decl.kind.initdecl.decl, (yyval.nodeptr)->components.decl.kind.initdecl.islist); } else { EnterOpOutParm( (yyval.nodeptr)->components.decl.kind.initdecl.decl, (yyval.nodeptr)->components.decl.kind.initdecl.islist); } } break; case 153: #line 1491 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (3)].nodeptr); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 154: #line 1500 "../../source/c/parser.y" { nodep n; n = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (1)].nodeptr))); n->components.decl.kind.attr.name = (yyvsp[(1) - (1)].nodeptr); n->components.decl.kind.attr.colon = null; n->components.decl.kind.attr.value = null; (yyval.nodeptr) = NewNode(DECL_NODE, YASSMNT, loc((yyvsp[(1) - (1)].nodeptr))); (yyval.nodeptr)->components.decl.kind.initdecl.decl = n; (yyval.nodeptr)->components.decl.kind.initdecl.init = null; (yyval.nodeptr)->components.decl.kind.initdecl.islist = IsListTypeDesig((yyvsp[(1) - (1)].nodeptr)); } break; case 155: #line 1515 "../../source/c/parser.y" { nodep n; n = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (3)].nodeptr))); n->components.decl.kind.attr.name = (yyvsp[(1) - (3)].nodeptr); n->components.decl.kind.attr.colon = null; n->components.decl.kind.attr.value = null; (yyval.nodeptr) = NewNode(DECL_NODE, YASSMNT, loc((yyvsp[(1) - (3)].nodeptr))); (yyval.nodeptr)->components.decl.kind.initdecl.decl = n; (yyval.nodeptr)->components.decl.kind.initdecl.init = (yyvsp[(3) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.initdecl.islist = IsListTypeDesig((yyvsp[(1) - (3)].nodeptr)); } break; case 156: #line 1530 "../../source/c/parser.y" { nodep n; n = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (3)].nodeptr))); n->components.decl.kind.attr.name = (yyvsp[(1) - (3)].nodeptr); n->components.decl.kind.attr.colon = null; n->components.decl.kind.attr.value = (yyvsp[(3) - (3)].nodeptr); (yyval.nodeptr) = NewNode(DECL_NODE, YASSMNT, loc((yyvsp[(1) - (3)].nodeptr))); (yyval.nodeptr)->components.decl.kind.initdecl.decl = n; (yyval.nodeptr)->components.decl.kind.initdecl.init = null; (yyval.nodeptr)->components.decl.kind.initdecl.islist = IsListTypeDesig((yyvsp[(3) - (3)].nodeptr)); } break; case 157: #line 1545 "../../source/c/parser.y" { nodep n; n = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (5)].nodeptr))); n->components.decl.kind.attr.name = (yyvsp[(1) - (5)].nodeptr); n->components.decl.kind.attr.colon = null; n->components.decl.kind.attr.value = (yyvsp[(3) - (5)].nodeptr); (yyval.nodeptr) = NewNode(DECL_NODE, YASSMNT, loc((yyvsp[(1) - (5)].nodeptr))); (yyval.nodeptr)->components.decl.kind.initdecl.decl = n; (yyval.nodeptr)->components.decl.kind.initdecl.init = (yyvsp[(5) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.initdecl.islist = IsListTypeDesig((yyvsp[(3) - (5)].nodeptr)); } break; case 158: #line 1562 "../../source/c/parser.y" { nodep n; n = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (1)].nodeptr))); n->components.decl.kind.attr.name = (yyvsp[(1) - (1)].nodeptr); n->components.decl.kind.attr.colon = null; n->components.decl.kind.attr.value = null; (yyval.nodeptr) = NewNode(DECL_NODE, YASSMNT, loc((yyvsp[(1) - (1)].nodeptr))); (yyval.nodeptr)->components.decl.kind.initdecl.decl = n; (yyval.nodeptr)->components.decl.kind.initdecl.init = null; (yyval.nodeptr)->components.decl.kind.initdecl.islist = IsListTypeDesig((yyvsp[(1) - (1)].nodeptr)); } break; case 159: #line 1577 "../../source/c/parser.y" { nodep n; n = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (3)].nodeptr))); n->components.decl.kind.attr.name = (yyvsp[(1) - (3)].nodeptr); n->components.decl.kind.attr.colon = null; n->components.decl.kind.attr.value = (yyvsp[(3) - (3)].nodeptr); (yyval.nodeptr) = NewNode(DECL_NODE, YASSMNT, loc((yyvsp[(1) - (3)].nodeptr))); (yyval.nodeptr)->components.decl.kind.initdecl.decl = n; (yyval.nodeptr)->components.decl.kind.initdecl.init = null; (yyval.nodeptr)->components.decl.kind.initdecl.islist = IsListTypeDesig((yyvsp[(3) - (3)].nodeptr)); } break; case 160: #line 1594 "../../source/c/parser.y" {(yyval.nodeptr) = InitDeclList((yyvsp[(1) - (1)].nodeptr));} break; case 161: #line 1597 "../../source/c/parser.y" {(yyval.nodeptr) = AddToDeclList((yyvsp[(1) - (2)].nodeptr), (yyvsp[(2) - (2)].nodeptr));} break; case 163: #line 1604 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YINPUTS, (yyvsp[(2) - (4)].keyword).loc); (yyval.nodeptr)->components.decl.kind.ins = (yyvsp[(3) - (4)].nodeptr); } break; case 164: #line 1610 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YOUTPUTS, (yyvsp[(2) - (4)].keyword).loc); (yyval.nodeptr)->components.decl.kind.outs = (yyvsp[(3) - (4)].nodeptr); } break; case 165: #line 1616 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YPRE, (yyvsp[(2) - (4)].keyword).loc); (yyval.nodeptr)->components.decl.kind.pre.expr = (yyvsp[(3) - (4)].nodeptr); ExitPrecond((yyval.nodeptr)); (yyval.nodeptr)->header.end_loc = (yyvsp[(2) - (4)].keyword).loc; } break; case 166: #line 1624 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YPOST, (yyvsp[(2) - (4)].keyword).loc); (yyval.nodeptr)->components.decl.kind.post.expr = (yyvsp[(3) - (4)].nodeptr); ExitPostcond((yyval.nodeptr)); } break; case 167: #line 1631 "../../source/c/parser.y" { (yyval.nodeptr) = null; } break; case 168: #line 1634 "../../source/c/parser.y" { (yyval.nodeptr) = null; } break; case 170: #line 1641 "../../source/c/parser.y" { input_parm = true; (yyval.nodeptr) = NULL; } break; case 171: #line 1647 "../../source/c/parser.y" { input_parm = true; (yyval.nodeptr) = NULL; } break; case 172: #line 1655 "../../source/c/parser.y" { input_parm = false; (yyval.nodeptr) = NULL; } break; case 173: #line 1661 "../../source/c/parser.y" { input_parm = false; (yyval.nodeptr) = NULL; } break; case 174: #line 1670 "../../source/c/parser.y" {(yyval.nodeptr) = NULL; EnterPrecond();} break; case 175: #line 1674 "../../source/c/parser.y" {(yyval.nodeptr) = NULL; EnterPrecond();} break; case 176: #line 1680 "../../source/c/parser.y" {(yyval.nodeptr) = NULL; EnterPostcond();} break; case 177: #line 1684 "../../source/c/parser.y" {(yyval.nodeptr) = NULL; EnterPostcond();} break; case 178: #line 1690 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 180: #line 1697 "../../source/c/parser.y" {(yyval.nodeptr) = InitDeclList((yyvsp[(1) - (1)].nodeptr));} break; case 181: #line 1700 "../../source/c/parser.y" {(yyval.nodeptr) = AddToDeclList((yyvsp[(1) - (3)].nodeptr), (yyvsp[(3) - (3)].nodeptr));} break; case 182: #line 1705 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(BINOP_NODE, ARROW, (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 184: #line 1716 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(UNOP_NODE, '?', (yyvsp[(1) - (1)].keyword).loc); } break; case 185: #line 1723 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.name = (yyvsp[(2) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.type = null; /* NOTE: isDef must be set before calling * EnterObjectName, since the function relies on it. * This was the source of some consternation during * the conversion to the new parser. */ (yyval.nodeptr)->components.decl.kind.obj.flags = isDef; EnterObjectName((yyval.nodeptr),(yyvsp[(2) - (5)].nodeptr)); (yyval.nodeptr)->components.decl.kind.obj.parts = (yyvsp[(4) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.attrs = (yyvsp[(5) - (5)].nodeptr); ProcessConcObjAttrs((yyval.nodeptr),(yyvsp[(4) - (5)].nodeptr),null); ExitObject((yyval.nodeptr), startp, endp); } break; case 186: #line 1740 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (7)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.name = (yyvsp[(2) - (7)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.type = BuildCompType1((yyvsp[(4) - (7)].nodeptr)); (yyval.nodeptr)->components.decl.kind.obj.flags = isDef; EnterObjectName((yyval.nodeptr),(yyvsp[(2) - (7)].nodeptr)); (yyval.nodeptr)->components.decl.kind.obj.parts = (yyvsp[(6) - (7)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.attrs = (yyvsp[(7) - (7)].nodeptr); ProcessConcObjAttrs((yyval.nodeptr),(yyvsp[(6) - (7)].nodeptr),null); ExitObject((yyval.nodeptr), startp, endp); } break; case 187: #line 1755 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(DECL_NODE, YOBJ, (yyvsp[(1) - (1)].keyword).loc);} break; case 188: #line 1758 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(DECL_NODE, YOBJ, (yyvsp[(1) - (1)].keyword).loc);} break; case 189: #line 1763 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YVAR, (yyvsp[(3) - (5)].keyword).loc); (yyval.nodeptr)->components.decl.kind.var.vars = FixAtomList((yyvsp[(2) - (5)].nodeptr)); (yyval.nodeptr)->components.decl.kind.var.type = (yyvsp[(4) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.var.init = null; (yyval.nodeptr)->components.decl.kind.var.attrs = (yyvsp[(5) - (5)].nodeptr); EnterVars((yyval.nodeptr)->components.decl.kind.var.vars, BuildCompType1((yyval.nodeptr)->components.decl.kind.var.type)); } break; case 190: #line 1775 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YVAR, (yyvsp[(3) - (7)].keyword).loc); (yyval.nodeptr)->components.decl.kind.var.vars = FixAtomList((yyvsp[(2) - (7)].nodeptr)); (yyval.nodeptr)->components.decl.kind.var.type = (yyvsp[(4) - (7)].nodeptr); (yyval.nodeptr)->components.decl.kind.var.init = (yyvsp[(6) - (7)].nodeptr); (yyval.nodeptr)->components.decl.kind.var.attrs = (yyvsp[(7) - (7)].nodeptr); EnterVars((yyval.nodeptr)->components.decl.kind.var.vars, BuildCompType1((yyval.nodeptr)->components.decl.kind.var.type)); } break; case 191: #line 1786 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YVAR, (yyvsp[(3) - (5)].keyword).loc); (yyval.nodeptr)->components.decl.kind.var.vars = FixAtomList((yyvsp[(2) - (5)].nodeptr)); (yyval.nodeptr)->components.decl.kind.var.type = null; (yyval.nodeptr)->components.decl.kind.var.init = (yyvsp[(4) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.var.attrs = (yyvsp[(5) - (5)].nodeptr); EnterVars((yyval.nodeptr)->components.decl.kind.var.vars, BuildAtomType((yyval.nodeptr)->components.decl.kind.var.type)); } break; case 192: #line 1799 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (5)].nodeptr); (yyval.nodeptr)->header.loc = loc((yyvsp[(4) - (5)].nodeptr)); (yyval.nodeptr)->components.decl.kind.formaldef.name = (yyvsp[(2) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.formaldef.expr = (yyvsp[(4) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.formaldef.attrs = (yyvsp[(5) - (5)].nodeptr); ExitFormalDecl((yyval.nodeptr)); } break; case 193: #line 1841 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.decl.kind.formaldef.name = (yyvsp[(1) - (1)].nodeptr); EnterAxiom((yyvsp[(1) - (1)].nodeptr), 0); } break; case 194: #line 1861 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YAX, (yyvsp[(1) - (1)].keyword).loc); // EnterAxiom(null, anonaxnum++); } break; case 195: #line 1867 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YAX, (yyvsp[(1) - (1)].keyword).loc); // EnterAxiom(null, anonaxnum++); } break; case 196: #line 1875 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (5)].nodeptr); (yyval.nodeptr)->header.loc = loc((yyvsp[(4) - (5)].nodeptr)); (yyval.nodeptr)->components.decl.kind.formaldef.name = (yyvsp[(2) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.formaldef.expr = (yyvsp[(4) - (5)].nodeptr); (yyval.nodeptr)->components.decl.kind.formaldef.attrs = (yyvsp[(5) - (5)].nodeptr); ExitFormalDecl((yyval.nodeptr)); } break; case 197: #line 1908 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.decl.kind.formaldef.name = (yyvsp[(1) - (1)].nodeptr); EnterTheorem((yyvsp[(1) - (1)].nodeptr), 0); } break; case 198: #line 1928 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YTHM, (yyvsp[(1) - (1)].keyword).loc); // EnterTheorem(null, anonaxnum++); } break; case 199: #line 1934 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YTHM, (yyvsp[(1) - (1)].keyword).loc); // EnterTheorem(null, anonaxnum++); } break; case 201: #line 1943 "../../source/c/parser.y" {inParts = true;} break; case 202: #line 1944 "../../source/c/parser.y" {(yyval.nodeptr) = (yyvsp[(1) - (4)].nodeptr); inParts = false;} break; case 203: #line 1950 "../../source/c/parser.y" { DefineAttrNames(FixAtomList((yyvsp[(4) - (4)].nodeptr))); (yyval.nodeptr) = null; } break; case 204: #line 1956 "../../source/c/parser.y" { DefineAttrNames(FixAtomList((yyvsp[(4) - (4)].nodeptr))); (yyval.nodeptr) = null; } break; case 205: #line 1962 "../../source/c/parser.y" { DefineAttrNames(FixAtomList((yyvsp[(3) - (3)].nodeptr))); (yyval.nodeptr) = null; } break; case 206: #line 1970 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (4)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.parts = (yyvsp[(3) - (4)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.attrs = FixDeclList((yyvsp[(4) - (4)].nodeptr)); ExitObject((yyval.nodeptr), startp, endp); } break; case 207: #line 1978 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.attrs = FixDeclList((yyvsp[(3) - (3)].nodeptr)); ExitObject((yyval.nodeptr), startp, endp); } break; case 208: #line 1985 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.attrs = null; ExitObject((yyval.nodeptr), startp, endp); } break; case 209: #line 1994 "../../source/c/parser.y" { SymtabEntry* sym; (yyval.nodeptr) = NewNode(DECL_NODE, YOBJ, (yyvsp[(1) - (2)].keyword).loc); (yyval.nodeptr)->components.decl.kind.obj.name = (yyvsp[(2) - (2)].nodeptr); (yyval.nodeptr)->components.decl.kind.obj.parts = null; (yyval.nodeptr)->components.decl.kind.obj.flags = isRule; (yyval.nodeptr)->components.decl.kind.obj.parms = null; (yyval.nodeptr)->components.decl.kind.obj.ops = null; (yyval.nodeptr)->components.decl.kind.obj.eqns = null; (yyval.nodeptr)->components.decl.kind.obj.attrs = null; (yyval.nodeptr)->components.decl.kind.obj.inheritsfrom = null; sym = EnterObjectName((yyval.nodeptr), (yyvsp[(2) - (2)].nodeptr)); SetSymFlag(sym, isRule); } break; case 212: #line 2018 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 214: #line 2023 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(BINOP_NODE, YOR, loc((yyvsp[(1) - (3)].nodeptr))); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 216: #line 2043 "../../source/c/parser.y" { if (isFullNameTypePair((yyvsp[(1) - (2)].nodeptr))) { (yyval.nodeptr) = (yyvsp[(1) - (2)].nodeptr); (yyvsp[(2) - (2)].nodeptr)->components.unop.operand = (yyvsp[(1) - (2)].nodeptr)->components.decl.kind.attr.value; (yyval.nodeptr)->components.decl.kind.attr.value = (yyvsp[(2) - (2)].nodeptr); } else { (yyval.nodeptr) = (yyvsp[(2) - (2)].nodeptr); (yyval.nodeptr)->components.unop.operand = (yyvsp[(1) - (2)].nodeptr); } } break; case 217: #line 2057 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(BINOP_NODE, YAND, loc((yyvsp[(1) - (2)].nodeptr))); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (2)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(2) - (2)].nodeptr); } break; case 218: #line 2066 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (1)].nodeptr))); (yyval.nodeptr)->components.decl.kind.attr.name = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.colon = null; (yyval.nodeptr)->components.decl.kind.attr.value = null; } break; case 219: #line 2074 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (3)].nodeptr))); (yyval.nodeptr)->components.decl.kind.attr.name = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.colon = null; (yyval.nodeptr)->components.decl.kind.attr.value = (yyvsp[(3) - (3)].nodeptr); } break; case 220: #line 2082 "../../source/c/parser.y" { nodep n = NewNode(ATOM_NODE, Ystring, (yyvsp[(1) - (1)].YYSstring).loc); n->components.atom.val.string = (yyvsp[(1) - (1)].YYSstring).val; n->components.atom.next = null; (yyval.nodeptr) = NewNode(DECL_NODE, ':', (yyvsp[(1) - (1)].YYSstring).loc); (yyval.nodeptr)->components.decl.kind.attr.name = n; (yyval.nodeptr)->components.decl.kind.attr.colon = null; (yyval.nodeptr)->components.decl.kind.attr.value = null; } break; case 221: #line 2094 "../../source/c/parser.y" { nodep n = NewNode(ATOM_NODE, Ystring, (yyvsp[(3) - (3)].YYSstring).loc); n->components.atom.val.string = (yyvsp[(3) - (3)].YYSstring).val; n->components.atom.next = null; (yyval.nodeptr) = NewNode(DECL_NODE, ':', loc((yyvsp[(1) - (3)].nodeptr))); (yyval.nodeptr)->components.decl.kind.attr.name = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.attr.colon = null; (yyval.nodeptr)->components.decl.kind.attr.value = n; } break; case 222: #line 2108 "../../source/c/parser.y" {(yyval.nodeptr) = InitDeclList((yyvsp[(1) - (1)].nodeptr));} break; case 223: #line 2111 "../../source/c/parser.y" {(yyval.nodeptr) = AddToDeclList((yyvsp[(1) - (3)].nodeptr), (yyvsp[(3) - (3)].nodeptr));} break; case 224: #line 2116 "../../source/c/parser.y" { (yyval.nodeptr) = null; } break; case 225: #line 2119 "../../source/c/parser.y" { (yyval.nodeptr)=NewNode(DECL_NODE, YEQEQ, (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.decl.kind.eqn.lhs = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.decl.kind.eqn.rhs = (yyvsp[(3) - (3)].nodeptr); } break; case 226: #line 2128 "../../source/c/parser.y" { (yyval.nodeptr)=NewNode(BINOP_NODE, YATTRSELECT, (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 227: #line 2135 "../../source/c/parser.y" { (yyval.nodeptr)=NewNode(BINOP_NODE, YATTRSELECT, (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 228: #line 2142 "../../source/c/parser.y" { (yyval.nodeptr)=NewNode(BINOP_NODE, YATTRSELECT, (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 229: #line 2149 "../../source/c/parser.y" { (yyval.nodeptr)=NewNode(BINOP_NODE, YATTRSELECT, loc((yyvsp[(1) - (1)].nodeptr))); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = null; } break; case 231: #line 2162 "../../source/c/parser.y" { (yyval.nodeptr) = null; } break; case 232: #line 2165 "../../source/c/parser.y" { (yyval.nodeptr) = null; } break; case 233: #line 2168 "../../source/c/parser.y" { (yyval.nodeptr) = FixDeclList((yyvsp[(1) - (3)].nodeptr)); } break; case 234: #line 2175 "../../source/c/parser.y" {(yyval.nodeptr) = InitDeclList((yyvsp[(1) - (1)].nodeptr));} break; case 235: #line 2178 "../../source/c/parser.y" {(yyval.nodeptr) = AddToDeclList((yyvsp[(1) - (2)].nodeptr), (yyvsp[(2) - (2)].nodeptr));} break; case 236: #line 2183 "../../source/c/parser.y" { (yyval.nodeptr) = null; } break; case 237: #line 2190 "../../source/c/parser.y" { if (PARSE_ERROR) { (yyval.nodeptr) = null; } else { (yyval.nodeptr) = NewNode(DECL_NODE, '>', loc((yyvsp[(1) - (2)].nodeptr))); (yyval.nodeptr)->components.decl.kind.expr = (yyvsp[(1) - (2)].nodeptr); } } break; case 238: #line 2201 "../../source/c/parser.y" { if (PARSE_ERROR) { (yyval.nodeptr) = null; } else { (yyval.nodeptr) = NewNode(DECL_NODE, '>', loc((yyvsp[(2) - (3)].nodeptr))); (yyval.nodeptr)->components.decl.kind.expr = (yyvsp[(2) - (3)].nodeptr); } } break; case 242: #line 2227 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(BINOP_NODE, YAND, (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 243: #line 2234 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(BINOP_NODE, YOR, (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 244: #line 2241 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(UNOP_NODE, YNOT, (yyvsp[(1) - (2)].keyword).loc); (yyval.nodeptr)->components.unop.operand = (yyvsp[(2) - (2)].nodeptr); } break; case 245: #line 2247 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(BINOP_NODE, YXOR, (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 246: #line 2254 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(BINOP_NODE, YIMPLIES, (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 247: #line 2261 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(BINOP_NODE, YIFF, (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 248: #line 2269 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(TRINOP_NODE, YIF, (yyvsp[(1) - (4)].keyword).loc); (yyval.nodeptr)->components.trinop.left_operand = (yyvsp[(2) - (4)].nodeptr); (yyval.nodeptr)->components.trinop.middle_operand = (yyvsp[(4) - (4)].nodeptr); (yyval.nodeptr)->components.trinop.right_operand = null; } break; case 249: #line 2277 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(TRINOP_NODE, YIF, (yyvsp[(1) - (6)].keyword).loc); (yyval.nodeptr)->components.trinop.left_operand = (yyvsp[(2) - (6)].nodeptr); (yyval.nodeptr)->components.trinop.middle_operand = (yyvsp[(4) - (6)].nodeptr); (yyval.nodeptr)->components.trinop.right_operand = (yyvsp[(6) - (6)].nodeptr); } break; case 252: #line 2291 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (3)].nodeptr); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 253: #line 2298 "../../source/c/parser.y" { nodep newnd; (yyval.nodeptr) = (yyvsp[(2) - (5)].nodeptr); (yyval.nodeptr)->components.trinop.left_operand = (yyvsp[(1) - (5)].nodeptr); (yyval.nodeptr)->components.trinop.middle_operand = (yyvsp[(3) - (5)].nodeptr); /* Make an expr list node out of the single item so this one-item case can be treated uniformly with the multi-item case. */ newnd = (yyval.nodeptr)->components.trinop.right_operand = NewNode(EXPR_LIST_NODE, null, loc((yyvsp[(1) - (5)].nodeptr))); newnd->components.exprlist.expr = (yyvsp[(5) - (5)].nodeptr); newnd->components.exprlist.next = null; } break; case 254: #line 2314 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (7)].nodeptr); (yyval.nodeptr)->components.trinop.left_operand = (yyvsp[(1) - (7)].nodeptr); (yyval.nodeptr)->components.trinop.middle_operand = (yyvsp[(3) - (7)].nodeptr); (yyval.nodeptr)->components.trinop.right_operand = FixExprList((yyvsp[(6) - (7)].nodeptr)); } break; case 255: #line 2324 "../../source/c/parser.y" { nodep n; (yyval.nodeptr) = (yyvsp[(1) - (7)].nodeptr); n = NewNode(DECL_NODE, ':', (yyvsp[(4) - (7)].keyword).loc); n->components.decl.kind.attr.name = FixAtomList((yyvsp[(3) - (7)].nodeptr)); n->components.decl.kind.attr.colon = null; n->components.decl.kind.attr.value = (yyvsp[(5) - (7)].nodeptr); EnterVars(n->components.decl.kind.attr.name, BuildCompType1((yyvsp[(5) - (7)].nodeptr))); (yyval.nodeptr)->components.decl.kind.quant.vars = n; (yyval.nodeptr)->components.decl.kind.quant.expr = (yyvsp[(7) - (7)].nodeptr); ExitQuant((yyval.nodeptr)); } break; case 256: #line 2341 "../../source/c/parser.y" { nodep n; (yyval.nodeptr) = (yyvsp[(1) - (7)].nodeptr); (yyval.nodeptr)->components.decl.kind.quant.vars = FixAtomList((yyvsp[(3) - (7)].nodeptr)); (yyval.nodeptr)->components.decl.kind.quant.in = n = NewNode(UNOP_NODE, YIN, (yyvsp[(4) - (7)].keyword).loc); n->components.unop.operand = (yyvsp[(5) - (7)].nodeptr); (yyval.nodeptr)->components.decl.kind.quant.expr = (yyvsp[(7) - (7)].nodeptr); ExitQuant((yyval.nodeptr)); } break; case 257: #line 2355 "../../source/c/parser.y" { nodep n; (yyval.nodeptr) = (yyvsp[(1) - (9)].nodeptr); n = NewNode(DECL_NODE, ':', (yyvsp[(4) - (9)].keyword).loc); n->components.decl.kind.attr.name = FixAtomList((yyvsp[(3) - (9)].nodeptr)); n->components.decl.kind.attr.colon = null; n->components.decl.kind.attr.value = (yyvsp[(5) - (9)].nodeptr); EnterVars(n->components.decl.kind.attr.name, BuildCompType1((yyvsp[(5) - (9)].nodeptr))); (yyval.nodeptr)->components.decl.kind.quant.vars = n; (yyval.nodeptr)->components.decl.kind.quant.in = n = NewNode(UNOP_NODE, '|', (yyvsp[(6) - (9)].keyword).loc); n->components.unop.operand = (yyvsp[(7) - (9)].nodeptr); (yyval.nodeptr)->components.decl.kind.quant.expr = (yyvsp[(9) - (9)].nodeptr); ExitQuant((yyval.nodeptr)); } break; case 258: #line 2375 "../../source/c/parser.y" { nodep n; (yyval.nodeptr) = (yyvsp[(1) - (7)].nodeptr); n = NewNode(DECL_NODE, ':', (yyvsp[(4) - (7)].keyword).loc); n->components.decl.kind.attr.name = FixAtomList((yyvsp[(3) - (7)].nodeptr)); n->components.decl.kind.attr.colon = null; n->components.decl.kind.attr.value = (yyvsp[(5) - (7)].nodeptr); EnterVars(n->components.decl.kind.attr.name, BuildCompType1((yyvsp[(5) - (7)].nodeptr))); (yyval.nodeptr)->components.decl.kind.quant.vars = n; (yyval.nodeptr)->components.decl.kind.quant.expr = (yyvsp[(7) - (7)].nodeptr); ExitQuant((yyval.nodeptr)); } break; case 259: #line 2392 "../../source/c/parser.y" { nodep n; (yyval.nodeptr) = (yyvsp[(1) - (7)].nodeptr); (yyval.nodeptr)->components.decl.kind.quant.vars = FixAtomList((yyvsp[(3) - (7)].nodeptr)); (yyval.nodeptr)->components.decl.kind.quant.in = n = NewNode(UNOP_NODE, YIN, (yyvsp[(4) - (7)].keyword).loc); n->components.unop.operand = (yyvsp[(5) - (7)].nodeptr); (yyval.nodeptr)->components.decl.kind.quant.expr = (yyvsp[(7) - (7)].nodeptr); ExitQuant((yyval.nodeptr)); } break; case 260: #line 2406 "../../source/c/parser.y" { nodep n; (yyval.nodeptr) = (yyvsp[(1) - (9)].nodeptr); n = NewNode(DECL_NODE, ':', (yyvsp[(4) - (9)].keyword).loc); n->components.decl.kind.attr.name = FixAtomList((yyvsp[(3) - (9)].nodeptr)); n->components.decl.kind.attr.colon = null; n->components.decl.kind.attr.value = (yyvsp[(5) - (9)].nodeptr); EnterVars(n->components.decl.kind.attr.name, BuildCompType1((yyvsp[(5) - (9)].nodeptr))); (yyval.nodeptr)->components.decl.kind.quant.vars = n; (yyval.nodeptr)->components.decl.kind.quant.in = n = NewNode(UNOP_NODE, '|', (yyvsp[(6) - (9)].keyword).loc); n->components.unop.operand = (yyvsp[(7) - (9)].nodeptr); (yyval.nodeptr)->components.decl.kind.quant.expr = (yyvsp[(9) - (9)].nodeptr); ExitQuant((yyval.nodeptr)); } break; case 261: #line 2428 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YFORALL, (yyvsp[(1) - (1)].keyword).loc); EnterQuant(); } break; case 262: #line 2436 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YEXISTS, (yyvsp[(1) - (1)].keyword).loc); EnterQuant(); } break; case 263: #line 2444 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (3)].nodeptr); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 264: #line 2451 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (3)].nodeptr); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 265: #line 2458 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (3)].nodeptr); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 266: #line 2465 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (2)].nodeptr); (yyval.nodeptr)->components.unop.operand = (yyvsp[(2) - (2)].nodeptr); } break; case 267: #line 2471 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (2)].nodeptr); (yyval.nodeptr)->components.unop.operand = (yyvsp[(2) - (2)].nodeptr); } break; case 268: #line 2479 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, '=', (yyvsp[(1) - (1)].keyword).loc);} break; case 269: #line 2482 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, '<', (yyvsp[(1) - (1)].keyword).loc);} break; case 270: #line 2485 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, '>', (yyvsp[(1) - (1)].keyword).loc);} break; case 271: #line 2488 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, YNEQ, (yyvsp[(1) - (1)].keyword).loc);} break; case 272: #line 2491 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, YLEQ, (yyvsp[(1) - (1)].keyword).loc);} break; case 273: #line 2494 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, YGEQ, (yyvsp[(1) - (1)].keyword).loc);} break; case 274: #line 2497 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, YIN, (yyvsp[(1) - (1)].keyword).loc);} break; case 275: #line 2502 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(TRINOP_NODE, YAEQ, (yyvsp[(1) - (1)].keyword).loc);} break; case 276: #line 2508 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(EXPR_LIST_NODE, null, loc((yyvsp[(1) - (1)].nodeptr))); (yyval.nodeptr)->components.exprlist.expr = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr) = InitExprList((yyval.nodeptr)); } break; case 277: #line 2516 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(EXPR_LIST_NODE, null, loc((yyvsp[(3) - (3)].nodeptr))); (yyval.nodeptr)->components.exprlist.expr = (yyvsp[(3) - (3)].nodeptr); (yyval.nodeptr) = AddToExprList((yyvsp[(1) - (3)].nodeptr),(yyval.nodeptr)); } break; case 278: #line 2524 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(EXPR_LIST_NODE, null, loc((yyvsp[(3) - (3)].nodeptr))); (yyval.nodeptr)->components.exprlist.expr = (yyvsp[(3) - (3)].nodeptr); (yyval.nodeptr) = AddToExprList((yyvsp[(1) - (3)].nodeptr),(yyval.nodeptr));} break; case 279: #line 2533 "../../source/c/parser.y" { nodep n; n = NewNode(BINOP_NODE, '.', (yyvsp[(2) - (5)].keyword).loc); n->components.binop.left_operand = (yyvsp[(1) - (5)].nodeptr); n->components.binop.right_operand = (yyvsp[(3) - (5)].nodeptr); (yyval.nodeptr) = NewNode(BINOP_NODE, '=', loc((yyvsp[(1) - (5)].nodeptr))); (yyval.nodeptr)->components.binop.left_operand = n; (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(5) - (5)].nodeptr); } break; case 280: #line 2545 "../../source/c/parser.y" { nodep n1, n2; n1 = NewNode(BINOP_NODE, '.', (yyvsp[(2) - (5)].keyword).loc); n1->components.binop.left_operand = (yyvsp[(1) - (5)].nodeptr); n2 = NewNode(ATOM_NODE,Yinteger, (yyvsp[(3) - (5)].YYSinteger).loc); n2->components.atom.val.integer = (yyvsp[(3) - (5)].YYSinteger).val; n2->components.atom.next = null; n1->components.binop.right_operand = n2; (yyval.nodeptr) = NewNode(BINOP_NODE, '=', loc((yyvsp[(1) - (5)].nodeptr))); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (5)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = n1; } break; case 281: #line 2563 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, '+', (yyvsp[(1) - (1)].keyword).loc);} break; case 282: #line 2566 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, '-', (yyvsp[(1) - (1)].keyword).loc);} break; case 283: #line 2571 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, '*', (yyvsp[(1) - (1)].keyword).loc);} break; case 284: #line 2574 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, '/', (yyvsp[(1) - (1)].keyword).loc);} break; case 285: #line 2577 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, YDIV, (yyvsp[(1) - (1)].keyword).loc);} break; case 286: #line 2580 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, YMOD, (yyvsp[(1) - (1)].keyword).loc);} break; case 287: #line 2585 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, '^', (yyvsp[(1) - (1)].keyword).loc);} break; case 288: #line 2590 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(UNOP_NODE, '#', (yyvsp[(1) - (1)].keyword).loc);} break; case 289: #line 2595 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(UNOP_NODE, YUNYPLUS, (yyvsp[(1) - (1)].keyword).loc);} break; case 290: #line 2598 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(UNOP_NODE, YUNYMINUS, (yyvsp[(1) - (1)].keyword).loc);} break; case 301: #line 2623 "../../source/c/parser.y" { (yyval.nodeptr) = FixExprList((yyvsp[(2) - (3)].nodeptr)); } break; case 302: #line 2630 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(BINOP_NODE, YDOTDOT, (yyvsp[(1) - (5)].keyword).loc); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(2) - (5)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(4) - (5)].nodeptr); } break; case 303: #line 2637 "../../source/c/parser.y" { /* Note use of ']'. It's the name for list constructor /* node wherease '[' is name for list ref node */ (yyval.nodeptr) = NewNode(UNOP_NODE, ']', (yyvsp[(1) - (3)].keyword).loc); (yyval.nodeptr)->components.unop.operand = FixExprList((yyvsp[(2) - (3)].nodeptr)); } break; case 304: #line 2645 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(UNOP_NODE, '}', (yyvsp[(1) - (3)].keyword).loc); (yyval.nodeptr)->components.unop.operand = FixExprList((yyvsp[(2) - (3)].nodeptr)); } break; case 305: #line 2653 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (3)].nodeptr); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 306: #line 2660 "../../source/c/parser.y" { nodep n; (yyval.nodeptr) = NewNode(BINOP_NODE, '.', (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); n = NewNode(ATOM_NODE,Yinteger, (yyvsp[(3) - (3)].YYSinteger).loc); n->components.atom.val.integer = (yyvsp[(3) - (3)].YYSinteger).val; n->components.atom.next = null; (yyval.nodeptr)->components.binop.right_operand = n; } break; case 307: #line 2672 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(BINOP_NODE, YATTRSELECT, (yyvsp[(2) - (3)].keyword).loc); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (3)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (3)].nodeptr); inAttribute = false; } break; case 308: #line 2690 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, '.', (yyvsp[(1) - (1)].keyword).loc);} break; case 309: #line 2693 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, YISA, (yyvsp[(1) - (1)].keyword).loc);} break; case 310: #line 2696 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, YGETINSTANCE, (yyvsp[(1) - (1)].keyword).loc);} break; case 311: #line 2699 "../../source/c/parser.y" {(yyval.nodeptr) = NewNode(BINOP_NODE, YCHKINSTANCE, (yyvsp[(1) - (1)].keyword).loc);} break; case 312: #line 2704 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(BINOP_NODE, '[', (yyvsp[(2) - (4)].keyword).loc); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(1) - (4)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(3) - (4)].nodeptr); } break; case 313: #line 2711 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(TRINOP_NODE, '[', (yyvsp[(2) - (6)].keyword).loc); (yyval.nodeptr)->components.trinop.left_operand = (yyvsp[(1) - (6)].nodeptr); (yyval.nodeptr)->components.trinop.middle_operand = (yyvsp[(3) - (6)].nodeptr); (yyval.nodeptr)->components.trinop.right_operand = (yyvsp[(5) - (6)].nodeptr); } break; case 314: #line 2721 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(TRINOP_NODE, '[', (yyvsp[(2) - (6)].keyword).loc); (yyval.nodeptr)->components.trinop.left_operand = (yyvsp[(1) - (6)].nodeptr); (yyval.nodeptr)->components.trinop.middle_operand = (yyvsp[(3) - (6)].nodeptr); (yyval.nodeptr)->components.trinop.right_operand = (yyvsp[(5) - (6)].nodeptr); } break; case 315: #line 2731 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YLET, (yyvsp[(1) - (4)].keyword).loc); (yyval.nodeptr)->components.decl.kind.let.names = FixAtomList((yyvsp[(2) - (4)].nodeptr)); (yyval.nodeptr)->components.decl.kind.let.expr = (yyvsp[(4) - (4)].nodeptr); (yyval.nodeptr)->components.decl.kind.let.type = null; } break; case 316: #line 2739 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(DECL_NODE, YLET, (yyvsp[(1) - (6)].keyword).loc); (yyval.nodeptr)->components.decl.kind.let.names = FixAtomList((yyvsp[(2) - (6)].nodeptr)); (yyval.nodeptr)->components.decl.kind.let.expr = (yyvsp[(6) - (6)].nodeptr); (yyval.nodeptr)->components.decl.kind.let.type = BuildCompType1((yyvsp[(4) - (6)].nodeptr)); } break; case 317: #line 2750 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(BINOP_NODE, YASSMNT, (yyvsp[(1) - (4)].keyword).loc); (yyval.nodeptr)->components.binop.left_operand = (yyvsp[(2) - (4)].nodeptr); (yyval.nodeptr)->components.binop.right_operand = (yyvsp[(4) - (4)].nodeptr); } break; case 322: #line 2769 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(UNOP_NODE, '@', (yyvsp[(1) - (2)].keyword).loc); (yyval.nodeptr)->components.unop.operand = (yyvsp[(2) - (2)].nodeptr); } break; case 323: #line 2777 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(PROC_CALL_NODE, null, loc((yyvsp[(1) - (4)].nodeptr))); (yyval.nodeptr)->components.proccall.desig = (yyvsp[(1) - (4)].nodeptr); (yyval.nodeptr)->components.proccall.actuals = FixExprList((yyvsp[(3) - (4)].nodeptr)); (yyval.nodeptr)->components.proccall.returns = null; } break; case 324: #line 2789 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(PROC_CALL_NODE, YQRTARROW, loc((yyvsp[(1) - (6)].nodeptr))); (yyval.nodeptr)->components.trinop.left_operand = (yyvsp[(1) - (6)].nodeptr); (yyval.nodeptr)->components.trinop.middle_operand = FixExprList((yyvsp[(3) - (6)].nodeptr)); (yyval.nodeptr)->components.trinop.right_operand = (yyvsp[(6) - (6)].nodeptr); } break; case 325: #line 2799 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(PROC_CALL_NODE, YQRTARROW, loc((yyvsp[(1) - (8)].nodeptr))); (yyval.nodeptr)->components.proccall.desig = (yyvsp[(1) - (8)].nodeptr); (yyval.nodeptr)->components.proccall.actuals = FixExprList((yyvsp[(3) - (8)].nodeptr)); (yyval.nodeptr)->components.proccall.returns = FixExprList((yyvsp[(7) - (8)].nodeptr)); } break; case 326: #line 2810 "../../source/c/parser.y" {(yyval.nodeptr) = NIL;} break; case 327: #line 2813 "../../source/c/parser.y" { (yyval.nodeptr) = InitExprList((yyval.nodeptr)); } break; case 328: #line 2818 "../../source/c/parser.y" { (yyval.nodeptr) = AddToExprList((yyvsp[(1) - (3)].nodeptr),(yyvsp[(3) - (3)].nodeptr)); } break; case 329: #line 2825 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(EXPR_LIST_NODE, null, loc((yyvsp[(1) - (1)].nodeptr))); (yyval.nodeptr)->components.exprlist.expr = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.exprlist.next = null; } break; case 330: #line 2832 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(EXPR_LIST_NODE, null, (yyvsp[(1) - (1)].keyword).loc); (yyval.nodeptr)->components.exprlist.expr = NewNode(UNOP_NODE, '?', (yyvsp[(1) - (1)].keyword).loc);; (yyval.nodeptr)->components.exprlist.next = null; } break; case 331: #line 2844 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(TRINOP_NODE, YLAMBDA, (yyvsp[(1) - (3)].keyword).loc); (yyval.nodeptr)->components.trinop.left_operand = (yyvsp[(2) - (3)].nodeptr)->components.decl.kind.opsig.ins; (yyval.nodeptr)->components.trinop.middle_operand = (yyvsp[(2) - (3)].nodeptr)->components.decl.kind.opsig.outs; (yyval.nodeptr)->components.trinop.right_operand = (yyvsp[(3) - (3)].nodeptr); } break; case 332: #line 2856 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 333: #line 2859 "../../source/c/parser.y" {(yyval.nodeptr) = InitExprList((yyvsp[(1) - (1)].nodeptr));} break; case 334: #line 2862 "../../source/c/parser.y" {(yyval.nodeptr) = AddToExprList((yyvsp[(1) - (3)].nodeptr),(yyvsp[(3) - (3)].nodeptr));} break; case 335: #line 2867 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(EXPR_LIST_NODE, null, loc((yyvsp[(1) - (1)].nodeptr))); (yyval.nodeptr)->components.exprlist.expr = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.exprlist.next = null; } break; case 336: #line 2876 "../../source/c/parser.y" {(yyval.nodeptr) = InitExprList((yyvsp[(1) - (1)].nodeptr));} break; case 337: #line 2879 "../../source/c/parser.y" {(yyval.nodeptr) = AddToExprList((yyvsp[(1) - (3)].nodeptr),(yyvsp[(3) - (3)].nodeptr));} break; case 338: #line 2884 "../../source/c/parser.y" { (yyval.nodeptr) = null; } break; case 339: #line 2887 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(EXPR_LIST_NODE, null, loc((yyvsp[(1) - (1)].nodeptr))); (yyval.nodeptr)->components.exprlist.expr = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.exprlist.next = null; } break; case 340: #line 2901 "../../source/c/parser.y" {(yyval.nodeptr) = InitExprList((yyvsp[(1) - (1)].nodeptr));} break; case 341: #line 2904 "../../source/c/parser.y" {(yyval.nodeptr) = AddToExprList((yyvsp[(1) - (3)].nodeptr),(yyvsp[(3) - (3)].nodeptr));} break; case 342: #line 2909 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 343: #line 2912 "../../source/c/parser.y" { if ((yyvsp[(1) - (1)].nodeptr) == null) (yyval.nodeptr) = null; else { (yyval.nodeptr) = NewNode(EXPR_LIST_NODE, YLIST, loc((yyvsp[(1) - (1)].nodeptr))); (yyval.nodeptr)->components.exprlist.expr = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.exprlist.next = null; } } break; case 344: #line 2923 "../../source/c/parser.y" { if ((yyvsp[(1) - (1)].nodeptr) == null) (yyval.nodeptr) = null; else { (yyval.nodeptr) = NewNode(EXPR_LIST_NODE, YLIST, loc((yyvsp[(1) - (1)].nodeptr))); (yyval.nodeptr)->components.exprlist.expr = (yyvsp[(1) - (1)].nodeptr); (yyval.nodeptr)->components.exprlist.next = null; } } break; case 345: #line 2936 "../../source/c/parser.y" { (yyval.nodeptr) = InitAtomList2(FixAtomList((yyvsp[(1) - (1)].nodeptr))); } break; case 346: #line 2941 "../../source/c/parser.y" { (yyval.nodeptr) = AddToAtomList2((yyvsp[(1) - (3)].nodeptr), FixAtomList((yyvsp[(3) - (3)].nodeptr))); } break; case 347: #line 2948 "../../source/c/parser.y" { (yyval.nodeptr) = InitAtomList((yyvsp[(1) - (1)].nodeptr)); } break; case 348: #line 2953 "../../source/c/parser.y" { (yyval.nodeptr) = AddToAtomList((yyvsp[(1) - (3)].nodeptr), (yyvsp[(3) - (3)].nodeptr)); } break; case 349: #line 2960 "../../source/c/parser.y" {(yyval.nodeptr) = InitAtomList((yyvsp[(1) - (1)].nodeptr));} break; case 350: #line 2963 "../../source/c/parser.y" {(yyval.nodeptr) = AddToAtomList((yyvsp[(1) - (3)].nodeptr), (yyvsp[(3) - (3)].nodeptr));} break; case 351: #line 2968 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(ATOM_NODE, Yident, (yyvsp[(1) - (1)].YYSident).loc); (yyval.nodeptr)->components.atom.val.text = (yyvsp[(1) - (1)].YYSident).text; (yyval.nodeptr)->components.atom.next = null; } break; case 352: #line 2977 "../../source/c/parser.y" { /* inAttribute = true; * See 5dec97 entry LOG for why this is gone now. */ (yyval.nodeptr) = NewNode(ATOM_NODE, Yattr, (yyvsp[(1) - (1)].YYSident).loc); (yyval.nodeptr)->components.atom.val.text = stralloc((yyvsp[(1) - (1)].YYSident).text); (yyval.nodeptr)->components.atom.next = null; } break; case 353: #line 2989 "../../source/c/parser.y" { (yyval.nodeptr) = null; } break; case 356: #line 2998 "../../source/c/parser.y" { if (PARSE_ERROR) { (yyval.nodeptr) = null; } else { (yyval.nodeptr) = (yyvsp[(1) - (4)].nodeptr); (yyval.nodeptr)->components.atom.parms = (yyvsp[(3) - (4)].nodeptr); } } break; case 357: #line 3011 "../../source/c/parser.y" { // $$ = BuildAtomType($1); (yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr); if ((yyval.nodeptr)) { (yyval.nodeptr)->components.atom.parms = null; } } break; case 358: #line 3020 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (2)].nodeptr); (yyval.nodeptr)->header.loc = loc((yyvsp[(1) - (2)].nodeptr)); if ((yyval.nodeptr) and (yyvsp[(1) - (2)].nodeptr)) { (yyval.nodeptr)->components.unop.operand = (yyvsp[(1) - (2)].nodeptr); (yyvsp[(1) - (2)].nodeptr)->components.atom.parms = null; } } break; case 359: #line 3030 "../../source/c/parser.y" { // $$ = BuildAtomType($1); (yyval.nodeptr) = (yyvsp[(1) - (4)].nodeptr); if ((yyval.nodeptr)) { (yyval.nodeptr)->components.atom.parms = FixAtomList2((yyvsp[(3) - (4)].nodeptr)); } } break; case 360: #line 3039 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(5) - (5)].nodeptr); if ((yyval.nodeptr) and (yyvsp[(1) - (5)].nodeptr)) { (yyval.nodeptr)->components.unop.operand = (yyvsp[(1) - (5)].nodeptr); (yyvsp[(1) - (5)].nodeptr)->components.atom.parms = FixAtomList2((yyvsp[(3) - (5)].nodeptr)); } } break; case 361: #line 3050 "../../source/c/parser.y" { // $$ = BuildAtomType($1); (yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr); if ((yyval.nodeptr) != null) { (yyval.nodeptr)->components.atom.parms = null; } } break; case 362: #line 3059 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(2) - (2)].nodeptr); (yyval.nodeptr)->components.unop.operand = (yyvsp[(1) - (2)].nodeptr); (yyval.nodeptr)->components.atom.parms = null; } break; case 363: #line 3066 "../../source/c/parser.y" { // $$ = BuildAtomType($1); (yyval.nodeptr) = (yyvsp[(1) - (4)].nodeptr); (yyval.nodeptr)->components.atom.parms = FixAtomList2((yyvsp[(3) - (4)].nodeptr)); } break; case 364: #line 3073 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(5) - (5)].nodeptr); (yyval.nodeptr)->components.unop.operand = (yyvsp[(1) - (5)].nodeptr); (yyvsp[(1) - (5)].nodeptr)->components.atom.parms = FixAtomList2((yyvsp[(3) - (5)].nodeptr)); } break; case 365: #line 3082 "../../source/c/parser.y" {(yyval.nodeptr) = InitAtomList2((yyvsp[(1) - (1)].nodeptr));} break; case 366: #line 3085 "../../source/c/parser.y" {(yyval.nodeptr) = AddToAtomList2((yyvsp[(1) - (3)].nodeptr), (yyvsp[(3) - (3)].nodeptr));} break; case 367: #line 3090 "../../source/c/parser.y" { (yyval.nodeptr) = FixAtomList((yyvsp[(1) - (1)].nodeptr)); } break; case 368: #line 3097 "../../source/c/parser.y" { (yyval.nodeptr) = FixAtomList((yyvsp[(1) - (1)].nodeptr)); } break; case 369: #line 3100 "../../source/c/parser.y" { (yyval.nodeptr) = (yyvsp[(1) - (1)].nodeptr); } break; case 370: #line 3105 "../../source/c/parser.y" {(yyval.nodeptr) = InitAtomList2((yyvsp[(1) - (1)].nodeptr));} break; case 371: #line 3108 "../../source/c/parser.y" {(yyval.nodeptr) = AddToAtomList2((yyvsp[(1) - (3)].nodeptr), (yyvsp[(3) - (3)].nodeptr));} break; case 372: #line 3113 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(ATOM_NODE, Yident, (yyvsp[(1) - (1)].keyword).loc); (yyval.nodeptr)->components.atom.val.text = (yyvsp[(1) - (1)].keyword).text; (yyval.nodeptr)->components.atom.next = null; } break; case 373: #line 3122 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(ATOM_NODE, Ystring, (yyvsp[(1) - (1)].YYSstring).loc); (yyval.nodeptr)->components.atom.val.string = (yyvsp[(1) - (1)].YYSstring).val; (yyval.nodeptr)->components.atom.next = null; } break; case 374: #line 3129 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(ATOM_NODE,Yinteger, (yyvsp[(1) - (1)].YYSinteger).loc); (yyval.nodeptr)->components.atom.val.integer = (yyvsp[(1) - (1)].YYSinteger).val; (yyval.nodeptr)->components.atom.next = null; } break; case 375: #line 3136 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(ATOM_NODE,Yreal, (yyvsp[(1) - (1)].YYSreal).loc); (yyval.nodeptr)->components.atom.val.real = (yyvsp[(1) - (1)].YYSreal).val; (yyval.nodeptr)->components.atom.next = null; } break; case 376: #line 3143 "../../source/c/parser.y" { (yyval.nodeptr) = NewNode(ATOM_NODE,Ynil, (yyvsp[(1) - (1)].YYSident).loc); (yyval.nodeptr)->components.atom.val.nilval = 0; (yyval.nodeptr)->components.atom.next = null; } break; case 377: #line 3153 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 378: #line 3157 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 379: #line 3168 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 380: #line 3172 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 381: #line 3175 "../../source/c/parser.y" {(yyval.nodeptr) = null;} break; case 382: #line 3182 "../../source/c/parser.y" { (yyval.nodeptr) = null; } break; case 383: #line 3185 "../../source/c/parser.y" { (yyval.nodeptr) = null; } break; /* Line 1267 of yacc.c. */ #line 5518 "y.tab.c" default: break; } YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else { YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) { YYSIZE_T yyalloc = 2 * yysize; if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) yyalloc = YYSTACK_ALLOC_MAXIMUM; if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yyalloc); if (yymsg) yymsg_alloc = yyalloc; else { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; } } if (0 < yysize && yysize <= yymsg_alloc) { (void) yysyntax_error (yymsg, yystate, yychar); yyerror (yymsg); } else { yyerror (YY_("syntax error")); if (yysize != 0) goto yyexhaustedlab; } } #endif } if (yyerrstatus == 3) { /* If just tried and failed to reuse look-ahead token after an error, discard it. */ if (yychar <= YYEOF) { /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } else { yydestruct ("Error: discarding", yytoken, &yylval); yychar = YYEMPTY; } } /* Else will try to reuse look-ahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers like GCC when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (/*CONSTCOND*/ 0) goto yyerrorlab; /* Do not reclaim the symbols of the rule which action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (yyn != YYPACT_NINF) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yydestruct ("Error: popping", yystos[yystate], yyvsp); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } if (yyn == YYFINAL) YYACCEPT; *++yyvsp = yylval; /* Shift the error token. */ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #ifndef yyoverflow /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: if (yychar != YYEOF && yychar != YYEMPTY) yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval); /* Do not reclaim the symbols of the rule which action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", yystos[*yyssp], yyvsp); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif #if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif /* Make sure YYID is used. */ return YYID (yyresult); } #line 3187 "../../source/c/parser.y" /*** * Functions */ /* set debugging flags (if you like); call yyparse(); return parse tree */ nodep parser() { #ifdef YYDEBUG yydebug = 0; #endif parsetree = null; PARSE_ERROR = false; inAttribute = false; inParts = false; if ((not yyparse()) and (not PARSE_ERROR)) return parsetree; else return null; } /* use default version in yacc paper, or fancy later */ yyerror(s) char *s; { SrcLoc loc; nodep t; anonopnum = 0; anonaxnum = 0; anonthmnum = 0; loc.line = yylineno; loc.col = yycharno; loc.file = yyfilename ? stralloc(yyfilename) : stralloc("stdin"); t = NewNode(null, null, loc); lerror(t, "\tsyntax error.\n"); PARSE_ERROR = true; /* * Hmm, this'll probably fix any nasty symtab problems, particularly if we * get stuck in a record symtab, which is a bit sparse. */ // CurSymtab = Level0Symtab; }