diff --git a/panda/src/egg/parser.cxx.prebuilt b/panda/src/egg/parser.cxx.prebuilt index f9a81a30a5..f39d54d456 100644 --- a/panda/src/egg/parser.cxx.prebuilt +++ b/panda/src/egg/parser.cxx.prebuilt @@ -1,20 +1,19 @@ -/* A Bison parser, made by GNU Bison 2.4.2. */ +/* A Bison parser, made by GNU Bison 3.2.2. */ + +/* Bison implementation for Yacc-like parsers in C + + Copyright (C) 1984, 1989-1990, 2000-2015, 2018 Free Software Foundation, Inc. -/* Skeleton implementation for Bison's Yacc-like parsers in C - - Copyright (C) 1984, 1989-1990, 2000-2006, 2009-2010 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 3 of the License, 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, see . */ @@ -27,7 +26,7 @@ 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. */ @@ -41,11 +40,14 @@ define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ +/* Undocumented macros, especially those whose name start with YY_, + are private implementation details. Do not rely on them. */ + /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ -#define YYBISON_VERSION "2.4.2" +#define YYBISON_VERSION "3.2.2" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -59,23 +61,19 @@ /* Pull parsers. */ #define YYPULL 1 -/* Using locations. */ -#define YYLSP_NEEDED 0 /* Substitute the variable and function names. */ #define yyparse eggyyparse #define yylex eggyylex #define yyerror eggyyerror -#define yylval eggyylval -#define yychar eggyychar #define yydebug eggyydebug #define yynerrs eggyynerrs +#define yylval eggyylval +#define yychar eggyychar -/* Copy the first part of user declarations. */ - -/* Line 189 of yacc.c */ -#line 6 "parser.yxx" +/* First part of user prologue. */ +#line 7 "panda/src/egg/parser.yxx" /* yacc.c:338 */ #include "pandabase.h" @@ -205,7 +203,7 @@ egg_cleanup_parser() { eggyyerror("Undefined vertex pool " + pool->get_name()); } else { eggyyerror("Undefined vertices in pool " + pool->get_name()); - + egg_cat.error(false) << "Undefined vertex index numbers:"; EggVertexPool::const_iterator vi; @@ -216,7 +214,7 @@ egg_cleanup_parser() { << " " << vertex->get_index(); } } - egg_cat.error(false) + egg_cat.error(false) << "\n"; } } @@ -232,14 +230,18 @@ egg_cleanup_parser() { } - -/* Line 189 of yacc.c */ -#line 234 "y.tab.c" - -/* Enabling traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif +#line 234 "built/tmp/parser.yxx.c" /* yacc.c:338 */ +# ifndef YY_NULLPTR +# if defined __cplusplus +# if 201103L <= __cplusplus +# define YY_NULLPTR nullptr +# else +# define YY_NULLPTR 0 +# endif +# else +# define YY_NULLPTR ((void*)0) +# endif +# endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE @@ -249,108 +251,113 @@ egg_cleanup_parser() { # define YYERROR_VERBOSE 0 #endif -/* Enabling the token table. */ -#ifndef YYTOKEN_TABLE -# define YYTOKEN_TABLE 0 +/* In a future release of Bison, this section will be replaced + by #include "parser.yxx.h". */ +#ifndef YY_EGGYY_BUILT_TMP_PARSER_YXX_H_INCLUDED +# define YY_EGGYY_BUILT_TMP_PARSER_YXX_H_INCLUDED +/* Debug traces. */ +#ifndef YYDEBUG +# define YYDEBUG 0 +#endif +#if YYDEBUG +extern int eggyydebug; #endif - -/* Tokens. */ +/* Token type. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE - /* Put the tokens into the symbol table, so that GDB and other debuggers - know about them. */ - enum yytokentype { - EGG_NUMBER = 258, - EGG_ULONG = 259, - EGG_STRING = 260, - ANIMPRELOAD = 261, - BEZIERCURVE = 262, - BFACE = 263, - BILLBOARD = 264, - BILLBOARDCENTER = 265, - BINORMAL = 266, - BUNDLE = 267, - CLOSED = 268, - COLLIDE = 269, - COMMENT = 270, - COMPONENT = 271, - COORDSYSTEM = 272, - CV = 273, - DART = 274, - DNORMAL = 275, - DRGBA = 276, - DUV = 277, - DXYZ = 278, - DCS = 279, - DISTANCE = 280, - DTREF = 281, - DYNAMICVERTEXPOOL = 282, - EXTERNAL_FILE = 283, - GROUP = 284, - DEFAULTPOSE = 285, - JOINT = 286, - KNOTS = 287, - INCLUDE = 288, - INSTANCE = 289, - LINE = 290, - LOOP = 291, - MATERIAL = 292, - MATRIX3 = 293, - MATRIX4 = 294, - MODEL = 295, - MREF = 296, - NORMAL = 297, - NURBSCURVE = 298, - NURBSSURFACE = 299, - OBJECTTYPE = 300, - ORDER = 301, - OUTTANGENT = 302, - PATCH = 303, - POINTLIGHT = 304, - POLYGON = 305, - REF = 306, - RGBA = 307, - ROTATE = 308, - ROTX = 309, - ROTY = 310, - ROTZ = 311, - SANIM = 312, - SCALAR = 313, - SCALE = 314, - SEQUENCE = 315, - SHADING = 316, - SWITCH = 317, - SWITCHCONDITION = 318, - TABLE = 319, - TABLE_V = 320, - TAG = 321, - TANGENT = 322, - TEXLIST = 323, - TEXTURE = 324, - TLENGTHS = 325, - TRANSFORM = 326, - TRANSLATE = 327, - TREF = 328, - TRIANGLEFAN = 329, - TRIANGLESTRIP = 330, - TRIM = 331, - TXT = 332, - UKNOTS = 333, - UV = 334, - AUX = 335, - VKNOTS = 336, - VERTEX = 337, - VERTEXANIM = 338, - VERTEXPOOL = 339, - VERTEXREF = 340, - XFMANIM = 341, - XFMSANIM = 342, - START_EGG = 343, - START_GROUP_BODY = 344, - START_TEXTURE_BODY = 345, - START_PRIMITIVE_BODY = 346 - }; + enum yytokentype + { + EGG_NUMBER = 258, + EGG_ULONG = 259, + EGG_STRING = 260, + ANIMPRELOAD = 261, + BEZIERCURVE = 262, + BFACE = 263, + BILLBOARD = 264, + BILLBOARDCENTER = 265, + BINORMAL = 266, + BUNDLE = 267, + CLOSED = 268, + COLLIDE = 269, + COMMENT = 270, + COMPONENT = 271, + COORDSYSTEM = 272, + CV = 273, + DART = 274, + DNORMAL = 275, + DRGBA = 276, + DUV = 277, + DXYZ = 278, + DCS = 279, + DISTANCE = 280, + DTREF = 281, + DYNAMICVERTEXPOOL = 282, + EXTERNAL_FILE = 283, + GROUP = 284, + DEFAULTPOSE = 285, + JOINT = 286, + KNOTS = 287, + INCLUDE = 288, + INSTANCE = 289, + LINE = 290, + LOOP = 291, + MATERIAL = 292, + MATRIX3 = 293, + MATRIX4 = 294, + MODEL = 295, + MREF = 296, + NORMAL = 297, + NURBSCURVE = 298, + NURBSSURFACE = 299, + OBJECTTYPE = 300, + ORDER = 301, + OUTTANGENT = 302, + PATCH = 303, + POINTLIGHT = 304, + POLYGON = 305, + REF = 306, + RGBA = 307, + ROTATE = 308, + ROTX = 309, + ROTY = 310, + ROTZ = 311, + SANIM = 312, + SCALAR = 313, + SCALE = 314, + SEQUENCE = 315, + SHADING = 316, + SWITCH = 317, + SWITCHCONDITION = 318, + TABLE = 319, + TABLE_V = 320, + TAG = 321, + TANGENT = 322, + TEXLIST = 323, + TEXTURE = 324, + TLENGTHS = 325, + TRANSFORM = 326, + TRANSLATE = 327, + TREF = 328, + TRIANGLEFAN = 329, + TRIANGLESTRIP = 330, + TRIM = 331, + TXT = 332, + UKNOTS = 333, + UV = 334, + AUX = 335, + VKNOTS = 336, + VERTEX = 337, + VERTEXANIM = 338, + VERTEXPOOL = 339, + VERTEXREF = 340, + XFMANIM = 341, + XFMSANIM = 342, + START_EGG = 343, + START_GROUP_BODY = 344, + START_TEXTURE_BODY = 345, + START_PRIMITIVE_BODY = 346 + }; #endif /* Tokens. */ #define EGG_NUMBER 258 @@ -443,21 +450,16 @@ egg_cleanup_parser() { #define START_TEXTURE_BODY 345 #define START_PRIMITIVE_BODY 346 +/* Value type. */ +extern YYSTYPE eggyylval; -#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED +int eggyyparse (void); -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 -#endif +#endif /* !YY_EGGYY_BUILT_TMP_PARSER_YXX_H_INCLUDED */ -/* Copy the second part of user declarations. */ - - -/* Line 264 of yacc.c */ -#line 457 "y.tab.c" #ifdef short # undef short @@ -471,23 +473,20 @@ typedef unsigned char yytype_uint8; #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; +typedef signed char yytype_int8; #endif #ifdef YYTYPE_UINT16 typedef YYTYPE_UINT16 yytype_uint16; #else -typedef unsigned short int yytype_uint16; +typedef unsigned short yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else -typedef short int yytype_int16; +typedef short yytype_int16; #endif #ifndef YYSIZE_T @@ -495,12 +494,11 @@ typedef short int yytype_int16; # 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) +# elif ! defined YYSIZE_T # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else -# define YYSIZE_T unsigned int +# define YYSIZE_T unsigned # endif #endif @@ -510,38 +508,58 @@ typedef short int yytype_int16; # if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ -# define YY_(msgid) dgettext ("bison-runtime", msgid) +# define YY_(Msgid) dgettext ("bison-runtime", Msgid) # endif # endif # ifndef YY_ -# define YY_(msgid) msgid +# define YY_(Msgid) Msgid # endif #endif +#ifndef YY_ATTRIBUTE +# if (defined __GNUC__ \ + && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ + || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C +# define YY_ATTRIBUTE(Spec) __attribute__(Spec) +# else +# define YY_ATTRIBUTE(Spec) /* empty */ +# endif +#endif + +#ifndef YY_ATTRIBUTE_PURE +# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) +#endif + +#ifndef YY_ATTRIBUTE_UNUSED +# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) +#endif + /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ -# define YYUSE(e) ((void) (e)) +# define YYUSE(E) ((void) (E)) #else -# define YYUSE(e) /* empty */ +# define YYUSE(E) /* empty */ #endif -/* Identity function, used to suppress warnings about constant conditions. */ -#ifndef lint -# define YYID(n) (n) +#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ +/* Suppress an incorrect diagnostic about yylval being uninitialized. */ +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ + _Pragma ("GCC diagnostic push") \ + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ + _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") +# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ + _Pragma ("GCC diagnostic pop") #else -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) -static int -YYID (int yyi) -#else -static int -YYID (yyi) - int yyi; +# define YY_INITIAL_VALUE(Value) Value #endif -{ - return yyi; -} +#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN +# define YY_IGNORE_MAYBE_UNINITIALIZED_END #endif +#ifndef YY_INITIAL_VALUE +# define YY_INITIAL_VALUE(Value) /* Nothing. */ +#endif + #if ! defined yyoverflow || YYERROR_VERBOSE @@ -560,11 +578,11 @@ YYID (yyi) # 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) +# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS # include /* INFRINGES ON USER NAME SPACE */ -# ifndef _STDLIB_H -# define _STDLIB_H 1 + /* Use EXIT_SUCCESS as a witness for stdlib.h. */ +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 # endif # endif # endif @@ -572,8 +590,8 @@ YYID (yyi) # endif # ifdef YYSTACK_ALLOC - /* Pacify GCC's `empty if-body' warning. */ -# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) + /* Pacify GCC's 'empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely @@ -587,25 +605,23 @@ YYID (yyi) # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif -# if (defined __cplusplus && ! defined _STDLIB_H \ +# if (defined __cplusplus && ! defined EXIT_SUCCESS \ && ! ((defined YYMALLOC || defined malloc) \ - && (defined YYFREE || defined free))) + && (defined YYFREE || defined free))) # include /* INFRINGES ON USER NAME SPACE */ -# ifndef _STDLIB_H -# define _STDLIB_H 1 +# ifndef EXIT_SUCCESS +# define EXIT_SUCCESS 0 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc -# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) +# if ! defined malloc && ! defined EXIT_SUCCESS void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free -# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) +# if ! defined free && ! defined EXIT_SUCCESS void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif @@ -615,7 +631,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ - || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) + || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc @@ -633,64 +649,70 @@ union yyalloc ((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 +# define YYCOPY_NEEDED 1 /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ -# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ - do \ - { \ - YYSIZE_T yynewbytes; \ - YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ - Stack = &yyptr->Stack_alloc; \ - yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ - yyptr += yynewbytes / sizeof (*yyptr); \ - } \ - while (YYID (0)) +# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ + do \ + { \ + YYSIZE_T yynewbytes; \ + YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ + Stack = &yyptr->Stack_alloc; \ + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ + yyptr += yynewbytes / sizeof (*yyptr); \ + } \ + while (0) #endif +#if defined YYCOPY_NEEDED && YYCOPY_NEEDED +/* Copy COUNT objects from SRC to DST. The source and destination do + not overlap. */ +# ifndef YYCOPY +# if defined __GNUC__ && 1 < __GNUC__ +# define YYCOPY(Dst, Src, Count) \ + __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) +# else +# define YYCOPY(Dst, Src, Count) \ + do \ + { \ + YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (Dst)[yyi] = (Src)[yyi]; \ + } \ + while (0) +# endif +# endif +#endif /* !YYCOPY_NEEDED */ + /* YYFINAL -- State number of the termination state. */ #define YYFINAL 14 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 1536 +#define YYLAST 1388 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 94 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 127 /* YYNRULES -- Number of rules. */ -#define YYNRULES 277 -/* YYNRULES -- Number of states. */ -#define YYNSTATES 763 +#define YYNRULES 278 +/* YYNSTATES -- Number of states. */ +#define YYNSTATES 765 -/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ +/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned + by yylex, with out-of-bounds checking. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 346 -#define YYTRANSLATE(YYX) \ - ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) +#define YYTRANSLATE(YYX) \ + ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) -/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ +/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM + as returned by yylex, without out-of-bounds checking. */ static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, @@ -731,200 +753,41 @@ static const yytype_uint8 yytranslate[] = }; #if YYDEBUG -/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in - YYRHS. */ -static const yytype_uint16 yyprhs[] = -{ - 0, 0, 3, 6, 9, 12, 15, 17, 20, 22, - 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, - 44, 46, 48, 50, 52, 54, 56, 58, 63, 69, - 70, 78, 80, 87, 90, 91, 98, 100, 107, 113, - 120, 121, 128, 130, 133, 134, 140, 141, 148, 150, - 153, 157, 162, 163, 171, 172, 180, 186, 192, 201, - 210, 213, 217, 225, 233, 241, 250, 258, 267, 268, - 273, 277, 286, 295, 300, 310, 320, 321, 328, 329, - 336, 337, 344, 346, 353, 359, 367, 375, 381, 387, - 393, 399, 405, 411, 417, 424, 430, 433, 436, 439, - 442, 448, 451, 453, 455, 458, 459, 465, 466, 472, - 474, 477, 480, 483, 486, 489, 492, 495, 498, 501, - 504, 507, 510, 516, 523, 528, 533, 538, 543, 551, - 557, 564, 569, 574, 576, 586, 591, 593, 610, 620, - 622, 629, 634, 646, 659, 660, 667, 668, 675, 676, - 683, 684, 691, 692, 699, 700, 707, 708, 715, 716, - 723, 725, 731, 737, 739, 740, 748, 754, 760, 766, - 769, 775, 781, 787, 794, 796, 802, 808, 814, 817, - 823, 829, 835, 841, 847, 853, 856, 862, 869, 871, - 877, 883, 889, 892, 898, 904, 910, 916, 922, 929, - 931, 933, 935, 939, 948, 957, 962, 972, 982, 984, - 993, 996, 998, 1000, 1002, 1008, 1010, 1013, 1015, 1017, - 1018, 1025, 1026, 1033, 1035, 1038, 1041, 1044, 1047, 1050, - 1051, 1058, 1060, 1067, 1073, 1074, 1081, 1083, 1090, 1096, - 1097, 1104, 1106, 1113, 1116, 1117, 1124, 1126, 1133, 1135, - 1138, 1140, 1143, 1145, 1147, 1149, 1151, 1153, 1155, 1157, - 1159, 1161, 1163, 1165, 1167, 1169, 1171, 1173, 1175, 1177, - 1180, 1182, 1184, 1186, 1188, 1190, 1192, 1194 -}; - -/* YYRHS -- A `-1'-separated list of the rules' RHS. */ -static const yytype_int16 yyrhs[] = -{ - 95, 0, -1, 88, 96, -1, 89, 126, -1, 90, - 102, -1, 91, 169, -1, 220, -1, 96, 97, -1, - 98, -1, 99, -1, 100, -1, 103, -1, 106, -1, - 107, -1, 120, -1, 122, -1, 124, -1, 152, -1, - 154, -1, 156, -1, 158, -1, 160, -1, 162, -1, - 164, -1, 166, -1, 187, -1, 201, -1, 17, 92, - 212, 93, -1, 15, 211, 92, 215, 93, -1, -1, - 69, 210, 92, 212, 101, 102, 93, -1, 220, -1, - 102, 58, 210, 92, 218, 93, -1, 102, 129, -1, - -1, 37, 210, 92, 104, 105, 93, -1, 220, -1, - 105, 58, 210, 92, 218, 93, -1, 28, 211, 92, - 212, 93, -1, 214, 28, 211, 92, 212, 93, -1, - -1, 84, 210, 108, 92, 109, 93, -1, 220, -1, - 109, 110, -1, -1, 82, 111, 92, 113, 93, -1, - -1, 82, 219, 112, 92, 113, 93, -1, 217, -1, - 217, 217, -1, 217, 217, 217, -1, 217, 217, 217, - 217, -1, -1, 113, 79, 211, 92, 114, 116, 93, - -1, -1, 113, 80, 210, 92, 115, 117, 93, -1, - 113, 42, 92, 118, 93, -1, 113, 52, 92, 119, - 93, -1, 113, 23, 214, 92, 217, 217, 217, 93, - -1, 113, 23, 92, 214, 217, 217, 217, 93, -1, - 217, 217, -1, 217, 217, 217, -1, 116, 67, 92, - 217, 217, 217, 93, -1, 116, 11, 92, 217, 217, - 217, 93, -1, 116, 22, 214, 92, 217, 217, 93, - -1, 116, 22, 214, 92, 217, 217, 217, 93, -1, - 116, 22, 92, 214, 217, 217, 93, -1, 116, 22, - 92, 214, 217, 217, 217, 93, -1, -1, 217, 217, - 217, 217, -1, 217, 217, 217, -1, 118, 20, 214, - 92, 217, 217, 217, 93, -1, 118, 20, 92, 214, - 217, 217, 217, 93, -1, 217, 217, 217, 217, -1, - 119, 21, 214, 92, 217, 217, 217, 217, 93, -1, - 119, 21, 92, 214, 217, 217, 217, 217, 93, -1, - -1, 29, 211, 121, 92, 126, 93, -1, -1, 31, - 211, 123, 92, 126, 93, -1, -1, 34, 211, 125, - 92, 126, 93, -1, 220, -1, 126, 58, 210, 92, - 218, 93, -1, 126, 9, 92, 214, 93, -1, 126, - 10, 92, 217, 217, 217, 93, -1, 126, 14, 211, - 92, 127, 128, 93, -1, 126, 24, 92, 219, 93, - -1, 126, 24, 92, 5, 93, -1, 126, 19, 92, - 219, 93, -1, 126, 19, 92, 5, 93, -1, 126, - 62, 92, 219, 93, -1, 126, 45, 92, 212, 93, - -1, 126, 40, 92, 219, 93, -1, 126, 66, 211, - 92, 215, 93, -1, 126, 68, 92, 219, 93, -1, - 126, 129, -1, 126, 131, -1, 126, 148, -1, 126, - 150, -1, 126, 51, 92, 209, 93, -1, 126, 97, - -1, 214, -1, 220, -1, 128, 214, -1, -1, 71, - 130, 92, 133, 93, -1, -1, 30, 132, 92, 133, - 93, -1, 220, -1, 133, 134, -1, 133, 135, -1, - 133, 136, -1, 133, 137, -1, 133, 138, -1, 133, - 139, -1, 133, 140, -1, 133, 141, -1, 133, 142, - -1, 133, 143, -1, 133, 144, -1, 133, 146, -1, - 72, 92, 217, 217, 93, -1, 72, 92, 217, 217, - 217, 93, -1, 53, 92, 217, 93, -1, 54, 92, - 217, 93, -1, 55, 92, 217, 93, -1, 56, 92, - 217, 93, -1, 53, 92, 217, 217, 217, 217, 93, - -1, 59, 92, 217, 217, 93, -1, 59, 92, 217, - 217, 217, 93, -1, 59, 92, 217, 93, -1, 38, - 92, 145, 93, -1, 220, -1, 217, 217, 217, 217, - 217, 217, 217, 217, 217, -1, 39, 92, 147, 93, - -1, 220, -1, 217, 217, 217, 217, 217, 217, 217, - 217, 217, 217, 217, 217, 217, 217, 217, 217, -1, - 85, 92, 204, 149, 51, 92, 208, 93, 93, -1, - 220, -1, 149, 58, 210, 92, 218, 93, -1, 63, - 92, 151, 93, -1, 25, 92, 217, 217, 82, 92, - 217, 217, 217, 93, 93, -1, 25, 92, 217, 217, - 217, 82, 92, 217, 217, 217, 93, 93, -1, -1, - 50, 211, 153, 92, 169, 93, -1, -1, 74, 211, - 155, 92, 169, 93, -1, -1, 75, 211, 157, 92, - 169, 93, -1, -1, 48, 211, 159, 92, 169, 93, - -1, -1, 49, 211, 161, 92, 169, 93, -1, -1, - 35, 211, 163, 92, 169, 93, -1, -1, 44, 211, - 165, 92, 171, 93, -1, -1, 43, 211, 167, 92, - 172, 93, -1, 220, -1, 168, 42, 92, 176, 93, - -1, 168, 52, 92, 177, 93, -1, 220, -1, -1, - 169, 16, 219, 92, 170, 168, 93, -1, 169, 73, - 92, 173, 93, -1, 169, 69, 92, 174, 93, -1, - 169, 41, 92, 175, 93, -1, 169, 179, -1, 169, - 42, 92, 176, 93, -1, 169, 52, 92, 177, 93, - -1, 169, 8, 92, 178, 93, -1, 169, 58, 210, - 92, 218, 93, -1, 220, -1, 171, 73, 92, 173, - 93, -1, 171, 69, 92, 174, 93, -1, 171, 41, - 92, 175, 93, -1, 171, 179, -1, 171, 42, 92, - 176, 93, -1, 171, 52, 92, 177, 93, -1, 171, - 8, 92, 178, 93, -1, 171, 46, 92, 180, 93, - -1, 171, 78, 92, 181, 93, -1, 171, 81, 92, - 182, 93, -1, 171, 166, -1, 171, 76, 92, 183, - 93, -1, 171, 58, 210, 92, 218, 93, -1, 220, - -1, 172, 73, 92, 173, 93, -1, 172, 69, 92, - 174, 93, -1, 172, 41, 92, 175, 93, -1, 172, - 179, -1, 172, 42, 92, 176, 93, -1, 172, 52, - 92, 177, 93, -1, 172, 8, 92, 178, 93, -1, - 172, 46, 92, 185, 93, -1, 172, 32, 92, 186, - 93, -1, 172, 58, 210, 92, 218, 93, -1, 206, - -1, 210, -1, 207, -1, 217, 217, 217, -1, 176, - 20, 214, 92, 217, 217, 217, 93, -1, 176, 20, - 92, 214, 217, 217, 217, 93, -1, 217, 217, 217, - 217, -1, 177, 21, 214, 92, 217, 217, 217, 217, - 93, -1, 177, 21, 92, 214, 217, 217, 217, 217, - 93, -1, 219, -1, 85, 92, 204, 51, 92, 208, - 93, 93, -1, 219, 219, -1, 205, -1, 205, -1, - 220, -1, 183, 36, 92, 184, 93, -1, 220, -1, - 184, 166, -1, 219, -1, 205, -1, -1, 64, 211, - 188, 92, 191, 93, -1, -1, 12, 211, 190, 92, - 191, 93, -1, 220, -1, 191, 187, -1, 191, 189, - -1, 191, 192, -1, 191, 195, -1, 191, 198, -1, - -1, 57, 211, 193, 92, 194, 93, -1, 220, -1, - 194, 58, 210, 92, 218, 93, -1, 194, 65, 92, - 205, 93, -1, -1, 86, 211, 196, 92, 197, 93, - -1, 220, -1, 197, 58, 210, 92, 218, 93, -1, - 197, 65, 92, 205, 93, -1, -1, 87, 211, 199, - 92, 200, 93, -1, 220, -1, 200, 58, 210, 92, - 218, 93, -1, 200, 192, -1, -1, 6, 211, 202, - 92, 203, 93, -1, 220, -1, 203, 58, 210, 92, - 218, 93, -1, 220, -1, 204, 219, -1, 220, -1, - 205, 217, -1, 210, -1, 210, -1, 210, -1, 210, - -1, 220, -1, 214, -1, 213, -1, 220, -1, 214, - -1, 220, -1, 214, -1, 3, -1, 4, -1, 5, - -1, 220, -1, 216, -1, 214, -1, 216, 214, -1, - 3, -1, 4, -1, 3, -1, 4, -1, 5, -1, - 3, -1, 4, -1, -1 -}; - -/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ + /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { - 0, 234, 234, 235, 236, 237, 248, 249, 265, 266, - 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, - 277, 278, 279, 280, 281, 282, 283, 294, 317, 332, - 331, 359, 360, 706, 718, 717, 744, 745, 840, 847, - 868, 867, 907, 908, 920, 919, 931, 930, 976, 980, - 984, 988, 993, 992, 1008, 1007, 1022, 1023, 1024, 1032, - 1051, 1055, 1059, 1067, 1075, 1083, 1091, 1099, 1116, 1117, - 1131, 1135, 1143, 1161, 1165, 1173, 1192, 1191, 1217, 1216, - 1238, 1237, 1262, 1263, 1408, 1420, 1425, 1432, 1438, 1451, - 1458, 1471, 1477, 1483, 1489, 1494, 1500, 1501, 1502, 1503, - 1504, 1513, 1527, 1557, 1558, 1581, 1580, 1597, 1596, 1617, - 1618, 1619, 1620, 1621, 1622, 1623, 1624, 1625, 1626, 1627, - 1628, 1629, 1633, 1640, 1647, 1654, 1661, 1668, 1675, 1682, - 1689, 1696, 1703, 1707, 1708, 1720, 1724, 1725, 1747, 1780, - 1784, 1809, 1821, 1826, 1844, 1843, 1863, 1862, 1882, 1881, - 1901, 1900, 1920, 1919, 1939, 1938, 1958, 1957, 1977, 1976, - 1996, 1997, 1998, 2009, 2011, 2010, 2031, 2032, 2033, 2034, - 2035, 2036, 2037, 2038, 2113, 2114, 2115, 2116, 2117, 2118, - 2119, 2120, 2121, 2122, 2123, 2124, 2130, 2131, 2197, 2198, - 2199, 2200, 2201, 2202, 2203, 2204, 2205, 2206, 2207, 2278, - 2295, 2335, 2352, 2356, 2364, 2382, 2386, 2394, 2412, 2428, - 2459, 2477, 2497, 2517, 2522, 2533, 2539, 2558, 2574, 2596, - 2595, 2619, 2618, 2639, 2640, 2644, 2648, 2652, 2656, 2672, - 2671, 2692, 2693, 2705, 2720, 2719, 2740, 2741, 2758, 2773, - 2772, 2793, 2794, 2809, 2825, 2824, 2845, 2846, 2870, 2874, - 2888, 2892, 2906, 2927, 2948, 2973, 2994, 2999, 3011, 3023, - 3028, 3039, 3043, 3057, 3061, 3065, 3078, 3082, 3098, 3102, - 3116, 3117, 3132, 3138, 3144, 3161, 3169, 3175 + 0, 239, 239, 240, 241, 242, 253, 254, 270, 271, + 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, + 282, 283, 284, 285, 286, 287, 288, 299, 322, 337, + 336, 364, 365, 720, 732, 731, 758, 759, 880, 887, + 908, 907, 947, 948, 960, 959, 971, 970, 1016, 1020, + 1024, 1028, 1033, 1032, 1048, 1047, 1062, 1063, 1064, 1072, + 1091, 1095, 1099, 1107, 1115, 1123, 1131, 1139, 1147, 1164, + 1165, 1179, 1183, 1191, 1209, 1213, 1221, 1240, 1239, 1265, + 1264, 1286, 1285, 1310, 1311, 1459, 1471, 1476, 1483, 1489, + 1502, 1509, 1522, 1528, 1534, 1540, 1545, 1551, 1552, 1553, + 1554, 1555, 1564, 1578, 1608, 1609, 1632, 1631, 1648, 1647, + 1668, 1669, 1670, 1671, 1672, 1673, 1674, 1675, 1676, 1677, + 1678, 1679, 1680, 1684, 1691, 1698, 1705, 1712, 1719, 1726, + 1733, 1740, 1747, 1754, 1758, 1759, 1771, 1775, 1776, 1798, + 1831, 1835, 1860, 1872, 1877, 1895, 1894, 1914, 1913, 1933, + 1932, 1952, 1951, 1971, 1970, 1990, 1989, 2009, 2008, 2028, + 2027, 2047, 2048, 2049, 2060, 2062, 2061, 2082, 2083, 2084, + 2085, 2086, 2087, 2088, 2089, 2164, 2165, 2166, 2167, 2168, + 2169, 2170, 2171, 2172, 2173, 2174, 2175, 2181, 2182, 2248, + 2249, 2250, 2251, 2252, 2253, 2254, 2255, 2256, 2257, 2258, + 2329, 2346, 2386, 2403, 2407, 2415, 2433, 2437, 2445, 2463, + 2479, 2510, 2528, 2548, 2568, 2573, 2584, 2590, 2609, 2625, + 2647, 2646, 2670, 2669, 2690, 2691, 2695, 2699, 2703, 2707, + 2723, 2722, 2743, 2744, 2756, 2771, 2770, 2791, 2792, 2809, + 2824, 2823, 2844, 2845, 2860, 2876, 2875, 2896, 2897, 2921, + 2925, 2939, 2943, 2957, 2978, 2999, 3024, 3045, 3050, 3062, + 3074, 3079, 3090, 3094, 3108, 3112, 3116, 3129, 3133, 3149, + 3153, 3167, 3168, 3183, 3189, 3195, 3212, 3220, 3226 }; #endif -#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE +#if YYDEBUG || YYERROR_VERBOSE || 0 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = @@ -972,13 +835,13 @@ static const char *const yytname[] = "texture_name", "material_name", "vertex_pool_name", "group_name", "required_name", "optional_name", "required_string", "optional_string", "string", "repeated_string", "repeated_string_body", "real", - "real_or_string", "integer", "empty", 0 + "real_or_string", "integer", "empty", YY_NULLPTR }; #endif # ifdef YYPRINT -/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to - token YYLEX-NUM. */ +/* YYTOKNUM[NUM] -- (External) token number corresponding to the + (internal) symbol number NUM (which must be that of a token). */ static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, @@ -994,157 +857,202 @@ static const yytype_uint16 yytoknum[] = }; # endif -/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ -static const yytype_uint8 yyr1[] = +#define YYPACT_NINF -430 + +#define yypact_value_is_default(Yystate) \ + (!!((Yystate) == (-430))) + +#define YYTABLE_NINF -1 + +#define yytable_value_is_error(Yytable_value) \ + 0 + + /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing + STATE-NUM. */ +static const yytype_int16 yypact[] = { - 0, 94, 95, 95, 95, 95, 96, 96, 97, 97, - 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, - 97, 97, 97, 97, 97, 97, 97, 98, 99, 101, - 100, 102, 102, 102, 104, 103, 105, 105, 106, 106, - 108, 107, 109, 109, 111, 110, 112, 110, 113, 113, - 113, 113, 114, 113, 115, 113, 113, 113, 113, 113, - 116, 116, 116, 116, 116, 116, 116, 116, 117, 117, - 118, 118, 118, 119, 119, 119, 121, 120, 123, 122, - 125, 124, 126, 126, 126, 126, 126, 126, 126, 126, - 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, - 126, 126, 127, 128, 128, 130, 129, 132, 131, 133, - 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, - 133, 133, 134, 135, 136, 137, 138, 139, 140, 141, - 142, 143, 144, 145, 145, 146, 147, 147, 148, 149, - 149, 150, 151, 151, 153, 152, 155, 154, 157, 156, - 159, 158, 161, 160, 163, 162, 165, 164, 167, 166, - 168, 168, 168, 169, 170, 169, 169, 169, 169, 169, - 169, 169, 169, 169, 171, 171, 171, 171, 171, 171, - 171, 171, 171, 171, 171, 171, 171, 171, 172, 172, - 172, 172, 172, 172, 172, 172, 172, 172, 172, 173, - 174, 175, 176, 176, 176, 177, 177, 177, 178, 179, - 180, 181, 182, 183, 183, 184, 184, 185, 186, 188, - 187, 190, 189, 191, 191, 191, 191, 191, 191, 193, - 192, 194, 194, 194, 196, 195, 197, 197, 197, 199, - 198, 200, 200, 200, 202, 201, 203, 203, 204, 204, - 205, 205, 206, 207, 208, 209, 210, 210, 211, 212, - 212, 213, 213, 214, 214, 214, 215, 215, 216, 216, - 217, 217, 218, 218, 218, 219, 219, 220 + 211, -430, -430, -430, -430, 14, 1060, -430, 1206, -430, + 141, -430, 495, -430, -430, -430, -430, -430, 329, 329, + -55, 329, 329, 329, 329, 329, 329, 329, 329, 329, + 329, 329, 329, 329, 329, 329, 329, -430, -430, -430, + -430, -430, -430, -430, -430, -430, -430, -430, -430, -430, + -430, -430, -430, -430, -430, -430, -430, 70, 10, 22, + 329, 68, 114, -430, 119, 125, 134, 329, 150, 152, + 329, 164, -430, 169, -430, -430, -430, -430, -430, 329, + -430, 172, 185, 174, 175, 180, 329, 182, 191, 192, + -430, -430, -430, -430, -430, 203, 329, 215, -430, -430, + -430, -430, 220, -430, -430, -430, -430, -430, -430, -430, + -430, 226, -430, -430, -430, 329, 329, 255, 228, 347, + 374, 230, 185, 329, 329, 235, 185, 99, 236, 185, + 243, -430, 244, 185, -430, -430, 247, 329, 255, 255, + 249, 329, 329, -430, 253, 329, 57, -430, -430, 329, + 261, 273, 274, 279, -430, 283, 290, 300, 303, 313, + 323, 329, 326, 331, 333, 334, 184, -430, -430, 255, + 329, 188, 210, 251, 254, -430, 262, 287, 328, -430, + 385, 335, 337, 338, 329, 345, -430, 185, -430, 385, + 346, -430, -430, 348, -430, -430, 29, 255, 23, 255, + 385, 349, -430, 352, -430, -430, 131, -430, -430, 353, + 329, -430, -430, 356, -430, -430, -430, -430, -430, -430, + -430, -430, -430, -430, -430, -430, -430, -430, -430, 329, + -430, 255, -430, -430, -430, -430, -430, -430, 381, -430, + -430, -430, -430, -430, -430, -430, 361, -430, 255, -430, + 362, -430, 441, 170, -430, -430, 365, -430, -430, -430, + 69, -430, 255, 73, -430, 255, 366, -430, -430, 369, + 74, -430, -430, -430, -430, 789, 983, 1133, 221, 140, + -430, 145, -430, 167, -430, 288, 375, 435, 189, -430, + -430, 827, 864, 75, -430, 376, 378, 4, -430, 380, + 383, 386, 389, 391, 393, 396, 397, -430, -430, -430, + -430, -430, -430, -430, -430, -430, -430, -430, -430, -430, + -430, 255, -430, -430, 398, 329, -430, 59, -430, 329, + 399, -430, 329, 400, 255, -430, 329, 329, -430, -430, + -430, -430, -430, 329, -430, 406, 407, 409, 414, 418, + 420, 329, 425, 426, -430, -430, 427, 429, 434, 437, + 438, 329, 439, 440, 443, 446, 447, -430, -430, -430, + -430, -430, -430, 329, 329, 329, 329, -430, -430, -430, + -430, -430, -430, 123, -430, -430, 185, -430, -430, -430, + -430, -430, -430, 255, 255, 255, 255, 255, 255, 255, + 255, 76, 329, 448, 449, 450, -430, 255, 255, 255, + 255, -430, 451, -430, 453, 454, 185, -430, 329, 255, + 185, 255, 456, 329, 329, 185, 329, 255, 185, 255, + 457, 329, 329, -430, -430, -430, -430, -430, -430, -430, + -430, 458, -430, 459, 255, -430, 461, 255, -430, 7, + 462, 463, 469, 44, 255, 471, 80, 472, 385, 255, + 255, 255, 255, 255, 255, 476, 385, 385, 477, 478, + 255, -430, 479, 32, 480, -430, 86, 385, 483, 485, + 488, 490, 43, 491, 185, 92, 385, 492, 493, 53, + -430, 494, 255, 497, 255, 499, 500, 501, 506, 255, + 508, -430, 255, -430, 255, -430, 255, -430, -430, -430, + -430, 47, 52, 255, 512, 513, 514, 55, 97, 255, + 255, 255, 255, -430, 515, 516, -430, -430, -430, -430, + -430, -430, -430, 518, -430, -430, -430, -430, -430, -430, + -430, -430, 519, -430, -430, 522, -430, -430, -430, -430, + -430, -430, -430, 263, 255, 255, 255, 255, 255, -430, + 523, -430, 524, 255, 255, -430, -430, -430, -430, 525, + 526, 255, 255, -430, -430, -430, -430, -430, 223, 157, + -430, 162, -430, 138, -430, 79, 528, 531, 329, 329, + -430, 255, 269, 255, 255, 533, -430, -430, 255, 255, + -430, -430, 536, 537, 61, -430, -430, 329, 532, -430, + 329, 540, -430, 329, -430, -430, 329, 541, 255, 255, + 542, 543, 255, -430, 255, 255, -430, 544, 255, -430, + -430, -430, -430, 546, -430, 547, -430, 548, 255, 255, + 83, 255, 100, 255, -430, -430, -430, 255, 255, 550, + 552, 385, 54, 385, 56, 385, 255, 255, 82, -430, + 255, 88, -430, 255, 255, 255, 255, 255, -430, 554, + 555, -430, 556, -430, 560, 255, 255, 329, 564, -430, + 329, 565, 255, 77, 255, 568, 255, 255, 255, -430, + -430, -430, -430, 569, 571, 255, 255, 255, 255, -430, + 566, 91, 573, -430, 255, -430, 255, -430, 255, -430, + -430, 255, 255, 255, 255, 255, 329, 580, 255, -430, + 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, + -430, 255, 584, 587, 255, 255, 255, 255, 255, 255, + 255, -430, -430, 588, 589, 593, 58, 63, 66, 255, + -430, -430, -430, -430, 595, -430, 599, -430, 600, 255, + -430, -430, -430, 255, -430 }; -/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ -static const yytype_uint8 yyr2[] = -{ - 0, 2, 2, 2, 2, 2, 1, 2, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 4, 5, 0, - 7, 1, 6, 2, 0, 6, 1, 6, 5, 6, - 0, 6, 1, 2, 0, 5, 0, 6, 1, 2, - 3, 4, 0, 7, 0, 7, 5, 5, 8, 8, - 2, 3, 7, 7, 7, 8, 7, 8, 0, 4, - 3, 8, 8, 4, 9, 9, 0, 6, 0, 6, - 0, 6, 1, 6, 5, 7, 7, 5, 5, 5, - 5, 5, 5, 5, 6, 5, 2, 2, 2, 2, - 5, 2, 1, 1, 2, 0, 5, 0, 5, 1, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 2, 2, 5, 6, 4, 4, 4, 4, 7, 5, - 6, 4, 4, 1, 9, 4, 1, 16, 9, 1, - 6, 4, 11, 12, 0, 6, 0, 6, 0, 6, - 0, 6, 0, 6, 0, 6, 0, 6, 0, 6, - 1, 5, 5, 1, 0, 7, 5, 5, 5, 2, - 5, 5, 5, 6, 1, 5, 5, 5, 2, 5, - 5, 5, 5, 5, 5, 2, 5, 6, 1, 5, - 5, 5, 2, 5, 5, 5, 5, 5, 6, 1, - 1, 1, 3, 8, 8, 4, 9, 9, 1, 8, - 2, 1, 1, 1, 5, 1, 2, 1, 1, 0, - 6, 0, 6, 1, 2, 2, 2, 2, 2, 0, - 6, 1, 6, 5, 0, 6, 1, 6, 5, 0, - 6, 1, 6, 2, 0, 6, 1, 6, 1, 2, - 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, - 1, 1, 1, 1, 1, 1, 1, 0 -}; - -/* 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. */ + /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. + Performed when YYTABLE does not specify something else to do. Zero + means the default is an error. */ static const yytype_uint16 yydefact[] = { - 0, 277, 277, 277, 277, 0, 2, 6, 3, 82, - 4, 31, 5, 163, 1, 263, 264, 265, 277, 277, - 0, 277, 277, 277, 277, 277, 277, 277, 277, 277, - 277, 277, 277, 277, 277, 277, 277, 7, 8, 9, + 0, 278, 278, 278, 278, 0, 2, 6, 3, 83, + 4, 31, 5, 164, 1, 264, 265, 266, 278, 278, + 0, 278, 278, 278, 278, 278, 278, 278, 278, 278, + 278, 278, 278, 278, 278, 278, 278, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 0, 0, 0, - 277, 0, 0, 107, 0, 0, 0, 277, 0, 0, - 277, 0, 105, 0, 101, 96, 97, 98, 99, 277, - 33, 0, 0, 0, 0, 0, 277, 0, 0, 0, - 169, 244, 258, 262, 261, 0, 277, 0, 76, 78, - 80, 154, 0, 257, 256, 158, 156, 150, 152, 144, - 219, 0, 146, 148, 40, 277, 0, 0, 0, 0, - 0, 0, 0, 277, 277, 0, 0, 0, 0, 0, - 0, 277, 0, 0, 275, 276, 0, 277, 0, 0, - 0, 277, 277, 277, 0, 277, 0, 260, 259, 277, + 278, 0, 0, 108, 0, 0, 0, 278, 0, 0, + 278, 0, 106, 0, 102, 97, 98, 99, 100, 278, + 33, 0, 0, 0, 0, 0, 278, 0, 0, 0, + 170, 245, 259, 263, 262, 0, 278, 0, 77, 79, + 81, 155, 0, 258, 257, 159, 157, 151, 153, 145, + 220, 0, 147, 149, 40, 278, 0, 0, 0, 0, + 0, 0, 0, 278, 278, 0, 0, 0, 0, 0, + 0, 278, 0, 0, 276, 277, 0, 278, 0, 0, + 0, 278, 278, 278, 0, 278, 0, 261, 260, 278, 0, 0, 0, 0, 34, 0, 0, 0, 0, 0, - 0, 277, 0, 0, 0, 0, 0, 270, 271, 0, - 0, 0, 0, 0, 0, 277, 0, 0, 0, 255, - 0, 0, 0, 0, 277, 0, 277, 277, 248, 0, - 0, 208, 164, 0, 201, 253, 0, 0, 0, 0, - 0, 0, 200, 0, 199, 252, 0, 277, 268, 0, - 267, 266, 27, 0, 277, 277, 277, 277, 277, 277, - 277, 277, 277, 277, 277, 29, 277, 277, 277, 277, - 84, 0, 277, 102, 90, 89, 88, 87, 0, 109, - 93, 92, 100, 272, 273, 274, 0, 91, 0, 141, - 0, 95, 0, 0, 249, 139, 0, 172, 277, 168, - 0, 170, 0, 0, 171, 0, 0, 167, 166, 0, - 0, 246, 28, 269, 38, 0, 0, 0, 0, 0, - 36, 0, 188, 0, 174, 0, 0, 0, 0, 223, - 277, 0, 0, 0, 42, 0, 0, 0, 103, 0, - 0, 0, 0, 0, 0, 0, 0, 108, 110, 111, - 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, - 83, 0, 94, 106, 0, 277, 32, 0, 160, 0, - 0, 202, 0, 0, 0, 173, 277, 277, 245, 77, - 79, 81, 155, 277, 35, 0, 0, 0, 0, 0, - 0, 277, 0, 0, 159, 192, 0, 0, 0, 0, - 0, 277, 0, 0, 0, 0, 0, 157, 185, 178, - 151, 153, 145, 277, 277, 277, 277, 220, 224, 225, - 226, 227, 228, 0, 147, 149, 44, 41, 43, 39, - 85, 86, 104, 277, 277, 0, 0, 0, 0, 0, - 0, 0, 277, 0, 0, 0, 165, 0, 0, 0, - 0, 205, 0, 254, 0, 0, 0, 277, 277, 0, - 0, 0, 0, 277, 277, 0, 277, 0, 0, 0, - 0, 277, 277, 277, 277, 277, 221, 229, 234, 239, - 30, 0, 46, 0, 0, 133, 0, 0, 136, 0, + 0, 278, 0, 0, 0, 0, 0, 271, 272, 0, + 0, 0, 0, 0, 0, 278, 0, 0, 0, 256, + 0, 0, 0, 0, 278, 0, 278, 278, 249, 0, + 0, 209, 165, 0, 202, 254, 0, 0, 0, 0, + 0, 0, 201, 0, 200, 253, 0, 278, 269, 0, + 268, 267, 27, 0, 278, 278, 278, 278, 278, 278, + 278, 278, 278, 278, 278, 29, 278, 278, 278, 278, + 85, 0, 278, 103, 91, 90, 89, 88, 0, 110, + 94, 93, 101, 273, 274, 275, 0, 92, 0, 142, + 0, 96, 0, 0, 250, 140, 0, 173, 278, 169, + 0, 171, 0, 0, 172, 0, 0, 168, 167, 0, + 0, 247, 28, 270, 38, 0, 0, 0, 0, 0, + 36, 0, 189, 0, 175, 0, 0, 0, 0, 224, + 278, 0, 0, 0, 42, 0, 0, 0, 104, 0, + 0, 0, 0, 0, 0, 0, 0, 109, 111, 112, + 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, + 84, 0, 95, 107, 0, 278, 32, 0, 161, 0, + 0, 203, 0, 0, 0, 174, 278, 278, 246, 78, + 80, 82, 156, 278, 35, 0, 0, 0, 0, 0, + 0, 278, 0, 0, 160, 193, 0, 0, 0, 0, + 0, 278, 0, 0, 0, 0, 0, 158, 186, 179, + 152, 154, 146, 278, 278, 278, 278, 221, 225, 226, + 227, 228, 229, 0, 148, 150, 44, 41, 43, 39, + 86, 87, 105, 278, 278, 0, 0, 0, 0, 0, + 0, 0, 278, 0, 0, 0, 166, 0, 0, 0, + 0, 206, 0, 255, 0, 0, 0, 278, 278, 0, + 0, 0, 0, 278, 278, 0, 278, 0, 0, 0, + 0, 278, 278, 278, 278, 278, 222, 230, 235, 240, + 30, 0, 46, 0, 0, 134, 0, 0, 137, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 218, 250, 0, 0, 0, 217, 0, 0, 0, 0, + 219, 251, 0, 0, 0, 218, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 213, 0, 211, 0, 212, 0, 0, 0, 0, 0, - 0, 132, 0, 135, 0, 124, 0, 125, 126, 127, - 131, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 209, 0, 0, 195, 197, 251, 191, - 193, 196, 194, 0, 190, 189, 181, 177, 179, 182, - 210, 180, 0, 176, 175, 0, 186, 183, 184, 277, - 277, 277, 277, 0, 48, 0, 0, 0, 0, 129, - 0, 122, 0, 0, 0, 138, 140, 161, 162, 0, - 0, 0, 0, 247, 37, 198, 187, 277, 0, 0, - 231, 0, 236, 0, 241, 0, 0, 0, 277, 277, - 45, 49, 0, 0, 0, 0, 130, 123, 0, 0, - 204, 203, 0, 0, 0, 215, 222, 277, 0, 230, - 277, 0, 235, 277, 240, 243, 0, 0, 0, 0, - 0, 0, 50, 47, 0, 0, 128, 0, 0, 207, - 206, 214, 216, 0, 277, 0, 277, 0, 0, 0, + 214, 0, 212, 0, 213, 0, 0, 0, 0, 0, + 0, 133, 0, 136, 0, 125, 0, 126, 127, 128, + 132, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 210, 0, 0, 196, 198, 252, 192, + 194, 197, 195, 0, 191, 190, 182, 178, 180, 183, + 211, 181, 0, 177, 176, 0, 187, 184, 185, 278, + 278, 278, 278, 0, 48, 0, 0, 0, 0, 130, + 0, 123, 0, 0, 0, 139, 141, 162, 163, 0, + 0, 0, 0, 248, 37, 199, 188, 278, 0, 0, + 232, 0, 237, 0, 242, 0, 0, 0, 278, 278, + 45, 49, 0, 0, 0, 0, 131, 124, 0, 0, + 205, 204, 0, 0, 0, 216, 223, 278, 0, 231, + 278, 0, 236, 278, 241, 244, 0, 0, 0, 0, + 0, 0, 50, 47, 0, 0, 129, 0, 0, 208, + 207, 215, 217, 0, 278, 0, 278, 0, 0, 0, 0, 0, 0, 0, 52, 54, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, - 0, 0, 57, 0, 0, 68, 0, 0, 142, 0, - 0, 233, 0, 238, 0, 0, 0, 0, 0, 70, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 143, - 232, 237, 242, 0, 0, 0, 0, 0, 0, 73, - 0, 0, 0, 53, 60, 55, 0, 134, 0, 59, + 0, 0, 57, 0, 0, 69, 0, 0, 143, 0, + 0, 234, 0, 239, 0, 0, 0, 0, 0, 71, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 144, + 233, 238, 243, 0, 0, 0, 0, 0, 0, 74, + 0, 0, 0, 53, 60, 55, 0, 135, 0, 59, 58, 0, 0, 0, 0, 0, 0, 0, 0, 61, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 72, 71, 0, 0, 0, 0, 0, 0, 0, - 75, 74, 63, 66, 0, 64, 0, 62, 0, 67, - 65, 0, 137 + 70, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 73, 72, 0, 0, 0, 0, 0, 0, 0, + 76, 75, 64, 67, 0, 65, 0, 62, 0, 0, + 68, 66, 63, 0, 138 }; -/* YYDEFGOTO[NTERM-NUM]. */ + /* YYPGOTO[NTERM-NUM]. */ +static const yytype_int16 yypgoto[] = +{ + -430, -430, -430, 160, -430, -430, -430, -430, -106, -430, + -430, -430, -430, -430, -430, -430, -430, -430, -430, -242, + -430, -430, -430, -430, -430, -430, -430, -430, -430, -430, + -430, -430, 193, -430, -430, -9, -430, -430, -430, 341, + -430, -430, -430, -430, -430, -430, -430, -430, -430, -430, + -430, -430, -430, -430, -430, -430, -430, -430, -430, -430, + -430, -430, -430, -430, -430, -430, -430, -430, -430, -430, + -430, -430, -279, -430, -430, 137, -430, -430, -430, -200, + -184, -177, -296, -291, -297, -154, -430, -430, -430, -430, + -430, -430, -430, -285, -430, -430, -430, -76, -50, -430, + -430, -430, -430, -430, -430, -430, -430, -430, -430, -430, + 408, -429, -430, -430, 213, -430, 252, 11, -96, -430, + -6, 359, -430, 3, -169, -14, 752 +}; + + /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int16 yydefgoto[] = { -1, 5, 6, 74, 38, 39, 40, 290, 10, 41, @@ -1162,431 +1070,297 @@ static const yytype_int16 yydefgoto[] = 103, 209, 210, 528, 246, 191, 104 }; -/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing - STATE-NUM. */ -#define YYPACT_NINF -430 -static const yytype_int16 yypact[] = -{ - 245, -430, -430, -430, -430, 14, 794, -430, 1451, -430, - 168, -430, 535, -430, -430, -430, -430, -430, 271, 271, - -61, 271, 271, 271, 271, 271, 271, 271, 271, 271, - 271, 271, 271, 271, 271, 271, 271, -430, -430, -430, - -430, -430, -430, -430, -430, -430, -430, -430, -430, -430, - -430, -430, -430, -430, -430, -430, -430, 9, -17, -12, - 271, 6, 10, -430, 12, 42, 46, 271, 74, 106, - 271, 125, -430, 155, -430, -430, -430, -430, -430, 271, - -430, 187, 228, 188, 190, 198, 271, 203, 204, 208, - -430, -430, -430, -430, -430, 209, 271, 219, -430, -430, - -430, -430, 223, -430, -430, -430, -430, -430, -430, -430, - -430, 227, -430, -430, -430, 271, 271, 255, 229, 342, - 345, 230, 228, 271, 271, 235, 228, 137, 236, 228, - 239, -430, 246, 228, -430, -430, 259, 271, 255, 255, - 261, 271, 271, -430, 267, 271, 57, -430, -430, 271, - 272, 273, 274, 279, -430, 281, 283, 284, 287, 288, - 289, 271, 290, 297, 298, 300, 127, -430, -430, 255, - 271, 224, 270, 302, 314, -430, 315, 322, 325, -430, - 353, 330, 301, 332, 271, 333, -430, 228, -430, 353, - 335, -430, -430, 338, -430, -430, 32, 255, 92, 255, - 353, 346, -430, 348, -430, -430, 128, -430, -430, 349, - 271, -430, -430, 352, -430, -430, -430, -430, -430, -430, - -430, -430, -430, -430, -430, -430, -430, -430, -430, 271, - -430, 255, -430, -430, -430, -430, -430, -430, 381, -430, - -430, -430, -430, -430, -430, -430, 356, -430, 255, -430, - 361, -430, 441, 164, -430, -430, 362, -430, -430, -430, - 69, -430, 255, 73, -430, 255, 365, -430, -430, 354, - 53, -430, -430, -430, -430, 975, 1184, 1378, 225, 70, - -430, 145, -430, 167, -430, 247, 336, 375, 95, -430, - -430, 435, 495, 134, -430, 366, 368, 44, -430, 377, - 380, 386, 389, 390, 391, 392, 393, -430, -430, -430, - -430, -430, -430, -430, -430, -430, -430, -430, -430, -430, - -430, 255, -430, -430, 394, 271, -430, 37, -430, 271, - 396, -430, 271, 397, 255, -430, 271, 271, -430, -430, - -430, -430, -430, 271, -430, 398, 399, 400, 406, 407, - 409, 271, 414, 418, -430, -430, 420, 425, 426, 427, - 429, 271, 434, 437, 438, 439, 440, -430, -430, -430, - -430, -430, -430, 271, 271, 271, 271, -430, -430, -430, - -430, -430, -430, 153, -430, -430, 228, -430, -430, -430, - -430, -430, -430, 255, 255, 255, 255, 255, 255, 255, - 255, 66, 271, 443, 446, 447, -430, 255, 255, 255, - 255, -430, 448, -430, 450, 452, 228, -430, 271, 255, - 228, 255, 453, 271, 271, 228, 271, 255, 228, 255, - 454, 271, 271, -430, -430, -430, -430, -430, -430, -430, - -430, 456, -430, 457, 255, -430, 459, 255, -430, 4, - 461, 462, 463, 7, 255, 470, 257, 472, 353, 255, - 255, 255, 255, 255, 255, 476, 353, 353, 477, 478, - 255, -430, 479, 43, 480, -430, 97, 353, 485, 488, - 490, 491, 83, 492, 228, 102, 353, 493, 496, 8, - -430, 497, 255, 498, 255, 471, 500, 503, 506, 255, - 508, -430, 255, -430, 255, -430, 255, -430, -430, -430, - -430, 47, 52, 255, 511, 512, 513, 96, 103, 255, - 255, 255, 255, -430, 514, 516, -430, -430, -430, -430, - -430, -430, -430, 518, -430, -430, -430, -430, -430, -430, - -430, -430, 519, -430, -430, 521, -430, -430, -430, -430, - -430, -430, -430, 250, 255, 255, 255, 255, 255, -430, - 522, -430, 523, 255, 255, -430, -430, -430, -430, 524, - 525, 255, 255, -430, -430, -430, -430, -430, 142, 179, - -430, 191, -430, 100, -430, 79, 527, 531, 271, 271, - -430, 255, 262, 255, 255, 533, -430, -430, 255, 255, - -430, -430, 536, 537, 76, -430, -430, 271, 532, -430, - 271, 540, -430, 271, -430, -430, 271, 541, 255, 255, - 542, 543, 255, -430, 255, 255, -430, 544, 255, -430, - -430, -430, -430, 546, -430, 547, -430, 548, 255, 255, - 101, 255, 108, 255, -430, -430, -430, 255, 255, 550, - 552, 353, 54, 353, 56, 353, 255, 255, 82, -430, - 255, 88, -430, 255, 255, 255, 255, 255, -430, 554, - 555, -430, 556, -430, 560, 255, 255, 271, 562, -430, - 271, 564, 255, 77, 255, 565, 255, 255, 255, -430, - -430, -430, -430, 568, 569, 255, 255, 255, 255, -430, - 572, 91, 573, -430, 255, -430, 255, -430, 255, -430, - -430, 255, 255, 255, 255, 255, 271, 580, 255, -430, - 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, - -430, 255, 582, 583, 255, 255, 255, 255, 255, 255, - 255, -430, -430, 584, 587, 588, 58, 63, 589, 255, - -430, -430, -430, -430, 590, -430, 591, -430, 255, -430, - -430, 255, -430 -}; - -/* YYPGOTO[NTERM-NUM]. */ -static const yytype_int16 yypgoto[] = -{ - -430, -430, -430, 178, -430, -430, -430, -430, 64, -430, - -430, -430, -430, -430, -430, -430, -430, -430, -430, -117, - -430, -430, -430, -430, -430, -430, -430, -430, -430, -430, - -430, -430, 146, -430, -430, -9, -430, -430, -430, 341, - -430, -430, -430, -430, -430, -430, -430, -430, -430, -430, - -430, -430, -430, -430, -430, -430, -430, -430, -430, -430, - -430, -430, -430, -430, -430, -430, -430, -430, -430, -430, - -430, -430, -279, -430, -430, 86, -430, -430, -430, -310, - -263, -165, -292, -179, -204, -19, -430, -430, -430, -430, - -430, -430, -430, -285, -430, -430, -430, -16, -43, -430, - -430, -430, -430, -430, -430, -430, -430, -430, -430, -430, - 530, -429, -430, -430, 147, -430, 760, 11, -96, -430, - -6, 430, -430, 3, -180, -14, 744 -}; - -/* 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 -1 + /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If + positive, shift that token. If negative, reduce the rule whose + number is the opposite. If YYTABLE_NINF, syntax error. */ static const yytype_uint16 yytable[] = { - 57, 80, 57, 378, 368, 492, 494, 167, 168, 256, + 57, 80, 57, 378, 368, 492, 494, 15, 16, 17, 167, 168, 93, 93, 14, 93, 93, 93, 93, 93, - 266, 93, 93, 93, 93, 93, 93, 177, 93, 93, - 95, 96, 97, 98, 99, 100, 101, 115, 105, 106, - 107, 108, 109, 110, 545, 112, 113, 15, 16, 17, + 256, 93, 93, 93, 93, 93, 93, 177, 93, 93, + 95, 266, 97, 98, 99, 100, 101, 96, 105, 106, + 107, 108, 109, 110, 263, 112, 113, 167, 168, 260, 167, 168, 260, 213, 93, 167, 168, 167, 168, 167, 168, 167, 168, 260, 93, 225, 167, 168, 136, 167, - 168, 118, 15, 16, 17, 116, 15, 16, 17, 404, - 117, 128, 15, 16, 17, 15, 16, 17, 700, 405, - 147, 15, 16, 17, 15, 16, 17, 505, 119, 701, - 510, 546, 120, 260, 122, 172, 174, 373, 176, 93, - 166, 337, 181, 263, 479, 185, 260, 147, 263, 27, - 169, 658, 488, 263, 263, 261, 165, 473, 343, 661, - 406, 134, 135, 295, 123, 482, 530, 391, 124, 208, - 559, 197, 199, 147, 702, 561, 338, 671, 455, 673, - 212, 753, 374, 345, 373, 147, 755, 374, 613, 32, - 478, 329, 182, 344, 233, 332, 126, 517, 487, 631, - 703, 616, 231, 254, 677, 356, 538, 346, 208, 269, - 680, 375, 376, 716, 37, 264, 347, 348, 377, 567, - 532, 349, 254, 614, 659, 541, 568, 350, 127, 374, - 262, 662, 265, 351, 273, 652, 32, 654, 357, 358, - 27, 79, 468, 359, 352, 324, 386, 129, 353, 360, - 230, 480, 325, 147, 72, 361, 79, 387, 375, 376, - 89, 134, 135, 81, 296, 606, 362, 607, 354, 72, - 363, 82, 476, 364, 608, 365, 440, 131, 366, 610, - 485, 321, 89, 472, 330, 81, 611, 333, 167, 168, - 367, 481, 355, 82, 369, 331, 83, 84, 334, 57, - 57, 57, 609, 585, 15, 16, 17, 85, 516, 133, - 137, 518, 138, 86, 612, 585, 524, 525, 83, 84, - 139, 392, 586, 378, 87, 141, 142, 533, 88, 85, - 143, 145, 587, 278, 586, 86, 542, 285, 286, 287, - 89, 149, 291, 292, 587, 154, 87, 234, 342, 161, - 88, 170, 175, 407, 401, 632, 409, 180, 184, 588, - 589, 186, 89, 1, 2, 3, 4, 411, 189, 514, - 370, 588, 589, 590, 81, 134, 135, 171, 134, 135, - 173, 192, 82, 200, 383, 623, 243, 244, 245, 207, - 275, 276, 277, 235, 214, 215, 216, 93, 93, 93, - 93, 217, 442, 219, 80, 220, 221, 83, 84, 222, - 223, 224, 226, 81, 436, 437, 438, 439, 85, 227, - 228, 82, 229, 248, 86, 236, 444, 447, 449, 450, - 451, 452, 453, 454, 456, 87, 475, 237, 240, 88, - 461, 462, 463, 464, 484, 241, 83, 84, 242, 299, - 300, 89, 197, 247, 199, 249, 251, 85, 257, 371, - 197, 259, 199, 86, 301, 302, 303, 304, 592, 267, - 305, 268, 272, 81, 87, 274, 336, 502, 88, 320, - 504, 82, 506, 306, 322, 326, 511, 512, 335, 389, - 89, 390, 197, 199, 519, 520, 521, 522, 372, 393, - 540, 670, 394, 672, 307, 674, 83, 84, 395, 299, - 300, 396, 397, 398, 399, 400, 402, 85, 408, 410, - 416, 417, 418, 86, 301, 302, 303, 304, 419, 420, - 305, 421, 554, 81, 87, 556, 423, 557, 88, 558, - 424, 82, 425, 306, 560, 562, 563, 426, 427, 428, - 89, 429, 569, 570, 571, 572, 431, 252, 384, 432, - 433, 434, 435, 578, 323, 458, 83, 84, 459, 460, - 615, 465, 466, 81, 467, 477, 486, 85, 499, 457, - 501, 82, 503, 86, 507, 508, 509, 591, 554, 593, - 594, 595, 513, 549, 87, 515, 598, 599, 88, 523, - 526, 527, 529, 531, 602, 603, 83, 84, 534, 617, - 89, 535, 93, 536, 537, 539, 543, 85, 385, 544, - 547, 548, 550, 86, 622, 551, 624, 625, 552, 620, - 555, 627, 628, 564, 87, 565, 566, 573, 88, 574, - 638, 575, 576, 577, 250, 596, 597, 600, 601, 618, - 89, 641, 643, 619, 634, 646, 626, 647, 648, 629, + 168, 118, 15, 16, 17, 260, 15, 16, 17, 167, + 168, 128, 15, 16, 17, 15, 16, 17, 700, 545, + 147, 15, 16, 17, 15, 16, 17, 391, 115, 701, + 505, 404, 116, 658, 27, 172, 174, 263, 176, 93, + 166, 405, 181, 263, 117, 185, 264, 147, 263, 468, + 169, 661, 261, 473, 182, 530, 165, 355, 480, 369, + 476, 482, 337, 295, 134, 135, 538, 510, 485, 208, + 559, 197, 199, 147, 702, 561, 546, 671, 567, 673, + 212, 753, 406, 345, 631, 147, 755, 386, 455, 757, + 119, 329, 514, 517, 233, 332, 37, 338, 387, 518, + 703, 616, 231, 254, 677, 356, 659, 346, 208, 532, + 680, 79, 269, 716, 383, 541, 347, 348, 134, 135, + 568, 349, 254, 662, 72, 374, 613, 350, 343, 79, + 262, 373, 265, 351, 273, 652, 120, 654, 357, 358, + 27, 122, 72, 359, 352, 607, 440, 123, 353, 360, + 610, 324, 608, 147, 479, 361, 124, 611, 325, 81, + 89, 614, 488, 344, 296, 373, 362, 82, 354, 478, + 363, 472, 126, 364, 127, 365, 374, 487, 366, 481, + 609, 321, 89, 32, 330, 612, 129, 333, 167, 168, + 367, 131, 83, 84, 133, 331, 137, 138, 334, 57, + 57, 57, 139, 85, 141, 375, 376, 230, 102, 86, + 374, 234, 377, 142, 143, 111, 585, 32, 114, 516, + 87, 392, 585, 378, 88, 145, 81, 524, 525, 1, + 2, 3, 4, 235, 82, 586, 89, 149, 533, 375, + 376, 586, 154, 592, 342, 587, 606, 542, 161, 125, + 170, 587, 175, 407, 401, 632, 409, 180, 184, 83, + 84, 132, 15, 16, 17, 186, 189, 411, 140, 192, + 85, 200, 588, 589, 236, 207, 86, 237, 588, 589, + 134, 135, 171, 214, 278, 240, 590, 87, 285, 286, + 287, 88, 623, 291, 292, 215, 216, 93, 93, 93, + 93, 217, 442, 89, 80, 219, 179, 134, 135, 173, + 241, 370, 220, 81, 436, 437, 438, 439, 243, 244, + 245, 82, 221, 202, 205, 222, 444, 447, 449, 450, + 451, 452, 453, 454, 456, 223, 475, 275, 276, 277, + 461, 462, 463, 464, 484, 224, 83, 84, 226, 299, + 300, 242, 197, 227, 199, 228, 229, 85, 247, 248, + 197, 249, 199, 86, 301, 302, 303, 304, 251, 257, + 305, 259, 267, 81, 87, 268, 272, 502, 88, 274, + 504, 82, 506, 306, 320, 322, 511, 512, 326, 335, + 89, 336, 197, 199, 519, 520, 521, 522, 371, 389, + 540, 390, 393, 578, 307, 394, 83, 84, 395, 299, + 300, 396, 670, 397, 672, 398, 674, 85, 399, 400, + 402, 408, 410, 86, 301, 302, 303, 304, 416, 417, + 305, 418, 554, 81, 87, 556, 419, 557, 88, 558, + 420, 82, 421, 306, 560, 562, 563, 423, 424, 425, + 89, 426, 569, 570, 571, 572, 427, 252, 372, 428, + 429, 431, 432, 615, 323, 433, 83, 84, 434, 435, + 458, 459, 460, 250, 465, 466, 467, 85, 477, 486, + 499, 206, 501, 86, 503, 507, 508, 591, 554, 593, + 594, 595, 509, 513, 87, 515, 598, 599, 88, 523, + 526, 527, 529, 531, 602, 603, 534, 403, 535, 617, + 89, 536, 93, 537, 539, 543, 544, 547, 413, 414, + 548, 549, 550, 551, 622, 415, 624, 625, 552, 620, + 555, 627, 628, 422, 564, 0, 565, 566, 573, 574, + 638, 575, 576, 430, 577, 457, 596, 597, 600, 601, + 618, 641, 643, 619, 634, 646, 626, 647, 648, 629, 630, 650, 636, 639, 644, 645, 0, 649, 651, 653, 655, 656, 657, 668, 660, 669, 663, 689, 690, 691, - 666, 667, 678, 692, 696, 681, 698, 0, 705, 675, - 676, 709, 710, 679, 715, 718, 682, 684, 686, 687, - 688, 695, 728, 206, 697, 741, 742, 750, 693, 694, - 751, 752, 757, 759, 760, 699, 0, 704, 0, 706, - 707, 708, 0, 0, 0, 717, 0, 0, 711, 712, + 666, 667, 678, 692, 413, 681, 696, 698, 715, 675, + 676, 705, 709, 679, 710, 718, 682, 684, 686, 687, + 688, 695, 728, 0, 697, 202, 205, 741, 693, 694, + 742, 750, 751, 202, 205, 699, 752, 704, 760, 706, + 707, 708, 761, 762, 0, 717, 0, 0, 711, 712, 713, 714, 0, 0, 0, 0, 0, 719, 0, 720, 727, 721, 0, 0, 722, 723, 724, 725, 726, 0, 0, 729, 0, 730, 731, 732, 733, 734, 735, 736, 737, 738, 739, 0, 740, 0, 0, 743, 744, 745, - 746, 747, 748, 749, 0, 7, 9, 11, 13, 754, - 756, 0, 758, 0, 0, 0, 0, 0, 0, 0, - 0, 761, 94, 94, 762, 94, 94, 94, 94, 94, - 0, 94, 94, 94, 94, 94, 94, 0, 94, 94, - 0, 0, 0, 0, 0, 0, 102, 0, 0, 0, - 0, 0, 0, 111, 0, 0, 114, 15, 16, 17, - 18, 0, 0, 0, 94, 0, 0, 0, 0, 19, - 0, 20, 0, 0, 94, 0, 0, 0, 0, 0, - 0, 0, 21, 22, 0, 23, 0, 125, 24, 25, - 0, 26, 0, 0, 0, 0, 0, 27, 28, 132, - 148, 0, 29, 30, 31, 0, 140, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 32, 94, - 0, 0, 0, 33, 0, 0, 0, 148, 34, 35, - 0, 0, 0, 0, 0, 188, 0, 0, 36, 0, - 0, 0, 0, 0, 179, 0, 0, 188, 0, 211, - 0, 0, 0, 148, 0, 0, 0, 0, 0, 0, - 0, 202, 205, 0, 0, 148, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, - 0, 0, 0, 0, 0, 0, 0, 0, 211, 0, - 239, 255, 0, 0, 0, 0, 0, 0, 0, 0, + 746, 747, 748, 749, 0, 0, 0, 0, 0, 754, + 756, 758, 759, 7, 9, 11, 13, 0, 0, 0, + 0, 0, 763, 0, 0, 0, 764, 0, 0, 0, + 94, 94, 0, 94, 94, 94, 94, 94, 0, 94, + 94, 94, 94, 94, 94, 0, 94, 94, 0, 0, + 0, 0, 15, 16, 17, 18, 0, 0, 58, 59, + 0, 0, 0, 60, 19, 0, 20, 0, 61, 0, + 0, 0, 94, 62, 0, 0, 0, 21, 22, 63, + 23, 0, 94, 24, 25, 0, 26, 0, 0, 64, + 0, 0, 27, 28, 65, 81, 0, 29, 30, 31, + 66, 621, 0, 82, 0, 0, 0, 67, 148, 0, + 0, 68, 69, 32, 0, 70, 0, 71, 33, 633, + 72, 0, 635, 34, 35, 637, 0, 94, 83, 84, + 0, 0, 81, 36, 73, 148, 0, 0, 0, 85, + 82, 0, 339, 188, 0, 86, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 188, 87, 211, 0, 0, + 88, 148, 0, 0, 0, 83, 84, 0, 0, 0, + 0, 0, 89, 148, 0, 0, 85, 0, 0, 0, + 384, 0, 86, 0, 0, 0, 0, 239, 0, 0, + 0, 0, 0, 87, 0, 0, 211, 88, 239, 255, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 89, + 0, 0, 0, 0, 0, 0, 0, 385, 0, 271, + 0, 0, 0, 0, 0, 0, 9, 9, 9, 13, + 280, 282, 284, 13, 13, 13, 289, 0, 13, 13, + 294, 148, 0, 0, 298, 0, 15, 16, 17, 18, + 0, 0, 58, 59, 0, 0, 0, 60, 19, 0, + 20, 0, 61, 0, 0, 0, 0, 62, 0, 0, + 328, 21, 22, 63, 23, 0, 0, 24, 25, 0, + 26, 0, 0, 64, 0, 0, 27, 28, 65, 0, + 0, 29, 30, 31, 66, 0, 0, 0, 0, 0, + 0, 67, 11, 0, 0, 68, 69, 32, 0, 70, + 0, 71, 33, 0, 72, 0, 0, 34, 35, 0, + 0, 0, 0, 15, 16, 17, 18, 36, 73, 0, + 0, 0, 0, 0, 0, 19, 340, 20, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 21, 22, + 0, 23, 0, 0, 24, 25, 0, 26, 0, 0, + 0, 0, 0, 27, 28, 0, 0, 0, 29, 30, + 31, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 32, 94, 94, 94, 94, 33, + 0, 0, 0, 0, 34, 35, 15, 16, 17, 18, + 0, 0, 58, 59, 36, 445, 448, 60, 19, 0, + 20, 0, 61, 0, 0, 0, 0, 62, 0, 0, + 0, 21, 22, 63, 23, 0, 0, 24, 25, 471, + 26, 0, 0, 64, 0, 0, 27, 28, 65, 0, + 0, 29, 30, 31, 66, 490, 471, 471, 0, 0, + 0, 67, 0, 0, 0, 68, 69, 32, 0, 70, + 0, 71, 33, 0, 72, 0, 0, 34, 35, 15, + 16, 17, 18, 0, 0, 58, 59, 36, 73, 0, + 60, 19, 0, 20, 0, 61, 341, 0, 0, 0, + 62, 0, 0, 0, 21, 22, 63, 23, 0, 0, + 24, 25, 0, 26, 0, 0, 64, 0, 0, 27, + 28, 65, 0, 0, 29, 30, 31, 66, 0, 0, + 0, 0, 0, 0, 67, 0, 0, 0, 68, 69, + 32, 0, 70, 0, 71, 33, 0, 72, 0, 0, + 34, 35, 0, 0, 0, 0, 0, 0, 0, 0, + 36, 73, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 289, 580, 582, 584, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 271, 0, 0, 0, 0, 0, 0, 9, 9, - 9, 13, 280, 282, 284, 13, 13, 13, 289, 0, - 13, 13, 294, 148, 0, 0, 298, 0, 15, 16, - 17, 18, 0, 0, 58, 59, 0, 0, 0, 60, - 19, 0, 20, 0, 61, 0, 0, 0, 0, 62, - 0, 0, 328, 21, 22, 63, 23, 0, 0, 24, - 25, 0, 26, 0, 0, 64, 0, 0, 27, 28, - 65, 0, 0, 29, 30, 31, 66, 0, 0, 0, - 0, 0, 0, 67, 11, 0, 0, 68, 69, 32, - 0, 70, 0, 71, 33, 0, 72, 0, 0, 34, - 35, 0, 0, 0, 0, 0, 0, 0, 0, 36, - 73, 0, 0, 0, 0, 0, 0, 0, 339, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 605, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 403, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 413, 414, 0, 0, - 0, 0, 0, 415, 0, 0, 0, 0, 0, 0, - 0, 422, 0, 0, 0, 0, 0, 94, 94, 94, - 94, 430, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 445, 448, 0, + 94, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 471, 413, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 490, 471, 471, - 0, 0, 0, 202, 205, 0, 0, 15, 16, 17, - 18, 202, 205, 58, 59, 0, 0, 0, 60, 19, - 0, 20, 0, 61, 0, 0, 0, 0, 62, 0, - 0, 0, 21, 22, 63, 23, 0, 0, 24, 25, - 0, 26, 0, 0, 64, 0, 0, 27, 28, 65, - 0, 0, 29, 30, 31, 66, 0, 0, 0, 0, - 0, 0, 67, 0, 0, 0, 68, 69, 32, 0, - 70, 0, 71, 33, 0, 72, 0, 0, 34, 35, - 0, 0, 0, 0, 0, 0, 0, 0, 36, 73, - 0, 0, 0, 0, 0, 0, 0, 340, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 289, 580, 582, 584, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 605, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 94, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 621, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 633, 0, 0, - 635, 0, 0, 637, 0, 0, 0, 0, 471, 0, - 471, 15, 16, 17, 18, 0, 0, 58, 59, 0, - 0, 0, 60, 19, 0, 20, 0, 61, 0, 0, - 0, 0, 62, 0, 0, 0, 21, 22, 63, 23, - 0, 0, 24, 25, 0, 26, 0, 0, 64, 0, - 0, 27, 28, 65, 0, 0, 29, 30, 31, 66, - 0, 0, 0, 0, 0, 0, 67, 0, 0, 0, - 68, 69, 32, 0, 70, 0, 71, 33, 0, 72, - 0, 0, 34, 35, 15, 16, 17, 18, 0, 0, - 58, 59, 36, 73, 0, 60, 19, 0, 20, 0, - 61, 341, 0, 0, 0, 62, 0, 0, 0, 21, - 22, 63, 23, 0, 0, 24, 25, 0, 26, 0, - 0, 64, 0, 0, 27, 28, 65, 0, 0, 29, - 30, 31, 66, 0, 0, 0, 0, 0, 0, 67, - 0, 0, 0, 68, 69, 32, 0, 70, 0, 71, - 33, 0, 72, 0, 0, 34, 35, 0, 0, 0, - 0, 0, 0, 0, 0, 36, 73 + 0, 0, 0, 0, 0, 0, 471, 0, 471 }; static const yytype_int16 yycheck[] = { - 6, 10, 8, 288, 283, 434, 435, 3, 4, 189, + 6, 10, 8, 288, 283, 434, 435, 3, 4, 5, 3, 4, 18, 19, 0, 21, 22, 23, 24, 25, - 200, 27, 28, 29, 30, 31, 32, 123, 34, 35, - 19, 92, 21, 22, 23, 24, 25, 28, 27, 28, - 29, 30, 31, 32, 36, 34, 35, 3, 4, 5, + 189, 27, 28, 29, 30, 31, 32, 123, 34, 35, + 19, 200, 21, 22, 23, 24, 25, 92, 27, 28, + 29, 30, 31, 32, 21, 34, 35, 3, 4, 20, 3, 4, 20, 149, 60, 3, 4, 3, 4, 3, 4, 3, 4, 20, 70, 161, 3, 4, 82, 3, - 4, 60, 3, 4, 5, 92, 3, 4, 5, 42, - 92, 70, 3, 4, 5, 3, 4, 5, 11, 52, - 96, 3, 4, 5, 3, 4, 5, 93, 92, 22, - 93, 93, 92, 20, 92, 119, 120, 12, 122, 115, - 116, 58, 126, 21, 424, 129, 20, 123, 21, 43, - 117, 20, 432, 21, 21, 93, 115, 419, 58, 21, - 93, 3, 4, 229, 92, 427, 93, 93, 92, 145, - 93, 138, 139, 149, 67, 93, 93, 93, 82, 93, - 93, 93, 57, 8, 12, 161, 93, 57, 58, 64, - 423, 92, 25, 93, 170, 92, 92, 459, 431, 93, - 93, 92, 169, 187, 92, 8, 93, 32, 184, 51, - 92, 86, 87, 92, 6, 93, 41, 42, 93, 93, - 93, 46, 206, 93, 93, 93, 93, 52, 92, 57, - 197, 93, 199, 58, 210, 634, 64, 636, 41, 42, - 43, 58, 416, 46, 69, 51, 82, 92, 73, 52, - 93, 425, 58, 229, 71, 58, 58, 93, 86, 87, - 85, 3, 4, 8, 231, 93, 69, 58, 93, 71, - 73, 16, 421, 76, 65, 78, 93, 92, 81, 58, - 429, 248, 85, 418, 260, 8, 65, 263, 3, 4, - 93, 426, 281, 16, 283, 262, 41, 42, 265, 275, - 276, 277, 93, 23, 3, 4, 5, 52, 458, 92, - 92, 460, 92, 58, 93, 23, 466, 467, 41, 42, - 92, 297, 42, 578, 69, 92, 92, 477, 73, 52, - 92, 92, 52, 217, 42, 58, 486, 221, 222, 223, - 85, 92, 226, 227, 52, 92, 69, 93, 93, 92, - 73, 92, 92, 329, 321, 604, 332, 92, 92, 79, - 80, 92, 85, 88, 89, 90, 91, 334, 92, 82, - 93, 79, 80, 93, 8, 3, 4, 5, 3, 4, - 5, 92, 16, 92, 290, 93, 3, 4, 5, 92, - 214, 215, 216, 93, 92, 92, 92, 373, 374, 375, - 376, 92, 386, 92, 383, 92, 92, 41, 42, 92, - 92, 92, 92, 8, 373, 374, 375, 376, 52, 92, - 92, 16, 92, 92, 58, 93, 393, 394, 395, 396, - 397, 398, 399, 400, 401, 69, 420, 93, 93, 73, - 407, 408, 409, 410, 428, 93, 41, 42, 93, 38, - 39, 85, 419, 93, 421, 93, 93, 52, 93, 93, - 427, 93, 429, 58, 53, 54, 55, 56, 555, 93, - 59, 93, 93, 8, 69, 93, 92, 444, 73, 93, + 4, 60, 3, 4, 5, 20, 3, 4, 5, 3, + 4, 70, 3, 4, 5, 3, 4, 5, 11, 36, + 96, 3, 4, 5, 3, 4, 5, 93, 28, 22, + 93, 42, 92, 20, 43, 119, 120, 21, 122, 115, + 116, 52, 126, 21, 92, 129, 93, 123, 21, 416, + 117, 21, 93, 419, 25, 93, 115, 281, 425, 283, + 421, 427, 58, 229, 3, 4, 93, 93, 429, 145, + 93, 138, 139, 149, 67, 93, 93, 93, 93, 93, + 93, 93, 93, 8, 93, 161, 93, 82, 82, 93, + 92, 92, 82, 459, 170, 92, 6, 93, 93, 460, + 93, 92, 169, 187, 92, 8, 93, 32, 184, 93, + 92, 58, 51, 92, 290, 93, 41, 42, 3, 4, + 93, 46, 206, 93, 71, 57, 58, 52, 58, 58, + 197, 12, 199, 58, 210, 634, 92, 636, 41, 42, + 43, 92, 71, 46, 69, 58, 93, 92, 73, 52, + 58, 51, 65, 229, 424, 58, 92, 65, 58, 8, + 85, 93, 432, 93, 231, 12, 69, 16, 93, 423, + 73, 418, 92, 76, 92, 78, 57, 431, 81, 426, + 93, 248, 85, 64, 260, 93, 92, 263, 3, 4, + 93, 92, 41, 42, 92, 262, 92, 92, 265, 275, + 276, 277, 92, 52, 92, 86, 87, 93, 26, 58, + 57, 93, 93, 92, 92, 33, 23, 64, 36, 458, + 69, 297, 23, 578, 73, 92, 8, 466, 467, 88, + 89, 90, 91, 93, 16, 42, 85, 92, 477, 86, + 87, 42, 92, 555, 93, 52, 93, 486, 92, 67, + 92, 52, 92, 329, 321, 604, 332, 92, 92, 41, + 42, 79, 3, 4, 5, 92, 92, 334, 86, 92, + 52, 92, 79, 80, 93, 92, 58, 93, 79, 80, + 3, 4, 5, 92, 217, 93, 93, 69, 221, 222, + 223, 73, 93, 226, 227, 92, 92, 373, 374, 375, + 376, 92, 386, 85, 383, 92, 124, 3, 4, 5, + 93, 93, 92, 8, 373, 374, 375, 376, 3, 4, + 5, 16, 92, 141, 142, 92, 393, 394, 395, 396, + 397, 398, 399, 400, 401, 92, 420, 214, 215, 216, + 407, 408, 409, 410, 428, 92, 41, 42, 92, 38, + 39, 93, 419, 92, 421, 92, 92, 52, 93, 92, + 427, 93, 429, 58, 53, 54, 55, 56, 93, 93, + 59, 93, 93, 8, 69, 93, 93, 444, 73, 93, 447, 16, 449, 72, 93, 93, 453, 454, 93, 93, - 85, 93, 459, 460, 461, 462, 463, 464, 93, 92, - 484, 651, 92, 653, 93, 655, 41, 42, 92, 38, - 39, 92, 92, 92, 92, 92, 92, 52, 92, 92, + 85, 92, 459, 460, 461, 462, 463, 464, 93, 93, + 484, 93, 92, 549, 93, 92, 41, 42, 92, 38, + 39, 92, 651, 92, 653, 92, 655, 52, 92, 92, 92, 92, 92, 58, 53, 54, 55, 56, 92, 92, 59, 92, 499, 8, 69, 502, 92, 504, 73, 506, 92, 16, 92, 72, 511, 512, 513, 92, 92, 92, 85, 92, 519, 520, 521, 522, 92, 186, 93, 92, - 92, 92, 92, 549, 93, 92, 41, 42, 92, 92, - 583, 93, 92, 8, 92, 92, 92, 52, 92, 402, - 93, 16, 93, 58, 93, 93, 93, 554, 555, 556, - 557, 558, 92, 92, 69, 93, 563, 564, 73, 93, - 93, 93, 93, 93, 571, 572, 41, 42, 93, 585, - 85, 93, 588, 93, 93, 93, 93, 52, 93, 93, - 93, 93, 92, 58, 591, 92, 593, 594, 92, 588, - 92, 598, 599, 92, 69, 93, 93, 93, 73, 93, - 616, 93, 93, 92, 184, 93, 93, 93, 93, 92, - 85, 618, 619, 92, 92, 622, 93, 624, 625, 93, + 92, 92, 92, 583, 93, 92, 41, 42, 92, 92, + 92, 92, 92, 184, 93, 92, 92, 52, 92, 92, + 92, 143, 93, 58, 93, 93, 93, 554, 555, 556, + 557, 558, 93, 92, 69, 93, 563, 564, 73, 93, + 93, 93, 93, 93, 571, 572, 93, 325, 93, 585, + 85, 93, 588, 93, 93, 93, 93, 93, 336, 337, + 93, 92, 92, 92, 591, 343, 593, 594, 92, 588, + 92, 598, 599, 351, 92, -1, 93, 93, 93, 93, + 616, 93, 93, 361, 92, 402, 93, 93, 93, 93, + 92, 618, 619, 92, 92, 622, 93, 624, 625, 93, 93, 628, 92, 92, 92, 92, -1, 93, 92, 92, 92, 638, 639, 93, 641, 93, 643, 93, 93, 93, - 647, 648, 658, 93, 92, 661, 92, -1, 93, 656, - 657, 93, 93, 660, 92, 92, 663, 664, 665, 666, - 667, 677, 92, 143, 680, 93, 93, 93, 675, 676, - 93, 93, 93, 93, 93, 682, -1, 684, -1, 686, - 687, 688, -1, -1, -1, 701, -1, -1, 695, 696, + 647, 648, 658, 93, 402, 661, 92, 92, 92, 656, + 657, 93, 93, 660, 93, 92, 663, 664, 665, 666, + 667, 677, 92, -1, 680, 423, 424, 93, 675, 676, + 93, 93, 93, 431, 432, 682, 93, 684, 93, 686, + 687, 688, 93, 93, -1, 701, -1, -1, 695, 696, 697, 698, -1, -1, -1, -1, -1, 704, -1, 706, 716, 708, -1, -1, 711, 712, 713, 714, 715, -1, -1, 718, -1, 720, 721, 722, 723, 724, 725, 726, 727, 728, 729, -1, 731, -1, -1, 734, 735, 736, - 737, 738, 739, 740, -1, 1, 2, 3, 4, 746, - 747, -1, 749, -1, -1, -1, -1, -1, -1, -1, - -1, 758, 18, 19, 761, 21, 22, 23, 24, 25, - -1, 27, 28, 29, 30, 31, 32, -1, 34, 35, - -1, -1, -1, -1, -1, -1, 26, -1, -1, -1, - -1, -1, -1, 33, -1, -1, 36, 3, 4, 5, - 6, -1, -1, -1, 60, -1, -1, -1, -1, 15, - -1, 17, -1, -1, 70, -1, -1, -1, -1, -1, - -1, -1, 28, 29, -1, 31, -1, 67, 34, 35, - -1, 37, -1, -1, -1, -1, -1, 43, 44, 79, - 96, -1, 48, 49, 50, -1, 86, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 64, 115, - -1, -1, -1, 69, -1, -1, -1, 123, 74, 75, - -1, -1, -1, -1, -1, 131, -1, -1, 84, -1, - -1, -1, -1, -1, 124, -1, -1, 143, -1, 145, - -1, -1, -1, 149, -1, -1, -1, -1, -1, -1, - -1, 141, 142, -1, -1, 161, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 175, - -1, -1, -1, -1, -1, -1, -1, -1, 184, -1, - 186, 187, -1, -1, -1, -1, -1, -1, -1, -1, + 737, 738, 739, 740, -1, -1, -1, -1, -1, 746, + 747, 748, 749, 1, 2, 3, 4, -1, -1, -1, + -1, -1, 759, -1, -1, -1, 763, -1, -1, -1, + 18, 19, -1, 21, 22, 23, 24, 25, -1, 27, + 28, 29, 30, 31, 32, -1, 34, 35, -1, -1, + -1, -1, 3, 4, 5, 6, -1, -1, 9, 10, + -1, -1, -1, 14, 15, -1, 17, -1, 19, -1, + -1, -1, 60, 24, -1, -1, -1, 28, 29, 30, + 31, -1, 70, 34, 35, -1, 37, -1, -1, 40, + -1, -1, 43, 44, 45, 8, -1, 48, 49, 50, + 51, 589, -1, 16, -1, -1, -1, 58, 96, -1, + -1, 62, 63, 64, -1, 66, -1, 68, 69, 607, + 71, -1, 610, 74, 75, 613, -1, 115, 41, 42, + -1, -1, 8, 84, 85, 123, -1, -1, -1, 52, + 16, -1, 93, 131, -1, 58, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 143, 69, 145, -1, -1, + 73, 149, -1, -1, -1, 41, 42, -1, -1, -1, + -1, -1, 85, 161, -1, -1, 52, -1, -1, -1, + 93, -1, 58, -1, -1, -1, -1, 175, -1, -1, + -1, -1, -1, 69, -1, -1, 184, 73, 186, 187, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 85, + -1, -1, -1, -1, -1, -1, -1, 93, -1, 207, + -1, -1, -1, -1, -1, -1, 214, 215, 216, 217, + 218, 219, 220, 221, 222, 223, 224, -1, 226, 227, + 228, 229, -1, -1, 232, -1, 3, 4, 5, 6, + -1, -1, 9, 10, -1, -1, -1, 14, 15, -1, + 17, -1, 19, -1, -1, -1, -1, 24, -1, -1, + 258, 28, 29, 30, 31, -1, -1, 34, 35, -1, + 37, -1, -1, 40, -1, -1, 43, 44, 45, -1, + -1, 48, 49, 50, 51, -1, -1, -1, -1, -1, + -1, 58, 290, -1, -1, 62, 63, 64, -1, 66, + -1, 68, 69, -1, 71, -1, -1, 74, 75, -1, + -1, -1, -1, 3, 4, 5, 6, 84, 85, -1, + -1, -1, -1, -1, -1, 15, 93, 17, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 28, 29, + -1, 31, -1, -1, 34, 35, -1, 37, -1, -1, + -1, -1, -1, 43, 44, -1, -1, -1, 48, 49, + 50, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 64, 373, 374, 375, 376, 69, + -1, -1, -1, -1, 74, 75, 3, 4, 5, 6, + -1, -1, 9, 10, 84, 393, 394, 14, 15, -1, + 17, -1, 19, -1, -1, -1, -1, 24, -1, -1, + -1, 28, 29, 30, 31, -1, -1, 34, 35, 417, + 37, -1, -1, 40, -1, -1, 43, 44, 45, -1, + -1, 48, 49, 50, 51, 433, 434, 435, -1, -1, + -1, 58, -1, -1, -1, 62, 63, 64, -1, 66, + -1, 68, 69, -1, 71, -1, -1, 74, 75, 3, + 4, 5, 6, -1, -1, 9, 10, 84, 85, -1, + 14, 15, -1, 17, -1, 19, 93, -1, -1, -1, + 24, -1, -1, -1, 28, 29, 30, 31, -1, -1, + 34, 35, -1, 37, -1, -1, 40, -1, -1, 43, + 44, 45, -1, -1, 48, 49, 50, 51, -1, -1, + -1, -1, -1, -1, 58, -1, -1, -1, 62, 63, + 64, -1, 66, -1, 68, 69, -1, 71, -1, -1, + 74, 75, -1, -1, -1, -1, -1, -1, -1, -1, + 84, 85, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 549, 550, 551, 552, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 207, -1, -1, -1, -1, -1, -1, 214, 215, - 216, 217, 218, 219, 220, 221, 222, 223, 224, -1, - 226, 227, 228, 229, -1, -1, 232, -1, 3, 4, - 5, 6, -1, -1, 9, 10, -1, -1, -1, 14, - 15, -1, 17, -1, 19, -1, -1, -1, -1, 24, - -1, -1, 258, 28, 29, 30, 31, -1, -1, 34, - 35, -1, 37, -1, -1, 40, -1, -1, 43, 44, - 45, -1, -1, 48, 49, 50, 51, -1, -1, -1, - -1, -1, -1, 58, 290, -1, -1, 62, 63, 64, - -1, 66, -1, 68, 69, -1, 71, -1, -1, 74, - 75, -1, -1, -1, -1, -1, -1, -1, -1, 84, - 85, -1, -1, -1, -1, -1, -1, -1, 93, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 577, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 325, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 336, 337, -1, -1, - -1, -1, -1, 343, -1, -1, -1, -1, -1, -1, - -1, 351, -1, -1, -1, -1, -1, 373, 374, 375, - 376, 361, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 393, 394, -1, + 588, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 417, 402, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 433, 434, 435, - -1, -1, -1, 423, 424, -1, -1, 3, 4, 5, - 6, 431, 432, 9, 10, -1, -1, -1, 14, 15, - -1, 17, -1, 19, -1, -1, -1, -1, 24, -1, - -1, -1, 28, 29, 30, 31, -1, -1, 34, 35, - -1, 37, -1, -1, 40, -1, -1, 43, 44, 45, - -1, -1, 48, 49, 50, 51, -1, -1, -1, -1, - -1, -1, 58, -1, -1, -1, 62, 63, 64, -1, - 66, -1, 68, 69, -1, 71, -1, -1, 74, 75, - -1, -1, -1, -1, -1, -1, -1, -1, 84, 85, - -1, -1, -1, -1, -1, -1, -1, 93, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 549, 550, 551, 552, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 577, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 588, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 589, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 607, -1, -1, - 610, -1, -1, 613, -1, -1, -1, -1, 634, -1, - 636, 3, 4, 5, 6, -1, -1, 9, 10, -1, - -1, -1, 14, 15, -1, 17, -1, 19, -1, -1, - -1, -1, 24, -1, -1, -1, 28, 29, 30, 31, - -1, -1, 34, 35, -1, 37, -1, -1, 40, -1, - -1, 43, 44, 45, -1, -1, 48, 49, 50, 51, - -1, -1, -1, -1, -1, -1, 58, -1, -1, -1, - 62, 63, 64, -1, 66, -1, 68, 69, -1, 71, - -1, -1, 74, 75, 3, 4, 5, 6, -1, -1, - 9, 10, 84, 85, -1, 14, 15, -1, 17, -1, - 19, 93, -1, -1, -1, 24, -1, -1, -1, 28, - 29, 30, 31, -1, -1, 34, 35, -1, 37, -1, - -1, 40, -1, -1, 43, 44, 45, -1, -1, 48, - 49, 50, 51, -1, -1, -1, -1, -1, -1, 58, - -1, -1, -1, 62, 63, 64, -1, 66, -1, 68, - 69, -1, 71, -1, -1, 74, 75, -1, -1, -1, - -1, -1, -1, -1, -1, 84, 85 + -1, -1, -1, -1, -1, -1, 634, -1, 636 }; -/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing - symbol of state STATE-NUM. */ + /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing + symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 88, 89, 90, 91, 95, 96, 220, 126, 220, @@ -1664,108 +1438,111 @@ static const yytype_uint8 yystos[] = 217, 217, 217, 217, 217, 217, 217, 214, 92, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 217, 93, 93, 217, 217, 217, 217, 217, 217, 217, - 93, 93, 93, 93, 217, 93, 217, 93, 217, 93, - 93, 217, 217 + 93, 93, 93, 93, 217, 93, 217, 93, 217, 217, + 93, 93, 93, 217, 217 }; -#define yyerrok (yyerrstatus = 0) -#define yyclearin (yychar = YYEMPTY) -#define YYEMPTY (-2) -#define YYEOF 0 + /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +static const yytype_uint8 yyr1[] = +{ + 0, 94, 95, 95, 95, 95, 96, 96, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 97, 97, 97, + 97, 97, 97, 97, 97, 97, 97, 98, 99, 101, + 100, 102, 102, 102, 104, 103, 105, 105, 106, 106, + 108, 107, 109, 109, 111, 110, 112, 110, 113, 113, + 113, 113, 114, 113, 115, 113, 113, 113, 113, 113, + 116, 116, 116, 116, 116, 116, 116, 116, 116, 117, + 117, 118, 118, 118, 119, 119, 119, 121, 120, 123, + 122, 125, 124, 126, 126, 126, 126, 126, 126, 126, + 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, + 126, 126, 126, 127, 128, 128, 130, 129, 132, 131, + 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, + 133, 133, 133, 134, 135, 136, 137, 138, 139, 140, + 141, 142, 143, 144, 145, 145, 146, 147, 147, 148, + 149, 149, 150, 151, 151, 153, 152, 155, 154, 157, + 156, 159, 158, 161, 160, 163, 162, 165, 164, 167, + 166, 168, 168, 168, 169, 170, 169, 169, 169, 169, + 169, 169, 169, 169, 169, 171, 171, 171, 171, 171, + 171, 171, 171, 171, 171, 171, 171, 171, 171, 172, + 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, + 173, 174, 175, 176, 176, 176, 177, 177, 177, 178, + 179, 180, 181, 182, 183, 183, 184, 184, 185, 186, + 188, 187, 190, 189, 191, 191, 191, 191, 191, 191, + 193, 192, 194, 194, 194, 196, 195, 197, 197, 197, + 199, 198, 200, 200, 200, 202, 201, 203, 203, 204, + 204, 205, 205, 206, 207, 208, 209, 210, 210, 211, + 212, 212, 213, 213, 214, 214, 214, 215, 215, 216, + 216, 217, 217, 218, 218, 218, 219, 219, 220 +}; -#define YYACCEPT goto yyacceptlab -#define YYABORT goto yyabortlab -#define YYERROR goto yyerrorlab + /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ +static const yytype_uint8 yyr2[] = +{ + 0, 2, 2, 2, 2, 2, 1, 2, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 4, 5, 0, + 7, 1, 6, 2, 0, 6, 1, 6, 5, 6, + 0, 6, 1, 2, 0, 5, 0, 6, 1, 2, + 3, 4, 0, 7, 0, 7, 5, 5, 8, 8, + 2, 3, 7, 8, 7, 7, 8, 7, 8, 0, + 4, 3, 8, 8, 4, 9, 9, 0, 6, 0, + 6, 0, 6, 1, 6, 5, 7, 7, 5, 5, + 5, 5, 5, 5, 5, 6, 5, 2, 2, 2, + 2, 5, 2, 1, 1, 2, 0, 5, 0, 5, + 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 5, 6, 4, 4, 4, 4, 7, + 5, 6, 4, 4, 1, 9, 4, 1, 16, 9, + 1, 6, 4, 11, 12, 0, 6, 0, 6, 0, + 6, 0, 6, 0, 6, 0, 6, 0, 6, 0, + 6, 1, 5, 5, 1, 0, 7, 5, 5, 5, + 2, 5, 5, 5, 6, 1, 5, 5, 5, 2, + 5, 5, 5, 5, 5, 5, 2, 5, 6, 1, + 5, 5, 5, 2, 5, 5, 5, 5, 5, 6, + 1, 1, 1, 3, 8, 8, 4, 9, 9, 1, + 8, 2, 1, 1, 1, 5, 1, 2, 1, 1, + 0, 6, 0, 6, 1, 2, 2, 2, 2, 2, + 0, 6, 1, 6, 5, 0, 6, 1, 6, 5, + 0, 6, 1, 6, 2, 0, 6, 1, 6, 1, + 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 2, 1, 1, 1, 1, 1, 1, 1, 0 +}; -/* 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. However, - YYFAIL appears to be in use. Nevertheless, it is formally deprecated - in Bison 2.4.2's NEWS entry, where a plan to phase it out is - discussed. */ +#define yyerrok (yyerrstatus = 0) +#define yyclearin (yychar = YYEMPTY) +#define YYEMPTY (-2) +#define YYEOF 0 + +#define YYACCEPT goto yyacceptlab +#define YYABORT goto yyabortlab +#define YYERROR goto yyerrorlab -#define YYFAIL goto yyerrlab -#if defined YYFAIL - /* This is here to suppress warnings from the GCC cpp's - -Wunused-macros. Normally we don't worry about that warning, but - some users do, and we want to make it easy for users to remove - YYFAIL uses, which will produce warnings from Bison 2.5. */ -#endif #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 \ - { \ +#define YYBACKUP(Token, Value) \ +do \ + if (yychar == YYEMPTY) \ + { \ + yychar = (Token); \ + yylval = (Value); \ + YYPOPSTACK (yylen); \ + yystate = *yyssp; \ + goto yybackup; \ + } \ + else \ + { \ yyerror (YY_("syntax error: cannot back up")); \ - YYERROR; \ - } \ -while (YYID (0)) + YYERROR; \ + } \ +while (0) + +/* Error token number */ +#define YYTERROR 1 +#define YYERRCODE 256 -#define YYTERROR 1 -#define YYERRCODE 256 - - -/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. - If N is 0, then set CURRENT to the empty location which ends - the previous symbol: RHS[0] (always defined). */ - -#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 defined YYLTYPE_IS_TRIVIAL && 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 @@ -1775,80 +1552,61 @@ while (YYID (0)) # define YYFPRINTF fprintf # endif -# define YYDPRINTF(Args) \ -do { \ - if (yydebug) \ - YYFPRINTF Args; \ -} while (YYID (0)) +# define YYDPRINTF(Args) \ +do { \ + if (yydebug) \ + YYFPRINTF Args; \ +} while (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; +/* This macro is provided for backward compatibility. */ +#ifndef YY_LOCATION_PRINT +# define YY_LOCATION_PRINT(File, Loc) ((void) 0) #endif + + +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ +do { \ + if (yydebug) \ + { \ + YYFPRINTF (stderr, "%s ", Title); \ + yy_symbol_print (stderr, \ + Type, Value); \ + YYFPRINTF (stderr, "\n"); \ + } \ +} while (0) + + +/*-----------------------------------. +| Print this symbol's value on YYO. | +`-----------------------------------*/ + +static void +yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep) { + FILE *yyoutput = yyo; + YYUSE (yyoutput); if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) - YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); -# else - YYUSE (yyoutput); + YYPRINT (yyo, yytoknum[yytype], *yyvaluep); # endif - switch (yytype) - { - default: - break; - } + YYUSE (yytype); } -/*--------------------------------. -| Print this symbol on YYOUTPUT. | -`--------------------------------*/ +/*---------------------------. +| Print this symbol on YYO. | +`---------------------------*/ -#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 +yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep) { - if (yytype < YYNTOKENS) - YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); - else - YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); + YYFPRINTF (yyo, "%s %s (", + yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); - yy_symbol_value_print (yyoutput, yytype, yyvaluep); - YYFPRINTF (yyoutput, ")"); + yy_symbol_value_print (yyo, yytype, yyvaluep); + YYFPRINTF (yyo, ")"); } /*------------------------------------------------------------------. @@ -1856,16 +1614,8 @@ yy_symbol_print (yyoutput, yytype, yyvaluep) | TOP (included). | `------------------------------------------------------------------*/ -#if (defined __STDC__ || defined __C99__FUNC__ \ - || defined __cplusplus || defined _MSC_VER) static void yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) -#else -static void -yy_stack_print (yybottom, yytop) - yytype_int16 *yybottom; - yytype_int16 *yytop; -#endif { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) @@ -1876,49 +1626,42 @@ yy_stack_print (yybottom, yytop) YYFPRINTF (stderr, "\n"); } -# define YY_STACK_PRINT(Bottom, Top) \ -do { \ - if (yydebug) \ - yy_stack_print ((Bottom), (Top)); \ -} while (YYID (0)) +# define YY_STACK_PRINT(Bottom, Top) \ +do { \ + if (yydebug) \ + yy_stack_print ((Bottom), (Top)); \ +} while (0) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ -#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 +yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule) { + unsigned long yylno = yyrline[yyrule]; 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); + yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); - yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], - &(yyvsp[(yyi + 1) - (yynrhs)]) - ); + yy_symbol_print (stderr, + yystos[yyssp[yyi + 1 - yynrhs]], + &(yyvsp[(yyi + 1) - (yynrhs)]) + ); YYFPRINTF (stderr, "\n"); } } -# define YY_REDUCE_PRINT(Rule) \ -do { \ - if (yydebug) \ - yy_reduce_print (yyvsp, Rule); \ -} while (YYID (0)) +# define YY_REDUCE_PRINT(Rule) \ +do { \ + if (yydebug) \ + yy_reduce_print (yyssp, yyvsp, Rule); \ +} while (0) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ @@ -1932,7 +1675,7 @@ int yydebug; /* YYINITDEPTH -- initial size of the parser's stacks. */ -#ifndef YYINITDEPTH +#ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif @@ -1947,7 +1690,6 @@ int yydebug; # define YYMAXDEPTH 10000 #endif - #if YYERROR_VERBOSE @@ -1956,15 +1698,8 @@ int yydebug; # 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++) @@ -1980,16 +1715,8 @@ yystrlen (yystr) # 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; @@ -2019,192 +1746,192 @@ yytnamerr (char *yyres, const char *yystr) char const *yyp = yystr; for (;;) - switch (*++yyp) - { - case '\'': - case ',': - goto do_not_strip_quotes; + 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 (*++yyp != '\\') + goto do_not_strip_quotes; + /* Fall through. */ + default: + if (yyres) + yyres[yyn] = *yyp; + yyn++; + break; - case '"': - if (yyres) - yyres[yyn] = '\0'; - return yyn; - } + case '"': + if (yyres) + yyres[yyn] = '\0'; + return yyn; + } do_not_strip_quotes: ; } if (! yyres) return yystrlen (yystr); - return yystpcpy (yyres, yystr) - yyres; + return (YYSIZE_T) (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) +/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message + about the unexpected token YYTOKEN for the state stack whose top is + YYSSP. + + Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is + not large enough to hold the message. In that case, also set + *YYMSG_ALLOC to the required number of bytes. Return 2 if the + required number of bytes is too large to store. */ +static int +yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, + yytype_int16 *yyssp, int yytoken) { - int yyn = yypact[yystate]; + YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); + YYSIZE_T yysize = yysize0; + enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; + /* Internationalized format string. */ + const char *yyformat = YY_NULLPTR; + /* Arguments of yyformat. */ + char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; + /* Number of reported tokens (one for the "unexpected", one per + "expected"). */ + int yycount = 0; - if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) - return 0; - else + /* There are many possibilities here to consider: + - If this state is a consistent state with a default action, then + the only way this function was invoked is if the default action + is an error action. In that case, don't check for expected + tokens because there are none. + - The only way there can be no lookahead present (in yychar) is if + this state is a consistent state with a default action. Thus, + detecting the absence of a lookahead is sufficient to determine + that there is no unexpected or expected token to report. In that + case, just report a simple "syntax error". + - Don't assume there isn't a lookahead just because this state is a + consistent state with a default action. There might have been a + previous inconsistent state, consistent state with a non-default + action, or user semantic action that manipulated yychar. + - Of course, the expected token list depends on states to have + correct lookahead information, and it depends on the parser not + to perform extra reductions after fetching a lookahead from the + scanner and before detecting a syntax error. Thus, state merging + (from LALR or IELR) and default reductions corrupt the expected + token list. However, the list is correct for canonical LR with + one exception: it will still contain any token that will not be + accepted due to an error action in a later state. + */ + if (yytoken != YYEMPTY) { - int 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; + int yyn = yypact[*yyssp]; + yyarg[yycount++] = yytname[yytoken]; + if (!yypact_value_is_default (yyn)) + { + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. In other words, skip the first -YYN actions for + this state because they are default actions. */ + int yyxbegin = yyn < 0 ? -yyn : 0; + /* Stay within bounds of both yycheck and yytname. */ + int yychecklim = YYLAST - yyn + 1; + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; + int yyx; -# 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; + for (yyx = yyxbegin; yyx < yyxend; ++yyx) + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR + && !yytable_value_is_error (yytable[yyx + yyn])) + { + if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) + { + yycount = 1; + yysize = yysize0; + break; + } + yyarg[yycount++] = yytname[yyx]; + { + YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); + if (! (yysize <= yysize1 + && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) + return 2; + yysize = yysize1; + } + } + } } + + switch (yycount) + { +# define YYCASE_(N, S) \ + case N: \ + yyformat = S; \ + break + default: /* Avoid compiler warnings. */ + YYCASE_(0, YY_("syntax error")); + YYCASE_(1, YY_("syntax error, unexpected %s")); + YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); + YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); + YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); + YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); +# undef YYCASE_ + } + + { + YYSIZE_T yysize1 = yysize + yystrlen (yyformat); + if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) + return 2; + yysize = yysize1; + } + + if (*yymsg_alloc < yysize) + { + *yymsg_alloc = 2 * yysize; + if (! (yysize <= *yymsg_alloc + && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) + *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; + return 1; + } + + /* Avoid sprintf, as that infringes on the user's name space. + Don't have undefined behavior even if the translation + produced a string with the wrong number of "%s"s. */ + { + char *yyp = *yymsg; + int yyi = 0; + while ((*yyp = *yyformat) != '\0') + if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) + { + yyp += yytnamerr (yyp, yyarg[yyi++]); + yyformat += 2; + } + else + { + yyp++; + yyformat++; + } + } + return 0; } #endif /* YYERROR_VERBOSE */ - /*-----------------------------------------------. | 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; - } + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN + YYUSE (yytype); + YY_IGNORE_MAYBE_UNINITIALIZED_END } -/* 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 lookahead symbol. */ @@ -2212,49 +1939,26 @@ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; - /* Number of syntax errors so far. */ int yynerrs; +/*----------. +| yyparse. | +`----------*/ -/*-------------------------. -| yyparse or yypush_parse. | -`-------------------------*/ - -#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; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* The stacks and their tools: - `yyss': related to states. - `yyvs': related to semantic values. + 'yyss': related to states. + 'yyvs': related to semantic values. - Refer to the stacks thru separate pointers, to allow yyoverflow + Refer to the stacks through separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ @@ -2272,7 +1976,7 @@ yyparse () int yyn; int yyresult; /* Lookahead token as an internal (translated) token number. */ - int yytoken; + int yytoken = 0; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; @@ -2290,9 +1994,8 @@ yyparse () Keep to zero when no symbol should be popped. */ int yylen = 0; - yytoken = 0; - yyss = yyssa; - yyvs = yyvsa; + yyssp = yyss = yyssa; + yyvsp = yyvs = yyvsa; yystacksize = YYINITDEPTH; YYDPRINTF ((stderr, "Starting parse\n")); @@ -2301,14 +2004,6 @@ yyparse () 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; /*------------------------------------------------------------. @@ -2320,32 +2015,31 @@ yyparse () yyssp++; yysetstate: - *yyssp = yystate; + *yyssp = (yytype_int16) yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ - YYSIZE_T yysize = yyssp - yyss + 1; + YYSIZE_T yysize = (YYSIZE_T) (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; + /* 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; + /* 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 @@ -2353,22 +2047,22 @@ yyparse () # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) - goto yyexhaustedlab; + goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) - yystacksize = YYMAXDEPTH; + yystacksize = YYMAXDEPTH; { - yytype_int16 *yyss1 = yyss; - union yyalloc *yyptr = - (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); - if (! yyptr) - goto yyexhaustedlab; - YYSTACK_RELOCATE (yyss_alloc, yyss); - YYSTACK_RELOCATE (yyvs_alloc, yyvs); + yytype_int16 *yyss1 = yyss; + union yyalloc *yyptr = + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + if (! yyptr) + goto yyexhaustedlab; + YYSTACK_RELOCATE (yyss_alloc, yyss); + YYSTACK_RELOCATE (yyvs_alloc, yyvs); # undef YYSTACK_RELOCATE - if (yyss1 != yyssa) - YYSTACK_FREE (yyss1); + if (yyss1 != yyssa) + YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ @@ -2377,10 +2071,10 @@ yyparse () yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", - (unsigned long int) yystacksize)); + (unsigned long) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) - YYABORT; + YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); @@ -2400,7 +2094,7 @@ yybackup: /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; - if (yyn == YYPACT_NINF) + if (yypact_value_is_default (yyn)) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ @@ -2409,7 +2103,7 @@ yybackup: if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); - yychar = YYLEX; + yychar = yylex (); } if (yychar <= YYEOF) @@ -2431,8 +2125,8 @@ yybackup: yyn = yytable[yyn]; if (yyn <= 0) { - if (yyn == 0 || yyn == YYTABLE_NINF) - goto yyerrlab; + if (yytable_value_is_error (yyn)) + goto yyerrlab; yyn = -yyn; goto yyreduce; } @@ -2449,7 +2143,9 @@ yybackup: yychar = YYEMPTY; yystate = yyn; + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END goto yynewstate; @@ -2472,7 +2168,7 @@ yyreduce: yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: - `$$ = $1'. + '$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison @@ -2486,21 +2182,18 @@ yyreduce: switch (yyn) { case 7: - -/* Line 1464 of yacc.c */ -#line 250 "parser.yxx" +#line 255 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { assert(!egg_stack.empty()); - DCAST(EggData, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[(2) - (2)]._egg))); + DCAST(EggData, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[0]._egg))); } +#line 2191 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 27: - -/* Line 1464 of yacc.c */ -#line 295 "parser.yxx" +#line 300 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - string strval = (yyvsp[(3) - (4)]._string); + string strval = (yyvsp[-1]._string); EggCoordinateSystem *cs = new EggCoordinateSystem; CoordinateSystem f = parse_coordinate_system_string(strval); @@ -2511,24 +2204,22 @@ yyreduce: } (yyval._egg) = cs; } +#line 2208 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 28: - -/* Line 1464 of yacc.c */ -#line 318 "parser.yxx" +#line 323 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._egg) = new EggComment((yyvsp[(2) - (5)]._string), (yyvsp[(4) - (5)]._string)); + (yyval._egg) = new EggComment((yyvsp[-3]._string), (yyvsp[-1]._string)); } +#line 2216 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 29: - -/* Line 1464 of yacc.c */ -#line 332 "parser.yxx" +#line 337 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - string tref_name = (yyvsp[(2) - (4)]._string); - Filename filename = (yyvsp[(4) - (4)]._string); + string tref_name = (yyvsp[-2]._string); + Filename filename = (yyvsp[0]._string); EggTexture *texture = new EggTexture(tref_name, filename); if (textures.find(tref_name) != textures.end()) { @@ -2538,27 +2229,25 @@ yyreduce: egg_stack.push_back(texture); } +#line 2233 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 30: - -/* Line 1464 of yacc.c */ -#line 345 "parser.yxx" +#line 350 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { (yyval._egg) = egg_stack.back(); egg_stack.pop_back(); } +#line 2242 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 32: - -/* Line 1464 of yacc.c */ -#line 361 "parser.yxx" +#line 366 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggTexture *texture = DCAST(EggTexture, egg_stack.back()); - string name = (yyvsp[(3) - (6)]._string); - double value = (yyvsp[(5) - (6)]._number); - string strval = (yyvsp[(5) - (6)]._string); + string name = (yyvsp[-3]._string); + double value = (yyvsp[-1]._number); + string strval = (yyvsp[-1]._string); if (cmp_nocase_uh(name, "type") == 0) { EggTexture::TextureType tt = EggTexture::string_texture_type(strval); @@ -2851,7 +2540,7 @@ yyreduce: } } else if (cmp_nocase_uh(name, "depth_write") == 0) { - EggRenderMode::DepthWriteMode m = + EggRenderMode::DepthWriteMode m = EggRenderMode::string_depth_write_mode(strval); if (m == EggRenderMode::DWM_unspecified) { eggyywarning("Unknown depth-write mode " + strval); @@ -2860,7 +2549,7 @@ yyreduce: } } else if (cmp_nocase_uh(name, "depth_test") == 0) { - EggRenderMode::DepthTestMode m = + EggRenderMode::DepthTestMode m = EggRenderMode::string_depth_test_mode(strval); if (m == EggRenderMode::DTM_unspecified) { eggyywarning("Unknown depth-test mode " + strval); @@ -2869,7 +2558,7 @@ yyreduce: } } else if (cmp_nocase_uh(name, "visibility") == 0) { - EggRenderMode::VisibilityMode m = + EggRenderMode::VisibilityMode m = EggRenderMode::string_visibility_mode(strval); if (m == EggRenderMode::VM_unspecified) { eggyywarning("Unknown visibility mode " + strval); @@ -2895,18 +2584,26 @@ yyreduce: } else if (cmp_nocase_uh(name, "read_mipmaps") == 0) { texture->set_read_mipmaps(((int)value) != 0); + } else if (cmp_nocase_uh(name, "min_lod") == 0) { + texture->set_min_lod(value); + + } else if (cmp_nocase_uh(name, "max_lod") == 0) { + texture->set_max_lod(value); + + } else if (cmp_nocase_uh(name, "lod_bias") == 0) { + texture->set_lod_bias(value); + } else { eggyywarning("Unsupported texture scalar: " + name); } } +#line 2601 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 34: - -/* Line 1464 of yacc.c */ -#line 718 "parser.yxx" +#line 732 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - string mref_name = (yyvsp[(2) - (3)]._string); + string mref_name = (yyvsp[-1]._string); EggMaterial *material = new EggMaterial(mref_name); if (materials.find(mref_name) != materials.end()) { @@ -2916,26 +2613,24 @@ yyreduce: egg_stack.push_back(material); } +#line 2617 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 35: - -/* Line 1464 of yacc.c */ -#line 730 "parser.yxx" +#line 744 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { (yyval._egg) = egg_stack.back(); egg_stack.pop_back(); } +#line 2626 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 37: - -/* Line 1464 of yacc.c */ -#line 746 "parser.yxx" +#line 760 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggMaterial *material = DCAST(EggMaterial, egg_stack.back()); - string name = (yyvsp[(3) - (6)]._string); - double value = (yyvsp[(5) - (6)]._number); + string name = (yyvsp[-3]._string); + double value = (yyvsp[-1]._number); if (cmp_nocase_uh(name, "baser") == 0) { LColor base = material->get_base(); @@ -3041,42 +2736,39 @@ yyreduce: eggyywarning("Unsupported material scalar: " + name); } } +#line 2740 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 38: - -/* Line 1464 of yacc.c */ -#line 841 "parser.yxx" +#line 881 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - string node_name = (yyvsp[(2) - (5)]._string); - Filename filename = (yyvsp[(4) - (5)]._string); + string node_name = (yyvsp[-3]._string); + Filename filename = (yyvsp[-1]._string); EggExternalReference *ref = new EggExternalReference(node_name, filename); (yyval._egg) = ref; } +#line 2751 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 39: - -/* Line 1464 of yacc.c */ -#line 848 "parser.yxx" +#line 888 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - if (cmp_nocase_uh((yyvsp[(1) - (6)]._string), "group") != 0) { + if (cmp_nocase_uh((yyvsp[-5]._string), "group") != 0) { eggyyerror("keyword 'group' expected"); } - string node_name = (yyvsp[(3) - (6)]._string); - Filename filename = (yyvsp[(5) - (6)]._string); + string node_name = (yyvsp[-3]._string); + Filename filename = (yyvsp[-1]._string); EggExternalReference *ref = new EggExternalReference(node_name, filename); (yyval._egg) = ref; } +#line 2765 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 40: - -/* Line 1464 of yacc.c */ -#line 868 "parser.yxx" +#line 908 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - string name = (yyvsp[(2) - (2)]._string); - EggVertexPool *pool = NULL; + string name = (yyvsp[0]._string); + EggVertexPool *pool = nullptr; VertexPools::const_iterator vpi = vertex_pools.find(name); if (vpi != vertex_pools.end()) { @@ -3097,45 +2789,41 @@ yyreduce: egg_stack.push_back(pool); } +#line 2793 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 41: - -/* Line 1464 of yacc.c */ -#line 892 "parser.yxx" +#line 932 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { (yyval._egg) = egg_stack.back(); egg_stack.pop_back(); } +#line 2802 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 44: - -/* Line 1464 of yacc.c */ -#line 920 "parser.yxx" +#line 960 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { egg_stack.push_back(new EggVertex); } +#line 2810 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 45: - -/* Line 1464 of yacc.c */ -#line 924 "parser.yxx" +#line 964 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { PT(EggVertex) vtx = DCAST(EggVertex, egg_stack.back()); egg_stack.pop_back(); DCAST(EggVertexPool, egg_stack.back())->add_vertex(vtx); } +#line 2821 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 46: - -/* Line 1464 of yacc.c */ -#line 931 "parser.yxx" +#line 971 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - vertex_index = (int)(yyvsp[(2) - (2)]._number); + vertex_index = (int)(yyvsp[0]._number); EggVertexPool *pool = DCAST(EggVertexPool, egg_stack.back()); if (vertex_index < 0) { @@ -3158,12 +2846,11 @@ yyreduce: egg_stack.push_back(new EggVertex); } +#line 2850 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 47: - -/* Line 1464 of yacc.c */ -#line 956 "parser.yxx" +#line 996 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { PT(EggVertex) vtx = DCAST(EggVertex, egg_stack.back()); egg_stack.pop_back(); @@ -3173,309 +2860,294 @@ yyreduce: pool->add_vertex(vtx, vertex_index); } } +#line 2864 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 48: - -/* Line 1464 of yacc.c */ -#line 977 "parser.yxx" +#line 1017 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggVertex, egg_stack.back())->set_pos((yyvsp[(1) - (1)]._number)); + DCAST(EggVertex, egg_stack.back())->set_pos((yyvsp[0]._number)); } +#line 2872 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 49: - -/* Line 1464 of yacc.c */ -#line 981 "parser.yxx" +#line 1021 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggVertex, egg_stack.back())->set_pos(LPoint2d((yyvsp[(1) - (2)]._number), (yyvsp[(2) - (2)]._number))); + DCAST(EggVertex, egg_stack.back())->set_pos(LPoint2d((yyvsp[-1]._number), (yyvsp[0]._number))); } +#line 2880 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 50: - -/* Line 1464 of yacc.c */ -#line 985 "parser.yxx" +#line 1025 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggVertex, egg_stack.back())->set_pos(LPoint3d((yyvsp[(1) - (3)]._number), (yyvsp[(2) - (3)]._number), (yyvsp[(3) - (3)]._number))); + DCAST(EggVertex, egg_stack.back())->set_pos(LPoint3d((yyvsp[-2]._number), (yyvsp[-1]._number), (yyvsp[0]._number))); } +#line 2888 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 51: - -/* Line 1464 of yacc.c */ -#line 989 "parser.yxx" +#line 1029 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggVertex, egg_stack.back())->set_pos(LPoint4d((yyvsp[(1) - (4)]._number), (yyvsp[(2) - (4)]._number), (yyvsp[(3) - (4)]._number), (yyvsp[(4) - (4)]._number))); + DCAST(EggVertex, egg_stack.back())->set_pos(LPoint4d((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number), (yyvsp[0]._number))); } +#line 2896 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 52: - -/* Line 1464 of yacc.c */ -#line 993 "parser.yxx" +#line 1033 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggVertex *vertex = DCAST(EggVertex, egg_stack.back()); - EggVertexUV *uv = new EggVertexUV((yyvsp[(3) - (4)]._string), LTexCoordd::zero()); + EggVertexUV *uv = new EggVertexUV((yyvsp[-1]._string), LTexCoordd::zero()); egg_stack.push_back(uv); - if (vertex->has_uv((yyvsp[(3) - (4)]._string))) { - eggyywarning("Ignoring repeated UV name " + (yyvsp[(3) - (4)]._string)); + if (vertex->has_uv((yyvsp[-1]._string))) { + eggyywarning("Ignoring repeated UV name " + (yyvsp[-1]._string)); } else { vertex->set_uv_obj(uv); } } +#line 2911 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 53: - -/* Line 1464 of yacc.c */ -#line 1004 "parser.yxx" +#line 1044 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { egg_stack.pop_back(); } +#line 2919 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 54: - -/* Line 1464 of yacc.c */ -#line 1008 "parser.yxx" +#line 1048 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggVertex *vertex = DCAST(EggVertex, egg_stack.back()); - EggVertexAux *aux = new EggVertexAux((yyvsp[(3) - (4)]._string), LVecBase4d::zero()); + EggVertexAux *aux = new EggVertexAux((yyvsp[-1]._string), LVecBase4d::zero()); egg_stack.push_back(aux); - if (vertex->has_aux((yyvsp[(3) - (4)]._string))) { - eggyywarning("Ignoring repeated Aux name " + (yyvsp[(3) - (4)]._string)); + if (vertex->has_aux((yyvsp[-1]._string))) { + eggyywarning("Ignoring repeated Aux name " + (yyvsp[-1]._string)); } else { vertex->set_aux_obj(aux); } } +#line 2934 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 55: - -/* Line 1464 of yacc.c */ -#line 1019 "parser.yxx" +#line 1059 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { egg_stack.pop_back(); } +#line 2942 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 58: - -/* Line 1464 of yacc.c */ -#line 1025 "parser.yxx" +#line 1065 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { bool inserted = DCAST(EggVertex, egg_stack.back())->_dxyzs. - insert(EggMorphVertex((yyvsp[(3) - (8)]._string), LVector3d((yyvsp[(5) - (8)]._number), (yyvsp[(6) - (8)]._number), (yyvsp[(7) - (8)]._number)))).second; + insert(EggMorphVertex((yyvsp[-5]._string), LVector3d((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number)))).second; if (!inserted) { - eggyywarning("Ignoring repeated morph name " + (yyvsp[(3) - (8)]._string)); + eggyywarning("Ignoring repeated morph name " + (yyvsp[-5]._string)); } } +#line 2954 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 59: - -/* Line 1464 of yacc.c */ -#line 1033 "parser.yxx" +#line 1073 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { bool inserted = DCAST(EggVertex, egg_stack.back())->_dxyzs. - insert(EggMorphVertex((yyvsp[(4) - (8)]._string), LVector3d((yyvsp[(5) - (8)]._number), (yyvsp[(6) - (8)]._number), (yyvsp[(7) - (8)]._number)))).second; + insert(EggMorphVertex((yyvsp[-4]._string), LVector3d((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number)))).second; if (!inserted) { - eggyywarning("Ignoring repeated morph name " + (yyvsp[(4) - (8)]._string)); + eggyywarning("Ignoring repeated morph name " + (yyvsp[-4]._string)); } } +#line 2966 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 60: - -/* Line 1464 of yacc.c */ -#line 1052 "parser.yxx" +#line 1092 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggVertexUV, egg_stack.back())->set_uv(LTexCoordd((yyvsp[(1) - (2)]._number), (yyvsp[(2) - (2)]._number))); + DCAST(EggVertexUV, egg_stack.back())->set_uv(LTexCoordd((yyvsp[-1]._number), (yyvsp[0]._number))); } +#line 2974 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 61: - -/* Line 1464 of yacc.c */ -#line 1056 "parser.yxx" +#line 1096 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggVertexUV, egg_stack.back())->set_uvw(LVecBase3d((yyvsp[(1) - (3)]._number), (yyvsp[(2) - (3)]._number), (yyvsp[(3) - (3)]._number))); + DCAST(EggVertexUV, egg_stack.back())->set_uvw(LVecBase3d((yyvsp[-2]._number), (yyvsp[-1]._number), (yyvsp[0]._number))); } +#line 2982 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 62: - -/* Line 1464 of yacc.c */ -#line 1060 "parser.yxx" +#line 1100 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { if (DCAST(EggVertexUV, egg_stack.back())->has_tangent()) { eggyywarning("Ignoring repeated tangent"); } else { - DCAST(EggVertexUV, egg_stack.back())->set_tangent(LNormald((yyvsp[(4) - (7)]._number), (yyvsp[(5) - (7)]._number), (yyvsp[(6) - (7)]._number))); + DCAST(EggVertexUV, egg_stack.back())->set_tangent(LNormald((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number))); } } +#line 2994 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 63: +#line 1108 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + if (DCAST(EggVertexUV, egg_stack.back())->has_tangent()) { + eggyywarning("Ignoring repeated tangent"); + } else { + DCAST(EggVertexUV, egg_stack.back())->set_tangent4(LVecBase4d((yyvsp[-4]._number), (yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number))); + } +} +#line 3006 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 1068 "parser.yxx" + case 64: +#line 1116 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { if (DCAST(EggVertexUV, egg_stack.back())->has_binormal()) { eggyywarning("Ignoring repeated binormal"); } else { - DCAST(EggVertexUV, egg_stack.back())->set_binormal(LNormald((yyvsp[(4) - (7)]._number), (yyvsp[(5) - (7)]._number), (yyvsp[(6) - (7)]._number))); - } -} - break; - - case 64: - -/* Line 1464 of yacc.c */ -#line 1076 "parser.yxx" - { - bool inserted = DCAST(EggVertexUV, egg_stack.back())->_duvs. - insert(EggMorphTexCoord((yyvsp[(3) - (7)]._string), LVector3d((yyvsp[(5) - (7)]._number), (yyvsp[(6) - (7)]._number), 0.0))).second; - if (!inserted) { - eggyywarning("Ignoring repeated morph name " + (yyvsp[(3) - (7)]._string)); + DCAST(EggVertexUV, egg_stack.back())->set_binormal(LNormald((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number))); } } +#line 3018 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 65: - -/* Line 1464 of yacc.c */ -#line 1084 "parser.yxx" +#line 1124 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { bool inserted = DCAST(EggVertexUV, egg_stack.back())->_duvs. - insert(EggMorphTexCoord((yyvsp[(3) - (8)]._string), LVector3d((yyvsp[(5) - (8)]._number), (yyvsp[(6) - (8)]._number), (yyvsp[(7) - (8)]._number)))).second; + insert(EggMorphTexCoord((yyvsp[-4]._string), LVector3d((yyvsp[-2]._number), (yyvsp[-1]._number), 0.0))).second; if (!inserted) { - eggyywarning("Ignoring repeated morph name " + (yyvsp[(3) - (8)]._string)); + eggyywarning("Ignoring repeated morph name " + (yyvsp[-4]._string)); } } +#line 3030 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 66: - -/* Line 1464 of yacc.c */ -#line 1092 "parser.yxx" +#line 1132 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { bool inserted = DCAST(EggVertexUV, egg_stack.back())->_duvs. - insert(EggMorphTexCoord((yyvsp[(4) - (7)]._string), LVector3d((yyvsp[(5) - (7)]._number), (yyvsp[(6) - (7)]._number), 0.0))).second; + insert(EggMorphTexCoord((yyvsp[-5]._string), LVector3d((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number)))).second; if (!inserted) { - eggyywarning("Ignoring repeated morph name " + (yyvsp[(4) - (7)]._string)); + eggyywarning("Ignoring repeated morph name " + (yyvsp[-5]._string)); } } +#line 3042 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 67: - -/* Line 1464 of yacc.c */ -#line 1100 "parser.yxx" +#line 1140 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { bool inserted = DCAST(EggVertexUV, egg_stack.back())->_duvs. - insert(EggMorphTexCoord((yyvsp[(4) - (8)]._string), LVector3d((yyvsp[(5) - (8)]._number), (yyvsp[(6) - (8)]._number), (yyvsp[(7) - (8)]._number)))).second; + insert(EggMorphTexCoord((yyvsp[-3]._string), LVector3d((yyvsp[-2]._number), (yyvsp[-1]._number), 0.0))).second; if (!inserted) { - eggyywarning("Ignoring repeated morph name " + (yyvsp[(4) - (8)]._string)); + eggyywarning("Ignoring repeated morph name " + (yyvsp[-3]._string)); } } +#line 3054 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 69: - -/* Line 1464 of yacc.c */ -#line 1118 "parser.yxx" + case 68: +#line 1148 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggVertexAux, egg_stack.back())->set_aux(LVecBase4d((yyvsp[(1) - (4)]._number), (yyvsp[(2) - (4)]._number), (yyvsp[(3) - (4)]._number), (yyvsp[(4) - (4)]._number))); + bool inserted = DCAST(EggVertexUV, egg_stack.back())->_duvs. + insert(EggMorphTexCoord((yyvsp[-4]._string), LVector3d((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number)))).second; + if (!inserted) { + eggyywarning("Ignoring repeated morph name " + (yyvsp[-4]._string)); + } } +#line 3066 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 70: - -/* Line 1464 of yacc.c */ -#line 1132 "parser.yxx" +#line 1166 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggVertex, egg_stack.back())->set_normal(LNormald((yyvsp[(1) - (3)]._number), (yyvsp[(2) - (3)]._number), (yyvsp[(3) - (3)]._number))); + DCAST(EggVertexAux, egg_stack.back())->set_aux(LVecBase4d((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number), (yyvsp[0]._number))); } +#line 3074 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 71: - -/* Line 1464 of yacc.c */ -#line 1136 "parser.yxx" +#line 1180 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - bool inserted = DCAST(EggVertex, egg_stack.back())->_dnormals. - insert(EggMorphNormal((yyvsp[(3) - (8)]._string), LVector3d((yyvsp[(5) - (8)]._number), (yyvsp[(6) - (8)]._number), (yyvsp[(7) - (8)]._number)))).second; - if (!inserted) { - eggyywarning("Ignoring repeated morph name " + (yyvsp[(3) - (8)]._string)); - } + DCAST(EggVertex, egg_stack.back())->set_normal(LNormald((yyvsp[-2]._number), (yyvsp[-1]._number), (yyvsp[0]._number))); } +#line 3082 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 72: - -/* Line 1464 of yacc.c */ -#line 1144 "parser.yxx" +#line 1184 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { bool inserted = DCAST(EggVertex, egg_stack.back())->_dnormals. - insert(EggMorphNormal((yyvsp[(4) - (8)]._string), LVector3d((yyvsp[(5) - (8)]._number), (yyvsp[(6) - (8)]._number), (yyvsp[(7) - (8)]._number)))).second; + insert(EggMorphNormal((yyvsp[-5]._string), LVector3d((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number)))).second; if (!inserted) { - eggyywarning("Ignoring repeated morph name " + (yyvsp[(4) - (8)]._string)); + eggyywarning("Ignoring repeated morph name " + (yyvsp[-5]._string)); } } +#line 3094 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 73: - -/* Line 1464 of yacc.c */ -#line 1162 "parser.yxx" +#line 1192 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggVertex, egg_stack.back())->set_color(LColor((yyvsp[(1) - (4)]._number), (yyvsp[(2) - (4)]._number), (yyvsp[(3) - (4)]._number), (yyvsp[(4) - (4)]._number))); + bool inserted = DCAST(EggVertex, egg_stack.back())->_dnormals. + insert(EggMorphNormal((yyvsp[-4]._string), LVector3d((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number)))).second; + if (!inserted) { + eggyywarning("Ignoring repeated morph name " + (yyvsp[-4]._string)); + } } +#line 3106 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 74: - -/* Line 1464 of yacc.c */ -#line 1166 "parser.yxx" +#line 1210 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - bool inserted = DCAST(EggVertex, egg_stack.back())->_drgbas. - insert(EggMorphColor((yyvsp[(3) - (9)]._string), LVector4((yyvsp[(5) - (9)]._number), (yyvsp[(6) - (9)]._number), (yyvsp[(7) - (9)]._number), (yyvsp[(8) - (9)]._number)))).second; - if (!inserted) { - eggyywarning("Ignoring repeated morph name " + (yyvsp[(3) - (9)]._string)); - } + DCAST(EggVertex, egg_stack.back())->set_color(LColor((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number), (yyvsp[0]._number))); } +#line 3114 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 75: - -/* Line 1464 of yacc.c */ -#line 1174 "parser.yxx" +#line 1214 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { bool inserted = DCAST(EggVertex, egg_stack.back())->_drgbas. - insert(EggMorphColor((yyvsp[(4) - (9)]._string), LVector4((yyvsp[(5) - (9)]._number), (yyvsp[(6) - (9)]._number), (yyvsp[(7) - (9)]._number), (yyvsp[(8) - (9)]._number)))).second; + insert(EggMorphColor((yyvsp[-6]._string), LVector4((yyvsp[-4]._number), (yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number)))).second; if (!inserted) { - eggyywarning("Ignoring repeated morph name " + (yyvsp[(4) - (9)]._string)); + eggyywarning("Ignoring repeated morph name " + (yyvsp[-6]._string)); } } +#line 3126 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 76: - -/* Line 1464 of yacc.c */ -#line 1192 "parser.yxx" +#line 1222 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - EggGroup *group = new EggGroup((yyvsp[(2) - (2)]._string)); - egg_stack.push_back(group); + bool inserted = DCAST(EggVertex, egg_stack.back())->_drgbas. + insert(EggMorphColor((yyvsp[-5]._string), LVector4((yyvsp[-4]._number), (yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number)))).second; + if (!inserted) { + eggyywarning("Ignoring repeated morph name " + (yyvsp[-5]._string)); + } } +#line 3138 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 77: +#line 1240 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + EggGroup *group = new EggGroup((yyvsp[0]._string)); + egg_stack.push_back(group); +} +#line 3147 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 1197 "parser.yxx" + case 78: +#line 1245 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); (yyval._egg) = group; @@ -3485,44 +3157,40 @@ yyreduce: } Thread::consider_yield(); } - break; - - case 78: - -/* Line 1464 of yacc.c */ -#line 1217 "parser.yxx" - { - EggGroup *group = new EggGroup((yyvsp[(2) - (2)]._string)); - group->set_group_type(EggGroup::GT_joint); - egg_stack.push_back(group); -} +#line 3161 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 79: +#line 1265 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + EggGroup *group = new EggGroup((yyvsp[0]._string)); + group->set_group_type(EggGroup::GT_joint); + egg_stack.push_back(group); +} +#line 3171 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 1223 "parser.yxx" + case 80: +#line 1271 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { (yyval._egg) = egg_stack.back(); egg_stack.pop_back(); } - break; - - case 80: - -/* Line 1464 of yacc.c */ -#line 1238 "parser.yxx" - { - EggGroup *group = new EggGroup((yyvsp[(2) - (2)]._string)); - group->set_group_type(EggGroup::GT_instance); - egg_stack.push_back(group); -} +#line 3180 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 81: +#line 1286 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + EggGroup *group = new EggGroup((yyvsp[0]._string)); + group->set_group_type(EggGroup::GT_instance); + egg_stack.push_back(group); +} +#line 3190 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 1244 "parser.yxx" + case 82: +#line 1292 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); (yyval._egg) = group; @@ -3531,18 +3199,17 @@ yyreduce: groups[group->get_name()] = group; } } +#line 3203 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 83: - -/* Line 1464 of yacc.c */ -#line 1264 "parser.yxx" + case 84: +#line 1312 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); - string name = (yyvsp[(3) - (6)]._string); - double value = (yyvsp[(5) - (6)]._number); - unsigned long ulong_value = (yyvsp[(5) - (6)]._ulong); - string strval = (yyvsp[(5) - (6)]._string); + string name = (yyvsp[-3]._string); + double value = (yyvsp[-1]._number); + unsigned long ulong_value = (yyvsp[-1]._ulong); + string strval = (yyvsp[-1]._string); if (cmp_nocase_uh(name, "fps") == 0) { group->set_switch_fps(value); @@ -3565,7 +3232,7 @@ yyreduce: } } else if (cmp_nocase_uh(name, "depth_write") == 0) { - EggRenderMode::DepthWriteMode m = + EggRenderMode::DepthWriteMode m = EggRenderMode::string_depth_write_mode(strval); if (m == EggRenderMode::DWM_unspecified) { eggyywarning("Unknown depth-write mode " + strval); @@ -3574,7 +3241,7 @@ yyreduce: } } else if (cmp_nocase_uh(name, "depth_test") == 0) { - EggRenderMode::DepthTestMode m = + EggRenderMode::DepthTestMode m = EggRenderMode::string_depth_test_mode(strval); if (m == EggRenderMode::DTM_unspecified) { eggyywarning("Unknown depth-test mode " + strval); @@ -3583,7 +3250,7 @@ yyreduce: } } else if (cmp_nocase_uh(name, "visibility") == 0) { - EggRenderMode::VisibilityMode m = + EggRenderMode::VisibilityMode m = EggRenderMode::string_visibility_mode(strval); if (m == EggRenderMode::VM_unspecified) { eggyywarning("Unknown visibility mode " + strval); @@ -3684,15 +3351,14 @@ yyreduce: eggyywarning("Unknown group scalar " + name); } } +#line 3355 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 84: - -/* Line 1464 of yacc.c */ -#line 1409 "parser.yxx" + case 85: +#line 1460 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); - string strval = (yyvsp[(4) - (5)]._string); + string strval = (yyvsp[-1]._string); EggGroup::BillboardType f = EggGroup::string_billboard_type(strval); if (f == EggGroup::BT_none) { @@ -3701,49 +3367,45 @@ yyreduce: group->set_billboard_type(f); } } - break; - - case 85: - -/* Line 1464 of yacc.c */ -#line 1421 "parser.yxx" - { - EggGroup *group = DCAST(EggGroup, egg_stack.back()); - group->set_billboard_center(LPoint3d((yyvsp[(4) - (7)]._number), (yyvsp[(5) - (7)]._number), (yyvsp[(6) - (7)]._number))); -} +#line 3371 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 86: - -/* Line 1464 of yacc.c */ -#line 1426 "parser.yxx" +#line 1472 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); - string name = (yyvsp[(3) - (7)]._string); - - group->set_collision_name(name); + group->set_billboard_center(LPoint3d((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number))); } +#line 3380 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 87: - -/* Line 1464 of yacc.c */ -#line 1433 "parser.yxx" +#line 1477 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); - int value = (int)(yyvsp[(4) - (5)]._number); - group->set_dcs_type(value!=0 ? EggGroup::DC_default : EggGroup::DC_none); + string name = (yyvsp[-4]._string); + + group->set_collision_name(name); } +#line 3391 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 88: +#line 1484 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + EggGroup *group = DCAST(EggGroup, egg_stack.back()); + int value = (int)(yyvsp[-1]._number); + group->set_dcs_type(value!=0 ? EggGroup::DC_default : EggGroup::DC_none); +} +#line 3401 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 1439 "parser.yxx" + case 89: +#line 1490 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { // The special flavor of DCS, with { sync } or { nosync }. EggGroup *group = DCAST(EggGroup, egg_stack.back()); - string strval = (yyvsp[(4) - (5)]._string); + string strval = (yyvsp[-1]._string); EggGroup::DCSType f = EggGroup::string_dcs_type(strval); if (f == EggGroup::DC_unspecified) { @@ -3752,28 +3414,26 @@ yyreduce: group->set_dcs_type(f); } } - break; - - case 89: - -/* Line 1464 of yacc.c */ -#line 1452 "parser.yxx" - { - // The traditional flavor of DART, with { 0 } or { 1 }. - EggGroup *group = DCAST(EggGroup, egg_stack.back()); - int value = (int)(yyvsp[(4) - (5)]._number); - group->set_dart_type(value!=0 ? EggGroup::DT_default : EggGroup::DT_none); -} +#line 3418 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 90: +#line 1503 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + // The traditional flavor of DART, with { 0 } or { 1 }. + EggGroup *group = DCAST(EggGroup, egg_stack.back()); + int value = (int)(yyvsp[-1]._number); + group->set_dart_type(value!=0 ? EggGroup::DT_default : EggGroup::DT_none); +} +#line 3429 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 1459 "parser.yxx" + case 91: +#line 1510 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { // The special flavor of DART, with { sync } or { nosync }. EggGroup *group = DCAST(EggGroup, egg_stack.back()); - string strval = (yyvsp[(4) - (5)]._string); + string strval = (yyvsp[-1]._string); EggGroup::DartType f = EggGroup::string_dart_type(strval); if (f == EggGroup::DT_none) { @@ -3782,92 +3442,84 @@ yyreduce: group->set_dart_type(f); } } - break; - - case 91: - -/* Line 1464 of yacc.c */ -#line 1472 "parser.yxx" - { - EggGroup *group = DCAST(EggGroup, egg_stack.back()); - int value = (int)(yyvsp[(4) - (5)]._number); - group->set_switch_flag(value!=0); -} +#line 3446 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 92: - -/* Line 1464 of yacc.c */ -#line 1478 "parser.yxx" +#line 1523 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); - string type = (yyvsp[(4) - (5)]._string); - group->add_object_type(type); + int value = (int)(yyvsp[-1]._number); + group->set_switch_flag(value!=0); } +#line 3456 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 93: - -/* Line 1464 of yacc.c */ -#line 1484 "parser.yxx" +#line 1529 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); - int value = (int)(yyvsp[(4) - (5)]._number); - group->set_model_flag(value!=0); + string type = (yyvsp[-1]._string); + group->add_object_type(type); } +#line 3466 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 94: - -/* Line 1464 of yacc.c */ -#line 1490 "parser.yxx" +#line 1535 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); - group->set_tag((yyvsp[(3) - (6)]._string), (yyvsp[(5) - (6)]._string)); + int value = (int)(yyvsp[-1]._number); + group->set_model_flag(value!=0); } +#line 3476 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 95: - -/* Line 1464 of yacc.c */ -#line 1495 "parser.yxx" +#line 1541 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); - int value = (int)(yyvsp[(4) - (5)]._number); - group->set_texlist_flag(value!=0); + group->set_tag((yyvsp[-3]._string), (yyvsp[-1]._string)); } +#line 3485 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 100: + case 96: +#line 1546 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + EggGroup *group = DCAST(EggGroup, egg_stack.back()); + int value = (int)(yyvsp[-1]._number); + group->set_texlist_flag(value!=0); +} +#line 3495 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 1505 "parser.yxx" + case 101: +#line 1556 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); if (group->get_group_type() != EggGroup::GT_instance) { eggyyerror(" valid only within "); - } else if ((yyvsp[(4) - (5)]._egg) != (EggObject *)NULL) { - group->add_group_ref(DCAST(EggGroup, (yyvsp[(4) - (5)]._egg))); + } else if ((yyvsp[-1]._egg) != nullptr) { + group->add_group_ref(DCAST(EggGroup, (yyvsp[-1]._egg))); } } - break; - - case 101: - -/* Line 1464 of yacc.c */ -#line 1514 "parser.yxx" - { - DCAST(EggGroup, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[(2) - (2)]._egg))); -} +#line 3508 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 102: +#line 1565 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + DCAST(EggGroup, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[0]._egg))); +} +#line 3516 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 1528 "parser.yxx" + case 103: +#line 1579 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); - string strval = (yyvsp[(1) - (1)]._string); + string strval = (yyvsp[0]._string); EggGroup::CollisionSolidType f = EggGroup::string_cs_type(strval); if (f == EggGroup::CST_none) { @@ -3884,15 +3536,14 @@ yyreduce: } } } +#line 3540 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 104: - -/* Line 1464 of yacc.c */ -#line 1559 "parser.yxx" + case 105: +#line 1610 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); - string strval = (yyvsp[(2) - (2)]._string); + string strval = (yyvsp[0]._string); EggGroup::CollideFlags f = EggGroup::string_collide_flags(strval); if (f == EggGroup::CF_none) { @@ -3901,22 +3552,20 @@ yyreduce: group->set_collide_flags(group->get_collide_flags() | f); } } +#line 3556 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 105: - -/* Line 1464 of yacc.c */ -#line 1581 "parser.yxx" + case 106: +#line 1632 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { egg_top_transform = egg_stack.back()->as_transform(); egg_top_transform->clear_transform(); } +#line 3565 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 107: - -/* Line 1464 of yacc.c */ -#line 1597 "parser.yxx" + case 108: +#line 1648 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); if (group->get_group_type() != EggGroup::GT_joint) { @@ -3925,140 +3574,127 @@ yyreduce: egg_top_transform = &group->modify_default_pose(); egg_top_transform->clear_transform(); } - break; - - case 122: - -/* Line 1464 of yacc.c */ -#line 1634 "parser.yxx" - { - egg_top_transform->add_translate2d(LVector2d((yyvsp[(3) - (5)]._number), (yyvsp[(4) - (5)]._number))); -} +#line 3578 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 123: - -/* Line 1464 of yacc.c */ -#line 1641 "parser.yxx" +#line 1685 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_top_transform->add_translate3d(LVector3d((yyvsp[(3) - (6)]._number), (yyvsp[(4) - (6)]._number), (yyvsp[(5) - (6)]._number))); + egg_top_transform->add_translate2d(LVector2d((yyvsp[-2]._number), (yyvsp[-1]._number))); } +#line 3586 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 124: - -/* Line 1464 of yacc.c */ -#line 1648 "parser.yxx" +#line 1692 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_top_transform->add_rotate2d((yyvsp[(3) - (4)]._number)); + egg_top_transform->add_translate3d(LVector3d((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number))); } +#line 3594 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 125: - -/* Line 1464 of yacc.c */ -#line 1655 "parser.yxx" +#line 1699 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_top_transform->add_rotx((yyvsp[(3) - (4)]._number)); + egg_top_transform->add_rotate2d((yyvsp[-1]._number)); } +#line 3602 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 126: - -/* Line 1464 of yacc.c */ -#line 1662 "parser.yxx" +#line 1706 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_top_transform->add_roty((yyvsp[(3) - (4)]._number)); + egg_top_transform->add_rotx((yyvsp[-1]._number)); } +#line 3610 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 127: - -/* Line 1464 of yacc.c */ -#line 1669 "parser.yxx" +#line 1713 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_top_transform->add_rotz((yyvsp[(3) - (4)]._number)); + egg_top_transform->add_roty((yyvsp[-1]._number)); } +#line 3618 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 128: - -/* Line 1464 of yacc.c */ -#line 1676 "parser.yxx" +#line 1720 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_top_transform->add_rotate3d((yyvsp[(3) - (7)]._number), LVector3d((yyvsp[(4) - (7)]._number), (yyvsp[(5) - (7)]._number), (yyvsp[(6) - (7)]._number))); + egg_top_transform->add_rotz((yyvsp[-1]._number)); } +#line 3626 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 129: - -/* Line 1464 of yacc.c */ -#line 1683 "parser.yxx" +#line 1727 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_top_transform->add_scale2d(LVecBase2d((yyvsp[(3) - (5)]._number), (yyvsp[(4) - (5)]._number))); + egg_top_transform->add_rotate3d((yyvsp[-4]._number), LVector3d((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number))); } +#line 3634 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 130: - -/* Line 1464 of yacc.c */ -#line 1690 "parser.yxx" +#line 1734 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_top_transform->add_scale3d(LVecBase3d((yyvsp[(3) - (6)]._number), (yyvsp[(4) - (6)]._number), (yyvsp[(5) - (6)]._number))); + egg_top_transform->add_scale2d(LVecBase2d((yyvsp[-2]._number), (yyvsp[-1]._number))); } +#line 3642 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 131: - -/* Line 1464 of yacc.c */ -#line 1697 "parser.yxx" +#line 1741 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_top_transform->add_uniform_scale((yyvsp[(3) - (4)]._number)); + egg_top_transform->add_scale3d(LVecBase3d((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number))); } +#line 3650 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 134: + case 132: +#line 1748 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + egg_top_transform->add_uniform_scale((yyvsp[-1]._number)); +} +#line 3658 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 1711 "parser.yxx" + case 135: +#line 1762 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { egg_top_transform->add_matrix3 - (LMatrix3d((yyvsp[(1) - (9)]._number), (yyvsp[(2) - (9)]._number), (yyvsp[(3) - (9)]._number), - (yyvsp[(4) - (9)]._number), (yyvsp[(5) - (9)]._number), (yyvsp[(6) - (9)]._number), - (yyvsp[(7) - (9)]._number), (yyvsp[(8) - (9)]._number), (yyvsp[(9) - (9)]._number))); -} - break; - - case 137: - -/* Line 1464 of yacc.c */ -#line 1729 "parser.yxx" - { - egg_top_transform->add_matrix4 - (LMatrix4d((yyvsp[(1) - (16)]._number), (yyvsp[(2) - (16)]._number), (yyvsp[(3) - (16)]._number), (yyvsp[(4) - (16)]._number), - (yyvsp[(5) - (16)]._number), (yyvsp[(6) - (16)]._number), (yyvsp[(7) - (16)]._number), (yyvsp[(8) - (16)]._number), - (yyvsp[(9) - (16)]._number), (yyvsp[(10) - (16)]._number), (yyvsp[(11) - (16)]._number), (yyvsp[(12) - (16)]._number), - (yyvsp[(13) - (16)]._number), (yyvsp[(14) - (16)]._number), (yyvsp[(15) - (16)]._number), (yyvsp[(16) - (16)]._number))); + (LMatrix3d((yyvsp[-8]._number), (yyvsp[-7]._number), (yyvsp[-6]._number), + (yyvsp[-5]._number), (yyvsp[-4]._number), (yyvsp[-3]._number), + (yyvsp[-2]._number), (yyvsp[-1]._number), (yyvsp[0]._number))); } +#line 3669 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 138: - -/* Line 1464 of yacc.c */ -#line 1748 "parser.yxx" +#line 1780 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - if ((yyvsp[(7) - (9)]._egg) != (EggVertexPool *)NULL) { - EggVertexPool *pool = DCAST(EggVertexPool, (yyvsp[(7) - (9)]._egg)); + egg_top_transform->add_matrix4 + (LMatrix4d((yyvsp[-15]._number), (yyvsp[-14]._number), (yyvsp[-13]._number), (yyvsp[-12]._number), + (yyvsp[-11]._number), (yyvsp[-10]._number), (yyvsp[-9]._number), (yyvsp[-8]._number), + (yyvsp[-7]._number), (yyvsp[-6]._number), (yyvsp[-5]._number), (yyvsp[-4]._number), + (yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number), (yyvsp[0]._number))); +} +#line 3681 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; + + case 139: +#line 1799 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + if ((yyvsp[-2]._egg) != nullptr) { + EggVertexPool *pool = DCAST(EggVertexPool, (yyvsp[-2]._egg)); EggGroup *group = DCAST(EggGroup, egg_stack.back()); - PTA_double nums = (yyvsp[(3) - (9)]._number_list); - double membership = (yyvsp[(4) - (9)]._number); + PTA_double nums = (yyvsp[-6]._number_list); + double membership = (yyvsp[-5]._number); for (int i = 0; i < (int)nums.size(); i++) { int index = (int)nums[i]; EggVertex *vertex = pool->get_forward_vertex(index); - if (vertex == NULL) { + if (vertex == nullptr) { ostringstream errmsg; - errmsg << "No vertex " << index << " in pool " << pool->get_name() + errmsg << "No vertex " << index << " in pool " << pool->get_name() << std::ends; eggyyerror(errmsg); } else { @@ -4067,26 +3703,24 @@ yyreduce: } } } - break; - - case 139: - -/* Line 1464 of yacc.c */ -#line 1781 "parser.yxx" - { - (yyval._number) = 1.0; -} +#line 3707 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 140: - -/* Line 1464 of yacc.c */ -#line 1785 "parser.yxx" +#line 1832 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - string name = (yyvsp[(3) - (6)]._string); - double value = (yyvsp[(5) - (6)]._number); - double result = (yyvsp[(1) - (6)]._number); - + (yyval._number) = 1.0; +} +#line 3715 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; + + case 141: +#line 1836 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + string name = (yyvsp[-3]._string); + double value = (yyvsp[-1]._number); + double result = (yyvsp[-5]._number); + if (cmp_nocase_uh(name, "membership") == 0) { result = value; } else { @@ -4095,190 +3729,171 @@ yyreduce: (yyval._number) = result; } - break; - - case 142: - -/* Line 1464 of yacc.c */ -#line 1822 "parser.yxx" - { - EggGroup *group = DCAST(EggGroup, egg_stack.back()); - group->set_lod(EggSwitchConditionDistance((yyvsp[(3) - (11)]._number), (yyvsp[(4) - (11)]._number), LPoint3d((yyvsp[(7) - (11)]._number), (yyvsp[(8) - (11)]._number), (yyvsp[(9) - (11)]._number)))); -} +#line 3733 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 143: - -/* Line 1464 of yacc.c */ -#line 1827 "parser.yxx" +#line 1873 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggGroup *group = DCAST(EggGroup, egg_stack.back()); - group->set_lod(EggSwitchConditionDistance((yyvsp[(3) - (12)]._number), (yyvsp[(4) - (12)]._number), LPoint3d((yyvsp[(8) - (12)]._number), (yyvsp[(9) - (12)]._number), (yyvsp[(10) - (12)]._number)), (yyvsp[(5) - (12)]._number))); + group->set_lod(EggSwitchConditionDistance((yyvsp[-8]._number), (yyvsp[-7]._number), LPoint3d((yyvsp[-4]._number), (yyvsp[-3]._number), (yyvsp[-2]._number)))); } +#line 3742 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 144: - -/* Line 1464 of yacc.c */ -#line 1844 "parser.yxx" +#line 1878 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_stack.push_back(new EggPolygon((yyvsp[(2) - (2)]._string))); + EggGroup *group = DCAST(EggGroup, egg_stack.back()); + group->set_lod(EggSwitchConditionDistance((yyvsp[-9]._number), (yyvsp[-8]._number), LPoint3d((yyvsp[-4]._number), (yyvsp[-3]._number), (yyvsp[-2]._number)), (yyvsp[-7]._number))); } +#line 3751 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 145: - -/* Line 1464 of yacc.c */ -#line 1848 "parser.yxx" +#line 1895 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._egg) = egg_stack.back(); - egg_stack.pop_back(); + egg_stack.push_back(new EggPolygon((yyvsp[0]._string))); } +#line 3759 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 146: - -/* Line 1464 of yacc.c */ -#line 1863 "parser.yxx" +#line 1899 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_stack.push_back(new EggTriangleFan((yyvsp[(2) - (2)]._string))); + (yyval._egg) = egg_stack.back(); + egg_stack.pop_back(); } +#line 3768 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 147: - -/* Line 1464 of yacc.c */ -#line 1867 "parser.yxx" +#line 1914 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._egg) = egg_stack.back(); - egg_stack.pop_back(); + egg_stack.push_back(new EggTriangleFan((yyvsp[0]._string))); } +#line 3776 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 148: - -/* Line 1464 of yacc.c */ -#line 1882 "parser.yxx" +#line 1918 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_stack.push_back(new EggTriangleStrip((yyvsp[(2) - (2)]._string))); + (yyval._egg) = egg_stack.back(); + egg_stack.pop_back(); } +#line 3785 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 149: - -/* Line 1464 of yacc.c */ -#line 1886 "parser.yxx" +#line 1933 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._egg) = egg_stack.back(); - egg_stack.pop_back(); + egg_stack.push_back(new EggTriangleStrip((yyvsp[0]._string))); } +#line 3793 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 150: - -/* Line 1464 of yacc.c */ -#line 1901 "parser.yxx" +#line 1937 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_stack.push_back(new EggPatch((yyvsp[(2) - (2)]._string))); + (yyval._egg) = egg_stack.back(); + egg_stack.pop_back(); } +#line 3802 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 151: - -/* Line 1464 of yacc.c */ -#line 1905 "parser.yxx" +#line 1952 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._egg) = egg_stack.back(); - egg_stack.pop_back(); + egg_stack.push_back(new EggPatch((yyvsp[0]._string))); } +#line 3810 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 152: - -/* Line 1464 of yacc.c */ -#line 1920 "parser.yxx" +#line 1956 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_stack.push_back(new EggPoint((yyvsp[(2) - (2)]._string))); + (yyval._egg) = egg_stack.back(); + egg_stack.pop_back(); } +#line 3819 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 153: - -/* Line 1464 of yacc.c */ -#line 1924 "parser.yxx" +#line 1971 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._egg) = egg_stack.back(); - egg_stack.pop_back(); + egg_stack.push_back(new EggPoint((yyvsp[0]._string))); } +#line 3827 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 154: - -/* Line 1464 of yacc.c */ -#line 1939 "parser.yxx" +#line 1975 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_stack.push_back(new EggLine((yyvsp[(2) - (2)]._string))); + (yyval._egg) = egg_stack.back(); + egg_stack.pop_back(); } +#line 3836 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 155: - -/* Line 1464 of yacc.c */ -#line 1943 "parser.yxx" +#line 1990 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._egg) = egg_stack.back(); - egg_stack.pop_back(); + egg_stack.push_back(new EggLine((yyvsp[0]._string))); } +#line 3844 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 156: - -/* Line 1464 of yacc.c */ -#line 1958 "parser.yxx" +#line 1994 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - egg_stack.push_back(new EggNurbsSurface((yyvsp[(2) - (2)]._string))); + (yyval._egg) = egg_stack.back(); + egg_stack.pop_back(); } +#line 3853 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 157: - -/* Line 1464 of yacc.c */ -#line 1962 "parser.yxx" +#line 2009 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._egg) = egg_stack.back(); - egg_stack.pop_back(); + egg_stack.push_back(new EggNurbsSurface((yyvsp[0]._string))); } +#line 3861 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 158: - -/* Line 1464 of yacc.c */ -#line 1977 "parser.yxx" - { - egg_stack.push_back(new EggNurbsCurve((yyvsp[(2) - (2)]._string))); -} - break; - - case 159: - -/* Line 1464 of yacc.c */ -#line 1981 "parser.yxx" +#line 2013 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { (yyval._egg) = egg_stack.back(); egg_stack.pop_back(); } +#line 3870 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 164: + case 159: +#line 2028 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + egg_stack.push_back(new EggNurbsCurve((yyvsp[0]._string))); +} +#line 3878 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 2011 "parser.yxx" + case 160: +#line 2032 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + (yyval._egg) = egg_stack.back(); + egg_stack.pop_back(); +} +#line 3887 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; + + case 165: +#line 2062 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { if (!egg_stack.back()->is_of_type(EggCompositePrimitive::get_class_type())) { eggyyerror("Not a composite primitive; components are not allowed here."); } else { PT(EggCompositePrimitive) comp = DCAST(EggCompositePrimitive, egg_stack.back()); - if ((yyvsp[(3) - (4)]._number) < 0 || (yyvsp[(3) - (4)]._number) >= comp->get_num_components()) { + if ((yyvsp[-1]._number) < 0 || (yyvsp[-1]._number) >= comp->get_num_components()) { eggyyerror("Invalid component number"); } } @@ -4286,30 +3901,28 @@ yyreduce: // the component attributes. egg_stack.push_back(new EggPolygon); } +#line 3905 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 165: - -/* Line 1464 of yacc.c */ -#line 2025 "parser.yxx" + case 166: +#line 2076 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { PT(EggPrimitive) prim = DCAST(EggPrimitive, egg_stack.back()); egg_stack.pop_back(); PT(EggCompositePrimitive) comp = DCAST(EggCompositePrimitive, egg_stack.back()); - comp->set_component((int)(yyvsp[(3) - (7)]._number), prim); + comp->set_component((int)(yyvsp[-4]._number), prim); } +#line 3916 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 173: - -/* Line 1464 of yacc.c */ -#line 2039 "parser.yxx" + case 174: +#line 2090 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggPrimitive *primitive = DCAST(EggPrimitive, egg_stack.back()); - string name = (yyvsp[(3) - (6)]._string); - double value = (yyvsp[(5) - (6)]._number); - string strval = (yyvsp[(5) - (6)]._string); - + string name = (yyvsp[-3]._string); + double value = (yyvsp[-1]._number); + string strval = (yyvsp[-1]._string); + if (cmp_nocase_uh(name, "alpha") == 0) { EggRenderMode::AlphaMode a = EggRenderMode::string_alpha_mode(strval); if (a == EggRenderMode::AM_unspecified) { @@ -4318,7 +3931,7 @@ yyreduce: primitive->set_alpha_mode(a); } } else if (cmp_nocase_uh(name, "depth_write") == 0) { - EggRenderMode::DepthWriteMode m = + EggRenderMode::DepthWriteMode m = EggRenderMode::string_depth_write_mode(strval); if (m == EggRenderMode::DWM_unspecified) { eggyywarning("Unknown depth-write mode " + strval); @@ -4327,7 +3940,7 @@ yyreduce: } } else if (cmp_nocase_uh(name, "depth_test") == 0) { - EggRenderMode::DepthTestMode m = + EggRenderMode::DepthTestMode m = EggRenderMode::string_depth_test_mode(strval); if (m == EggRenderMode::DTM_unspecified) { eggyywarning("Unknown depth-test mode " + strval); @@ -4336,7 +3949,7 @@ yyreduce: } } else if (cmp_nocase_uh(name, "visibility") == 0) { - EggRenderMode::VisibilityMode m = + EggRenderMode::VisibilityMode m = EggRenderMode::string_visibility_mode(strval); if (m == EggRenderMode::VM_unspecified) { eggyywarning("Unknown visibility mode " + strval); @@ -4368,29 +3981,27 @@ yyreduce: eggyywarning("Unknown scalar " + name); } } +#line 3985 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 185: - -/* Line 1464 of yacc.c */ -#line 2125 "parser.yxx" + case 186: +#line 2176 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - EggNurbsCurve *curve = DCAST(EggNurbsCurve, (yyvsp[(2) - (2)]._egg)); + EggNurbsCurve *curve = DCAST(EggNurbsCurve, (yyvsp[0]._egg)); EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); nurbs->_curves_on_surface.push_back(curve); } +#line 3995 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 187: - -/* Line 1464 of yacc.c */ -#line 2132 "parser.yxx" + case 188: +#line 2183 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggNurbsSurface *primitive = DCAST(EggNurbsSurface, egg_stack.back()); - string name = (yyvsp[(3) - (6)]._string); - double value = (yyvsp[(5) - (6)]._number); - string strval = (yyvsp[(5) - (6)]._string); - + string name = (yyvsp[-3]._string); + double value = (yyvsp[-1]._number); + string strval = (yyvsp[-1]._string); + if (cmp_nocase_uh(name, "alpha") == 0) { EggRenderMode::AlphaMode a = EggRenderMode::string_alpha_mode(strval); if (a == EggRenderMode::AM_unspecified) { @@ -4399,7 +4010,7 @@ yyreduce: primitive->set_alpha_mode(a); } } else if (cmp_nocase_uh(name, "depth_write") == 0) { - EggRenderMode::DepthWriteMode m = + EggRenderMode::DepthWriteMode m = EggRenderMode::string_depth_write_mode(strval); if (m == EggRenderMode::DWM_unspecified) { eggyywarning("Unknown depth-write mode " + strval); @@ -4408,7 +4019,7 @@ yyreduce: } } else if (cmp_nocase_uh(name, "depth_test") == 0) { - EggRenderMode::DepthTestMode m = + EggRenderMode::DepthTestMode m = EggRenderMode::string_depth_test_mode(strval); if (m == EggRenderMode::DTM_unspecified) { eggyywarning("Unknown depth-test mode " + strval); @@ -4417,7 +4028,7 @@ yyreduce: } } else if (cmp_nocase_uh(name, "visibility") == 0) { - EggRenderMode::VisibilityMode m = + EggRenderMode::VisibilityMode m = EggRenderMode::string_visibility_mode(strval); if (m == EggRenderMode::VM_unspecified) { eggyywarning("Unknown visibility mode " + strval); @@ -4439,18 +4050,17 @@ yyreduce: eggyywarning("Unknown scalar " + name); } } +#line 4054 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 198: - -/* Line 1464 of yacc.c */ -#line 2208 "parser.yxx" + case 199: +#line 2259 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggNurbsCurve *primitive = DCAST(EggNurbsCurve, egg_stack.back()); - string name = (yyvsp[(3) - (6)]._string); - double value = (yyvsp[(5) - (6)]._number); - string strval = (yyvsp[(5) - (6)]._string); - + string name = (yyvsp[-3]._string); + double value = (yyvsp[-1]._number); + string strval = (yyvsp[-1]._string); + if (cmp_nocase_uh(name, "alpha") == 0) { EggRenderMode::AlphaMode a = EggRenderMode::string_alpha_mode(strval); if (a == EggRenderMode::AM_unspecified) { @@ -4459,7 +4069,7 @@ yyreduce: primitive->set_alpha_mode(a); } } else if (cmp_nocase_uh(name, "depth_write") == 0) { - EggRenderMode::DepthWriteMode m = + EggRenderMode::DepthWriteMode m = EggRenderMode::string_depth_write_mode(strval); if (m == EggRenderMode::DWM_unspecified) { eggyywarning("Unknown depth-write mode " + strval); @@ -4468,7 +4078,7 @@ yyreduce: } } else if (cmp_nocase_uh(name, "depth_test") == 0) { - EggRenderMode::DepthTestMode m = + EggRenderMode::DepthTestMode m = EggRenderMode::string_depth_test_mode(strval); if (m == EggRenderMode::DTM_unspecified) { eggyywarning("Unknown depth-test mode " + strval); @@ -4477,7 +4087,7 @@ yyreduce: } } else if (cmp_nocase_uh(name, "visibility") == 0) { - EggRenderMode::VisibilityMode m = + EggRenderMode::VisibilityMode m = EggRenderMode::string_visibility_mode(strval); if (m == EggRenderMode::VM_unspecified) { eggyywarning("Unknown visibility mode " + strval); @@ -4500,34 +4110,32 @@ yyreduce: } else { primitive->set_curve_type(a); } - + } else { eggyywarning("Unknown scalar " + name); } } - break; - - case 199: - -/* Line 1464 of yacc.c */ -#line 2279 "parser.yxx" - { - if ((yyvsp[(1) - (1)]._egg) != (EggTexture *)NULL) { - EggTexture *texture = DCAST(EggTexture, (yyvsp[(1) - (1)]._egg)); - DCAST(EggPrimitive, egg_stack.back())->add_texture(texture); - } -} +#line 4119 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 200: - -/* Line 1464 of yacc.c */ -#line 2296 "parser.yxx" +#line 2330 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - EggTexture *texture = NULL; + if ((yyvsp[0]._egg) != nullptr) { + EggTexture *texture = DCAST(EggTexture, (yyvsp[0]._egg)); + DCAST(EggPrimitive, egg_stack.back())->add_texture(texture); + } +} +#line 4130 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; + + case 201: +#line 2347 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + EggTexture *texture = nullptr; // Defining a texture on-the-fly. - Filename filename = (yyvsp[(1) - (1)]._string); + Filename filename = (yyvsp[0]._string); string tref_name = filename.get_basename(); Textures::iterator vpi = textures.find(tref_name); @@ -4536,7 +4144,7 @@ yyreduce: texture = new EggTexture(tref_name, filename); textures[tref_name] = texture; - if (egg_top_node != NULL) { + if (egg_top_node != nullptr) { egg_top_node->add_child(texture); } @@ -4544,125 +4152,116 @@ yyreduce: // The texture already existed. Use it. texture = (*vpi).second; if (filename != texture->get_filename()) { - eggyywarning(string("Using previous path: ") + + eggyywarning(string("Using previous path: ") + texture->get_filename().get_fullpath()); } } - nassertr(texture != NULL, 0); + nassertr(texture != nullptr, 0); DCAST(EggPrimitive, egg_stack.back())->add_texture(texture); } - break; - - case 201: - -/* Line 1464 of yacc.c */ -#line 2336 "parser.yxx" - { - if ((yyvsp[(1) - (1)]._egg) != (EggMaterial *)NULL) { - EggMaterial *material = DCAST(EggMaterial, (yyvsp[(1) - (1)]._egg)); - DCAST(EggPrimitive, egg_stack.back())->set_material(material); - } -} +#line 4164 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 202: - -/* Line 1464 of yacc.c */ -#line 2353 "parser.yxx" +#line 2387 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggPrimitive, egg_stack.back())->set_normal(LNormald((yyvsp[(1) - (3)]._number), (yyvsp[(2) - (3)]._number), (yyvsp[(3) - (3)]._number))); + if ((yyvsp[0]._egg) != nullptr) { + EggMaterial *material = DCAST(EggMaterial, (yyvsp[0]._egg)); + DCAST(EggPrimitive, egg_stack.back())->set_material(material); + } } +#line 4175 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 203: - -/* Line 1464 of yacc.c */ -#line 2357 "parser.yxx" +#line 2404 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - bool inserted = DCAST(EggPrimitive, egg_stack.back())->_dnormals. - insert(EggMorphNormal((yyvsp[(3) - (8)]._string), LVector3d((yyvsp[(5) - (8)]._number), (yyvsp[(6) - (8)]._number), (yyvsp[(7) - (8)]._number)))).second; - if (!inserted) { - eggyywarning("Ignoring repeated morph name " + (yyvsp[(3) - (8)]._string)); - } + DCAST(EggPrimitive, egg_stack.back())->set_normal(LNormald((yyvsp[-2]._number), (yyvsp[-1]._number), (yyvsp[0]._number))); } +#line 4183 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 204: - -/* Line 1464 of yacc.c */ -#line 2365 "parser.yxx" +#line 2408 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { bool inserted = DCAST(EggPrimitive, egg_stack.back())->_dnormals. - insert(EggMorphNormal((yyvsp[(4) - (8)]._string), LVector3d((yyvsp[(5) - (8)]._number), (yyvsp[(6) - (8)]._number), (yyvsp[(7) - (8)]._number)))).second; + insert(EggMorphNormal((yyvsp[-5]._string), LVector3d((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number)))).second; if (!inserted) { - eggyywarning("Ignoring repeated morph name " + (yyvsp[(4) - (8)]._string)); + eggyywarning("Ignoring repeated morph name " + (yyvsp[-5]._string)); } } +#line 4195 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 205: - -/* Line 1464 of yacc.c */ -#line 2383 "parser.yxx" +#line 2416 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggPrimitive, egg_stack.back())->set_color(LColor((yyvsp[(1) - (4)]._number), (yyvsp[(2) - (4)]._number), (yyvsp[(3) - (4)]._number), (yyvsp[(4) - (4)]._number))); + bool inserted = DCAST(EggPrimitive, egg_stack.back())->_dnormals. + insert(EggMorphNormal((yyvsp[-4]._string), LVector3d((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number)))).second; + if (!inserted) { + eggyywarning("Ignoring repeated morph name " + (yyvsp[-4]._string)); + } } +#line 4207 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 206: - -/* Line 1464 of yacc.c */ -#line 2387 "parser.yxx" +#line 2434 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - bool inserted = DCAST(EggPrimitive, egg_stack.back())->_drgbas. - insert(EggMorphColor((yyvsp[(3) - (9)]._string), LVector4((yyvsp[(5) - (9)]._number), (yyvsp[(6) - (9)]._number), (yyvsp[(7) - (9)]._number), (yyvsp[(8) - (9)]._number)))).second; - if (!inserted) { - eggyywarning("Ignoring repeated morph name " + (yyvsp[(3) - (9)]._string)); - } + DCAST(EggPrimitive, egg_stack.back())->set_color(LColor((yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number), (yyvsp[0]._number))); } +#line 4215 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 207: - -/* Line 1464 of yacc.c */ -#line 2395 "parser.yxx" +#line 2438 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { bool inserted = DCAST(EggPrimitive, egg_stack.back())->_drgbas. - insert(EggMorphColor((yyvsp[(4) - (9)]._string), LVector4((yyvsp[(5) - (9)]._number), (yyvsp[(6) - (9)]._number), (yyvsp[(7) - (9)]._number), (yyvsp[(8) - (9)]._number)))).second; + insert(EggMorphColor((yyvsp[-6]._string), LVector4((yyvsp[-4]._number), (yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number)))).second; if (!inserted) { - eggyywarning("Ignoring repeated morph name " + (yyvsp[(4) - (9)]._string)); + eggyywarning("Ignoring repeated morph name " + (yyvsp[-6]._string)); } } +#line 4227 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 208: - -/* Line 1464 of yacc.c */ -#line 2413 "parser.yxx" +#line 2446 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - EggPrimitive *primitive = DCAST(EggPrimitive, egg_stack.back()); - int value = (int)(yyvsp[(1) - (1)]._number); - primitive->set_bface_flag(value!=0); + bool inserted = DCAST(EggPrimitive, egg_stack.back())->_drgbas. + insert(EggMorphColor((yyvsp[-5]._string), LVector4((yyvsp[-4]._number), (yyvsp[-3]._number), (yyvsp[-2]._number), (yyvsp[-1]._number)))).second; + if (!inserted) { + eggyywarning("Ignoring repeated morph name " + (yyvsp[-5]._string)); + } } +#line 4239 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 209: - -/* Line 1464 of yacc.c */ -#line 2429 "parser.yxx" +#line 2464 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - if ((yyvsp[(6) - (8)]._egg) != (EggVertexPool *)NULL) { - EggVertexPool *pool = DCAST(EggVertexPool, (yyvsp[(6) - (8)]._egg)); + EggPrimitive *primitive = DCAST(EggPrimitive, egg_stack.back()); + int value = (int)(yyvsp[0]._number); + primitive->set_bface_flag(value!=0); +} +#line 4249 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; + + case 210: +#line 2480 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + if ((yyvsp[-2]._egg) != nullptr) { + EggVertexPool *pool = DCAST(EggVertexPool, (yyvsp[-2]._egg)); EggPrimitive *prim = DCAST(EggPrimitive, egg_stack.back()); - PTA_double nums = (yyvsp[(3) - (8)]._number_list); + PTA_double nums = (yyvsp[-5]._number_list); for (int i = 0; i < (int)nums.size(); i++) { int index = (int)nums[i]; EggVertex *vertex = pool->get_forward_vertex(index); - if (vertex == NULL) { + if (vertex == nullptr) { ostringstream errmsg; - errmsg << "No vertex " << index << " in pool " << pool->get_name() + errmsg << "No vertex " << index << " in pool " << pool->get_name() << std::ends; eggyyerror(errmsg); } else { @@ -4671,227 +4270,207 @@ yyreduce: } } } - break; - - case 210: - -/* Line 1464 of yacc.c */ -#line 2460 "parser.yxx" - { - EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); - int u_order = (int)(yyvsp[(1) - (2)]._number); - int v_order = (int)(yyvsp[(2) - (2)]._number); - nurbs->set_u_order(u_order); - nurbs->set_v_order(v_order); -} +#line 4274 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 211: - -/* Line 1464 of yacc.c */ -#line 2478 "parser.yxx" +#line 2511 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); - PTA_double nums = (yyvsp[(1) - (1)]._number_list); + int u_order = (int)(yyvsp[-1]._number); + int v_order = (int)(yyvsp[0]._number); + nurbs->set_u_order(u_order); + nurbs->set_v_order(v_order); +} +#line 4286 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; + + case 212: +#line 2529 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); + PTA_double nums = (yyvsp[0]._number_list); nurbs->set_num_u_knots(nums.size()); for (int i = 0; i < (int)nums.size(); i++) { nurbs->set_u_knot(i, nums[i]); } } +#line 4300 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 212: - -/* Line 1464 of yacc.c */ -#line 2498 "parser.yxx" + case 213: +#line 2549 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); - PTA_double nums = (yyvsp[(1) - (1)]._number_list); + PTA_double nums = (yyvsp[0]._number_list); nurbs->set_num_v_knots(nums.size()); for (int i = 0; i < (int)nums.size(); i++) { nurbs->set_v_knot(i, nums[i]); } } +#line 4314 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 213: - -/* Line 1464 of yacc.c */ -#line 2518 "parser.yxx" + case 214: +#line 2569 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); nurbs->_trims.push_back(EggNurbsSurface::Trim()); } +#line 4323 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 215: - -/* Line 1464 of yacc.c */ -#line 2534 "parser.yxx" + case 216: +#line 2585 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); nassertr(!nurbs->_trims.empty(), 0); nurbs->_trims.back().push_back(EggNurbsSurface::Loop()); } +#line 4333 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 216: - -/* Line 1464 of yacc.c */ -#line 2540 "parser.yxx" + case 217: +#line 2591 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggNurbsSurface *nurbs = DCAST(EggNurbsSurface, egg_stack.back()); nassertr(!nurbs->_trims.empty(), 0); nassertr(!nurbs->_trims.back().empty(), 0); - EggNurbsCurve *curve = DCAST(EggNurbsCurve, (yyvsp[(2) - (2)]._egg)); + EggNurbsCurve *curve = DCAST(EggNurbsCurve, (yyvsp[0]._egg)); nurbs->_trims.back().back().push_back(curve); } - break; - - case 217: - -/* Line 1464 of yacc.c */ -#line 2559 "parser.yxx" - { - EggNurbsCurve *nurbs = DCAST(EggNurbsCurve, egg_stack.back()); - int order = (int)(yyvsp[(1) - (1)]._number); - nurbs->set_order(order); -} +#line 4345 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 218: - -/* Line 1464 of yacc.c */ -#line 2575 "parser.yxx" +#line 2610 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggNurbsCurve *nurbs = DCAST(EggNurbsCurve, egg_stack.back()); - PTA_double nums = (yyvsp[(1) - (1)]._number_list); + int order = (int)(yyvsp[0]._number); + nurbs->set_order(order); +} +#line 4355 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; + + case 219: +#line 2626 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + EggNurbsCurve *nurbs = DCAST(EggNurbsCurve, egg_stack.back()); + PTA_double nums = (yyvsp[0]._number_list); nurbs->set_num_knots(nums.size()); for (int i = 0; i < (int)nums.size(); i++) { nurbs->set_knot(i, nums[i]); } } - break; - - case 219: - -/* Line 1464 of yacc.c */ -#line 2596 "parser.yxx" - { - EggTable *table = new EggTable((yyvsp[(2) - (2)]._string)); - table->set_table_type(EggTable::TT_table); - egg_stack.push_back(table); -} +#line 4369 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 220: +#line 2647 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + EggTable *table = new EggTable((yyvsp[0]._string)); + table->set_table_type(EggTable::TT_table); + egg_stack.push_back(table); +} +#line 4379 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 2602 "parser.yxx" + case 221: +#line 2653 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { (yyval._egg) = egg_stack.back(); egg_stack.pop_back(); Thread::consider_yield(); } - break; - - case 221: - -/* Line 1464 of yacc.c */ -#line 2619 "parser.yxx" - { - EggTable *table = new EggTable((yyvsp[(2) - (2)]._string)); - table->set_table_type(EggTable::TT_bundle); - egg_stack.push_back(table); -} +#line 4389 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 222: +#line 2670 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + EggTable *table = new EggTable((yyvsp[0]._string)); + table->set_table_type(EggTable::TT_bundle); + egg_stack.push_back(table); +} +#line 4399 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 2625 "parser.yxx" + case 223: +#line 2676 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { (yyval._egg) = egg_stack.back(); egg_stack.pop_back(); } - break; - - case 224: - -/* Line 1464 of yacc.c */ -#line 2641 "parser.yxx" - { - DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[(2) - (2)]._egg))); -} +#line 4408 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 225: - -/* Line 1464 of yacc.c */ -#line 2645 "parser.yxx" +#line 2692 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[(2) - (2)]._egg))); + DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[0]._egg))); } +#line 4416 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 226: - -/* Line 1464 of yacc.c */ -#line 2649 "parser.yxx" +#line 2696 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[(2) - (2)]._egg))); + DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[0]._egg))); } +#line 4424 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 227: - -/* Line 1464 of yacc.c */ -#line 2653 "parser.yxx" +#line 2700 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[(2) - (2)]._egg))); + DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[0]._egg))); } +#line 4432 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 228: - -/* Line 1464 of yacc.c */ -#line 2657 "parser.yxx" +#line 2704 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[(2) - (2)]._egg))); + DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[0]._egg))); } +#line 4440 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 229: - -/* Line 1464 of yacc.c */ -#line 2672 "parser.yxx" +#line 2708 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - EggSAnimData *anim_data = new EggSAnimData((yyvsp[(2) - (2)]._string)); - egg_stack.push_back(anim_data); + DCAST(EggTable, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[0]._egg))); } +#line 4448 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 230: +#line 2723 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + EggSAnimData *anim_data = new EggSAnimData((yyvsp[0]._string)); + egg_stack.push_back(anim_data); +} +#line 4457 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 2677 "parser.yxx" + case 231: +#line 2728 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { (yyval._egg) = egg_stack.back(); egg_stack.pop_back(); } +#line 4466 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 232: - -/* Line 1464 of yacc.c */ -#line 2694 "parser.yxx" + case 233: +#line 2745 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggSAnimData *anim_data = DCAST(EggSAnimData, egg_stack.back()); - string name = (yyvsp[(3) - (6)]._string); - double value = (yyvsp[(5) - (6)]._number); + string name = (yyvsp[-3]._string); + double value = (yyvsp[-1]._number); if (cmp_nocase_uh(name, "fps") == 0) { anim_data->set_fps(value); @@ -4899,46 +4478,42 @@ yyreduce: eggyywarning("Unsupported S$Anim scalar: " + name); } } - break; - - case 233: - -/* Line 1464 of yacc.c */ -#line 2706 "parser.yxx" - { - DCAST(EggSAnimData, egg_stack.back())->set_data((yyvsp[(4) - (5)]._number_list)); -} +#line 4482 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 234: - -/* Line 1464 of yacc.c */ -#line 2720 "parser.yxx" +#line 2757 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - EggXfmAnimData *anim_data = new EggXfmAnimData((yyvsp[(2) - (2)]._string)); - egg_stack.push_back(anim_data); + DCAST(EggSAnimData, egg_stack.back())->set_data((yyvsp[-1]._number_list)); } +#line 4490 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 235: +#line 2771 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + EggXfmAnimData *anim_data = new EggXfmAnimData((yyvsp[0]._string)); + egg_stack.push_back(anim_data); +} +#line 4499 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 2725 "parser.yxx" + case 236: +#line 2776 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { (yyval._egg) = egg_stack.back(); egg_stack.pop_back(); } +#line 4508 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 237: - -/* Line 1464 of yacc.c */ -#line 2742 "parser.yxx" + case 238: +#line 2793 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggXfmAnimData *anim_data = DCAST(EggXfmAnimData, egg_stack.back()); - string name = (yyvsp[(3) - (6)]._string); - double value = (yyvsp[(5) - (6)]._number); - string strval = (yyvsp[(5) - (6)]._string); + string name = (yyvsp[-3]._string); + double value = (yyvsp[-1]._number); + string strval = (yyvsp[-1]._string); if (cmp_nocase_uh(name, "fps") == 0) { anim_data->set_fps(value); @@ -4950,46 +4525,42 @@ yyreduce: eggyywarning("Unsupported Xfm$Anim scalar: " + name); } } - break; - - case 238: - -/* Line 1464 of yacc.c */ -#line 2759 "parser.yxx" - { - DCAST(EggXfmAnimData, egg_stack.back())->set_data((yyvsp[(4) - (5)]._number_list)); -} +#line 4529 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 239: - -/* Line 1464 of yacc.c */ -#line 2773 "parser.yxx" +#line 2810 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - EggXfmSAnim *anim_group = new EggXfmSAnim((yyvsp[(2) - (2)]._string)); - egg_stack.push_back(anim_group); + DCAST(EggXfmAnimData, egg_stack.back())->set_data((yyvsp[-1]._number_list)); } +#line 4537 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 240: +#line 2824 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + EggXfmSAnim *anim_group = new EggXfmSAnim((yyvsp[0]._string)); + egg_stack.push_back(anim_group); +} +#line 4546 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 2778 "parser.yxx" + case 241: +#line 2829 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { (yyval._egg) = egg_stack.back(); egg_stack.pop_back(); } +#line 4555 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 242: - -/* Line 1464 of yacc.c */ -#line 2795 "parser.yxx" + case 243: +#line 2846 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggXfmSAnim *anim_group = DCAST(EggXfmSAnim, egg_stack.back()); - string name = (yyvsp[(3) - (6)]._string); - double value = (yyvsp[(5) - (6)]._number); - string strval = (yyvsp[(5) - (6)]._string); + string name = (yyvsp[-3]._string); + double value = (yyvsp[-1]._number); + string strval = (yyvsp[-1]._string); if (cmp_nocase_uh(name, "fps") == 0) { anim_group->set_fps(value); @@ -4999,45 +4570,41 @@ yyreduce: eggyywarning("Unsupported Xfm$Anim_S$ scalar: " + name); } } - break; - - case 243: - -/* Line 1464 of yacc.c */ -#line 2810 "parser.yxx" - { - DCAST(EggXfmSAnim, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[(2) - (2)]._egg))); -} +#line 4574 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 244: - -/* Line 1464 of yacc.c */ -#line 2825 "parser.yxx" +#line 2861 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - EggAnimPreload *anim_preload = new EggAnimPreload((yyvsp[(2) - (2)]._string)); - egg_stack.push_back(anim_preload); + DCAST(EggXfmSAnim, egg_stack.back())->add_child(DCAST(EggNode, (yyvsp[0]._egg))); } +#line 4582 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 245: +#line 2876 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + EggAnimPreload *anim_preload = new EggAnimPreload((yyvsp[0]._string)); + egg_stack.push_back(anim_preload); +} +#line 4591 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; -/* Line 1464 of yacc.c */ -#line 2830 "parser.yxx" + case 246: +#line 2881 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { (yyval._egg) = egg_stack.back(); egg_stack.pop_back(); } +#line 4600 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 247: - -/* Line 1464 of yacc.c */ -#line 2847 "parser.yxx" + case 248: +#line 2898 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { EggAnimPreload *anim_preload = DCAST(EggAnimPreload, egg_stack.back()); - string name = (yyvsp[(3) - (6)]._string); - double value = (yyvsp[(5) - (6)]._number); + string name = (yyvsp[-3]._string); + double value = (yyvsp[-1]._number); if (cmp_nocase_uh(name, "fps") == 0) { anim_preload->set_fps(value); @@ -5047,50 +4614,45 @@ yyreduce: eggyywarning("Unsupported AnimPreload scalar: " + name); } } - break; - - case 248: - -/* Line 1464 of yacc.c */ -#line 2871 "parser.yxx" - { - (yyval._number_list) = PTA_double::empty_array(0); -} +#line 4618 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 249: - -/* Line 1464 of yacc.c */ -#line 2875 "parser.yxx" - { - (yyval._number_list).push_back((double)(yyvsp[(2) - (2)]._number)); -} - break; - - case 250: - -/* Line 1464 of yacc.c */ -#line 2889 "parser.yxx" +#line 2922 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { (yyval._number_list) = PTA_double::empty_array(0); } +#line 4626 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; + + case 250: +#line 2926 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + (yyval._number_list).push_back((double)(yyvsp[0]._number)); +} +#line 4634 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 251: - -/* Line 1464 of yacc.c */ -#line 2893 "parser.yxx" +#line 2940 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._number_list).push_back((yyvsp[(2) - (2)]._number)); + (yyval._number_list) = PTA_double::empty_array(0); } +#line 4642 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 252: - -/* Line 1464 of yacc.c */ -#line 2907 "parser.yxx" +#line 2944 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - string name = (yyvsp[(1) - (1)]._string); + (yyval._number_list).push_back((yyvsp[0]._number)); +} +#line 4650 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; + + case 253: +#line 2958 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + string name = (yyvsp[0]._string); Textures::iterator vpi = textures.find(name); if (vpi == textures.end()) { eggyyerror("Unknown texture " + name); @@ -5099,14 +4661,13 @@ yyreduce: (yyval._egg) = (*vpi).second; } } +#line 4665 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 253: - -/* Line 1464 of yacc.c */ -#line 2928 "parser.yxx" + case 254: +#line 2979 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - string name = (yyvsp[(1) - (1)]._string); + string name = (yyvsp[0]._string); Materials::iterator vpi = materials.find(name); if (vpi == materials.end()) { eggyyerror("Unknown material " + name); @@ -5115,14 +4676,13 @@ yyreduce: (yyval._egg) = (*vpi).second; } } +#line 4680 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 254: - -/* Line 1464 of yacc.c */ -#line 2949 "parser.yxx" + case 255: +#line 3000 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - string name = (yyvsp[(1) - (1)]._string); + string name = (yyvsp[0]._string); VertexPools::iterator vpi = vertex_pools.find(name); if (vpi == vertex_pools.end()) { // This will become a forward reference. @@ -5135,14 +4695,13 @@ yyreduce: (yyval._egg) = (*vpi).second; } } +#line 4699 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 255: - -/* Line 1464 of yacc.c */ -#line 2974 "parser.yxx" + case 256: +#line 3025 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - string name = (yyvsp[(1) - (1)]._string); + string name = (yyvsp[0]._string); Groups::iterator vpi = groups.find(name); if (vpi == groups.end()) { eggyyerror("Unknown group " + name); @@ -5151,161 +4710,156 @@ yyreduce: (yyval._egg) = (*vpi).second; } } +#line 4714 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 256: - -/* Line 1464 of yacc.c */ -#line 2995 "parser.yxx" + case 257: +#line 3046 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { eggyyerror("Name required."); (yyval._string) = ""; } +#line 4723 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 259: - -/* Line 1464 of yacc.c */ -#line 3024 "parser.yxx" + case 260: +#line 3075 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { eggyyerror("String required."); (yyval._string) = ""; } +#line 4732 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 261: - -/* Line 1464 of yacc.c */ -#line 3040 "parser.yxx" + case 262: +#line 3091 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { (yyval._string) = ""; } - break; - - case 263: - -/* Line 1464 of yacc.c */ -#line 3058 "parser.yxx" - { - (yyval._string) = (yyvsp[(1) - (1)]._string); -} +#line 4740 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 264: - -/* Line 1464 of yacc.c */ -#line 3062 "parser.yxx" +#line 3109 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._string) = (yyvsp[(1) - (1)]._string); + (yyval._string) = (yyvsp[0]._string); } +#line 4748 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 266: - -/* Line 1464 of yacc.c */ -#line 3079 "parser.yxx" + case 265: +#line 3113 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._string) = ""; + (yyval._string) = (yyvsp[0]._string); } +#line 4756 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 267: - -/* Line 1464 of yacc.c */ -#line 3083 "parser.yxx" +#line 3130 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._string) = (yyvsp[(1) - (1)]._string); + (yyval._string) = ""; } +#line 4764 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 268: - -/* Line 1464 of yacc.c */ -#line 3099 "parser.yxx" +#line 3134 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._string) = (yyvsp[(1) - (1)]._string); + (yyval._string) = (yyvsp[0]._string); } +#line 4772 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 269: - -/* Line 1464 of yacc.c */ -#line 3103 "parser.yxx" +#line 3150 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._string) = (yyvsp[(1) - (2)]._string) + "\n" + (yyvsp[(2) - (2)]._string); + (yyval._string) = (yyvsp[0]._string); } +#line 4780 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 271: - -/* Line 1464 of yacc.c */ -#line 3118 "parser.yxx" + case 270: +#line 3154 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._number) = (yyvsp[(1) - (1)]._ulong); + (yyval._string) = (yyvsp[-1]._string) + "\n" + (yyvsp[0]._string); } +#line 4788 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 272: - -/* Line 1464 of yacc.c */ -#line 3133 "parser.yxx" +#line 3169 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._number) = (yyvsp[(1) - (1)]._number); - (yyval._ulong) = (unsigned long)(yyvsp[(1) - (1)]._number); - (yyval._string) = (yyvsp[(1) - (1)]._string); + (yyval._number) = (yyvsp[0]._ulong); } +#line 4796 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 273: - -/* Line 1464 of yacc.c */ -#line 3139 "parser.yxx" +#line 3184 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._number) = (yyvsp[(1) - (1)]._ulong); - (yyval._ulong) = (yyvsp[(1) - (1)]._ulong); - (yyval._string) = (yyvsp[(1) - (1)]._string); + (yyval._number) = (yyvsp[0]._number); + (yyval._ulong) = (unsigned long)(yyvsp[0]._number); + (yyval._string) = (yyvsp[0]._string); } +#line 4806 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 274: - -/* Line 1464 of yacc.c */ -#line 3145 "parser.yxx" +#line 3190 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._number) = 0.0; - (yyval._ulong) = 0; - (yyval._string) = (yyvsp[(1) - (1)]._string); + (yyval._number) = (yyvsp[0]._ulong); + (yyval._ulong) = (yyvsp[0]._ulong); + (yyval._string) = (yyvsp[0]._string); } +#line 4816 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; case 275: - -/* Line 1464 of yacc.c */ -#line 3162 "parser.yxx" +#line 3196 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - int i = (int)(yyvsp[(1) - (1)]._number); - if ((double)i != (yyvsp[(1) - (1)]._number)) { + (yyval._number) = 0.0; + (yyval._ulong) = 0; + (yyval._string) = (yyvsp[0]._string); +} +#line 4826 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ + break; + + case 276: +#line 3213 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ + { + int i = (int)(yyvsp[0]._number); + if ((double)i != (yyvsp[0]._number)) { eggyywarning("Integer expected."); (yyval._number) = (double)i; } } +#line 4838 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - case 276: - -/* Line 1464 of yacc.c */ -#line 3170 "parser.yxx" + case 277: +#line 3221 "panda/src/egg/parser.yxx" /* yacc.c:1645 */ { - (yyval._number) = (yyvsp[(1) - (1)]._ulong); + (yyval._number) = (yyvsp[0]._ulong); } +#line 4846 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ break; - -/* Line 1464 of yacc.c */ -#line 5274 "y.tab.c" +#line 4850 "built/tmp/parser.yxx.c" /* yacc.c:1645 */ default: break; } + /* User semantic actions sometimes alter yychar, and that requires + that yytoken be updated with the new translation. We take the + approach of translating immediately before every use of yytoken. + One alternative is translating here after every semantic action, + but that translation would be missed if the semantic action invokes + YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or + if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an + incorrect destructor might then be invoked immediately. In the + case of YYERROR or YYBACKUP, subsequent parser actions might lead + to an incorrect destructor call or verbose syntax error message + before the lookahead is translated. */ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); @@ -5314,25 +4868,28 @@ yyreduce: *++yyvsp = yyval; - /* Now `shift' the result of the reduction. Determine what state + /* 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]; + { + const int yylhs = yyr1[yyn] - YYNTOKENS; + const int yyi = yypgoto[yylhs] + *yyssp; + yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp + ? yytable[yyi] + : yydefgoto[yylhs]); + } goto yynewstate; -/*------------------------------------. -| yyerrlab -- here on detecting error | -`------------------------------------*/ +/*--------------------------------------. +| yyerrlab -- here on detecting error. | +`--------------------------------------*/ yyerrlab: + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); + /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { @@ -5340,37 +4897,36 @@ yyerrlab: #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else +# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ + yyssp, yytoken) { - 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; - } + char const *yymsgp = YY_("syntax error"); + int yysyntax_error_status; + yysyntax_error_status = YYSYNTAX_ERROR; + if (yysyntax_error_status == 0) + yymsgp = yymsg; + else if (yysyntax_error_status == 1) + { + if (yymsg != yymsgbuf) + YYSTACK_FREE (yymsg); + yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); + if (!yymsg) + { + yymsg = yymsgbuf; + yymsg_alloc = sizeof yymsgbuf; + yysyntax_error_status = 2; + } + else + { + yysyntax_error_status = YYSYNTAX_ERROR; + yymsgp = yymsg; + } + } + yyerror (yymsgp); + if (yysyntax_error_status == 2) + goto yyexhaustedlab; } +# undef YYSYNTAX_ERROR #endif } @@ -5379,20 +4935,20 @@ yyerrlab: if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an - error, discard it. */ + error, discard it. */ if (yychar <= YYEOF) - { - /* Return failure if at end of input. */ - if (yychar == YYEOF) - YYABORT; - } + { + /* Return failure if at end of input. */ + if (yychar == YYEOF) + YYABORT; + } else - { - yydestruct ("Error: discarding", - yytoken, &yylval); - yychar = YYEMPTY; - } + { + yydestruct ("Error: discarding", + yytoken, &yylval); + yychar = YYEMPTY; + } } /* Else will try to reuse lookahead token after shifting the error @@ -5411,7 +4967,7 @@ yyerrorlab: if (/*CONSTCOND*/ 0) goto yyerrorlab; - /* Do not reclaim the symbols of the rule which action triggered + /* Do not reclaim the symbols of the rule whose action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; @@ -5424,35 +4980,37 @@ yyerrorlab: | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: - yyerrstatus = 3; /* Each real token shifted decrements this. */ + yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; - if (yyn != YYPACT_NINF) - { - yyn += YYTERROR; - if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) - { - yyn = yytable[yyn]; - if (0 < yyn) - break; - } - } + if (!yypact_value_is_default (yyn)) + { + 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; + YYABORT; yydestruct ("Error: popping", - yystos[yystate], yyvsp); + yystos[yystate], yyvsp); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END /* Shift the error token. */ @@ -5476,7 +5034,7 @@ yyabortlab: yyresult = 1; goto yyreturn; -#if !defined(yyoverflow) || YYERROR_VERBOSE +#if !defined yyoverflow || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ @@ -5488,16 +5046,21 @@ yyexhaustedlab: yyreturn: if (yychar != YYEMPTY) - yydestruct ("Cleanup: discarding lookahead", - yytoken, &yylval); - /* Do not reclaim the symbols of the rule which action triggered + { + /* Make sure we have latest lookahead translation. See comments at + user semantic actions for why this is necessary. */ + yytoken = YYTRANSLATE (yychar); + yydestruct ("Cleanup: discarding lookahead", + yytoken, &yylval); + } + /* Do not reclaim the symbols of the rule whose action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", - yystos[*yyssp], yyvsp); + yystos[*yyssp], yyvsp); YYPOPSTACK (1); } #ifndef yyoverflow @@ -5508,9 +5071,5 @@ yyreturn: if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif - /* Make sure YYID is used. */ - return YYID (yyresult); + return yyresult; } - - - diff --git a/panda/src/egg/parser.h.prebuilt b/panda/src/egg/parser.h.prebuilt index ea5a85cea9..24f4dde7da 100644 --- a/panda/src/egg/parser.h.prebuilt +++ b/panda/src/egg/parser.h.prebuilt @@ -1,20 +1,19 @@ -/* A Bison parser, made by GNU Bison 2.4.2. */ +/* A Bison parser, made by GNU Bison 3.2.2. */ + +/* Bison interface for Yacc-like parsers in C + + Copyright (C) 1984, 1989-1990, 2000-2015, 2018 Free Software Foundation, Inc. -/* Skeleton interface for Bison's Yacc-like parsers in C - - Copyright (C) 1984, 1989-1990, 2000-2006, 2009-2010 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 3 of the License, 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, see . */ @@ -27,107 +26,118 @@ 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. */ +/* Undocumented macros, especially those whose name start with YY_, + are private implementation details. Do not rely on them. */ -/* Tokens. */ +#ifndef YY_EGGYY_BUILT_TMP_PARSER_YXX_H_INCLUDED +# define YY_EGGYY_BUILT_TMP_PARSER_YXX_H_INCLUDED +/* Debug traces. */ +#ifndef YYDEBUG +# define YYDEBUG 0 +#endif +#if YYDEBUG +extern int eggyydebug; +#endif + +/* Token type. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE - /* Put the tokens into the symbol table, so that GDB and other debuggers - know about them. */ - enum yytokentype { - EGG_NUMBER = 258, - EGG_ULONG = 259, - EGG_STRING = 260, - ANIMPRELOAD = 261, - BEZIERCURVE = 262, - BFACE = 263, - BILLBOARD = 264, - BILLBOARDCENTER = 265, - BINORMAL = 266, - BUNDLE = 267, - CLOSED = 268, - COLLIDE = 269, - COMMENT = 270, - COMPONENT = 271, - COORDSYSTEM = 272, - CV = 273, - DART = 274, - DNORMAL = 275, - DRGBA = 276, - DUV = 277, - DXYZ = 278, - DCS = 279, - DISTANCE = 280, - DTREF = 281, - DYNAMICVERTEXPOOL = 282, - EXTERNAL_FILE = 283, - GROUP = 284, - DEFAULTPOSE = 285, - JOINT = 286, - KNOTS = 287, - INCLUDE = 288, - INSTANCE = 289, - LINE = 290, - LOOP = 291, - MATERIAL = 292, - MATRIX3 = 293, - MATRIX4 = 294, - MODEL = 295, - MREF = 296, - NORMAL = 297, - NURBSCURVE = 298, - NURBSSURFACE = 299, - OBJECTTYPE = 300, - ORDER = 301, - OUTTANGENT = 302, - PATCH = 303, - POINTLIGHT = 304, - POLYGON = 305, - REF = 306, - RGBA = 307, - ROTATE = 308, - ROTX = 309, - ROTY = 310, - ROTZ = 311, - SANIM = 312, - SCALAR = 313, - SCALE = 314, - SEQUENCE = 315, - SHADING = 316, - SWITCH = 317, - SWITCHCONDITION = 318, - TABLE = 319, - TABLE_V = 320, - TAG = 321, - TANGENT = 322, - TEXLIST = 323, - TEXTURE = 324, - TLENGTHS = 325, - TRANSFORM = 326, - TRANSLATE = 327, - TREF = 328, - TRIANGLEFAN = 329, - TRIANGLESTRIP = 330, - TRIM = 331, - TXT = 332, - UKNOTS = 333, - UV = 334, - AUX = 335, - VKNOTS = 336, - VERTEX = 337, - VERTEXANIM = 338, - VERTEXPOOL = 339, - VERTEXREF = 340, - XFMANIM = 341, - XFMSANIM = 342, - START_EGG = 343, - START_GROUP_BODY = 344, - START_TEXTURE_BODY = 345, - START_PRIMITIVE_BODY = 346 - }; + enum yytokentype + { + EGG_NUMBER = 258, + EGG_ULONG = 259, + EGG_STRING = 260, + ANIMPRELOAD = 261, + BEZIERCURVE = 262, + BFACE = 263, + BILLBOARD = 264, + BILLBOARDCENTER = 265, + BINORMAL = 266, + BUNDLE = 267, + CLOSED = 268, + COLLIDE = 269, + COMMENT = 270, + COMPONENT = 271, + COORDSYSTEM = 272, + CV = 273, + DART = 274, + DNORMAL = 275, + DRGBA = 276, + DUV = 277, + DXYZ = 278, + DCS = 279, + DISTANCE = 280, + DTREF = 281, + DYNAMICVERTEXPOOL = 282, + EXTERNAL_FILE = 283, + GROUP = 284, + DEFAULTPOSE = 285, + JOINT = 286, + KNOTS = 287, + INCLUDE = 288, + INSTANCE = 289, + LINE = 290, + LOOP = 291, + MATERIAL = 292, + MATRIX3 = 293, + MATRIX4 = 294, + MODEL = 295, + MREF = 296, + NORMAL = 297, + NURBSCURVE = 298, + NURBSSURFACE = 299, + OBJECTTYPE = 300, + ORDER = 301, + OUTTANGENT = 302, + PATCH = 303, + POINTLIGHT = 304, + POLYGON = 305, + REF = 306, + RGBA = 307, + ROTATE = 308, + ROTX = 309, + ROTY = 310, + ROTZ = 311, + SANIM = 312, + SCALAR = 313, + SCALE = 314, + SEQUENCE = 315, + SHADING = 316, + SWITCH = 317, + SWITCHCONDITION = 318, + TABLE = 319, + TABLE_V = 320, + TAG = 321, + TANGENT = 322, + TEXLIST = 323, + TEXTURE = 324, + TLENGTHS = 325, + TRANSFORM = 326, + TRANSLATE = 327, + TREF = 328, + TRIANGLEFAN = 329, + TRIANGLESTRIP = 330, + TRIM = 331, + TXT = 332, + UKNOTS = 333, + UV = 334, + AUX = 335, + VKNOTS = 336, + VERTEX = 337, + VERTEXANIM = 338, + VERTEXPOOL = 339, + VERTEXREF = 340, + XFMANIM = 341, + XFMSANIM = 342, + START_EGG = 343, + START_GROUP_BODY = 344, + START_TEXTURE_BODY = 345, + START_PRIMITIVE_BODY = 346 + }; #endif /* Tokens. */ #define EGG_NUMBER 258 @@ -220,15 +230,11 @@ #define START_TEXTURE_BODY 345 #define START_PRIMITIVE_BODY 346 +/* Value type. */ - -#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED - -# define yystype YYSTYPE /* obsolescent; will be withdrawn */ -# define YYSTYPE_IS_DECLARED 1 -#endif - extern YYSTYPE eggyylval; +int eggyyparse (void); +#endif /* !YY_EGGYY_BUILT_TMP_PARSER_YXX_H_INCLUDED */