aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/lingo-gr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/director/lingo/lingo-gr.cpp')
-rw-r--r--engines/director/lingo/lingo-gr.cpp3306
1 files changed, 1596 insertions, 1710 deletions
diff --git a/engines/director/lingo/lingo-gr.cpp b/engines/director/lingo/lingo-gr.cpp
index 050449a3d5..31c1e161ef 100644
--- a/engines/director/lingo/lingo-gr.cpp
+++ b/engines/director/lingo/lingo-gr.cpp
@@ -1,14 +1,14 @@
-/* A Bison parser, made by GNU Bison 2.3. */
+/* A Bison parser, made by GNU Bison 3.4. */
-/* Skeleton implementation for Bison's Yacc-like parsers in C
+/* Bison implementation for Yacc-like parsers in C
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
- Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
+ Inc.
- This program is free software; you can redistribute it and/or modify
+ This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
+ 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
@@ -16,9 +16,7 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
@@ -43,11 +41,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.3"
+#define YYBISON_VERSION "3.4"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -55,201 +56,16 @@
/* Pure parsers. */
#define YYPURE 0
-/* Using locations. */
-#define YYLSP_NEEDED 0
+/* Push parsers. */
+#define YYPUSH 0
+/* Pull parsers. */
+#define YYPULL 1
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- UNARY = 258,
- CASTREF = 259,
- VOID = 260,
- VAR = 261,
- POINT = 262,
- RECT = 263,
- ARRAY = 264,
- OBJECT = 265,
- REFERENCE = 266,
- INT = 267,
- THEENTITY = 268,
- THEENTITYWITHID = 269,
- FLOAT = 270,
- BLTIN = 271,
- BLTINNOARGS = 272,
- BLTINNOARGSORONE = 273,
- BLTINONEARG = 274,
- BLTINARGLIST = 275,
- TWOWORDBUILTIN = 276,
- FBLTIN = 277,
- FBLTINNOARGS = 278,
- FBLTINONEARG = 279,
- FBLTINARGLIST = 280,
- RBLTIN = 281,
- RBLTINONEARG = 282,
- ID = 283,
- STRING = 284,
- HANDLER = 285,
- SYMBOL = 286,
- ENDCLAUSE = 287,
- tPLAYACCEL = 288,
- tDOWN = 289,
- tELSE = 290,
- tNLELSIF = 291,
- tEXIT = 292,
- tFRAME = 293,
- tGLOBAL = 294,
- tGO = 295,
- tIF = 296,
- tINTO = 297,
- tLOOP = 298,
- tMACRO = 299,
- tMOVIE = 300,
- tNEXT = 301,
- tOF = 302,
- tPREVIOUS = 303,
- tPUT = 304,
- tREPEAT = 305,
- tSET = 306,
- tTHEN = 307,
- tTHENNL = 308,
- tTO = 309,
- tWHEN = 310,
- tWITH = 311,
- tWHILE = 312,
- tNLELSE = 313,
- tFACTORY = 314,
- tMETHOD = 315,
- tOPEN = 316,
- tPLAY = 317,
- tDONE = 318,
- tINSTANCE = 319,
- tGE = 320,
- tLE = 321,
- tGT = 322,
- tLT = 323,
- tEQ = 324,
- tNEQ = 325,
- tAND = 326,
- tOR = 327,
- tNOT = 328,
- tMOD = 329,
- tAFTER = 330,
- tBEFORE = 331,
- tCONCAT = 332,
- tCONTAINS = 333,
- tSTARTS = 334,
- tCHAR = 335,
- tITEM = 336,
- tLINE = 337,
- tWORD = 338,
- tSPRITE = 339,
- tINTERSECTS = 340,
- tWITHIN = 341,
- tTELL = 342,
- tPROPERTY = 343,
- tON = 344,
- tME = 345
- };
-#endif
-/* Tokens. */
-#define UNARY 258
-#define CASTREF 259
-#define VOID 260
-#define VAR 261
-#define POINT 262
-#define RECT 263
-#define ARRAY 264
-#define OBJECT 265
-#define REFERENCE 266
-#define INT 267
-#define THEENTITY 268
-#define THEENTITYWITHID 269
-#define FLOAT 270
-#define BLTIN 271
-#define BLTINNOARGS 272
-#define BLTINNOARGSORONE 273
-#define BLTINONEARG 274
-#define BLTINARGLIST 275
-#define TWOWORDBUILTIN 276
-#define FBLTIN 277
-#define FBLTINNOARGS 278
-#define FBLTINONEARG 279
-#define FBLTINARGLIST 280
-#define RBLTIN 281
-#define RBLTINONEARG 282
-#define ID 283
-#define STRING 284
-#define HANDLER 285
-#define SYMBOL 286
-#define ENDCLAUSE 287
-#define tPLAYACCEL 288
-#define tDOWN 289
-#define tELSE 290
-#define tNLELSIF 291
-#define tEXIT 292
-#define tFRAME 293
-#define tGLOBAL 294
-#define tGO 295
-#define tIF 296
-#define tINTO 297
-#define tLOOP 298
-#define tMACRO 299
-#define tMOVIE 300
-#define tNEXT 301
-#define tOF 302
-#define tPREVIOUS 303
-#define tPUT 304
-#define tREPEAT 305
-#define tSET 306
-#define tTHEN 307
-#define tTHENNL 308
-#define tTO 309
-#define tWHEN 310
-#define tWITH 311
-#define tWHILE 312
-#define tNLELSE 313
-#define tFACTORY 314
-#define tMETHOD 315
-#define tOPEN 316
-#define tPLAY 317
-#define tDONE 318
-#define tINSTANCE 319
-#define tGE 320
-#define tLE 321
-#define tGT 322
-#define tLT 323
-#define tEQ 324
-#define tNEQ 325
-#define tAND 326
-#define tOR 327
-#define tNOT 328
-#define tMOD 329
-#define tAFTER 330
-#define tBEFORE 331
-#define tCONCAT 332
-#define tCONTAINS 333
-#define tSTARTS 334
-#define tCHAR 335
-#define tITEM 336
-#define tLINE 337
-#define tWORD 338
-#define tSPRITE 339
-#define tINTERSECTS 340
-#define tWITHIN 341
-#define tTELL 342
-#define tPROPERTY 343
-#define tON 344
-#define tME 345
-
-
-
-
-/* Copy the first part of user declarations. */
+
+
+/* First part of user prologue. */
#line 49 "engines/director/lingo/lingo-gr.y"
#define FORBIDDEN_SYMBOL_ALLOW_ALL
@@ -280,11 +96,19 @@ void checkEnd(Common::String *token, const char *expect, bool required) {
}
+#line 100 "engines/director/lingo/lingo-gr.cpp"
-/* Enabling traces. */
-#ifndef YYDEBUG
-# define YYDEBUG 1
-#endif
+# 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
@@ -294,15 +118,122 @@ void checkEnd(Common::String *token, const char *expect, bool required) {
# define YYERROR_VERBOSE 0
#endif
-/* Enabling the token table. */
-#ifndef YYTOKEN_TABLE
-# define YYTOKEN_TABLE 0
+/* Use api.header.include to #include this header
+ instead of duplicating it here. */
+#ifndef YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_HPP_INCLUDED
+# define YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_HPP_INCLUDED
+/* Debug traces. */
+#ifndef YYDEBUG
+# define YYDEBUG 1
+#endif
+#if YYDEBUG
+extern int yydebug;
+#endif
+
+/* Token type. */
+#ifndef YYTOKENTYPE
+# define YYTOKENTYPE
+ enum yytokentype
+ {
+ UNARY = 258,
+ CASTREF = 259,
+ VOID = 260,
+ VAR = 261,
+ POINT = 262,
+ RECT = 263,
+ ARRAY = 264,
+ OBJECT = 265,
+ REFERENCE = 266,
+ INT = 267,
+ ARGC = 268,
+ ARGCNORET = 269,
+ THEENTITY = 270,
+ THEENTITYWITHID = 271,
+ FLOAT = 272,
+ BLTIN = 273,
+ BLTINNOARGS = 274,
+ BLTINNOARGSORONE = 275,
+ BLTINONEARG = 276,
+ BLTINARGLIST = 277,
+ TWOWORDBUILTIN = 278,
+ FBLTIN = 279,
+ FBLTINNOARGS = 280,
+ FBLTINONEARG = 281,
+ FBLTINARGLIST = 282,
+ RBLTIN = 283,
+ RBLTINONEARG = 284,
+ ID = 285,
+ STRING = 286,
+ HANDLER = 287,
+ SYMBOL = 288,
+ ENDCLAUSE = 289,
+ tPLAYACCEL = 290,
+ tDOWN = 291,
+ tELSE = 292,
+ tNLELSIF = 293,
+ tEXIT = 294,
+ tFRAME = 295,
+ tGLOBAL = 296,
+ tGO = 297,
+ tIF = 298,
+ tINTO = 299,
+ tLOOP = 300,
+ tMACRO = 301,
+ tMOVIE = 302,
+ tNEXT = 303,
+ tOF = 304,
+ tPREVIOUS = 305,
+ tPUT = 306,
+ tREPEAT = 307,
+ tSET = 308,
+ tTHEN = 309,
+ tTHENNL = 310,
+ tTO = 311,
+ tWHEN = 312,
+ tWITH = 313,
+ tWHILE = 314,
+ tNLELSE = 315,
+ tFACTORY = 316,
+ tMETHOD = 317,
+ tOPEN = 318,
+ tPLAY = 319,
+ tDONE = 320,
+ tINSTANCE = 321,
+ tGE = 322,
+ tLE = 323,
+ tGT = 324,
+ tLT = 325,
+ tEQ = 326,
+ tNEQ = 327,
+ tAND = 328,
+ tOR = 329,
+ tNOT = 330,
+ tMOD = 331,
+ tAFTER = 332,
+ tBEFORE = 333,
+ tCONCAT = 334,
+ tCONTAINS = 335,
+ tSTARTS = 336,
+ tCHAR = 337,
+ tITEM = 338,
+ tLINE = 339,
+ tWORD = 340,
+ tSPRITE = 341,
+ tINTERSECTS = 342,
+ tWITHIN = 343,
+ tTELL = 344,
+ tPROPERTY = 345,
+ tON = 346,
+ tME = 347
+ };
#endif
+/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
-#line 79 "engines/director/lingo/lingo-gr.y"
+union YYSTYPE
{
+#line 79 "engines/director/lingo/lingo-gr.y"
+
Common::String *s;
int i;
double f;
@@ -310,22 +241,23 @@ typedef union YYSTYPE
int code;
int narg; /* number of arguments */
Common::Array<double> *arr;
-}
-/* Line 193 of yacc.c. */
-#line 316 "engines/director/lingo/lingo-gr.cpp"
- YYSTYPE;
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
+
+#line 246 "engines/director/lingo/lingo-gr.cpp"
+
+};
+typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
+# define YYSTYPE_IS_DECLARED 1
#endif
+extern YYSTYPE yylval;
-/* Copy the second part of user declarations. */
+int yyparse (void);
+
+#endif /* !YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_HPP_INCLUDED */
-/* Line 216 of yacc.c. */
-#line 329 "engines/director/lingo/lingo-gr.cpp"
#ifdef short
# undef short
@@ -339,23 +271,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
@@ -363,12 +292,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 <stddef.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# else
-# define YYSIZE_T unsigned int
+# define YYSIZE_T unsigned
# endif
#endif
@@ -378,39 +306,61 @@ typedef short int yytype_int16;
# if defined YYENABLE_NLS && YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* 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)
-#else
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static int
-YYID (int i)
+#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
-static int
-YYID (i)
- int i;
+# define YY_INITIAL_VALUE(Value) Value
#endif
-{
- return i;
-}
+#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
+
+#define YY_ASSERT(E) ((void) (0 && (E)))
+
#if ! defined yyoverflow || YYERROR_VERBOSE
/* The parser invokes alloca or malloc; define the necessary symbols. */
@@ -428,11 +378,11 @@ YYID (i)
# 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 <stdlib.h> /* 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
@@ -440,8 +390,8 @@ YYID (i)
# 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
@@ -455,25 +405,23 @@ YYID (i)
# 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 <stdlib.h> /* 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
@@ -483,14 +431,14 @@ 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
{
- yytype_int16 yyss;
- YYSTYPE yyvs;
- };
+ yytype_int16 yyss_alloc;
+ YYSTYPE yyvs_alloc;
+};
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
@@ -501,76 +449,82 @@ 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) \
- do \
- { \
- YYSIZE_T yynewbytes; \
- YYCOPY (&yyptr->Stack, Stack, yysize); \
- Stack = &yyptr->Stack; \
- yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
- yyptr += yynewbytes / sizeof (*yyptr); \
- } \
- while (YYID (0))
+# 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 129
/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 1870
+#define YYLAST 1844
/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 105
+#define YYNTOKENS 107
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 47
/* YYNRULES -- Number of rules. */
#define YYNRULES 172
-/* YYNRULES -- Number of states. */
+/* YYNSTATES -- Number of states. */
#define YYNSTATES 369
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
-#define YYMAXUTOK 345
+#define YYMAXUTOK 347
-#define YYTRANSLATE(YYX) \
- ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
+/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
+ as returned by yylex, with out-of-bounds checking. */
+#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. */
static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 97, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 99, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 96, 91, 2,
- 98, 99, 94, 92, 104, 93, 2, 95, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 98, 93, 2,
+ 100, 101, 96, 94, 106, 95, 2, 97, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 101, 2, 100, 2, 2, 2, 2, 2, 2, 2,
+ 103, 2, 102, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 102, 2, 103, 2, 2, 2, 2, 2, 2,
+ 2, 104, 2, 105, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -595,106 +549,11 @@ static const yytype_uint8 yytranslate[] =
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
- 85, 86, 87, 88, 89, 90
+ 85, 86, 87, 88, 89, 90, 91, 92
};
#if YYDEBUG
-/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
- YYRHS. */
-static const yytype_uint16 yyprhs[] =
-{
- 0, 0, 3, 7, 9, 12, 14, 16, 18, 20,
- 21, 23, 25, 30, 35, 40, 45, 50, 55, 60,
- 65, 71, 77, 79, 81, 83, 85, 87, 93, 104,
- 116, 120, 127, 132, 139, 149, 159, 169, 180, 191,
- 198, 199, 203, 206, 208, 211, 213, 220, 222, 229,
- 236, 239, 243, 245, 247, 248, 249, 251, 254, 257,
- 261, 263, 265, 267, 269, 271, 273, 275, 277, 279,
- 282, 285, 290, 295, 297, 300, 302, 306, 310, 314,
- 318, 322, 326, 330, 334, 338, 342, 346, 350, 354,
- 357, 361, 365, 369, 373, 376, 379, 383, 387, 392,
- 397, 402, 409, 414, 421, 426, 433, 438, 445, 447,
- 450, 453, 455, 457, 460, 462, 465, 468, 471, 473,
- 476, 479, 481, 484, 489, 494, 501, 506, 509, 513,
- 515, 519, 521, 525, 527, 531, 534, 537, 540, 543,
- 547, 550, 553, 555, 559, 562, 565, 568, 572, 575,
- 576, 580, 581, 590, 593, 594, 603, 612, 619, 622,
- 623, 625, 629, 634, 635, 637, 641, 642, 645, 646,
- 648, 652, 654
-};
-
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const yytype_int16 yyrhs[] =
-{
- 106, 0, -1, 106, 107, 111, -1, 111, -1, 1,
- 107, -1, 97, -1, 53, -1, 58, -1, 36, -1,
- -1, 142, -1, 114, -1, 49, 131, 42, 28, -1,
- 49, 131, 42, 132, -1, 49, 131, 75, 131, -1,
- 49, 131, 76, 131, -1, 51, 28, 69, 131, -1,
- 51, 13, 69, 131, -1, 51, 28, 54, 131, -1,
- 51, 13, 54, 131, -1, 51, 14, 131, 54, 131,
- -1, 51, 14, 130, 69, 131, -1, 149, -1, 131,
- -1, 133, -1, 113, -1, 115, -1, 121, 131, 127,
- 126, 32, -1, 122, 69, 131, 126, 54, 131, 126,
- 127, 126, 32, -1, 122, 69, 131, 126, 34, 54,
- 131, 126, 127, 126, 32, -1, 128, 113, 126, -1,
- 129, 131, 107, 127, 126, 32, -1, 129, 131, 54,
- 131, -1, 123, 131, 108, 127, 126, 32, -1, 123,
- 131, 108, 127, 126, 109, 127, 126, 32, -1, 123,
- 131, 108, 127, 126, 125, 117, 126, 32, -1, 123,
- 131, 108, 127, 126, 109, 125, 113, 126, -1, 123,
- 131, 52, 125, 113, 126, 118, 126, 116, 126, -1,
- 123, 131, 52, 125, 113, 126, 109, 125, 113, 126,
- -1, 123, 131, 52, 125, 113, 126, -1, -1, 109,
- 125, 113, -1, 117, 120, -1, 120, -1, 118, 119,
- -1, 119, -1, 124, 131, 52, 125, 114, 126, -1,
- 118, -1, 124, 131, 52, 125, 127, 126, -1, 124,
- 131, 108, 125, 127, 126, -1, 50, 57, -1, 50,
- 56, 28, -1, 41, -1, 110, -1, -1, -1, 125,
- -1, 127, 107, -1, 127, 114, -1, 55, 28, 52,
- -1, 87, -1, 12, -1, 15, -1, 31, -1, 29,
- -1, 28, -1, 130, -1, 132, -1, 23, -1, 24,
- 131, -1, 25, 151, -1, 25, 98, 151, 99, -1,
- 28, 98, 150, 99, -1, 13, -1, 14, 131, -1,
- 112, -1, 131, 92, 131, -1, 131, 93, 131, -1,
- 131, 94, 131, -1, 131, 95, 131, -1, 131, 74,
- 131, -1, 131, 100, 131, -1, 131, 101, 131, -1,
- 131, 69, 131, -1, 131, 70, 131, -1, 131, 65,
- 131, -1, 131, 66, 131, -1, 131, 71, 131, -1,
- 131, 72, 131, -1, 73, 131, -1, 131, 91, 131,
- -1, 131, 77, 131, -1, 131, 78, 131, -1, 131,
- 79, 131, -1, 92, 131, -1, 93, 131, -1, 98,
- 131, 99, -1, 102, 150, 103, -1, 84, 131, 85,
- 131, -1, 84, 131, 86, 131, -1, 80, 131, 47,
- 131, -1, 80, 131, 54, 131, 47, 131, -1, 81,
- 131, 47, 131, -1, 81, 131, 54, 131, 47, 131,
- -1, 82, 131, 47, 131, -1, 82, 131, 54, 131,
- 47, 131, -1, 83, 131, 47, 131, -1, 83, 131,
- 54, 131, 47, 131, -1, 90, -1, 27, 131, -1,
- 49, 131, -1, 137, -1, 140, -1, 37, 50, -1,
- 37, -1, 39, 134, -1, 88, 135, -1, 64, 136,
- -1, 17, -1, 19, 131, -1, 18, 131, -1, 18,
- -1, 20, 151, -1, 20, 98, 151, 99, -1, 90,
- 98, 28, 99, -1, 90, 98, 28, 104, 150, 99,
- -1, 61, 131, 56, 131, -1, 61, 131, -1, 21,
- 28, 150, -1, 28, -1, 134, 104, 28, -1, 28,
- -1, 135, 104, 28, -1, 28, -1, 136, 104, 28,
- -1, 40, 43, -1, 40, 46, -1, 40, 48, -1,
- 40, 138, -1, 40, 138, 139, -1, 40, 139, -1,
- 38, 131, -1, 131, -1, 47, 45, 131, -1, 45,
- 131, -1, 62, 63, -1, 62, 138, -1, 62, 138,
- 139, -1, 62, 139, -1, -1, 33, 141, 150, -1,
- -1, 44, 28, 143, 125, 146, 107, 148, 127, -1,
- 59, 28, -1, -1, 60, 28, 144, 125, 146, 107,
- 148, 127, -1, 145, 125, 146, 107, 148, 127, 32,
- 147, -1, 145, 125, 146, 107, 148, 127, -1, 89,
- 28, -1, -1, 28, -1, 146, 104, 28, -1, 146,
- 107, 104, 28, -1, -1, 28, -1, 147, 104, 28,
- -1, -1, 28, 151, -1, -1, 131, -1, 150, 104,
- 131, -1, 131, -1, 151, 104, 131, -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, 120, 120, 121, 122, 125, 130, 135, 140, 145,
@@ -718,41 +577,41 @@ static const yytype_uint16 yyrline[] =
};
#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[] =
{
"$end", "error", "$undefined", "UNARY", "CASTREF", "VOID", "VAR",
- "POINT", "RECT", "ARRAY", "OBJECT", "REFERENCE", "INT", "THEENTITY",
- "THEENTITYWITHID", "FLOAT", "BLTIN", "BLTINNOARGS", "BLTINNOARGSORONE",
- "BLTINONEARG", "BLTINARGLIST", "TWOWORDBUILTIN", "FBLTIN",
- "FBLTINNOARGS", "FBLTINONEARG", "FBLTINARGLIST", "RBLTIN",
- "RBLTINONEARG", "ID", "STRING", "HANDLER", "SYMBOL", "ENDCLAUSE",
- "tPLAYACCEL", "tDOWN", "tELSE", "tNLELSIF", "tEXIT", "tFRAME", "tGLOBAL",
- "tGO", "tIF", "tINTO", "tLOOP", "tMACRO", "tMOVIE", "tNEXT", "tOF",
- "tPREVIOUS", "tPUT", "tREPEAT", "tSET", "tTHEN", "tTHENNL", "tTO",
- "tWHEN", "tWITH", "tWHILE", "tNLELSE", "tFACTORY", "tMETHOD", "tOPEN",
- "tPLAY", "tDONE", "tINSTANCE", "tGE", "tLE", "tGT", "tLT", "tEQ", "tNEQ",
- "tAND", "tOR", "tNOT", "tMOD", "tAFTER", "tBEFORE", "tCONCAT",
- "tCONTAINS", "tSTARTS", "tCHAR", "tITEM", "tLINE", "tWORD", "tSPRITE",
- "tINTERSECTS", "tWITHIN", "tTELL", "tPROPERTY", "tON", "tME", "'&'",
- "'+'", "'-'", "'*'", "'/'", "'%'", "'\\n'", "'('", "')'", "'>'", "'<'",
- "'['", "']'", "','", "$accept", "program", "nl", "thennl", "nlelse",
- "nlelsif", "programline", "asgn", "stmtoneliner", "stmt", "ifstmt",
- "elsestmtoneliner", "elseifstmt", "elseifstmtoneliner",
- "elseifstmtoneliner1", "elseifstmt1", "repeatwhile", "repeatwith", "if",
- "elseif", "begin", "end", "stmtlist", "when", "tell", "simpleexpr",
- "expr", "reference", "proc", "globallist", "propertylist",
- "instancelist", "gotofunc", "gotoframe", "gotomovie", "playfunc", "@1",
- "defn", "@2", "@3", "on", "argdef", "endargdef", "argstore", "macro",
- "arglist", "nonemptyarglist", 0
+ "POINT", "RECT", "ARRAY", "OBJECT", "REFERENCE", "INT", "ARGC",
+ "ARGCNORET", "THEENTITY", "THEENTITYWITHID", "FLOAT", "BLTIN",
+ "BLTINNOARGS", "BLTINNOARGSORONE", "BLTINONEARG", "BLTINARGLIST",
+ "TWOWORDBUILTIN", "FBLTIN", "FBLTINNOARGS", "FBLTINONEARG",
+ "FBLTINARGLIST", "RBLTIN", "RBLTINONEARG", "ID", "STRING", "HANDLER",
+ "SYMBOL", "ENDCLAUSE", "tPLAYACCEL", "tDOWN", "tELSE", "tNLELSIF",
+ "tEXIT", "tFRAME", "tGLOBAL", "tGO", "tIF", "tINTO", "tLOOP", "tMACRO",
+ "tMOVIE", "tNEXT", "tOF", "tPREVIOUS", "tPUT", "tREPEAT", "tSET",
+ "tTHEN", "tTHENNL", "tTO", "tWHEN", "tWITH", "tWHILE", "tNLELSE",
+ "tFACTORY", "tMETHOD", "tOPEN", "tPLAY", "tDONE", "tINSTANCE", "tGE",
+ "tLE", "tGT", "tLT", "tEQ", "tNEQ", "tAND", "tOR", "tNOT", "tMOD",
+ "tAFTER", "tBEFORE", "tCONCAT", "tCONTAINS", "tSTARTS", "tCHAR", "tITEM",
+ "tLINE", "tWORD", "tSPRITE", "tINTERSECTS", "tWITHIN", "tTELL",
+ "tPROPERTY", "tON", "tME", "'&'", "'+'", "'-'", "'*'", "'/'", "'%'",
+ "'\\n'", "'('", "')'", "'>'", "'<'", "'['", "']'", "','", "$accept",
+ "program", "nl", "thennl", "nlelse", "nlelsif", "programline", "asgn",
+ "stmtoneliner", "stmt", "ifstmt", "elsestmtoneliner", "elseifstmt",
+ "elseifstmtoneliner", "elseifstmtoneliner1", "elseifstmt1",
+ "repeatwhile", "repeatwith", "if", "elseif", "begin", "end", "stmtlist",
+ "when", "tell", "simpleexpr", "expr", "reference", "proc", "globallist",
+ "propertylist", "instancelist", "gotofunc", "gotoframe", "gotomovie",
+ "playfunc", "$@1", "defn", "$@2", "$@3", "on", "argdef", "endargdef",
+ "argstore", "macro", "arglist", "nonemptyarglist", 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,
@@ -764,60 +623,67 @@ static const yytype_uint16 yytoknum[] =
315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
- 345, 38, 43, 45, 42, 47, 37, 10, 40, 41,
- 62, 60, 91, 93, 44
+ 345, 346, 347, 38, 43, 45, 42, 47, 37, 10,
+ 40, 41, 62, 60, 91, 93, 44
};
# endif
-/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
-static const yytype_uint8 yyr1[] =
-{
- 0, 105, 106, 106, 106, 107, 108, 109, 110, 111,
- 111, 111, 112, 112, 112, 112, 112, 112, 112, 112,
- 112, 112, 113, 113, 113, 114, 114, 114, 114, 114,
- 114, 114, 114, 115, 115, 115, 115, 115, 115, 115,
- 116, 116, 117, 117, 118, 118, 119, 120, 120, 120,
- 121, 122, 123, 124, 125, 126, 127, 127, 127, 128,
- 129, 130, 130, 130, 130, 130, 131, 131, 131, 131,
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 132,
- 133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
- 133, 133, 133, 133, 133, 133, 133, 133, 133, 134,
- 134, 135, 135, 136, 136, 137, 137, 137, 137, 137,
- 137, 138, 138, 139, 139, 140, 140, 140, 140, 141,
- 140, 143, 142, 142, 144, 142, 142, 142, 145, 146,
- 146, 146, 146, 147, 147, 147, 148, 149, 150, 150,
- 150, 151, 151
-};
+#define YYPACT_NINF -288
-/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
-static const yytype_uint8 yyr2[] =
+#define yypact_value_is_default(Yystate) \
+ (!!((Yystate) == (-288)))
+
+#define YYTABLE_NINF -10
+
+#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, 2, 3, 1, 2, 1, 1, 1, 1, 0,
- 1, 1, 4, 4, 4, 4, 4, 4, 4, 4,
- 5, 5, 1, 1, 1, 1, 1, 5, 10, 11,
- 3, 6, 4, 6, 9, 9, 9, 10, 10, 6,
- 0, 3, 2, 1, 2, 1, 6, 1, 6, 6,
- 2, 3, 1, 1, 0, 0, 1, 2, 2, 3,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
- 2, 4, 4, 1, 2, 1, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 2,
- 3, 3, 3, 3, 2, 2, 3, 3, 4, 4,
- 4, 6, 4, 6, 4, 6, 4, 6, 1, 2,
- 2, 1, 1, 2, 1, 2, 2, 2, 1, 2,
- 2, 1, 2, 4, 4, 6, 4, 2, 3, 1,
- 3, 1, 3, 1, 3, 2, 2, 2, 2, 3,
- 2, 2, 1, 3, 2, 2, 2, 3, 2, 0,
- 3, 0, 8, 2, 0, 8, 8, 6, 2, 0,
- 1, 3, 4, 0, 1, 3, 0, 2, 0, 1,
- 3, 1, 3
+ 382, -77, -288, -288, 1014, -288, -288, 1014, 1014, 1054,
+ 26, -288, 1014, 1135, 1014, 1175, -288, -288, -288, -26,
+ 30, 893, -288, 44, 1014, -34, 33, 53, 61, 64,
+ 1014, 933, 81, 1014, 1014, 1014, 1014, 1014, 1014, -288,
+ 84, 89, -22, 1014, 1014, 1014, 1014, 2, -288, -288,
+ -288, -288, -288, 1014, 49, 1014, 812, 1014, -288, 1741,
+ -288, -288, -288, -288, -288, -288, -288, -288, -288, 21,
+ 1014, -288, 1741, 1741, 1741, 1014, 1741, 16, 1014, 1741,
+ 1014, 16, 1741, 1014, 16, 1014, -288, -288, 17, 1014,
+ -288, 1014, -288, 77, -288, 1741, 48, -288, -288, 1209,
+ 95, -288, -5, 1014, -1, 72, -288, -288, 1638, -288,
+ 48, -288, -288, 22, -64, 1242, 1275, 1308, 1341, 1671,
+ -288, 25, -288, 97, -64, -64, 1704, 1741, -37, -288,
+ 468, 1741, 1014, 1506, -288, 1605, 1014, 1014, 1014, 1014,
+ 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014,
+ 1014, 1014, 1014, 102, 1014, 1209, 1704, -25, 1014, 46,
+ -16, 1704, -8, 46, 123, 1741, 1741, 1014, -288, -288,
+ 73, 1014, 1014, -288, 1014, 1014, 83, 788, 1014, 1014,
+ -288, -288, 1014, -288, 126, 1014, 1014, 1014, 1014, 1014,
+ 1014, 1014, 1014, 1014, 1014, 127, 11, -288, -288, 1014,
+ -288, -288, 640, 1741, -288, -288, -288, -288, 1014, -288,
+ 13, 13, 13, 13, 283, 283, -64, 1741, 13, 13,
+ 118, 130, 130, -64, -64, 1741, 1741, -288, -35, -288,
+ 1741, -288, -288, -288, 1741, 102, -288, -288, 1741, 1741,
+ 1741, 13, 1014, 1014, 1741, 13, 102, 1741, -288, 1741,
+ 1374, 1741, 1407, 1741, 1440, 1741, 1473, 1741, 1741, -288,
+ -288, 1014, 1741, -288, -288, 124, 1, 812, 640, 1741,
+ 640, 129, 54, -35, 13, 1741, -35, 1014, 1014, 1014,
+ 1014, 12, -288, 105, 1014, -288, -31, 128, -288, 133,
+ -288, 54, 54, 1741, 1741, 1741, 1741, -288, 1014, 1741,
+ -15, -288, -288, -288, 132, -288, -288, 554, -288, -288,
+ 1741, -288, -288, -288, -288, 132, -288, 1014, 812, 640,
+ 132, 132, -288, 1014, 136, 640, 640, -288, 640, 812,
+ -288, 107, 1572, -288, 139, -288, 140, 1539, -288, 75,
+ 640, 144, -288, -288, -288, -288, -288, -288, -288, -288,
+ -288, 162, 161, -288, -288, 812, -288, 726, 726, -288,
+ -288, -288, -288, -288, 640, 640, -288, -288, -288
};
-/* 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_uint8 yydefact[] =
{
0, 0, 61, 73, 0, 62, 118, 121, 0, 0,
@@ -859,7 +725,17 @@ static const yytype_uint8 yydefact[] =
165, 29, 41, 55, 55, 55, 46, 48, 49
};
-/* YYDEFGOTO[NTERM-NUM]. */
+ /* YYPGOTO[NTERM-NUM]. */
+static const yytype_int16 yypgoto[] =
+{
+ -288, -288, 15, -135, -287, -288, 74, -288, -49, 0,
+ -288, -288, -288, -97, -256, -113, -288, -288, -288, -284,
+ -4, 28, -110, -288, -288, 108, -3, 38, -288, -288,
+ -288, -288, -288, 179, -23, -288, -288, -288, -288, -288,
+ -288, -188, -288, -187, -288, -32, 4
+};
+
+ /* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] =
{
-1, 47, 263, 206, 303, 314, 48, 49, 50, 264,
@@ -869,92 +745,36 @@ static const yytype_int16 yydefgoto[] =
65, 228, 339, 290, 66, 162, 77
};
-/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
- STATE-NUM. */
-#define YYPACT_NINF -283
-static const yytype_int16 yypact[] =
-{
- 382, -58, -283, -283, 1041, -283, -283, 1041, 1041, 1081,
- 63, -283, 1041, 1163, 1041, 1203, -283, -283, -283, 45,
- 69, 919, -283, 76, 1041, -33, 35, 79, 82, 84,
- 1041, 959, 92, 1041, 1041, 1041, 1041, 1041, 1041, -283,
- 103, 104, 54, 1041, 1041, 1041, 1041, 8, -283, -283,
- -283, -283, -283, 1041, 85, 1041, 837, 1041, -283, 1769,
- -283, -283, -283, -283, -283, -283, -283, -283, -283, 55,
- 1041, -283, 1769, 1769, 1769, 1041, 1769, 52, 1041, 1769,
- 1041, 52, 1769, 1041, 52, 1041, -283, -283, 53, 1041,
- -283, 1041, -283, 113, -283, 1769, 38, -283, -283, 1237,
- 131, -283, -9, 1041, 5, 108, -283, -283, 1666, -283,
- 38, -283, -283, 57, -75, 1270, 1303, 1336, 1369, 1699,
- -283, 58, -283, 135, -75, -75, 1732, 1769, -46, -283,
- 473, 1769, 1041, 1534, -283, 1633, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 138, 1041, 1237, 1732, -31, 1041, 66,
- 7, 1732, 9, 66, 139, 1769, 1769, 1041, -283, -283,
- 95, 1041, 1041, -283, 1041, 1041, 105, 813, 1041, 1041,
- -283, -283, 1041, -283, 145, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 150, 10, -283, -283, 1041,
- -283, -283, 655, 1769, -283, -283, -283, -283, 1041, -283,
- 120, 120, 120, 120, 24, 24, -75, 1769, 120, 120,
- 132, -30, -30, -75, -75, 1769, 1769, -283, -28, -283,
- 1769, -283, -283, -283, 1769, 138, -283, -283, 1769, 1769,
- 1769, 120, 1041, 1041, 1769, 120, 138, 1769, -283, 1769,
- 1402, 1769, 1435, 1769, 1468, 1769, 1501, 1769, 1769, -283,
- -283, 1041, 1769, -283, -283, 149, 2, 837, 655, 1769,
- 655, 164, 91, -28, 120, 1769, -28, 1041, 1041, 1041,
- 1041, 22, -283, 148, 1041, -283, -29, 171, -283, 176,
- -283, 91, 91, 1769, 1769, 1769, 1769, -283, 1041, 1769,
- -21, -283, -283, -283, 172, -283, -283, 564, -283, -283,
- 1769, -283, -283, -283, -283, 172, -283, 1041, 837, 655,
- 172, 172, -283, 1041, 179, 655, 655, -283, 655, 837,
- -283, 152, 1600, -283, 184, -283, 187, 1567, -283, 118,
- 655, 191, -283, -283, -283, -283, -283, -283, -283, -283,
- -283, 200, 202, -283, -283, 837, -283, 746, 746, -283,
- -283, -283, -283, -283, 655, 655, -283, -283, -283
-};
-
-/* YYPGOTO[NTERM-NUM]. */
-static const yytype_int16 yypgoto[] =
-{
- -283, -283, 15, -102, -280, -283, 106, -283, -49, 0,
- -283, -283, -283, -63, -234, -82, -283, -283, -283, -282,
- -4, 28, -110, -283, -283, 141, -3, 71, -283, -283,
- -283, -283, -283, 211, -18, -283, -283, -283, -283, -283,
- -283, -180, -283, -164, -283, -32, 4
-};
-
-/* 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 -10
+ /* 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_int16 yytable[] =
{
- 51, 72, 143, 301, 73, 74, 76, 134, 129, 79,
- 76, 82, 76, 111, 128, 312, 68, 81, 95, 84,
- 313, 99, 323, 100, 101, 151, 152, 108, 95, 302,
- 114, 115, 116, 117, 118, 119, 283, 302, 323, 67,
- 124, 125, 126, 127, 142, 174, 159, 143, 102, 103,
- 131, 343, 133, 163, 135, 273, 284, 198, 199, 178,
- 175, 153, 130, 104, 149, 150, 276, 155, 229, 67,
- 151, 152, 156, 158, 179, 127, 271, 156, 168, 157,
- 161, 330, 127, 91, 160, 93, 165, 330, 166, 136,
- 137, 78, 183, 138, 139, 86, 268, 87, 142, 270,
- 177, 143, 144, 145, 98, 67, 231, 105, 232, 260,
- 106, 158, 107, 199, 261, 146, 147, 148, 149, 150,
- 112, 297, 14, 236, 151, 152, 199, 308, 309, 203,
- 51, 120, 122, 210, 211, 212, 213, 214, 215, 216,
+ 51, 72, 129, 301, 73, 74, 76, 134, 111, 79,
+ 76, 82, 76, 313, 128, 143, 68, 81, 95, 84,
+ 323, 99, 67, 312, 100, 101, 86, 108, 95, 302,
+ 114, 115, 116, 117, 118, 119, 323, 283, 151, 152,
+ 124, 125, 126, 127, 343, 302, 159, 273, 102, 103,
+ 131, 174, 133, 163, 135, 178, 78, 284, 276, 330,
+ 87, 153, 130, 104, 67, 330, 175, 155, 198, 199,
+ 179, 271, 156, 168, 98, 127, 229, 156, 123, 157,
+ 161, 158, 127, 105, 160, 231, 165, 183, 166, 142,
+ 158, 106, 143, 232, 107, 91, 268, 93, 199, 270,
+ 177, 67, 14, 236, 308, 309, 146, 147, 148, 149,
+ 150, 112, 260, 297, 120, 151, 152, 261, 199, 122,
+ 132, 154, 158, 164, 167, 173, 180, 196, 184, 203,
+ 51, 195, 227, 210, 211, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
- 209, 127, 123, 154, 132, 230, 158, 164, 167, 173,
- 180, 184, 195, 196, 234, 235, 227, 233, 238, 239,
- 199, 240, 241, 248, 242, 244, 245, 246, 259, 247,
- 307, 282, 249, 250, 251, 252, 253, 254, 255, 256,
- 257, 258, 288, 319, 142, 289, 262, 143, 325, 326,
- 267, 328, 298, 305, 306, 269, 142, 338, 312, 143,
- 302, 146, 147, 148, 149, 150, 347, 340, 285, 348,
- 151, 152, 351, 353, 147, 148, 149, 150, 360, 281,
- 265, 266, 151, 152, 361, 350, 200, 315, 335, 274,
- 275, 237, 110, 272, 176, 0, 0, 0, 364, 365,
+ 209, 127, 199, 233, 242, 230, 248, 259, 282, 288,
+ 289, 298, 305, 306, 234, 235, 338, 302, 238, 239,
+ 312, 240, 241, 347, 348, 244, 245, 246, 353, 247,
+ 307, 351, 249, 250, 251, 252, 253, 254, 255, 256,
+ 257, 258, 360, 319, 142, 361, 262, 143, 325, 326,
+ 267, 328, 350, 315, 200, 269, 142, 335, 237, 143,
+ 110, 176, 147, 148, 149, 150, 0, 340, 285, 0,
+ 151, 152, 0, 0, 0, 0, 149, 150, 0, 281,
+ 265, 266, 151, 152, 0, 0, 0, 0, 0, 274,
+ 275, 0, 0, 272, 0, 0, 0, 0, 364, 365,
0, 0, 0, 0, 0, 0, 0, 0, 127, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 333,
0, 0, 0, 0, 293, 294, 295, 296, 0, 0,
@@ -965,188 +785,185 @@ static const yytype_int16 yytable[] =
337, 0, 0, 0, 0, 0, 0, 311, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 327, 355,
0, 357, 0, 331, 0, 358, 359, 334, 336, 0,
- 0, 0, 0, 0, 0, 0, 341, 363, 363, 0,
- 0, 346, 0, 0, 0, 0, 0, 0, 352, 0,
- 354, 0, 356, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, -9, 1, 0, 0, 0, 0, 0, 0,
- 0, 366, 367, 368, 2, 3, 4, 5, 0, 6,
- 7, 8, 9, 10, 0, 11, 12, 13, 0, 14,
- 15, 16, 0, 17, 0, 18, 0, 0, 0, 19,
- 0, 20, 21, 22, 0, 0, 23, 0, 0, 0,
- 0, 24, 25, 26, 0, 0, 0, 27, 0, 0,
- 0, 28, 29, 30, 31, 0, 32, 0, 0, 0,
- 0, 0, 0, 0, 0, 33, 0, 0, 0, 0,
- 0, 0, 34, 35, 36, 37, 38, 0, 0, 39,
- 40, 41, 42, 0, 43, 44, 0, 0, 0, -9,
- 45, 0, 0, 0, 46, 2, 3, 4, 5, 0,
- 6, 7, 8, 9, 10, 0, 11, 12, 13, 0,
- 14, 15, 16, 0, 17, 0, 18, 0, 0, 0,
- 19, 0, 20, 21, 22, 0, 0, 23, 0, 0,
- 0, 0, 24, 25, 26, 0, 0, 0, 27, 0,
- 0, 0, 28, 29, 30, 31, 0, 32, 0, 0,
- 0, 0, 0, 0, 0, 0, 33, 0, 0, 0,
- 0, 0, 0, 34, 35, 36, 37, 38, 0, 0,
- 39, 40, 41, 42, 0, 43, 44, 0, 0, 0,
- 0, 45, 0, 0, 0, 46, 2, 3, 4, 5,
+ 136, 137, 0, 0, 138, 139, 341, 363, 363, 142,
+ 0, 346, 143, 144, 145, 0, 0, 0, 352, 0,
+ 354, 0, 356, 0, 0, 0, 146, 147, 148, 149,
+ 150, 0, -9, 1, 0, 151, 152, 0, 0, 0,
+ 0, 366, 367, 368, 2, 0, 0, 3, 4, 5,
0, 6, 7, 8, 9, 10, 0, 11, 12, 13,
- 0, 14, 15, 16, 0, 17, 324, 18, 0, 0,
- 0, 19, 0, 20, 21, 22, 0, 0, 0, 0,
+ 0, 14, 15, 16, 0, 17, 0, 18, 0, 0,
+ 0, 19, 0, 20, 21, 22, 0, 0, 23, 0,
0, 0, 0, 24, 25, 26, 0, 0, 0, 27,
- 0, 0, 0, 0, 0, 30, 31, 0, 32, 0,
+ 0, 0, 0, 28, 29, 30, 31, 0, 32, 0,
0, 0, 0, 0, 0, 0, 0, 33, 0, 0,
0, 0, 0, 0, 34, 35, 36, 37, 38, 0,
- 0, 39, 40, 0, 42, 0, 43, 44, 0, 0,
- 0, 67, 45, 0, 0, 0, 46, 2, 3, 4,
- 5, 0, 6, 7, 8, 9, 10, 0, 11, 12,
- 13, 0, 14, 15, 16, 0, 17, 0, 18, 0,
- 0, 0, 19, 0, 20, 21, 22, 0, 0, 0,
- 0, 0, 0, 0, 24, 25, 26, 0, 0, 0,
- 27, 0, 0, 0, 0, 0, 30, 31, 0, 32,
- 0, 0, 0, 0, 0, 0, 0, 0, 33, 0,
- 0, 0, 0, 0, 0, 34, 35, 36, 37, 38,
- 0, 0, 39, 40, 0, 42, 0, 43, 44, 0,
- 0, 0, 67, 45, 0, 0, 0, 46, 2, 3,
- 4, 5, 0, 6, 7, 8, 9, 10, 0, 11,
- 12, 13, 0, 14, 15, 16, 0, 17, 0, 18,
+ 0, 39, 40, 41, 42, 0, 43, 44, 0, 0,
+ 2, -9, 45, 3, 4, 5, 46, 6, 7, 8,
+ 9, 10, 0, 11, 12, 13, 0, 14, 15, 16,
+ 0, 17, 0, 18, 0, 0, 0, 19, 0, 20,
+ 21, 22, 0, 0, 23, 0, 0, 0, 0, 24,
+ 25, 26, 0, 0, 0, 27, 0, 0, 0, 28,
+ 29, 30, 31, 0, 32, 0, 0, 0, 0, 0,
+ 0, 0, 0, 33, 0, 0, 0, 0, 0, 0,
+ 34, 35, 36, 37, 38, 0, 0, 39, 40, 41,
+ 42, 0, 43, 44, 0, 0, 2, 0, 45, 3,
+ 4, 5, 46, 6, 7, 8, 9, 10, 0, 11,
+ 12, 13, 0, 14, 15, 16, 0, 17, 324, 18,
0, 0, 0, 19, 0, 20, 21, 22, 0, 0,
0, 0, 0, 0, 0, 24, 25, 26, 0, 0,
0, 27, 0, 0, 0, 0, 0, 30, 31, 0,
32, 0, 0, 0, 0, 0, 0, 0, 0, 33,
0, 0, 0, 0, 0, 0, 34, 35, 36, 37,
38, 0, 0, 39, 40, 0, 42, 0, 43, 44,
- 0, 0, 0, 0, 45, 0, 0, 0, 46, 2,
- 3, 4, 5, 0, 6, 7, 8, 9, 10, 0,
- 11, 12, 13, 0, 14, 15, 16, 243, 17, 0,
- 18, 0, 0, 0, 19, 0, 20, 21, 136, 137,
- 0, 0, 138, 139, 140, 141, 24, 142, 26, 0,
- 143, 144, 145, 0, 0, 0, 0, 0, 30, 31,
- 0, 32, 0, 0, 146, 147, 148, 149, 150, 0,
- 33, 0, 0, 151, 152, 0, 0, 34, 35, 36,
- 37, 38, 0, 0, 0, 40, 0, 42, 0, 43,
- 44, 2, 3, 4, 5, 45, 0, 0, 0, 46,
- 0, 0, 11, 12, 13, 0, 14, 69, 16, 0,
- 17, 0, 0, 0, 0, 0, 0, 89, 0, 0,
- 0, 0, 90, 0, 91, 92, 93, 94, 70, 0,
- 26, 2, 3, 4, 5, 0, 0, 0, 0, 0,
- 0, 0, 11, 12, 13, 0, 14, 69, 16, 0,
- 17, 0, 33, 0, 0, 0, 0, 89, 0, 34,
- 35, 36, 37, 38, 91, 0, 93, 0, 70, 71,
- 26, 43, 44, 0, 0, 0, 0, 45, 0, 0,
- 0, 46, 109, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 33, 0, 0, 0, 0, 0, 0, 34,
- 35, 36, 37, 38, 0, 0, 0, 0, 0, 71,
- 0, 43, 44, 2, 3, 4, 5, 45, 0, 0,
- 0, 46, 0, 0, 11, 12, 13, 0, 14, 69,
- 16, 0, 17, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 2, 67, 45, 3, 4, 5, 46, 6,
+ 7, 8, 9, 10, 0, 11, 12, 13, 0, 14,
+ 15, 16, 0, 17, 0, 18, 0, 0, 0, 19,
+ 0, 20, 21, 22, 0, 0, 0, 0, 0, 0,
+ 0, 24, 25, 26, 0, 0, 0, 27, 0, 0,
+ 0, 0, 0, 30, 31, 0, 32, 0, 0, 0,
+ 0, 0, 0, 0, 0, 33, 0, 0, 0, 0,
+ 0, 0, 34, 35, 36, 37, 38, 0, 0, 39,
+ 40, 0, 42, 0, 43, 44, 0, 0, 2, 67,
+ 45, 3, 4, 5, 46, 6, 7, 8, 9, 10,
+ 0, 11, 12, 13, 0, 14, 15, 16, 0, 17,
+ 0, 18, 0, 0, 0, 19, 0, 20, 21, 22,
+ 0, 0, 0, 0, 0, 0, 0, 24, 25, 26,
+ 0, 0, 0, 27, 0, 0, 0, 0, 0, 30,
+ 31, 0, 32, 0, 0, 0, 0, 0, 0, 0,
+ 0, 33, 0, 0, 0, 0, 0, 0, 34, 35,
+ 36, 37, 38, 0, 0, 39, 40, 0, 42, 0,
+ 43, 44, 0, 0, 2, 0, 45, 3, 4, 5,
+ 46, 6, 7, 8, 9, 10, 0, 11, 12, 13,
+ 0, 14, 15, 16, 243, 17, 0, 18, 0, 0,
+ 0, 19, 0, 20, 21, 136, 137, 0, 0, 138,
+ 139, 140, 141, 24, 142, 26, 0, 143, 144, 145,
+ 0, 0, 0, 0, 0, 30, 31, 0, 32, 0,
+ 0, 146, 147, 148, 149, 150, 0, 33, 0, 0,
+ 151, 152, 0, 0, 34, 35, 36, 37, 38, 0,
+ 0, 0, 40, 0, 42, 2, 43, 44, 3, 4,
+ 5, 0, 45, 0, 0, 0, 46, 0, 11, 12,
+ 13, 0, 14, 69, 16, 0, 17, 0, 0, 0,
+ 0, 0, 0, 89, 0, 0, 0, 0, 90, 0,
+ 91, 92, 93, 94, 70, 2, 26, 0, 3, 4,
+ 5, 0, 0, 0, 0, 0, 0, 0, 11, 12,
+ 13, 0, 14, 69, 16, 0, 17, 0, 33, 0,
+ 0, 0, 0, 89, 0, 34, 35, 36, 37, 38,
+ 91, 0, 93, 0, 70, 71, 26, 43, 44, 0,
+ 0, 0, 0, 45, 0, 0, 0, 46, 109, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 33, 0,
+ 0, 0, 0, 0, 0, 34, 35, 36, 37, 38,
+ 0, 0, 0, 0, 0, 71, 2, 43, 44, 3,
+ 4, 5, 0, 45, 0, 0, 0, 46, 0, 11,
+ 12, 13, 0, 14, 69, 16, 0, 17, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 70, 0, 26, 2, 3, 4, 5, 0, 0, 0,
- 0, 0, 0, 0, 11, 12, 13, 0, 14, 69,
- 16, 0, 17, 0, 33, 0, 0, 0, 0, 0,
- 0, 34, 35, 36, 37, 38, 0, 0, 0, 0,
- 70, 71, 26, 43, 44, 0, 0, 0, 0, 45,
- 0, 0, 0, 46, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 33, 0, 0, 0, 0, 0,
- 0, 34, 35, 36, 37, 38, 0, 0, 0, 0,
- 0, 71, 0, 43, 44, 2, 3, 4, 5, 75,
- 0, 0, 0, 46, 0, 0, 11, 12, 13, 0,
- 14, 69, 16, 0, 17, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 70, 2, 26, 0, 3,
+ 4, 5, 0, 0, 0, 0, 0, 0, 0, 11,
+ 12, 13, 0, 14, 69, 16, 0, 17, 0, 33,
+ 0, 0, 0, 0, 0, 0, 34, 35, 36, 37,
+ 38, 0, 0, 0, 0, 70, 71, 26, 43, 44,
+ 0, 0, 0, 0, 45, 0, 0, 0, 46, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 33,
+ 0, 0, 0, 0, 0, 0, 34, 35, 36, 37,
+ 38, 0, 0, 0, 0, 0, 71, 2, 43, 44,
+ 3, 4, 5, 0, 75, 0, 0, 0, 46, 0,
+ 11, 12, 13, 0, 14, 69, 16, 0, 17, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 70, 2, 26, 0,
+ 3, 4, 5, 0, 0, 0, 0, 0, 0, 0,
+ 11, 12, 13, 0, 14, 69, 16, 0, 17, 0,
+ 33, 0, 0, 0, 0, 0, 0, 34, 35, 36,
+ 37, 38, 0, 0, 0, 0, 70, 71, 26, 43,
+ 44, 0, 0, 0, 0, 80, 0, 0, 0, 46,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 70, 0, 26, 2, 3, 4, 5, 0,
- 0, 0, 0, 0, 0, 0, 11, 12, 13, 0,
- 14, 69, 16, 0, 17, 0, 33, 0, 0, 0,
- 0, 0, 0, 34, 35, 36, 37, 38, 0, 0,
- 0, 0, 70, 71, 26, 43, 44, 0, 0, 0,
- 0, 80, 0, 0, 0, 46, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 33, 0, 0, 170,
- 0, 0, 0, 34, 35, 36, 37, 38, 0, 0,
- 0, 0, 0, 71, 0, 43, 44, 0, 0, 0,
- 0, 83, 136, 137, 0, 46, 138, 139, 140, 141,
- 0, 142, 171, 172, 143, 144, 145, 185, 0, 0,
- 0, 0, 0, 0, 186, 0, 0, 0, 146, 147,
+ 33, 0, 0, 170, 0, 0, 0, 34, 35, 36,
+ 37, 38, 0, 0, 0, 0, 0, 71, 0, 43,
+ 44, 0, 0, 0, 0, 83, 136, 137, 0, 46,
+ 138, 139, 140, 141, 0, 142, 171, 172, 143, 144,
+ 145, 185, 0, 0, 0, 0, 0, 0, 186, 0,
+ 0, 0, 146, 147, 148, 149, 150, 0, 0, 136,
+ 137, 151, 152, 138, 139, 140, 141, 0, 142, 0,
+ 0, 143, 144, 145, 187, 0, 0, 0, 0, 0,
+ 0, 188, 0, 0, 0, 146, 147, 148, 149, 150,
+ 0, 0, 136, 137, 151, 152, 138, 139, 140, 141,
+ 0, 142, 0, 0, 143, 144, 145, 189, 0, 0,
+ 0, 0, 0, 0, 190, 0, 0, 0, 146, 147,
148, 149, 150, 0, 0, 136, 137, 151, 152, 138,
139, 140, 141, 0, 142, 0, 0, 143, 144, 145,
- 187, 0, 0, 0, 0, 0, 0, 188, 0, 0,
+ 191, 0, 0, 0, 0, 0, 0, 192, 0, 0,
0, 146, 147, 148, 149, 150, 0, 0, 136, 137,
151, 152, 138, 139, 140, 141, 0, 142, 0, 0,
- 143, 144, 145, 189, 0, 0, 0, 0, 0, 0,
- 190, 0, 0, 0, 146, 147, 148, 149, 150, 0,
+ 143, 144, 145, 277, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 146, 147, 148, 149, 150, 0,
0, 136, 137, 151, 152, 138, 139, 140, 141, 0,
- 142, 0, 0, 143, 144, 145, 191, 0, 0, 0,
- 0, 0, 0, 192, 0, 0, 0, 146, 147, 148,
+ 142, 0, 0, 143, 144, 145, 278, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 146, 147, 148,
149, 150, 0, 0, 136, 137, 151, 152, 138, 139,
- 140, 141, 0, 142, 0, 0, 143, 144, 145, 277,
+ 140, 141, 0, 142, 0, 0, 143, 144, 145, 279,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
146, 147, 148, 149, 150, 0, 0, 136, 137, 151,
152, 138, 139, 140, 141, 0, 142, 0, 0, 143,
- 144, 145, 278, 0, 0, 0, 0, 0, 0, 0,
+ 144, 145, 280, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 146, 147, 148, 149, 150, 0, 0,
136, 137, 151, 152, 138, 139, 140, 141, 0, 142,
- 0, 0, 143, 144, 145, 279, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 146, 147, 148, 149,
+ 0, 0, 143, 144, 145, 0, 0, 0, 0, 0,
+ 204, 205, 0, 0, 0, 0, 146, 147, 148, 149,
150, 0, 0, 136, 137, 151, 152, 138, 139, 140,
- 141, 0, 142, 0, 0, 143, 144, 145, 280, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 146,
+ 141, 0, 142, 0, 0, 143, 144, 145, 0, 0,
+ 0, 0, 0, 349, 205, 0, 0, 0, 0, 146,
147, 148, 149, 150, 0, 0, 136, 137, 151, 152,
138, 139, 140, 141, 0, 142, 0, 0, 143, 144,
- 145, 0, 0, 0, 0, 0, 204, 205, 0, 0,
+ 145, 0, 0, 0, 0, 0, 345, 0, 0, 0,
0, 0, 146, 147, 148, 149, 150, 0, 0, 136,
137, 151, 152, 138, 139, 140, 141, 0, 142, 0,
- 0, 143, 144, 145, 0, 0, 0, 0, 0, 349,
- 205, 0, 0, 0, 0, 146, 147, 148, 149, 150,
+ 0, 143, 144, 145, 0, 0, 0, 0, 0, 0,
+ 0, 208, 0, 0, 0, 146, 147, 148, 149, 150,
0, 0, 136, 137, 151, 152, 138, 139, 140, 141,
0, 142, 0, 0, 143, 144, 145, 0, 0, 0,
- 0, 0, 345, 0, 0, 0, 0, 0, 146, 147,
- 148, 149, 150, 0, 0, 136, 137, 151, 152, 138,
+ 0, 0, 0, 0, 0, 0, 182, 0, 146, 147,
+ 148, 149, 150, 0, 67, 136, 137, 151, 152, 138,
139, 140, 141, 0, 142, 0, 0, 143, 144, 145,
- 0, 0, 0, 0, 0, 0, 0, 208, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 146, 147, 148, 149, 150, 0, 0, 136, 137,
151, 152, 138, 139, 140, 141, 0, 142, 0, 0,
- 143, 144, 145, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 182, 0, 146, 147, 148, 149, 150, 0,
- 67, 136, 137, 151, 152, 138, 139, 140, 141, 0,
+ 143, 144, 145, 0, 0, 0, 0, 0, 193, 194,
+ 0, 0, 0, 0, 146, 147, 148, 149, 150, 0,
+ 0, 136, 137, 151, 152, 138, 139, 140, 141, 0,
142, 0, 0, 143, 144, 145, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 146, 147, 148,
- 149, 150, 0, 0, 136, 137, 151, 152, 138, 139,
- 140, 141, 0, 142, 0, 0, 143, 144, 145, 0,
- 0, 0, 0, 0, 193, 194, 0, 0, 0, 0,
- 146, 147, 148, 149, 150, 0, 0, 136, 137, 151,
- 152, 138, 139, 140, 141, 0, 142, 0, 0, 143,
- 144, 145, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 146, 147, 148, 149, 150, 0, 0,
- 0, 197, 151, 152, 136, 137, 0, 0, 138, 139,
- 140, 141, 0, 142, 0, 0, 143, 144, 145, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 146, 147, 148, 149, 150, 0, 0, 0, 0, 151,
- 152
+ 149, 150, 0, 0, 0, 197, 151, 152, 136, 137,
+ 0, 0, 138, 139, 140, 141, 0, 142, 0, 0,
+ 143, 144, 145, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 146, 147, 148, 149, 150, 0,
+ 0, 0, 0, 151, 152
};
static const yytype_int16 yycheck[] =
{
- 0, 4, 77, 32, 7, 8, 9, 56, 0, 12,
- 13, 14, 15, 31, 46, 36, 1, 13, 21, 15,
- 300, 24, 304, 56, 57, 100, 101, 30, 31, 58,
- 33, 34, 35, 36, 37, 38, 34, 58, 320, 97,
- 43, 44, 45, 46, 74, 54, 78, 77, 13, 14,
- 53, 331, 55, 85, 57, 235, 54, 103, 104, 54,
- 69, 65, 47, 28, 94, 95, 246, 70, 99, 97,
- 100, 101, 75, 104, 69, 78, 104, 80, 96, 75,
- 83, 315, 85, 45, 80, 47, 89, 321, 91, 65,
- 66, 28, 110, 69, 70, 50, 206, 28, 74, 209,
- 103, 77, 78, 79, 28, 97, 99, 28, 99, 99,
- 28, 104, 28, 104, 104, 91, 92, 93, 94, 95,
- 28, 99, 27, 28, 100, 101, 104, 291, 292, 132,
- 130, 28, 28, 136, 137, 138, 139, 140, 141, 142,
+ 0, 4, 0, 34, 7, 8, 9, 56, 31, 12,
+ 13, 14, 15, 300, 46, 79, 1, 13, 21, 15,
+ 304, 24, 99, 38, 58, 59, 52, 30, 31, 60,
+ 33, 34, 35, 36, 37, 38, 320, 36, 102, 103,
+ 43, 44, 45, 46, 331, 60, 78, 235, 15, 16,
+ 53, 56, 55, 85, 57, 56, 30, 56, 246, 315,
+ 30, 65, 47, 30, 99, 321, 71, 70, 105, 106,
+ 71, 106, 75, 96, 30, 78, 101, 80, 100, 75,
+ 83, 106, 85, 30, 80, 101, 89, 110, 91, 76,
+ 106, 30, 79, 101, 30, 47, 206, 49, 106, 209,
+ 103, 99, 29, 30, 291, 292, 93, 94, 95, 96,
+ 97, 30, 101, 101, 30, 102, 103, 106, 106, 30,
+ 71, 100, 106, 106, 47, 30, 54, 30, 106, 132,
+ 130, 106, 30, 136, 137, 138, 139, 140, 141, 142,
143, 144, 145, 146, 147, 148, 149, 150, 151, 152,
- 135, 154, 98, 98, 69, 158, 104, 104, 45, 28,
- 52, 104, 104, 28, 167, 169, 28, 28, 171, 172,
- 104, 174, 175, 28, 69, 178, 179, 181, 28, 182,
- 290, 32, 185, 186, 187, 188, 189, 190, 191, 192,
- 193, 194, 28, 303, 74, 104, 199, 77, 308, 309,
- 204, 311, 54, 32, 28, 208, 74, 28, 36, 77,
- 58, 91, 92, 93, 94, 95, 32, 327, 267, 32,
- 100, 101, 104, 32, 92, 93, 94, 95, 28, 261,
- 202, 203, 100, 101, 32, 337, 130, 300, 320, 242,
- 243, 170, 31, 228, 103, -1, -1, -1, 358, 359,
+ 135, 154, 106, 30, 71, 158, 30, 30, 34, 30,
+ 106, 56, 34, 30, 167, 169, 30, 60, 171, 172,
+ 38, 174, 175, 34, 34, 178, 179, 181, 34, 182,
+ 290, 106, 185, 186, 187, 188, 189, 190, 191, 192,
+ 193, 194, 30, 303, 76, 34, 199, 79, 308, 309,
+ 204, 311, 337, 300, 130, 208, 76, 320, 170, 79,
+ 31, 103, 94, 95, 96, 97, -1, 327, 267, -1,
+ 102, 103, -1, -1, -1, -1, 96, 97, -1, 261,
+ 202, 203, 102, 103, -1, -1, -1, -1, -1, 242,
+ 243, -1, -1, 228, -1, -1, -1, -1, 358, 359,
-1, -1, -1, -1, -1, -1, -1, -1, 261, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 318,
-1, -1, -1, -1, 277, 278, 279, 280, -1, -1,
@@ -1157,293 +974,282 @@ static const yytype_int16 yycheck[] =
323, -1, -1, -1, -1, -1, -1, 299, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 310, 343,
-1, 345, -1, 315, -1, 349, 350, 319, 320, -1,
- -1, -1, -1, -1, -1, -1, 328, 357, 358, -1,
- -1, 333, -1, -1, -1, -1, -1, -1, 340, -1,
- 342, -1, 344, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, 0, 1, -1, -1, -1, -1, -1, -1,
- -1, 363, 364, 365, 12, 13, 14, 15, -1, 17,
- 18, 19, 20, 21, -1, 23, 24, 25, -1, 27,
- 28, 29, -1, 31, -1, 33, -1, -1, -1, 37,
- -1, 39, 40, 41, -1, -1, 44, -1, -1, -1,
- -1, 49, 50, 51, -1, -1, -1, 55, -1, -1,
- -1, 59, 60, 61, 62, -1, 64, -1, -1, -1,
- -1, -1, -1, -1, -1, 73, -1, -1, -1, -1,
- -1, -1, 80, 81, 82, 83, 84, -1, -1, 87,
- 88, 89, 90, -1, 92, 93, -1, -1, -1, 97,
- 98, -1, -1, -1, 102, 12, 13, 14, 15, -1,
- 17, 18, 19, 20, 21, -1, 23, 24, 25, -1,
- 27, 28, 29, -1, 31, -1, 33, -1, -1, -1,
- 37, -1, 39, 40, 41, -1, -1, 44, -1, -1,
- -1, -1, 49, 50, 51, -1, -1, -1, 55, -1,
- -1, -1, 59, 60, 61, 62, -1, 64, -1, -1,
- -1, -1, -1, -1, -1, -1, 73, -1, -1, -1,
- -1, -1, -1, 80, 81, 82, 83, 84, -1, -1,
- 87, 88, 89, 90, -1, 92, 93, -1, -1, -1,
- -1, 98, -1, -1, -1, 102, 12, 13, 14, 15,
- -1, 17, 18, 19, 20, 21, -1, 23, 24, 25,
- -1, 27, 28, 29, -1, 31, 32, 33, -1, -1,
- -1, 37, -1, 39, 40, 41, -1, -1, -1, -1,
- -1, -1, -1, 49, 50, 51, -1, -1, -1, 55,
- -1, -1, -1, -1, -1, 61, 62, -1, 64, -1,
- -1, -1, -1, -1, -1, -1, -1, 73, -1, -1,
- -1, -1, -1, -1, 80, 81, 82, 83, 84, -1,
- -1, 87, 88, -1, 90, -1, 92, 93, -1, -1,
- -1, 97, 98, -1, -1, -1, 102, 12, 13, 14,
- 15, -1, 17, 18, 19, 20, 21, -1, 23, 24,
- 25, -1, 27, 28, 29, -1, 31, -1, 33, -1,
- -1, -1, 37, -1, 39, 40, 41, -1, -1, -1,
- -1, -1, -1, -1, 49, 50, 51, -1, -1, -1,
- 55, -1, -1, -1, -1, -1, 61, 62, -1, 64,
- -1, -1, -1, -1, -1, -1, -1, -1, 73, -1,
- -1, -1, -1, -1, -1, 80, 81, 82, 83, 84,
- -1, -1, 87, 88, -1, 90, -1, 92, 93, -1,
- -1, -1, 97, 98, -1, -1, -1, 102, 12, 13,
- 14, 15, -1, 17, 18, 19, 20, 21, -1, 23,
- 24, 25, -1, 27, 28, 29, -1, 31, -1, 33,
- -1, -1, -1, 37, -1, 39, 40, 41, -1, -1,
- -1, -1, -1, -1, -1, 49, 50, 51, -1, -1,
- -1, 55, -1, -1, -1, -1, -1, 61, 62, -1,
- 64, -1, -1, -1, -1, -1, -1, -1, -1, 73,
- -1, -1, -1, -1, -1, -1, 80, 81, 82, 83,
- 84, -1, -1, 87, 88, -1, 90, -1, 92, 93,
- -1, -1, -1, -1, 98, -1, -1, -1, 102, 12,
- 13, 14, 15, -1, 17, 18, 19, 20, 21, -1,
- 23, 24, 25, -1, 27, 28, 29, 54, 31, -1,
- 33, -1, -1, -1, 37, -1, 39, 40, 65, 66,
- -1, -1, 69, 70, 71, 72, 49, 74, 51, -1,
- 77, 78, 79, -1, -1, -1, -1, -1, 61, 62,
- -1, 64, -1, -1, 91, 92, 93, 94, 95, -1,
- 73, -1, -1, 100, 101, -1, -1, 80, 81, 82,
- 83, 84, -1, -1, -1, 88, -1, 90, -1, 92,
- 93, 12, 13, 14, 15, 98, -1, -1, -1, 102,
- -1, -1, 23, 24, 25, -1, 27, 28, 29, -1,
- 31, -1, -1, -1, -1, -1, -1, 38, -1, -1,
- -1, -1, 43, -1, 45, 46, 47, 48, 49, -1,
- 51, 12, 13, 14, 15, -1, -1, -1, -1, -1,
- -1, -1, 23, 24, 25, -1, 27, 28, 29, -1,
- 31, -1, 73, -1, -1, -1, -1, 38, -1, 80,
- 81, 82, 83, 84, 45, -1, 47, -1, 49, 90,
- 51, 92, 93, -1, -1, -1, -1, 98, -1, -1,
- -1, 102, 63, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, 73, -1, -1, -1, -1, -1, -1, 80,
- 81, 82, 83, 84, -1, -1, -1, -1, -1, 90,
- -1, 92, 93, 12, 13, 14, 15, 98, -1, -1,
- -1, 102, -1, -1, 23, 24, 25, -1, 27, 28,
- 29, -1, 31, -1, -1, -1, -1, -1, -1, -1,
+ 67, 68, -1, -1, 71, 72, 328, 357, 358, 76,
+ -1, 333, 79, 80, 81, -1, -1, -1, 340, -1,
+ 342, -1, 344, -1, -1, -1, 93, 94, 95, 96,
+ 97, -1, 0, 1, -1, 102, 103, -1, -1, -1,
+ -1, 363, 364, 365, 12, -1, -1, 15, 16, 17,
+ -1, 19, 20, 21, 22, 23, -1, 25, 26, 27,
+ -1, 29, 30, 31, -1, 33, -1, 35, -1, -1,
+ -1, 39, -1, 41, 42, 43, -1, -1, 46, -1,
+ -1, -1, -1, 51, 52, 53, -1, -1, -1, 57,
+ -1, -1, -1, 61, 62, 63, 64, -1, 66, -1,
+ -1, -1, -1, -1, -1, -1, -1, 75, -1, -1,
+ -1, -1, -1, -1, 82, 83, 84, 85, 86, -1,
+ -1, 89, 90, 91, 92, -1, 94, 95, -1, -1,
+ 12, 99, 100, 15, 16, 17, 104, 19, 20, 21,
+ 22, 23, -1, 25, 26, 27, -1, 29, 30, 31,
+ -1, 33, -1, 35, -1, -1, -1, 39, -1, 41,
+ 42, 43, -1, -1, 46, -1, -1, -1, -1, 51,
+ 52, 53, -1, -1, -1, 57, -1, -1, -1, 61,
+ 62, 63, 64, -1, 66, -1, -1, -1, -1, -1,
+ -1, -1, -1, 75, -1, -1, -1, -1, -1, -1,
+ 82, 83, 84, 85, 86, -1, -1, 89, 90, 91,
+ 92, -1, 94, 95, -1, -1, 12, -1, 100, 15,
+ 16, 17, 104, 19, 20, 21, 22, 23, -1, 25,
+ 26, 27, -1, 29, 30, 31, -1, 33, 34, 35,
+ -1, -1, -1, 39, -1, 41, 42, 43, -1, -1,
+ -1, -1, -1, -1, -1, 51, 52, 53, -1, -1,
+ -1, 57, -1, -1, -1, -1, -1, 63, 64, -1,
+ 66, -1, -1, -1, -1, -1, -1, -1, -1, 75,
+ -1, -1, -1, -1, -1, -1, 82, 83, 84, 85,
+ 86, -1, -1, 89, 90, -1, 92, -1, 94, 95,
+ -1, -1, 12, 99, 100, 15, 16, 17, 104, 19,
+ 20, 21, 22, 23, -1, 25, 26, 27, -1, 29,
+ 30, 31, -1, 33, -1, 35, -1, -1, -1, 39,
+ -1, 41, 42, 43, -1, -1, -1, -1, -1, -1,
+ -1, 51, 52, 53, -1, -1, -1, 57, -1, -1,
+ -1, -1, -1, 63, 64, -1, 66, -1, -1, -1,
+ -1, -1, -1, -1, -1, 75, -1, -1, -1, -1,
+ -1, -1, 82, 83, 84, 85, 86, -1, -1, 89,
+ 90, -1, 92, -1, 94, 95, -1, -1, 12, 99,
+ 100, 15, 16, 17, 104, 19, 20, 21, 22, 23,
+ -1, 25, 26, 27, -1, 29, 30, 31, -1, 33,
+ -1, 35, -1, -1, -1, 39, -1, 41, 42, 43,
+ -1, -1, -1, -1, -1, -1, -1, 51, 52, 53,
+ -1, -1, -1, 57, -1, -1, -1, -1, -1, 63,
+ 64, -1, 66, -1, -1, -1, -1, -1, -1, -1,
+ -1, 75, -1, -1, -1, -1, -1, -1, 82, 83,
+ 84, 85, 86, -1, -1, 89, 90, -1, 92, -1,
+ 94, 95, -1, -1, 12, -1, 100, 15, 16, 17,
+ 104, 19, 20, 21, 22, 23, -1, 25, 26, 27,
+ -1, 29, 30, 31, 56, 33, -1, 35, -1, -1,
+ -1, 39, -1, 41, 42, 67, 68, -1, -1, 71,
+ 72, 73, 74, 51, 76, 53, -1, 79, 80, 81,
+ -1, -1, -1, -1, -1, 63, 64, -1, 66, -1,
+ -1, 93, 94, 95, 96, 97, -1, 75, -1, -1,
+ 102, 103, -1, -1, 82, 83, 84, 85, 86, -1,
+ -1, -1, 90, -1, 92, 12, 94, 95, 15, 16,
+ 17, -1, 100, -1, -1, -1, 104, -1, 25, 26,
+ 27, -1, 29, 30, 31, -1, 33, -1, -1, -1,
+ -1, -1, -1, 40, -1, -1, -1, -1, 45, -1,
+ 47, 48, 49, 50, 51, 12, 53, -1, 15, 16,
+ 17, -1, -1, -1, -1, -1, -1, -1, 25, 26,
+ 27, -1, 29, 30, 31, -1, 33, -1, 75, -1,
+ -1, -1, -1, 40, -1, 82, 83, 84, 85, 86,
+ 47, -1, 49, -1, 51, 92, 53, 94, 95, -1,
+ -1, -1, -1, 100, -1, -1, -1, 104, 65, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 75, -1,
+ -1, -1, -1, -1, -1, 82, 83, 84, 85, 86,
+ -1, -1, -1, -1, -1, 92, 12, 94, 95, 15,
+ 16, 17, -1, 100, -1, -1, -1, 104, -1, 25,
+ 26, 27, -1, 29, 30, 31, -1, 33, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 51, 12, 53, -1, 15,
+ 16, 17, -1, -1, -1, -1, -1, -1, -1, 25,
+ 26, 27, -1, 29, 30, 31, -1, 33, -1, 75,
+ -1, -1, -1, -1, -1, -1, 82, 83, 84, 85,
+ 86, -1, -1, -1, -1, 51, 92, 53, 94, 95,
+ -1, -1, -1, -1, 100, -1, -1, -1, 104, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 75,
+ -1, -1, -1, -1, -1, -1, 82, 83, 84, 85,
+ 86, -1, -1, -1, -1, -1, 92, 12, 94, 95,
+ 15, 16, 17, -1, 100, -1, -1, -1, 104, -1,
+ 25, 26, 27, -1, 29, 30, 31, -1, 33, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 49, -1, 51, 12, 13, 14, 15, -1, -1, -1,
- -1, -1, -1, -1, 23, 24, 25, -1, 27, 28,
- 29, -1, 31, -1, 73, -1, -1, -1, -1, -1,
- -1, 80, 81, 82, 83, 84, -1, -1, -1, -1,
- 49, 90, 51, 92, 93, -1, -1, -1, -1, 98,
- -1, -1, -1, 102, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, 73, -1, -1, -1, -1, -1,
- -1, 80, 81, 82, 83, 84, -1, -1, -1, -1,
- -1, 90, -1, 92, 93, 12, 13, 14, 15, 98,
- -1, -1, -1, 102, -1, -1, 23, 24, 25, -1,
- 27, 28, 29, -1, 31, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 51, 12, 53, -1,
+ 15, 16, 17, -1, -1, -1, -1, -1, -1, -1,
+ 25, 26, 27, -1, 29, 30, 31, -1, 33, -1,
+ 75, -1, -1, -1, -1, -1, -1, 82, 83, 84,
+ 85, 86, -1, -1, -1, -1, 51, 92, 53, 94,
+ 95, -1, -1, -1, -1, 100, -1, -1, -1, 104,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, 49, -1, 51, 12, 13, 14, 15, -1,
- -1, -1, -1, -1, -1, -1, 23, 24, 25, -1,
- 27, 28, 29, -1, 31, -1, 73, -1, -1, -1,
- -1, -1, -1, 80, 81, 82, 83, 84, -1, -1,
- -1, -1, 49, 90, 51, 92, 93, -1, -1, -1,
- -1, 98, -1, -1, -1, 102, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, 73, -1, -1, 42,
- -1, -1, -1, 80, 81, 82, 83, 84, -1, -1,
- -1, -1, -1, 90, -1, 92, 93, -1, -1, -1,
- -1, 98, 65, 66, -1, 102, 69, 70, 71, 72,
- -1, 74, 75, 76, 77, 78, 79, 47, -1, -1,
- -1, -1, -1, -1, 54, -1, -1, -1, 91, 92,
- 93, 94, 95, -1, -1, 65, 66, 100, 101, 69,
- 70, 71, 72, -1, 74, -1, -1, 77, 78, 79,
- 47, -1, -1, -1, -1, -1, -1, 54, -1, -1,
- -1, 91, 92, 93, 94, 95, -1, -1, 65, 66,
- 100, 101, 69, 70, 71, 72, -1, 74, -1, -1,
- 77, 78, 79, 47, -1, -1, -1, -1, -1, -1,
- 54, -1, -1, -1, 91, 92, 93, 94, 95, -1,
- -1, 65, 66, 100, 101, 69, 70, 71, 72, -1,
- 74, -1, -1, 77, 78, 79, 47, -1, -1, -1,
- -1, -1, -1, 54, -1, -1, -1, 91, 92, 93,
- 94, 95, -1, -1, 65, 66, 100, 101, 69, 70,
- 71, 72, -1, 74, -1, -1, 77, 78, 79, 47,
+ 75, -1, -1, 44, -1, -1, -1, 82, 83, 84,
+ 85, 86, -1, -1, -1, -1, -1, 92, -1, 94,
+ 95, -1, -1, -1, -1, 100, 67, 68, -1, 104,
+ 71, 72, 73, 74, -1, 76, 77, 78, 79, 80,
+ 81, 49, -1, -1, -1, -1, -1, -1, 56, -1,
+ -1, -1, 93, 94, 95, 96, 97, -1, -1, 67,
+ 68, 102, 103, 71, 72, 73, 74, -1, 76, -1,
+ -1, 79, 80, 81, 49, -1, -1, -1, -1, -1,
+ -1, 56, -1, -1, -1, 93, 94, 95, 96, 97,
+ -1, -1, 67, 68, 102, 103, 71, 72, 73, 74,
+ -1, 76, -1, -1, 79, 80, 81, 49, -1, -1,
+ -1, -1, -1, -1, 56, -1, -1, -1, 93, 94,
+ 95, 96, 97, -1, -1, 67, 68, 102, 103, 71,
+ 72, 73, 74, -1, 76, -1, -1, 79, 80, 81,
+ 49, -1, -1, -1, -1, -1, -1, 56, -1, -1,
+ -1, 93, 94, 95, 96, 97, -1, -1, 67, 68,
+ 102, 103, 71, 72, 73, 74, -1, 76, -1, -1,
+ 79, 80, 81, 49, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 93, 94, 95, 96, 97, -1,
+ -1, 67, 68, 102, 103, 71, 72, 73, 74, -1,
+ 76, -1, -1, 79, 80, 81, 49, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 93, 94, 95,
+ 96, 97, -1, -1, 67, 68, 102, 103, 71, 72,
+ 73, 74, -1, 76, -1, -1, 79, 80, 81, 49,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 91, 92, 93, 94, 95, -1, -1, 65, 66, 100,
- 101, 69, 70, 71, 72, -1, 74, -1, -1, 77,
- 78, 79, 47, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 91, 92, 93, 94, 95, -1, -1,
- 65, 66, 100, 101, 69, 70, 71, 72, -1, 74,
- -1, -1, 77, 78, 79, 47, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, 91, 92, 93, 94,
- 95, -1, -1, 65, 66, 100, 101, 69, 70, 71,
- 72, -1, 74, -1, -1, 77, 78, 79, 47, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, 91,
- 92, 93, 94, 95, -1, -1, 65, 66, 100, 101,
- 69, 70, 71, 72, -1, 74, -1, -1, 77, 78,
- 79, -1, -1, -1, -1, -1, 52, 53, -1, -1,
- -1, -1, 91, 92, 93, 94, 95, -1, -1, 65,
- 66, 100, 101, 69, 70, 71, 72, -1, 74, -1,
- -1, 77, 78, 79, -1, -1, -1, -1, -1, 52,
- 53, -1, -1, -1, -1, 91, 92, 93, 94, 95,
- -1, -1, 65, 66, 100, 101, 69, 70, 71, 72,
- -1, 74, -1, -1, 77, 78, 79, -1, -1, -1,
- -1, -1, 52, -1, -1, -1, -1, -1, 91, 92,
- 93, 94, 95, -1, -1, 65, 66, 100, 101, 69,
- 70, 71, 72, -1, 74, -1, -1, 77, 78, 79,
- -1, -1, -1, -1, -1, -1, -1, 54, -1, -1,
- -1, 91, 92, 93, 94, 95, -1, -1, 65, 66,
- 100, 101, 69, 70, 71, 72, -1, 74, -1, -1,
- 77, 78, 79, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, 56, -1, 91, 92, 93, 94, 95, -1,
- 97, 65, 66, 100, 101, 69, 70, 71, 72, -1,
- 74, -1, -1, 77, 78, 79, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, 91, 92, 93,
- 94, 95, -1, -1, 65, 66, 100, 101, 69, 70,
- 71, 72, -1, 74, -1, -1, 77, 78, 79, -1,
- -1, -1, -1, -1, 85, 86, -1, -1, -1, -1,
- 91, 92, 93, 94, 95, -1, -1, 65, 66, 100,
- 101, 69, 70, 71, 72, -1, 74, -1, -1, 77,
- 78, 79, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 91, 92, 93, 94, 95, -1, -1,
- -1, 99, 100, 101, 65, 66, -1, -1, 69, 70,
- 71, 72, -1, 74, -1, -1, 77, 78, 79, -1,
+ 93, 94, 95, 96, 97, -1, -1, 67, 68, 102,
+ 103, 71, 72, 73, 74, -1, 76, -1, -1, 79,
+ 80, 81, 49, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 93, 94, 95, 96, 97, -1, -1,
+ 67, 68, 102, 103, 71, 72, 73, 74, -1, 76,
+ -1, -1, 79, 80, 81, -1, -1, -1, -1, -1,
+ 54, 55, -1, -1, -1, -1, 93, 94, 95, 96,
+ 97, -1, -1, 67, 68, 102, 103, 71, 72, 73,
+ 74, -1, 76, -1, -1, 79, 80, 81, -1, -1,
+ -1, -1, -1, 54, 55, -1, -1, -1, -1, 93,
+ 94, 95, 96, 97, -1, -1, 67, 68, 102, 103,
+ 71, 72, 73, 74, -1, 76, -1, -1, 79, 80,
+ 81, -1, -1, -1, -1, -1, 54, -1, -1, -1,
+ -1, -1, 93, 94, 95, 96, 97, -1, -1, 67,
+ 68, 102, 103, 71, 72, 73, 74, -1, 76, -1,
+ -1, 79, 80, 81, -1, -1, -1, -1, -1, -1,
+ -1, 56, -1, -1, -1, 93, 94, 95, 96, 97,
+ -1, -1, 67, 68, 102, 103, 71, 72, 73, 74,
+ -1, 76, -1, -1, 79, 80, 81, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 58, -1, 93, 94,
+ 95, 96, 97, -1, 99, 67, 68, 102, 103, 71,
+ 72, 73, 74, -1, 76, -1, -1, 79, 80, 81,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 91, 92, 93, 94, 95, -1, -1, -1, -1, 100,
- 101
+ -1, 93, 94, 95, 96, 97, -1, -1, 67, 68,
+ 102, 103, 71, 72, 73, 74, -1, 76, -1, -1,
+ 79, 80, 81, -1, -1, -1, -1, -1, 87, 88,
+ -1, -1, -1, -1, 93, 94, 95, 96, 97, -1,
+ -1, 67, 68, 102, 103, 71, 72, 73, 74, -1,
+ 76, -1, -1, 79, 80, 81, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 93, 94, 95,
+ 96, 97, -1, -1, -1, 101, 102, 103, 67, 68,
+ -1, -1, 71, 72, 73, 74, -1, 76, -1, -1,
+ 79, 80, 81, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 93, 94, 95, 96, 97, -1,
+ -1, -1, -1, 102, 103
};
-/* 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, 1, 12, 13, 14, 15, 17, 18, 19, 20,
- 21, 23, 24, 25, 27, 28, 29, 31, 33, 37,
- 39, 40, 41, 44, 49, 50, 51, 55, 59, 60,
- 61, 62, 64, 73, 80, 81, 82, 83, 84, 87,
- 88, 89, 90, 92, 93, 98, 102, 106, 111, 112,
- 113, 114, 115, 121, 122, 123, 128, 129, 130, 131,
- 132, 133, 137, 140, 142, 145, 149, 97, 107, 28,
- 49, 90, 131, 131, 131, 98, 131, 151, 28, 131,
- 98, 151, 131, 98, 151, 141, 50, 28, 134, 38,
- 43, 45, 46, 47, 48, 131, 138, 139, 28, 131,
- 56, 57, 13, 14, 28, 28, 28, 28, 131, 63,
- 138, 139, 28, 136, 131, 131, 131, 131, 131, 131,
- 28, 135, 28, 98, 131, 131, 131, 131, 150, 0,
- 107, 131, 69, 131, 113, 131, 65, 66, 69, 70,
- 71, 72, 74, 77, 78, 79, 91, 92, 93, 94,
- 95, 100, 101, 125, 98, 131, 131, 151, 104, 150,
- 151, 131, 150, 150, 104, 131, 131, 45, 139, 143,
- 42, 75, 76, 28, 54, 69, 130, 131, 54, 69,
- 52, 144, 56, 139, 104, 47, 54, 47, 54, 47,
- 54, 47, 54, 85, 86, 104, 28, 99, 103, 104,
- 111, 125, 127, 131, 52, 53, 108, 126, 54, 107,
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
- 131, 131, 131, 131, 131, 131, 131, 28, 146, 99,
- 131, 99, 99, 28, 131, 125, 28, 132, 131, 131,
- 131, 131, 69, 54, 131, 131, 125, 131, 28, 131,
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 28,
- 99, 104, 131, 107, 114, 126, 126, 125, 127, 131,
- 127, 104, 107, 146, 131, 131, 146, 47, 47, 47,
- 47, 150, 32, 34, 54, 113, 126, 126, 28, 104,
- 148, 107, 107, 131, 131, 131, 131, 99, 54, 131,
- 126, 32, 58, 109, 125, 32, 28, 127, 148, 148,
- 131, 126, 36, 109, 110, 118, 119, 124, 125, 127,
- 117, 118, 120, 124, 32, 127, 127, 126, 127, 125,
- 119, 126, 131, 113, 126, 120, 126, 131, 28, 147,
- 127, 126, 113, 109, 116, 52, 126, 32, 32, 52,
- 108, 104, 126, 32, 126, 125, 126, 125, 125, 125,
- 28, 32, 113, 114, 127, 127, 126, 126, 126
+ 0, 1, 12, 15, 16, 17, 19, 20, 21, 22,
+ 23, 25, 26, 27, 29, 30, 31, 33, 35, 39,
+ 41, 42, 43, 46, 51, 52, 53, 57, 61, 62,
+ 63, 64, 66, 75, 82, 83, 84, 85, 86, 89,
+ 90, 91, 92, 94, 95, 100, 104, 108, 113, 114,
+ 115, 116, 117, 123, 124, 125, 130, 131, 132, 133,
+ 134, 135, 139, 142, 144, 147, 151, 99, 109, 30,
+ 51, 92, 133, 133, 133, 100, 133, 153, 30, 133,
+ 100, 153, 133, 100, 153, 143, 52, 30, 136, 40,
+ 45, 47, 48, 49, 50, 133, 140, 141, 30, 133,
+ 58, 59, 15, 16, 30, 30, 30, 30, 133, 65,
+ 140, 141, 30, 138, 133, 133, 133, 133, 133, 133,
+ 30, 137, 30, 100, 133, 133, 133, 133, 152, 0,
+ 109, 133, 71, 133, 115, 133, 67, 68, 71, 72,
+ 73, 74, 76, 79, 80, 81, 93, 94, 95, 96,
+ 97, 102, 103, 127, 100, 133, 133, 153, 106, 152,
+ 153, 133, 152, 152, 106, 133, 133, 47, 141, 145,
+ 44, 77, 78, 30, 56, 71, 132, 133, 56, 71,
+ 54, 146, 58, 141, 106, 49, 56, 49, 56, 49,
+ 56, 49, 56, 87, 88, 106, 30, 101, 105, 106,
+ 113, 127, 129, 133, 54, 55, 110, 128, 56, 109,
+ 133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
+ 133, 133, 133, 133, 133, 133, 133, 30, 148, 101,
+ 133, 101, 101, 30, 133, 127, 30, 134, 133, 133,
+ 133, 133, 71, 56, 133, 133, 127, 133, 30, 133,
+ 133, 133, 133, 133, 133, 133, 133, 133, 133, 30,
+ 101, 106, 133, 109, 116, 128, 128, 127, 129, 133,
+ 129, 106, 109, 148, 133, 133, 148, 49, 49, 49,
+ 49, 152, 34, 36, 56, 115, 128, 128, 30, 106,
+ 150, 109, 109, 133, 133, 133, 133, 101, 56, 133,
+ 128, 34, 60, 111, 127, 34, 30, 129, 150, 150,
+ 133, 128, 38, 111, 112, 120, 121, 126, 127, 129,
+ 119, 120, 122, 126, 34, 129, 129, 128, 129, 127,
+ 121, 128, 133, 115, 128, 122, 128, 133, 30, 149,
+ 129, 128, 115, 111, 118, 54, 128, 34, 34, 54,
+ 110, 106, 128, 34, 128, 127, 128, 127, 127, 127,
+ 30, 34, 115, 116, 129, 129, 128, 128, 128
};
-#define yyerrok (yyerrstatus = 0)
-#define yyclearin (yychar = YYEMPTY)
-#define YYEMPTY (-2)
-#define YYEOF 0
-
-#define YYACCEPT goto yyacceptlab
-#define YYABORT goto yyabortlab
-#define YYERROR goto yyerrorlab
-
-
-/* Like YYERROR except do call yyerror. This remains here temporarily
- to ease the transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. */
+ /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
+static const yytype_uint8 yyr1[] =
+{
+ 0, 107, 108, 108, 108, 109, 110, 111, 112, 113,
+ 113, 113, 114, 114, 114, 114, 114, 114, 114, 114,
+ 114, 114, 115, 115, 115, 116, 116, 116, 116, 116,
+ 116, 116, 116, 117, 117, 117, 117, 117, 117, 117,
+ 118, 118, 119, 119, 120, 120, 121, 122, 122, 122,
+ 123, 124, 125, 126, 127, 128, 129, 129, 129, 130,
+ 131, 132, 132, 132, 132, 132, 133, 133, 133, 133,
+ 133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
+ 133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
+ 133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
+ 133, 133, 133, 133, 133, 133, 133, 133, 133, 134,
+ 135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
+ 135, 135, 135, 135, 135, 135, 135, 135, 135, 136,
+ 136, 137, 137, 138, 138, 139, 139, 139, 139, 139,
+ 139, 140, 140, 141, 141, 142, 142, 142, 142, 143,
+ 142, 145, 144, 144, 146, 144, 144, 144, 147, 148,
+ 148, 148, 148, 149, 149, 149, 150, 151, 152, 152,
+ 152, 153, 153
+};
-#define YYFAIL goto yyerrlab
+ /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
+static const yytype_uint8 yyr2[] =
+{
+ 0, 2, 3, 1, 2, 1, 1, 1, 1, 0,
+ 1, 1, 4, 4, 4, 4, 4, 4, 4, 4,
+ 5, 5, 1, 1, 1, 1, 1, 5, 10, 11,
+ 3, 6, 4, 6, 9, 9, 9, 10, 10, 6,
+ 0, 3, 2, 1, 2, 1, 6, 1, 6, 6,
+ 2, 3, 1, 1, 0, 0, 1, 2, 2, 3,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
+ 2, 4, 4, 1, 2, 1, 3, 3, 3, 3,
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 2,
+ 3, 3, 3, 3, 2, 2, 3, 3, 4, 4,
+ 4, 6, 4, 6, 4, 6, 4, 6, 1, 2,
+ 2, 1, 1, 2, 1, 2, 2, 2, 1, 2,
+ 2, 1, 2, 4, 4, 6, 4, 2, 3, 1,
+ 3, 1, 3, 1, 3, 2, 2, 2, 2, 3,
+ 2, 2, 1, 3, 2, 2, 2, 3, 2, 0,
+ 3, 0, 8, 2, 0, 8, 8, 6, 2, 0,
+ 1, 3, 4, 0, 1, 3, 0, 2, 0, 1,
+ 3, 1, 3
+};
-#define YYRECOVERING() (!!yyerrstatus)
-#define YYBACKUP(Token, Value) \
-do \
- if (yychar == YYEMPTY && yylen == 1) \
- { \
- yychar = (Token); \
- yylval = (Value); \
- yytoken = YYTRANSLATE (yychar); \
- YYPOPSTACK (1); \
- goto yybackup; \
- } \
- else \
- { \
- yyerror (YY_("syntax error: cannot back up")); \
- YYERROR; \
- } \
-while (YYID (0))
-
-
-#define YYTERROR 1
-#define YYERRCODE 256
-
-
-/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
- If N is 0, then set CURRENT to the empty location which ends
- the previous symbol: RHS[0] (always defined). */
-
-#define YYRHSLOC(Rhs, K) ((Rhs)[K])
-#ifndef YYLLOC_DEFAULT
-# define YYLLOC_DEFAULT(Current, Rhs, N) \
- do \
- if (YYID (N)) \
- { \
- (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
- (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
- (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
- (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
- } \
- else \
- { \
- (Current).first_line = (Current).last_line = \
- YYRHSLOC (Rhs, 0).last_line; \
- (Current).first_column = (Current).last_column = \
- YYRHSLOC (Rhs, 0).last_column; \
- } \
- while (YYID (0))
-#endif
+#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
-/* 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
+#define YYRECOVERING() (!!yyerrstatus)
+#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 (0)
+
+/* Error token number */
+#define YYTERROR 1
+#define YYERRCODE 256
-/* 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
@@ -1453,80 +1259,61 @@ while (YYID (0))
# define YYFPRINTF fprintf
# endif
-# define YYDPRINTF(Args) \
-do { \
- if (yydebug) \
- YYFPRINTF Args; \
-} while (YYID (0))
-
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
-do { \
- if (yydebug) \
- { \
- YYFPRINTF (stderr, "%s ", Title); \
- yy_symbol_print (stderr, \
- Type, Value); \
- YYFPRINTF (stderr, "\n"); \
- } \
-} while (YYID (0))
-
-
-/*--------------------------------.
-| Print this symbol on YYOUTPUT. |
-`--------------------------------*/
-
-/*ARGSUSED*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
-#else
-static void
-yy_symbol_value_print (yyoutput, yytype, yyvaluep)
- FILE *yyoutput;
- int yytype;
- YYSTYPE const * const yyvaluep;
+# define YYDPRINTF(Args) \
+do { \
+ if (yydebug) \
+ YYFPRINTF Args; \
+} while (0)
+
+/* 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, ")");
}
/*------------------------------------------------------------------.
@@ -1534,66 +1321,54 @@ 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 *bottom, yytype_int16 *top)
-#else
static void
-yy_stack_print (bottom, top)
- yytype_int16 *bottom;
- yytype_int16 *top;
-#endif
+yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
{
YYFPRINTF (stderr, "Stack now");
- for (; bottom <= top; ++bottom)
- YYFPRINTF (stderr, " %d", *bottom);
+ for (; yybottom <= yytop; yybottom++)
+ {
+ int yybot = *yybottom;
+ YYFPRINTF (stderr, " %d", yybot);
+ }
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++)
{
- fprintf (stderr, " $%d = ", yyi + 1);
- yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
- &(yyvsp[(yyi + 1) - (yynrhs)])
- );
- fprintf (stderr, "\n");
+ YYFPRINTF (stderr, " $%d = ", yyi + 1);
+ 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. */
@@ -1607,7 +1382,7 @@ int yydebug;
/* YYINITDEPTH -- initial size of the parser's stacks. */
-#ifndef YYINITDEPTH
+#ifndef YYINITDEPTH
# define YYINITDEPTH 200
#endif
@@ -1622,7 +1397,6 @@ int yydebug;
# define YYMAXDEPTH 10000
#endif
-
#if YYERROR_VERBOSE
@@ -1631,15 +1405,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++)
@@ -1655,16 +1422,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;
@@ -1694,242 +1453,245 @@ yytnamerr (char *yyres, const char *yystr)
char const *yyp = yystr;
for (;;)
- switch (*++yyp)
- {
- case '\'':
- case ',':
- goto do_not_strip_quotes;
-
- case '\\':
- if (*++yyp != '\\')
- goto do_not_strip_quotes;
- /* Fall through. */
- default:
- if (yyres)
- yyres[yyn] = *yyp;
- yyn++;
- break;
-
- case '"':
- if (yyres)
- yyres[yyn] = '\0';
- return yyn;
- }
+ switch (*++yyp)
+ {
+ case '\'':
+ case ',':
+ goto do_not_strip_quotes;
+
+ case '\\':
+ if (*++yyp != '\\')
+ goto do_not_strip_quotes;
+ else
+ goto append;
+
+ append:
+ default:
+ if (yyres)
+ yyres[yyn] = *yyp;
+ yyn++;
+ break;
+
+ case '"':
+ if (yyres)
+ yyres[yyn] = '\0';
+ return yyn;
+ }
do_not_strip_quotes: ;
}
if (! yyres)
return yystrlen (yystr);
- return yystpcpy (yyres, yystr) - yyres;
+ 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;
+
+ /* 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 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;
+
+ 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)
+ yysize = yysize1;
+ else
+ return 2;
+ }
+ }
+ }
+ }
- if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
- return 0;
- else
- {
- int yytype = YYTRANSLATE (yychar);
- YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
- YYSIZE_T yysize = yysize0;
- YYSIZE_T yysize1;
- int yysize_overflow = 0;
- enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
- char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
- int yyx;
-
-# if 0
- /* This is so xgettext sees the translatable formats that are
- constructed on the fly. */
- YY_("syntax error, unexpected %s");
- YY_("syntax error, unexpected %s, expecting %s");
- YY_("syntax error, unexpected %s, expecting %s or %s");
- YY_("syntax error, unexpected %s, expecting %s or %s or %s");
- YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
-# endif
- char *yyfmt;
- char const *yyf;
- static char const yyunexpected[] = "syntax error, unexpected %s";
- static char const yyexpecting[] = ", expecting %s";
- static char const yyor[] = " or %s";
- char yyformat[sizeof yyunexpected
- + sizeof yyexpecting - 1
- + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
- * (sizeof yyor - 1))];
- char const *yyprefix = yyexpecting;
-
- /* Start YYX at -YYN if negative to avoid negative indexes in
- YYCHECK. */
- int yyxbegin = yyn < 0 ? -yyn : 0;
-
- /* Stay within bounds of both yycheck and yytname. */
- int yychecklim = YYLAST - yyn + 1;
- int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
- int yycount = 1;
-
- yyarg[0] = yytname[yytype];
- yyfmt = yystpcpy (yyformat, yyunexpected);
-
- for (yyx = yyxbegin; yyx < yyxend; ++yyx)
- if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
- {
- if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
- {
- yycount = 1;
- yysize = yysize0;
- yyformat[sizeof yyunexpected - 1] = '\0';
- break;
- }
- yyarg[yycount++] = yytname[yyx];
- yysize1 = yysize + yytnamerr (0, yytname[yyx]);
- yysize_overflow |= (yysize1 < yysize);
- yysize = yysize1;
- yyfmt = yystpcpy (yyfmt, yyprefix);
- yyprefix = yyor;
- }
-
- yyf = YY_(yyformat);
- yysize1 = yysize + yystrlen (yyf);
- yysize_overflow |= (yysize1 < yysize);
+ 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)
yysize = yysize1;
+ else
+ return 2;
+ }
- 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;
+ 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 look-ahead symbol. */
+/* The lookahead symbol. */
int yychar;
-/* The semantic value of the look-ahead symbol. */
+/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
-
/* Number of syntax errors so far. */
int yynerrs;
-
/*----------.
| yyparse. |
`----------*/
-#ifdef YYPARSE_PARAM
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-int
-yyparse (void *YYPARSE_PARAM)
-#else
-int
-yyparse (YYPARSE_PARAM)
- void *YYPARSE_PARAM;
-#endif
-#else /* ! YYPARSE_PARAM */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
int
yyparse (void)
-#else
-int
-yyparse ()
-
-#endif
-#endif
{
-
- int yystate;
+ int 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.
+
+ Refer to the stacks through separate pointers, to allow yyoverflow
+ to reallocate them elsewhere. */
+
+ /* The state stack. */
+ yytype_int16 yyssa[YYINITDEPTH];
+ yytype_int16 *yyss;
+ yytype_int16 *yyssp;
+
+ /* The semantic value stack. */
+ YYSTYPE yyvsa[YYINITDEPTH];
+ YYSTYPE *yyvs;
+ YYSTYPE *yyvsp;
+
+ YYSIZE_T yystacksize;
+
int yyn;
int yyresult;
- /* Number of tokens to shift before error messages enabled. */
- int yyerrstatus;
- /* Look-ahead token as an internal (translated) token number. */
+ /* Lookahead token as an internal (translated) token number. */
int yytoken = 0;
+ /* The variables used to return semantic value and location from the
+ action routines. */
+ YYSTYPE yyval;
+
#if YYERROR_VERBOSE
/* Buffer for error messages, and its allocated size. */
char yymsgbuf[128];
@@ -1937,156 +1699,127 @@ yyparse ()
YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif
- /* Three stacks and their tools:
- `yyss': related to states,
- `yyvs': related to semantic values,
- `yyls': related to locations.
-
- Refer to the stacks thru separate pointers, to allow yyoverflow
- to reallocate them elsewhere. */
-
- /* The state stack. */
- yytype_int16 yyssa[YYINITDEPTH];
- yytype_int16 *yyss = yyssa;
- yytype_int16 *yyssp;
-
- /* The semantic value stack. */
- YYSTYPE yyvsa[YYINITDEPTH];
- YYSTYPE *yyvs = yyvsa;
- YYSTYPE *yyvsp;
-
-
-
#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
- YYSIZE_T yystacksize = YYINITDEPTH;
-
- /* The variables used to return semantic value and location from the
- action routines. */
- YYSTYPE yyval;
-
-
/* The number of symbols on the RHS of the reduced rule.
Keep to zero when no symbol should be popped. */
int yylen = 0;
+ yyssp = yyss = yyssa;
+ yyvsp = yyvs = yyvsa;
+ yystacksize = YYINITDEPTH;
+
YYDPRINTF ((stderr, "Starting parse\n"));
yystate = 0;
yyerrstatus = 0;
yynerrs = 0;
- yychar = YYEMPTY; /* Cause a token to be read. */
-
- /* Initialize stack pointers.
- Waste one element of value and location stack
- so that they stay on the same level as the state stack.
- The wasted elements are never initialized. */
-
- yyssp = yyss;
- yyvsp = yyvs;
-
+ yychar = YYEMPTY; /* Cause a token to be read. */
goto yysetstate;
+
/*------------------------------------------------------------.
-| yynewstate -- Push a new state, which is found in yystate. |
+| yynewstate -- push a new state, which is found in yystate. |
`------------------------------------------------------------*/
- yynewstate:
+yynewstate:
/* In all cases, when you get here, the value and location stacks
have just been pushed. So pushing a state here evens the stacks. */
yyssp++;
- yysetstate:
- *yyssp = yystate;
+
+/*--------------------------------------------------------------------.
+| yynewstate -- set current state (the top of the stack) to yystate. |
+`--------------------------------------------------------------------*/
+yysetstate:
+ YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+ YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
+ *yyssp = (yytype_int16) yystate;
if (yyss + yystacksize - 1 <= yyssp)
+#if !defined yyoverflow && !defined YYSTACK_RELOCATE
+ goto yyexhaustedlab;
+#else
{
/* 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
+# if defined yyoverflow
{
- /* Give user a chance to reallocate the stack. Use copies of
- these so that the &'s don't force the real ones into
- memory. */
- YYSTYPE *yyvs1 = yyvs;
- yytype_int16 *yyss1 = yyss;
-
-
- /* Each stack pointer address is followed by the size of the
- data in use in that stack, in bytes. This used to be a
- conditional around just the two extra args, but that might
- be undefined if yyoverflow is a macro. */
- yyoverflow (YY_("memory exhausted"),
- &yyss1, yysize * sizeof (*yyssp),
- &yyvs1, yysize * sizeof (*yyvsp),
-
- &yystacksize);
-
- yyss = yyss1;
- yyvs = yyvs1;
+ /* Give user a chance to reallocate the stack. Use copies of
+ these so that the &'s don't force the real ones into
+ memory. */
+ YYSTYPE *yyvs1 = yyvs;
+ yytype_int16 *yyss1 = yyss;
+
+ /* Each stack pointer address is followed by the size of the
+ data in use in that stack, in bytes. This used to be a
+ conditional around just the two extra args, but that might
+ be undefined if yyoverflow is a macro. */
+ yyoverflow (YY_("memory exhausted"),
+ &yyss1, yysize * sizeof (*yyssp),
+ &yyvs1, yysize * sizeof (*yyvsp),
+ &yystacksize);
+ yyss = yyss1;
+ yyvs = yyvs1;
}
-#else /* no yyoverflow */
-# ifndef YYSTACK_RELOCATE
- goto yyexhaustedlab;
-# else
+# else /* defined YYSTACK_RELOCATE */
/* 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);
- YYSTACK_RELOCATE (yyvs);
-
-# undef YYSTACK_RELOCATE
- if (yyss1 != yyssa)
- YYSTACK_FREE (yyss1);
+ 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);
}
# endif
-#endif /* no yyoverflow */
yyssp = yyss + yysize - 1;
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;
}
+#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
- YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+ if (yystate == YYFINAL)
+ YYACCEPT;
goto yybackup;
+
/*-----------.
| yybackup. |
`-----------*/
yybackup:
-
/* Do appropriate processing given the current state. Read a
- look-ahead token if we need one and don't already have one. */
+ lookahead token if we need one and don't already have one. */
- /* First try to decide what to do without reference to look-ahead token. */
+ /* 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 look-ahead token if don't already have one. */
+ /* Not known => get a lookahead token if don't already have one. */
- /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
+ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
if (yychar == YYEMPTY)
{
YYDPRINTF ((stderr, "Reading a token: "));
- yychar = YYLEX;
+ yychar = yylex ();
}
if (yychar <= YYEOF)
@@ -2108,30 +1841,27 @@ 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;
}
- if (yyn == YYFINAL)
- YYACCEPT;
-
/* Count tokens shifted since error; after three, turn off error
status. */
if (yyerrstatus)
yyerrstatus--;
- /* Shift the look-ahead token. */
+ /* Shift the lookahead token. */
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
- /* Discard the shifted token unless it is eof. */
- if (yychar != YYEOF)
- yychar = YYEMPTY;
+ /* Discard the shifted token. */
+ yychar = YYEMPTY;
yystate = yyn;
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval;
-
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
goto yynewstate;
@@ -2146,14 +1876,14 @@ yydefault:
/*-----------------------------.
-| yyreduce -- Do a reduction. |
+| yyreduce -- do a reduction. |
`-----------------------------*/
yyreduce:
/* yyn is the number of a rule to reduce with. */
yylen = yyr2[yyn];
/* If YYLEN is nonzero, implement the default value of the action:
- `$$ = $1'.
+ '$$ = $1'.
Otherwise, the following line sets YYVAL to garbage.
This behavior is undocumented and Bison
@@ -2166,74 +1896,84 @@ yyreduce:
YY_REDUCE_PRINT (yyn);
switch (yyn)
{
- case 4:
+ case 4:
#line 122 "engines/director/lingo/lingo-gr.y"
- { yyerrok; ;}
+ { yyerrok; }
+#line 1903 "engines/director/lingo/lingo-gr.cpp"
break;
case 5:
#line 125 "engines/director/lingo/lingo-gr.y"
{
g_lingo->_linenumber++;
- g_lingo->_colnumber = 1; ;}
+ g_lingo->_colnumber = 1; }
+#line 1911 "engines/director/lingo/lingo-gr.cpp"
break;
case 6:
#line 130 "engines/director/lingo/lingo-gr.y"
{
g_lingo->_linenumber++;
- g_lingo->_colnumber = 1; ;}
+ g_lingo->_colnumber = 1; }
+#line 1919 "engines/director/lingo/lingo-gr.cpp"
break;
case 7:
#line 135 "engines/director/lingo/lingo-gr.y"
{
g_lingo->_linenumber++;
- g_lingo->_colnumber = 5; ;}
+ g_lingo->_colnumber = 5; }
+#line 1927 "engines/director/lingo/lingo-gr.cpp"
break;
case 8:
#line 140 "engines/director/lingo/lingo-gr.y"
{
g_lingo->_linenumber++;
- g_lingo->_colnumber = 8; ;}
+ g_lingo->_colnumber = 8; }
+#line 1935 "engines/director/lingo/lingo-gr.cpp"
break;
case 12:
#line 150 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_varpush);
- g_lingo->codeString((yyvsp[(4) - (4)].s)->c_str());
+ g_lingo->codeString((yyvsp[0].s)->c_str());
g_lingo->code1(g_lingo->c_assign);
- (yyval.code) = (yyvsp[(2) - (4)].code);
- delete (yyvsp[(4) - (4)].s); ;}
+ (yyval.code) = (yyvsp[-2].code);
+ delete (yyvsp[0].s); }
+#line 1946 "engines/director/lingo/lingo-gr.cpp"
break;
case 13:
#line 156 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_assign);
- (yyval.code) = (yyvsp[(2) - (4)].code); ;}
+ (yyval.code) = (yyvsp[-2].code); }
+#line 1954 "engines/director/lingo/lingo-gr.cpp"
break;
case 14:
#line 159 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->code1(g_lingo->c_after); ;}
+ { (yyval.code) = g_lingo->code1(g_lingo->c_after); }
+#line 1960 "engines/director/lingo/lingo-gr.cpp"
break;
case 15:
#line 160 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->code1(g_lingo->c_before); ;}
+ { (yyval.code) = g_lingo->code1(g_lingo->c_before); }
+#line 1966 "engines/director/lingo/lingo-gr.cpp"
break;
case 16:
#line 161 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_varpush);
- g_lingo->codeString((yyvsp[(2) - (4)].s)->c_str());
+ g_lingo->codeString((yyvsp[-2].s)->c_str());
g_lingo->code1(g_lingo->c_assign);
- (yyval.code) = (yyvsp[(4) - (4)].code);
- delete (yyvsp[(2) - (4)].s); ;}
+ (yyval.code) = (yyvsp[0].code);
+ delete (yyvsp[-2].s); }
+#line 1977 "engines/director/lingo/lingo-gr.cpp"
break;
case 17:
@@ -2242,19 +1982,21 @@ yyreduce:
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(0); // Put dummy id
g_lingo->code1(g_lingo->c_theentityassign);
- g_lingo->codeInt((yyvsp[(2) - (4)].e)[0]);
- g_lingo->codeInt((yyvsp[(2) - (4)].e)[1]);
- (yyval.code) = (yyvsp[(4) - (4)].code); ;}
+ g_lingo->codeInt((yyvsp[-2].e)[0]);
+ g_lingo->codeInt((yyvsp[-2].e)[1]);
+ (yyval.code) = (yyvsp[0].code); }
+#line 1989 "engines/director/lingo/lingo-gr.cpp"
break;
case 18:
#line 174 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_varpush);
- g_lingo->codeString((yyvsp[(2) - (4)].s)->c_str());
+ g_lingo->codeString((yyvsp[-2].s)->c_str());
g_lingo->code1(g_lingo->c_assign);
- (yyval.code) = (yyvsp[(4) - (4)].code);
- delete (yyvsp[(2) - (4)].s); ;}
+ (yyval.code) = (yyvsp[0].code);
+ delete (yyvsp[-2].s); }
+#line 2000 "engines/director/lingo/lingo-gr.cpp"
break;
case 19:
@@ -2263,9 +2005,10 @@ yyreduce:
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(0); // Put dummy id
g_lingo->code1(g_lingo->c_theentityassign);
- g_lingo->codeInt((yyvsp[(2) - (4)].e)[0]);
- g_lingo->codeInt((yyvsp[(2) - (4)].e)[1]);
- (yyval.code) = (yyvsp[(4) - (4)].code); ;}
+ g_lingo->codeInt((yyvsp[-2].e)[0]);
+ g_lingo->codeInt((yyvsp[-2].e)[1]);
+ (yyval.code) = (yyvsp[0].code); }
+#line 2012 "engines/director/lingo/lingo-gr.cpp"
break;
case 20:
@@ -2273,9 +2016,10 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_swap);
g_lingo->code1(g_lingo->c_theentityassign);
- g_lingo->codeInt((yyvsp[(2) - (5)].e)[0]);
- g_lingo->codeInt((yyvsp[(2) - (5)].e)[1]);
- (yyval.code) = (yyvsp[(5) - (5)].code); ;}
+ g_lingo->codeInt((yyvsp[-3].e)[0]);
+ g_lingo->codeInt((yyvsp[-3].e)[1]);
+ (yyval.code) = (yyvsp[0].code); }
+#line 2023 "engines/director/lingo/lingo-gr.cpp"
break;
case 21:
@@ -2283,227 +2027,247 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_swap);
g_lingo->code1(g_lingo->c_theentityassign);
- g_lingo->codeInt((yyvsp[(2) - (5)].e)[0]);
- g_lingo->codeInt((yyvsp[(2) - (5)].e)[1]);
- (yyval.code) = (yyvsp[(5) - (5)].code); ;}
+ g_lingo->codeInt((yyvsp[-3].e)[0]);
+ g_lingo->codeInt((yyvsp[-3].e)[1]);
+ (yyval.code) = (yyvsp[0].code); }
+#line 2034 "engines/director/lingo/lingo-gr.cpp"
break;
case 27:
#line 212 "engines/director/lingo/lingo-gr.y"
{
inst body = 0, end = 0;
- WRITE_UINT32(&body, (yyvsp[(3) - (5)].code) - (yyvsp[(1) - (5)].code));
- WRITE_UINT32(&end, (yyvsp[(4) - (5)].code) - (yyvsp[(1) - (5)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (5)].code) + 1] = body; /* body of loop */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (5)].code) + 2] = end; /* end, if cond fails */
+ WRITE_UINT32(&body, (yyvsp[-2].code) - (yyvsp[-4].code));
+ WRITE_UINT32(&end, (yyvsp[-1].code) - (yyvsp[-4].code));
+ (*g_lingo->_currentScript)[(yyvsp[-4].code) + 1] = body; /* body of loop */
+ (*g_lingo->_currentScript)[(yyvsp[-4].code) + 2] = end; /* end, if cond fails */
- checkEnd((yyvsp[(5) - (5)].s), "repeat", true); ;}
+ checkEnd((yyvsp[0].s), "repeat", true); }
+#line 2047 "engines/director/lingo/lingo-gr.cpp"
break;
case 28:
#line 225 "engines/director/lingo/lingo-gr.y"
{
inst init = 0, finish = 0, body = 0, end = 0, inc = 0;
- WRITE_UINT32(&init, (yyvsp[(3) - (10)].code) - (yyvsp[(1) - (10)].code));
- WRITE_UINT32(&finish, (yyvsp[(6) - (10)].code) - (yyvsp[(1) - (10)].code));
- WRITE_UINT32(&body, (yyvsp[(8) - (10)].code) - (yyvsp[(1) - (10)].code));
- WRITE_UINT32(&end, (yyvsp[(9) - (10)].code) - (yyvsp[(1) - (10)].code));
+ WRITE_UINT32(&init, (yyvsp[-7].code) - (yyvsp[-9].code));
+ WRITE_UINT32(&finish, (yyvsp[-4].code) - (yyvsp[-9].code));
+ WRITE_UINT32(&body, (yyvsp[-2].code) - (yyvsp[-9].code));
+ WRITE_UINT32(&end, (yyvsp[-1].code) - (yyvsp[-9].code));
WRITE_UINT32(&inc, 1);
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 1] = init; /* initial count value */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 2] = finish;/* final count value */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 3] = body; /* body of loop */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 4] = inc; /* increment */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 5] = end; /* end, if cond fails */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 1] = init; /* initial count value */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 2] = finish;/* final count value */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 3] = body; /* body of loop */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 4] = inc; /* increment */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 5] = end; /* end, if cond fails */
- checkEnd((yyvsp[(10) - (10)].s), "repeat", true); ;}
+ checkEnd((yyvsp[0].s), "repeat", true); }
+#line 2066 "engines/director/lingo/lingo-gr.cpp"
break;
case 29:
#line 243 "engines/director/lingo/lingo-gr.y"
{
inst init = 0, finish = 0, body = 0, end = 0, inc = 0;
- WRITE_UINT32(&init, (yyvsp[(3) - (11)].code) - (yyvsp[(1) - (11)].code));
- WRITE_UINT32(&finish, (yyvsp[(7) - (11)].code) - (yyvsp[(1) - (11)].code));
- WRITE_UINT32(&body, (yyvsp[(9) - (11)].code) - (yyvsp[(1) - (11)].code));
- WRITE_UINT32(&end, (yyvsp[(10) - (11)].code) - (yyvsp[(1) - (11)].code));
+ WRITE_UINT32(&init, (yyvsp[-8].code) - (yyvsp[-10].code));
+ WRITE_UINT32(&finish, (yyvsp[-4].code) - (yyvsp[-10].code));
+ WRITE_UINT32(&body, (yyvsp[-2].code) - (yyvsp[-10].code));
+ WRITE_UINT32(&end, (yyvsp[-1].code) - (yyvsp[-10].code));
WRITE_UINT32(&inc, (uint32)-1);
- (*g_lingo->_currentScript)[(yyvsp[(1) - (11)].code) + 1] = init; /* initial count value */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (11)].code) + 2] = finish;/* final count value */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (11)].code) + 3] = body; /* body of loop */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (11)].code) + 4] = inc; /* increment */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (11)].code) + 5] = end; /* end, if cond fails */
+ (*g_lingo->_currentScript)[(yyvsp[-10].code) + 1] = init; /* initial count value */
+ (*g_lingo->_currentScript)[(yyvsp[-10].code) + 2] = finish;/* final count value */
+ (*g_lingo->_currentScript)[(yyvsp[-10].code) + 3] = body; /* body of loop */
+ (*g_lingo->_currentScript)[(yyvsp[-10].code) + 4] = inc; /* increment */
+ (*g_lingo->_currentScript)[(yyvsp[-10].code) + 5] = end; /* end, if cond fails */
- checkEnd((yyvsp[(11) - (11)].s), "repeat", true); ;}
+ checkEnd((yyvsp[0].s), "repeat", true); }
+#line 2085 "engines/director/lingo/lingo-gr.cpp"
break;
case 30:
#line 257 "engines/director/lingo/lingo-gr.y"
{
inst end = 0;
- WRITE_UINT32(&end, (yyvsp[(3) - (3)].code) - (yyvsp[(1) - (3)].code));
+ WRITE_UINT32(&end, (yyvsp[0].code) - (yyvsp[-2].code));
g_lingo->code1(STOP);
- (*g_lingo->_currentScript)[(yyvsp[(1) - (3)].code) + 1] = end; ;}
+ (*g_lingo->_currentScript)[(yyvsp[-2].code) + 1] = end; }
+#line 2095 "engines/director/lingo/lingo-gr.cpp"
break;
case 31:
#line 262 "engines/director/lingo/lingo-gr.y"
{
warning("STUB: TELL is not implemented");
- checkEnd((yyvsp[(6) - (6)].s), "tell", true); ;}
+ checkEnd((yyvsp[0].s), "tell", true); }
+#line 2103 "engines/director/lingo/lingo-gr.cpp"
break;
case 32:
#line 265 "engines/director/lingo/lingo-gr.y"
{
warning("STUB: TELL is not implemented");
- ;}
+ }
+#line 2111 "engines/director/lingo/lingo-gr.cpp"
break;
case 33:
#line 270 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (6)].code) - (yyvsp[(1) - (6)].code));
- WRITE_UINT32(&end, (yyvsp[(5) - (6)].code) - (yyvsp[(1) - (6)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 1] = then; /* thenpart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 3] = end; /* end, if cond fails */
+ WRITE_UINT32(&then, (yyvsp[-2].code) - (yyvsp[-5].code));
+ WRITE_UINT32(&end, (yyvsp[-1].code) - (yyvsp[-5].code));
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 3] = end; /* end, if cond fails */
- checkEnd((yyvsp[(6) - (6)].s), "if", true);
+ checkEnd((yyvsp[0].s), "if", true);
- g_lingo->processIf(0, 0); ;}
+ g_lingo->processIf(0, 0); }
+#line 2126 "engines/director/lingo/lingo-gr.cpp"
break;
case 34:
#line 280 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, else1 = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (9)].code) - (yyvsp[(1) - (9)].code));
- WRITE_UINT32(&else1, (yyvsp[(7) - (9)].code) - (yyvsp[(1) - (9)].code));
- WRITE_UINT32(&end, (yyvsp[(8) - (9)].code) - (yyvsp[(1) - (9)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 1] = then; /* thenpart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 2] = else1; /* elsepart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 3] = end; /* end, if cond fails */
+ WRITE_UINT32(&then, (yyvsp[-5].code) - (yyvsp[-8].code));
+ WRITE_UINT32(&else1, (yyvsp[-2].code) - (yyvsp[-8].code));
+ WRITE_UINT32(&end, (yyvsp[-1].code) - (yyvsp[-8].code));
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 2] = else1; /* elsepart */
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 3] = end; /* end, if cond fails */
- checkEnd((yyvsp[(9) - (9)].s), "if", true);
+ checkEnd((yyvsp[0].s), "if", true);
- g_lingo->processIf(0, 0); ;}
+ g_lingo->processIf(0, 0); }
+#line 2143 "engines/director/lingo/lingo-gr.cpp"
break;
case 35:
#line 292 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, else1 = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (9)].code) - (yyvsp[(1) - (9)].code));
- WRITE_UINT32(&else1, (yyvsp[(6) - (9)].code) - (yyvsp[(1) - (9)].code));
- WRITE_UINT32(&end, (yyvsp[(8) - (9)].code) - (yyvsp[(1) - (9)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 1] = then; /* thenpart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 2] = else1; /* elsepart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 3] = end; /* end, if cond fails */
+ WRITE_UINT32(&then, (yyvsp[-5].code) - (yyvsp[-8].code));
+ WRITE_UINT32(&else1, (yyvsp[-3].code) - (yyvsp[-8].code));
+ WRITE_UINT32(&end, (yyvsp[-1].code) - (yyvsp[-8].code));
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 2] = else1; /* elsepart */
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 3] = end; /* end, if cond fails */
- checkEnd((yyvsp[(9) - (9)].s), "if", true);
+ checkEnd((yyvsp[0].s), "if", true);
- g_lingo->processIf(0, (yyvsp[(8) - (9)].code) - (yyvsp[(1) - (9)].code)); ;}
+ g_lingo->processIf(0, (yyvsp[-1].code) - (yyvsp[-8].code)); }
+#line 2160 "engines/director/lingo/lingo-gr.cpp"
break;
case 36:
#line 304 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, else1 = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (9)].code) - (yyvsp[(1) - (9)].code));
- WRITE_UINT32(&else1, (yyvsp[(7) - (9)].code) - (yyvsp[(1) - (9)].code));
- WRITE_UINT32(&end, (yyvsp[(9) - (9)].code) - (yyvsp[(1) - (9)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 1] = then; /* thenpart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 2] = else1; /* elsepart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 3] = end; /* end, if cond fails */
+ WRITE_UINT32(&then, (yyvsp[-5].code) - (yyvsp[-8].code));
+ WRITE_UINT32(&else1, (yyvsp[-2].code) - (yyvsp[-8].code));
+ WRITE_UINT32(&end, (yyvsp[0].code) - (yyvsp[-8].code));
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 2] = else1; /* elsepart */
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 3] = end; /* end, if cond fails */
- g_lingo->processIf(0, (yyvsp[(9) - (9)].code) - (yyvsp[(1) - (9)].code)); ;}
+ g_lingo->processIf(0, (yyvsp[0].code) - (yyvsp[-8].code)); }
+#line 2175 "engines/director/lingo/lingo-gr.cpp"
break;
case 37:
#line 314 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, else1 = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (10)].code) - (yyvsp[(1) - (10)].code));
- WRITE_UINT32(&else1, (yyvsp[(6) - (10)].code) - (yyvsp[(1) - (10)].code));
- WRITE_UINT32(&end, (yyvsp[(10) - (10)].code) - (yyvsp[(1) - (10)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 1] = then; /* thenpart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 2] = else1; /* elsepart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 3] = end; /* end, if cond fails */
+ WRITE_UINT32(&then, (yyvsp[-6].code) - (yyvsp[-9].code));
+ WRITE_UINT32(&else1, (yyvsp[-4].code) - (yyvsp[-9].code));
+ WRITE_UINT32(&end, (yyvsp[0].code) - (yyvsp[-9].code));
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 2] = else1; /* elsepart */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 3] = end; /* end, if cond fails */
- g_lingo->processIf(0, (yyvsp[(10) - (10)].code) - (yyvsp[(1) - (10)].code)); ;}
+ g_lingo->processIf(0, (yyvsp[0].code) - (yyvsp[-9].code)); }
+#line 2190 "engines/director/lingo/lingo-gr.cpp"
break;
case 38:
#line 324 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, else1 = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (10)].code) - (yyvsp[(1) - (10)].code));
- WRITE_UINT32(&else1, (yyvsp[(8) - (10)].code) - (yyvsp[(1) - (10)].code));
- WRITE_UINT32(&end, (yyvsp[(10) - (10)].code) - (yyvsp[(1) - (10)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 1] = then; /* thenpart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 2] = else1; /* elsepart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 3] = end; /* end, if cond fails */
+ WRITE_UINT32(&then, (yyvsp[-6].code) - (yyvsp[-9].code));
+ WRITE_UINT32(&else1, (yyvsp[-2].code) - (yyvsp[-9].code));
+ WRITE_UINT32(&end, (yyvsp[0].code) - (yyvsp[-9].code));
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 2] = else1; /* elsepart */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 3] = end; /* end, if cond fails */
- g_lingo->processIf(0, 0); ;}
+ g_lingo->processIf(0, 0); }
+#line 2205 "engines/director/lingo/lingo-gr.cpp"
break;
case 39:
#line 334 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, else1 = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (6)].code) - (yyvsp[(1) - (6)].code));
+ WRITE_UINT32(&then, (yyvsp[-2].code) - (yyvsp[-5].code));
WRITE_UINT32(&else1, 0);
- WRITE_UINT32(&end, (yyvsp[(6) - (6)].code) - (yyvsp[(1) - (6)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 1] = then; /* thenpart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 2] = else1; /* elsepart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 3] = end; /* end, if cond fails */
+ WRITE_UINT32(&end, (yyvsp[0].code) - (yyvsp[-5].code));
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 2] = else1; /* elsepart */
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 3] = end; /* end, if cond fails */
- g_lingo->processIf(0, 0); ;}
+ g_lingo->processIf(0, 0); }
+#line 2220 "engines/director/lingo/lingo-gr.cpp"
break;
case 40:
#line 346 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = 0; ;}
+ { (yyval.code) = 0; }
+#line 2226 "engines/director/lingo/lingo-gr.cpp"
break;
case 41:
#line 347 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[(2) - (3)].code); ;}
+ { (yyval.code) = (yyvsp[-1].code); }
+#line 2232 "engines/director/lingo/lingo-gr.cpp"
break;
case 46:
#line 358 "engines/director/lingo/lingo-gr.y"
{
inst then = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (6)].code) - (yyvsp[(1) - (6)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 1] = then; /* thenpart */
+ WRITE_UINT32(&then, (yyvsp[-2].code) - (yyvsp[-5].code));
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 1] = then; /* thenpart */
- g_lingo->codeLabel((yyvsp[(1) - (6)].code)); ;}
+ g_lingo->codeLabel((yyvsp[-5].code)); }
+#line 2243 "engines/director/lingo/lingo-gr.cpp"
break;
case 48:
#line 367 "engines/director/lingo/lingo-gr.y"
{
inst then = 0;
- WRITE_UINT32(&then, (yyvsp[(5) - (6)].code) - (yyvsp[(1) - (6)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 1] = then; /* thenpart */
+ WRITE_UINT32(&then, (yyvsp[-1].code) - (yyvsp[-5].code));
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 1] = then; /* thenpart */
- g_lingo->codeLabel((yyvsp[(1) - (6)].code)); ;}
+ g_lingo->codeLabel((yyvsp[-5].code)); }
+#line 2254 "engines/director/lingo/lingo-gr.cpp"
break;
case 49:
#line 373 "engines/director/lingo/lingo-gr.y"
{
inst then = 0;
- WRITE_UINT32(&then, (yyvsp[(5) - (6)].code) - (yyvsp[(1) - (6)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 1] = then; /* thenpart */
+ WRITE_UINT32(&then, (yyvsp[-1].code) - (yyvsp[-5].code));
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 1] = then; /* thenpart */
- g_lingo->codeLabel((yyvsp[(1) - (6)].code)); ;}
+ g_lingo->codeLabel((yyvsp[-5].code)); }
+#line 2265 "engines/director/lingo/lingo-gr.cpp"
break;
case 50:
#line 381 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->code3(g_lingo->c_repeatwhilecode, STOP, STOP); ;}
+ { (yyval.code) = g_lingo->code3(g_lingo->c_repeatwhilecode, STOP, STOP); }
+#line 2271 "engines/director/lingo/lingo-gr.cpp"
break;
case 51:
@@ -2511,8 +2275,9 @@ yyreduce:
{
(yyval.code) = g_lingo->code3(g_lingo->c_repeatwithcode, STOP, STOP);
g_lingo->code3(STOP, STOP, STOP);
- g_lingo->codeString((yyvsp[(3) - (3)].s)->c_str());
- delete (yyvsp[(3) - (3)].s); ;}
+ g_lingo->codeString((yyvsp[0].s)->c_str());
+ delete (yyvsp[0].s); }
+#line 2281 "engines/director/lingo/lingo-gr.cpp"
break;
case 52:
@@ -2521,7 +2286,8 @@ yyreduce:
(yyval.code) = g_lingo->code1(g_lingo->c_ifcode);
g_lingo->code3(STOP, STOP, STOP);
g_lingo->code1(0); // Do not skip end
- g_lingo->codeLabel(0); ;}
+ g_lingo->codeLabel(0); }
+#line 2291 "engines/director/lingo/lingo-gr.cpp"
break;
case 53:
@@ -2531,22 +2297,26 @@ yyreduce:
WRITE_UINT32(&skipEnd, 1); // We have to skip end to avoid multiple executions
(yyval.code) = g_lingo->code1(g_lingo->c_ifcode);
g_lingo->code3(STOP, STOP, STOP);
- g_lingo->code1(skipEnd); ;}
+ g_lingo->code1(skipEnd); }
+#line 2302 "engines/director/lingo/lingo-gr.cpp"
break;
case 54:
#line 406 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->_currentScript->size(); ;}
+ { (yyval.code) = g_lingo->_currentScript->size(); }
+#line 2308 "engines/director/lingo/lingo-gr.cpp"
break;
case 55:
#line 409 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(STOP); (yyval.code) = g_lingo->_currentScript->size(); ;}
+ { g_lingo->code1(STOP); (yyval.code) = g_lingo->_currentScript->size(); }
+#line 2314 "engines/director/lingo/lingo-gr.cpp"
break;
case 56:
#line 412 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->_currentScript->size(); ;}
+ { (yyval.code) = g_lingo->_currentScript->size(); }
+#line 2320 "engines/director/lingo/lingo-gr.cpp"
break;
case 59:
@@ -2554,87 +2324,100 @@ yyreduce:
{
(yyval.code) = g_lingo->code1(g_lingo->c_whencode);
g_lingo->code1(STOP);
- g_lingo->codeString((yyvsp[(2) - (3)].s)->c_str());
- delete (yyvsp[(2) - (3)].s); ;}
+ g_lingo->codeString((yyvsp[-1].s)->c_str());
+ delete (yyvsp[-1].s); }
+#line 2330 "engines/director/lingo/lingo-gr.cpp"
break;
case 60:
#line 423 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_tellcode);
- g_lingo->code1(STOP); ;}
+ g_lingo->code1(STOP); }
+#line 2338 "engines/director/lingo/lingo-gr.cpp"
break;
case 61:
#line 427 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_intpush);
- g_lingo->codeInt((yyvsp[(1) - (1)].i)); ;}
+ g_lingo->codeInt((yyvsp[0].i)); }
+#line 2346 "engines/director/lingo/lingo-gr.cpp"
break;
case 62:
#line 430 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_floatpush);
- g_lingo->codeFloat((yyvsp[(1) - (1)].f)); ;}
+ g_lingo->codeFloat((yyvsp[0].f)); }
+#line 2354 "engines/director/lingo/lingo-gr.cpp"
break;
case 63:
#line 433 "engines/director/lingo/lingo-gr.y"
{ // D3
(yyval.code) = g_lingo->code1(g_lingo->c_symbolpush);
- g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); ;}
+ g_lingo->codeString((yyvsp[0].s)->c_str()); }
+#line 2362 "engines/director/lingo/lingo-gr.cpp"
break;
case 64:
#line 436 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_stringpush);
- g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); ;}
+ g_lingo->codeString((yyvsp[0].s)->c_str()); }
+#line 2370 "engines/director/lingo/lingo-gr.cpp"
break;
case 65:
#line 439 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_eval);
- g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str());
- delete (yyvsp[(1) - (1)].s); ;}
+ g_lingo->codeString((yyvsp[0].s)->c_str());
+ delete (yyvsp[0].s); }
+#line 2379 "engines/director/lingo/lingo-gr.cpp"
break;
case 66:
#line 445 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[(1) - (1)].code); ;}
+ { (yyval.code) = (yyvsp[0].code); }
+#line 2385 "engines/director/lingo/lingo-gr.cpp"
break;
case 68:
#line 447 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[(1) - (1)].s), 0);
- delete (yyvsp[(1) - (1)].s); ;}
+ g_lingo->codeFunc((yyvsp[0].s), 0);
+ delete (yyvsp[0].s); }
+#line 2393 "engines/director/lingo/lingo-gr.cpp"
break;
case 69:
#line 450 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1);
- delete (yyvsp[(1) - (2)].s); ;}
+ g_lingo->codeFunc((yyvsp[-1].s), 1);
+ delete (yyvsp[-1].s); }
+#line 2401 "engines/director/lingo/lingo-gr.cpp"
break;
case 70:
#line 453 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeFunc((yyvsp[(1) - (2)].s), (yyvsp[(2) - (2)].narg)); ;}
+ { g_lingo->codeFunc((yyvsp[-1].s), (yyvsp[0].narg)); }
+#line 2407 "engines/director/lingo/lingo-gr.cpp"
break;
case 71:
#line 454 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeFunc((yyvsp[(1) - (4)].s), (yyvsp[(3) - (4)].narg)); ;}
+ { g_lingo->codeFunc((yyvsp[-3].s), (yyvsp[-1].narg)); }
+#line 2413 "engines/director/lingo/lingo-gr.cpp"
break;
case 72:
#line 455 "engines/director/lingo/lingo-gr.y"
{
- (yyval.code) = g_lingo->codeFunc((yyvsp[(1) - (4)].s), (yyvsp[(3) - (4)].narg));
- delete (yyvsp[(1) - (4)].s); ;}
+ (yyval.code) = g_lingo->codeFunc((yyvsp[-3].s), (yyvsp[-1].narg));
+ delete (yyvsp[-3].s); }
+#line 2421 "engines/director/lingo/lingo-gr.cpp"
break;
case 73:
@@ -2644,9 +2427,10 @@ yyreduce:
g_lingo->codeInt(0); // Put dummy id
g_lingo->code1(g_lingo->c_theentitypush);
inst e = 0, f = 0;
- WRITE_UINT32(&e, (yyvsp[(1) - (1)].e)[0]);
- WRITE_UINT32(&f, (yyvsp[(1) - (1)].e)[1]);
- g_lingo->code2(e, f); ;}
+ WRITE_UINT32(&e, (yyvsp[0].e)[0]);
+ WRITE_UINT32(&f, (yyvsp[0].e)[1]);
+ g_lingo->code2(e, f); }
+#line 2434 "engines/director/lingo/lingo-gr.cpp"
break;
case 74:
@@ -2654,305 +2438,363 @@ yyreduce:
{
(yyval.code) = g_lingo->code1(g_lingo->c_theentitypush);
inst e = 0, f = 0;
- WRITE_UINT32(&e, (yyvsp[(1) - (2)].e)[0]);
- WRITE_UINT32(&f, (yyvsp[(1) - (2)].e)[1]);
- g_lingo->code2(e, f); ;}
+ WRITE_UINT32(&e, (yyvsp[-1].e)[0]);
+ WRITE_UINT32(&f, (yyvsp[-1].e)[1]);
+ g_lingo->code2(e, f); }
+#line 2445 "engines/director/lingo/lingo-gr.cpp"
break;
case 76:
#line 473 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_add); ;}
+ { g_lingo->code1(g_lingo->c_add); }
+#line 2451 "engines/director/lingo/lingo-gr.cpp"
break;
case 77:
#line 474 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_sub); ;}
+ { g_lingo->code1(g_lingo->c_sub); }
+#line 2457 "engines/director/lingo/lingo-gr.cpp"
break;
case 78:
#line 475 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_mul); ;}
+ { g_lingo->code1(g_lingo->c_mul); }
+#line 2463 "engines/director/lingo/lingo-gr.cpp"
break;
case 79:
#line 476 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_div); ;}
+ { g_lingo->code1(g_lingo->c_div); }
+#line 2469 "engines/director/lingo/lingo-gr.cpp"
break;
case 80:
#line 477 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_mod); ;}
+ { g_lingo->code1(g_lingo->c_mod); }
+#line 2475 "engines/director/lingo/lingo-gr.cpp"
break;
case 81:
#line 478 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gt); ;}
+ { g_lingo->code1(g_lingo->c_gt); }
+#line 2481 "engines/director/lingo/lingo-gr.cpp"
break;
case 82:
#line 479 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_lt); ;}
+ { g_lingo->code1(g_lingo->c_lt); }
+#line 2487 "engines/director/lingo/lingo-gr.cpp"
break;
case 83:
#line 480 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_eq); ;}
+ { g_lingo->code1(g_lingo->c_eq); }
+#line 2493 "engines/director/lingo/lingo-gr.cpp"
break;
case 84:
#line 481 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_neq); ;}
+ { g_lingo->code1(g_lingo->c_neq); }
+#line 2499 "engines/director/lingo/lingo-gr.cpp"
break;
case 85:
#line 482 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_ge); ;}
+ { g_lingo->code1(g_lingo->c_ge); }
+#line 2505 "engines/director/lingo/lingo-gr.cpp"
break;
case 86:
#line 483 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_le); ;}
+ { g_lingo->code1(g_lingo->c_le); }
+#line 2511 "engines/director/lingo/lingo-gr.cpp"
break;
case 87:
#line 484 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_and); ;}
+ { g_lingo->code1(g_lingo->c_and); }
+#line 2517 "engines/director/lingo/lingo-gr.cpp"
break;
case 88:
#line 485 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_or); ;}
+ { g_lingo->code1(g_lingo->c_or); }
+#line 2523 "engines/director/lingo/lingo-gr.cpp"
break;
case 89:
#line 486 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_not); ;}
+ { g_lingo->code1(g_lingo->c_not); }
+#line 2529 "engines/director/lingo/lingo-gr.cpp"
break;
case 90:
#line 487 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_ampersand); ;}
+ { g_lingo->code1(g_lingo->c_ampersand); }
+#line 2535 "engines/director/lingo/lingo-gr.cpp"
break;
case 91:
#line 488 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_concat); ;}
+ { g_lingo->code1(g_lingo->c_concat); }
+#line 2541 "engines/director/lingo/lingo-gr.cpp"
break;
case 92:
#line 489 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_contains); ;}
+ { g_lingo->code1(g_lingo->c_contains); }
+#line 2547 "engines/director/lingo/lingo-gr.cpp"
break;
case 93:
#line 490 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_starts); ;}
+ { g_lingo->code1(g_lingo->c_starts); }
+#line 2553 "engines/director/lingo/lingo-gr.cpp"
break;
case 94:
#line 491 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[(2) - (2)].code); ;}
+ { (yyval.code) = (yyvsp[0].code); }
+#line 2559 "engines/director/lingo/lingo-gr.cpp"
break;
case 95:
#line 492 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[(2) - (2)].code); g_lingo->code1(g_lingo->c_negate); ;}
+ { (yyval.code) = (yyvsp[0].code); g_lingo->code1(g_lingo->c_negate); }
+#line 2565 "engines/director/lingo/lingo-gr.cpp"
break;
case 96:
#line 493 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[(2) - (3)].code); ;}
+ { (yyval.code) = (yyvsp[-1].code); }
+#line 2571 "engines/director/lingo/lingo-gr.cpp"
break;
case 97:
#line 494 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->code1(g_lingo->c_arraypush); g_lingo->codeArray((yyvsp[(2) - (3)].narg)); ;}
+ { (yyval.code) = g_lingo->code1(g_lingo->c_arraypush); g_lingo->codeArray((yyvsp[-1].narg)); }
+#line 2577 "engines/director/lingo/lingo-gr.cpp"
break;
case 98:
#line 495 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_intersects); ;}
+ { g_lingo->code1(g_lingo->c_intersects); }
+#line 2583 "engines/director/lingo/lingo-gr.cpp"
break;
case 99:
#line 496 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_within); ;}
+ { g_lingo->code1(g_lingo->c_within); }
+#line 2589 "engines/director/lingo/lingo-gr.cpp"
break;
case 100:
#line 497 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_charOf); ;}
+ { g_lingo->code1(g_lingo->c_charOf); }
+#line 2595 "engines/director/lingo/lingo-gr.cpp"
break;
case 101:
#line 498 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_charToOf); ;}
+ { g_lingo->code1(g_lingo->c_charToOf); }
+#line 2601 "engines/director/lingo/lingo-gr.cpp"
break;
case 102:
#line 499 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_itemOf); ;}
+ { g_lingo->code1(g_lingo->c_itemOf); }
+#line 2607 "engines/director/lingo/lingo-gr.cpp"
break;
case 103:
#line 500 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_itemToOf); ;}
+ { g_lingo->code1(g_lingo->c_itemToOf); }
+#line 2613 "engines/director/lingo/lingo-gr.cpp"
break;
case 104:
#line 501 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_lineOf); ;}
+ { g_lingo->code1(g_lingo->c_lineOf); }
+#line 2619 "engines/director/lingo/lingo-gr.cpp"
break;
case 105:
#line 502 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_lineToOf); ;}
+ { g_lingo->code1(g_lingo->c_lineToOf); }
+#line 2625 "engines/director/lingo/lingo-gr.cpp"
break;
case 106:
#line 503 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_wordOf); ;}
+ { g_lingo->code1(g_lingo->c_wordOf); }
+#line 2631 "engines/director/lingo/lingo-gr.cpp"
break;
case 107:
#line 504 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_wordToOf); ;}
+ { g_lingo->code1(g_lingo->c_wordToOf); }
+#line 2637 "engines/director/lingo/lingo-gr.cpp"
break;
case 108:
#line 505 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeMe(nullptr, 0); ;}
+ { g_lingo->codeMe(nullptr, 0); }
+#line 2643 "engines/director/lingo/lingo-gr.cpp"
break;
case 109:
#line 508 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1);
- delete (yyvsp[(1) - (2)].s); ;}
+ g_lingo->codeFunc((yyvsp[-1].s), 1);
+ delete (yyvsp[-1].s); }
+#line 2651 "engines/director/lingo/lingo-gr.cpp"
break;
case 110:
#line 513 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_printtop); ;}
+ { g_lingo->code1(g_lingo->c_printtop); }
+#line 2657 "engines/director/lingo/lingo-gr.cpp"
break;
case 113:
#line 516 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_exitRepeat); ;}
+ { g_lingo->code1(g_lingo->c_exitRepeat); }
+#line 2663 "engines/director/lingo/lingo-gr.cpp"
break;
case 114:
#line 517 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_procret); ;}
+ { g_lingo->code1(g_lingo->c_procret); }
+#line 2669 "engines/director/lingo/lingo-gr.cpp"
break;
case 118:
#line 521 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[(1) - (1)].s), 0);
- delete (yyvsp[(1) - (1)].s); ;}
+ g_lingo->codeFunc((yyvsp[0].s), 0);
+ delete (yyvsp[0].s); }
+#line 2677 "engines/director/lingo/lingo-gr.cpp"
break;
case 119:
#line 524 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1);
- delete (yyvsp[(1) - (2)].s); ;}
+ g_lingo->codeFunc((yyvsp[-1].s), 1);
+ delete (yyvsp[-1].s); }
+#line 2685 "engines/director/lingo/lingo-gr.cpp"
break;
case 120:
#line 527 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1);
- delete (yyvsp[(1) - (2)].s); ;}
+ g_lingo->codeFunc((yyvsp[-1].s), 1);
+ delete (yyvsp[-1].s); }
+#line 2693 "engines/director/lingo/lingo-gr.cpp"
break;
case 121:
#line 530 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_voidpush);
- g_lingo->codeFunc((yyvsp[(1) - (1)].s), 1);
- delete (yyvsp[(1) - (1)].s); ;}
+ g_lingo->codeFunc((yyvsp[0].s), 1);
+ delete (yyvsp[0].s); }
+#line 2702 "engines/director/lingo/lingo-gr.cpp"
break;
case 122:
#line 534 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeFunc((yyvsp[(1) - (2)].s), (yyvsp[(2) - (2)].narg)); ;}
+ { g_lingo->codeFunc((yyvsp[-1].s), (yyvsp[0].narg)); }
+#line 2708 "engines/director/lingo/lingo-gr.cpp"
break;
case 123:
#line 535 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeFunc((yyvsp[(1) - (4)].s), (yyvsp[(3) - (4)].narg)); ;}
+ { g_lingo->codeFunc((yyvsp[-3].s), (yyvsp[-1].narg)); }
+#line 2714 "engines/director/lingo/lingo-gr.cpp"
break;
case 124:
#line 536 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeMe((yyvsp[(3) - (4)].s), 0); ;}
+ { g_lingo->codeMe((yyvsp[-1].s), 0); }
+#line 2720 "engines/director/lingo/lingo-gr.cpp"
break;
case 125:
#line 537 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeMe((yyvsp[(3) - (6)].s), (yyvsp[(5) - (6)].narg)); ;}
+ { g_lingo->codeMe((yyvsp[-3].s), (yyvsp[-1].narg)); }
+#line 2726 "engines/director/lingo/lingo-gr.cpp"
break;
case 126:
#line 538 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_open); ;}
+ { g_lingo->code1(g_lingo->c_open); }
+#line 2732 "engines/director/lingo/lingo-gr.cpp"
break;
case 127:
#line 539 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code2(g_lingo->c_voidpush, g_lingo->c_open); ;}
+ { g_lingo->code2(g_lingo->c_voidpush, g_lingo->c_open); }
+#line 2738 "engines/director/lingo/lingo-gr.cpp"
break;
case 128:
#line 540 "engines/director/lingo/lingo-gr.y"
- { Common::String s(*(yyvsp[(1) - (3)].s)); s += '-'; s += *(yyvsp[(2) - (3)].s); g_lingo->codeFunc(&s, (yyvsp[(3) - (3)].narg)); ;}
+ { Common::String s(*(yyvsp[-2].s)); s += '-'; s += *(yyvsp[-1].s); g_lingo->codeFunc(&s, (yyvsp[0].narg)); }
+#line 2744 "engines/director/lingo/lingo-gr.cpp"
break;
case 129:
#line 543 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_global); g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); delete (yyvsp[(1) - (1)].s); ;}
+ { g_lingo->code1(g_lingo->c_global); g_lingo->codeString((yyvsp[0].s)->c_str()); delete (yyvsp[0].s); }
+#line 2750 "engines/director/lingo/lingo-gr.cpp"
break;
case 130:
#line 544 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_global); g_lingo->codeString((yyvsp[(3) - (3)].s)->c_str()); delete (yyvsp[(3) - (3)].s); ;}
+ { g_lingo->code1(g_lingo->c_global); g_lingo->codeString((yyvsp[0].s)->c_str()); delete (yyvsp[0].s); }
+#line 2756 "engines/director/lingo/lingo-gr.cpp"
break;
case 131:
#line 547 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_property); g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); delete (yyvsp[(1) - (1)].s); ;}
+ { g_lingo->code1(g_lingo->c_property); g_lingo->codeString((yyvsp[0].s)->c_str()); delete (yyvsp[0].s); }
+#line 2762 "engines/director/lingo/lingo-gr.cpp"
break;
case 132:
#line 548 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_property); g_lingo->codeString((yyvsp[(3) - (3)].s)->c_str()); delete (yyvsp[(3) - (3)].s); ;}
+ { g_lingo->code1(g_lingo->c_property); g_lingo->codeString((yyvsp[0].s)->c_str()); delete (yyvsp[0].s); }
+#line 2768 "engines/director/lingo/lingo-gr.cpp"
break;
case 133:
#line 551 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_instance); g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); delete (yyvsp[(1) - (1)].s); ;}
+ { g_lingo->code1(g_lingo->c_instance); g_lingo->codeString((yyvsp[0].s)->c_str()); delete (yyvsp[0].s); }
+#line 2774 "engines/director/lingo/lingo-gr.cpp"
break;
case 134:
#line 552 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_instance); g_lingo->codeString((yyvsp[(3) - (3)].s)->c_str()); delete (yyvsp[(3) - (3)].s); ;}
+ { g_lingo->code1(g_lingo->c_instance); g_lingo->codeString((yyvsp[0].s)->c_str()); delete (yyvsp[0].s); }
+#line 2780 "engines/director/lingo/lingo-gr.cpp"
break;
case 135:
#line 563 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gotoloop); ;}
+ { g_lingo->code1(g_lingo->c_gotoloop); }
+#line 2786 "engines/director/lingo/lingo-gr.cpp"
break;
case 136:
#line 564 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gotonext); ;}
+ { g_lingo->code1(g_lingo->c_gotonext); }
+#line 2792 "engines/director/lingo/lingo-gr.cpp"
break;
case 137:
#line 565 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gotoprevious); ;}
+ { g_lingo->code1(g_lingo->c_gotoprevious); }
+#line 2798 "engines/director/lingo/lingo-gr.cpp"
break;
case 138:
@@ -2960,7 +2802,8 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(1);
- g_lingo->code1(g_lingo->c_goto); ;}
+ g_lingo->code1(g_lingo->c_goto); }
+#line 2807 "engines/director/lingo/lingo-gr.cpp"
break;
case 139:
@@ -2968,7 +2811,8 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(3);
- g_lingo->code1(g_lingo->c_goto); ;}
+ g_lingo->code1(g_lingo->c_goto); }
+#line 2816 "engines/director/lingo/lingo-gr.cpp"
break;
case 140:
@@ -2976,12 +2820,14 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(2);
- g_lingo->code1(g_lingo->c_goto); ;}
+ g_lingo->code1(g_lingo->c_goto); }
+#line 2825 "engines/director/lingo/lingo-gr.cpp"
break;
case 145:
#line 588 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_playdone); ;}
+ { g_lingo->code1(g_lingo->c_playdone); }
+#line 2831 "engines/director/lingo/lingo-gr.cpp"
break;
case 146:
@@ -2989,7 +2835,8 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(1);
- g_lingo->code1(g_lingo->c_play); ;}
+ g_lingo->code1(g_lingo->c_play); }
+#line 2840 "engines/director/lingo/lingo-gr.cpp"
break;
case 147:
@@ -2997,7 +2844,8 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(3);
- g_lingo->code1(g_lingo->c_play); ;}
+ g_lingo->code1(g_lingo->c_play); }
+#line 2849 "engines/director/lingo/lingo-gr.cpp"
break;
case 148:
@@ -3005,142 +2853,175 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(2);
- g_lingo->code1(g_lingo->c_play); ;}
+ g_lingo->code1(g_lingo->c_play); }
+#line 2858 "engines/director/lingo/lingo-gr.cpp"
break;
case 149:
#line 601 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeSetImmediate(true); ;}
+ { g_lingo->codeSetImmediate(true); }
+#line 2864 "engines/director/lingo/lingo-gr.cpp"
break;
case 150:
#line 601 "engines/director/lingo/lingo-gr.y"
{
g_lingo->codeSetImmediate(false);
- g_lingo->codeFunc((yyvsp[(1) - (3)].s), (yyvsp[(3) - (3)].narg)); ;}
+ g_lingo->codeFunc((yyvsp[-2].s), (yyvsp[0].narg)); }
+#line 2872 "engines/director/lingo/lingo-gr.cpp"
break;
case 151:
#line 631 "engines/director/lingo/lingo-gr.y"
- { g_lingo->_indef = true; g_lingo->_currentFactory.clear(); ;}
+ { g_lingo->_indef = true; g_lingo->_currentFactory.clear(); }
+#line 2878 "engines/director/lingo/lingo-gr.cpp"
break;
case 152:
#line 632 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_procret);
- g_lingo->define(*(yyvsp[(2) - (8)].s), (yyvsp[(4) - (8)].code), (yyvsp[(5) - (8)].narg));
- g_lingo->_indef = false; ;}
+ g_lingo->define(*(yyvsp[-6].s), (yyvsp[-4].code), (yyvsp[-3].narg));
+ g_lingo->_indef = false; }
+#line 2887 "engines/director/lingo/lingo-gr.cpp"
break;
case 153:
#line 636 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeFactory(*(yyvsp[(2) - (2)].s)); ;}
+ { g_lingo->codeFactory(*(yyvsp[0].s)); }
+#line 2893 "engines/director/lingo/lingo-gr.cpp"
break;
case 154:
#line 637 "engines/director/lingo/lingo-gr.y"
- { g_lingo->_indef = true; ;}
+ { g_lingo->_indef = true; }
+#line 2899 "engines/director/lingo/lingo-gr.cpp"
break;
case 155:
#line 638 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_procret);
- g_lingo->define(*(yyvsp[(2) - (8)].s), (yyvsp[(4) - (8)].code), (yyvsp[(5) - (8)].narg) + 1, &g_lingo->_currentFactory);
- g_lingo->_indef = false; ;}
+ g_lingo->define(*(yyvsp[-6].s), (yyvsp[-4].code), (yyvsp[-3].narg) + 1, &g_lingo->_currentFactory);
+ g_lingo->_indef = false; }
+#line 2908 "engines/director/lingo/lingo-gr.cpp"
break;
case 156:
#line 642 "engines/director/lingo/lingo-gr.y"
{ // D3
g_lingo->code1(g_lingo->c_procret);
- g_lingo->define(*(yyvsp[(1) - (8)].s), (yyvsp[(2) - (8)].code), (yyvsp[(3) - (8)].narg));
+ g_lingo->define(*(yyvsp[-7].s), (yyvsp[-6].code), (yyvsp[-5].narg));
g_lingo->_indef = false;
g_lingo->_ignoreMe = false;
- checkEnd((yyvsp[(7) - (8)].s), (yyvsp[(1) - (8)].s)->c_str(), false); ;}
+ checkEnd((yyvsp[-1].s), (yyvsp[-7].s)->c_str(), false); }
+#line 2920 "engines/director/lingo/lingo-gr.cpp"
break;
case 157:
#line 649 "engines/director/lingo/lingo-gr.y"
{ // D4. No 'end' clause
g_lingo->code1(g_lingo->c_procret);
- g_lingo->define(*(yyvsp[(1) - (6)].s), (yyvsp[(2) - (6)].code), (yyvsp[(3) - (6)].narg));
+ g_lingo->define(*(yyvsp[-5].s), (yyvsp[-4].code), (yyvsp[-3].narg));
g_lingo->_indef = false;
- g_lingo->_ignoreMe = false; ;}
+ g_lingo->_ignoreMe = false; }
+#line 2930 "engines/director/lingo/lingo-gr.cpp"
break;
case 158:
#line 655 "engines/director/lingo/lingo-gr.y"
- { (yyval.s) = (yyvsp[(2) - (2)].s); g_lingo->_indef = true; g_lingo->_currentFactory.clear(); g_lingo->_ignoreMe = true; ;}
+ { (yyval.s) = (yyvsp[0].s); g_lingo->_indef = true; g_lingo->_currentFactory.clear(); g_lingo->_ignoreMe = true; }
+#line 2936 "engines/director/lingo/lingo-gr.cpp"
break;
case 159:
#line 657 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = 0; ;}
+ { (yyval.narg) = 0; }
+#line 2942 "engines/director/lingo/lingo-gr.cpp"
break;
case 160:
#line 658 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeArg((yyvsp[(1) - (1)].s)); (yyval.narg) = 1; ;}
+ { g_lingo->codeArg((yyvsp[0].s)); (yyval.narg) = 1; }
+#line 2948 "engines/director/lingo/lingo-gr.cpp"
break;
case 161:
#line 659 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeArg((yyvsp[(3) - (3)].s)); (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;}
+ { g_lingo->codeArg((yyvsp[0].s)); (yyval.narg) = (yyvsp[-2].narg) + 1; }
+#line 2954 "engines/director/lingo/lingo-gr.cpp"
break;
case 162:
#line 660 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeArg((yyvsp[(4) - (4)].s)); (yyval.narg) = (yyvsp[(1) - (4)].narg) + 1; ;}
+ { g_lingo->codeArg((yyvsp[0].s)); (yyval.narg) = (yyvsp[-3].narg) + 1; }
+#line 2960 "engines/director/lingo/lingo-gr.cpp"
break;
case 166:
#line 668 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeArgStore(); ;}
+ { g_lingo->codeArgStore(); }
+#line 2966 "engines/director/lingo/lingo-gr.cpp"
break;
case 167:
#line 672 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_call);
- g_lingo->codeString((yyvsp[(1) - (2)].s)->c_str());
+ g_lingo->codeString((yyvsp[-1].s)->c_str());
inst numpar = 0;
- WRITE_UINT32(&numpar, (yyvsp[(2) - (2)].narg));
- g_lingo->code1(numpar); ;}
+ WRITE_UINT32(&numpar, (yyvsp[0].narg));
+ g_lingo->code1(numpar); }
+#line 2977 "engines/director/lingo/lingo-gr.cpp"
break;
case 168:
#line 680 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = 0; ;}
+ { (yyval.narg) = 0; }
+#line 2983 "engines/director/lingo/lingo-gr.cpp"
break;
case 169:
#line 681 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = 1; ;}
+ { (yyval.narg) = 1; }
+#line 2989 "engines/director/lingo/lingo-gr.cpp"
break;
case 170:
#line 682 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;}
+ { (yyval.narg) = (yyvsp[-2].narg) + 1; }
+#line 2995 "engines/director/lingo/lingo-gr.cpp"
break;
case 171:
#line 685 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = 1; ;}
+ { (yyval.narg) = 1; }
+#line 3001 "engines/director/lingo/lingo-gr.cpp"
break;
case 172:
#line 686 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;}
+ { (yyval.narg) = (yyvsp[-2].narg) + 1; }
+#line 3007 "engines/director/lingo/lingo-gr.cpp"
break;
-/* Line 1267 of yacc.c. */
-#line 3142 "engines/director/lingo/lingo-gr.cpp"
+#line 3011 "engines/director/lingo/lingo-gr.cpp"
+
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);
@@ -3149,26 +3030,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)
{
@@ -3176,37 +3059,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
}
@@ -3214,24 +3096,24 @@ yyerrlab:
if (yyerrstatus == 3)
{
- /* If just tried and failed to reuse look-ahead token after an
- error, discard it. */
+ /* If just tried and failed to reuse lookahead token after an
+ 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 look-ahead token after shifting the error
+ /* Else will try to reuse lookahead token after shifting the error
token. */
goto yyerrlab1;
@@ -3240,14 +3122,12 @@ yyerrlab:
| yyerrorlab -- error raised explicitly by YYERROR. |
`---------------------------------------------------*/
yyerrorlab:
+ /* Pacify compilers when the user code never invokes YYERROR and the
+ label yyerrorlab therefore never appears in user code. */
+ if (0)
+ YYERROR;
- /* Pacify compilers like GCC when the user code never invokes
- YYERROR and the label yyerrorlab therefore never appears in user
- code. */
- if (/*CONSTCOND*/ 0)
- goto yyerrorlab;
-
- /* Do not reclaim the symbols of the rule which action triggered
+ /* Do not reclaim the symbols of the rule whose action triggered
this YYERROR. */
YYPOPSTACK (yylen);
yylen = 0;
@@ -3260,38 +3140,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);
}
- if (yyn == YYFINAL)
- YYACCEPT;
-
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval;
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
/* Shift the error token. */
@@ -3308,6 +3187,7 @@ yyacceptlab:
yyresult = 0;
goto yyreturn;
+
/*-----------------------------------.
| yyabortlab -- YYABORT comes here. |
`-----------------------------------*/
@@ -3315,7 +3195,8 @@ yyabortlab:
yyresult = 1;
goto yyreturn;
-#ifndef yyoverflow
+
+#if !defined yyoverflow || YYERROR_VERBOSE
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here. |
`-------------------------------------------------*/
@@ -3325,18 +3206,27 @@ yyexhaustedlab:
/* Fall through. */
#endif
+
+/*-----------------------------------------------------.
+| yyreturn -- parsing is finished, return the result. |
+`-----------------------------------------------------*/
yyreturn:
- if (yychar != YYEOF && yychar != YYEMPTY)
- yydestruct ("Cleanup: discarding lookahead",
- yytoken, &yylval);
- /* Do not reclaim the symbols of the rule which action triggered
+ if (yychar != YYEMPTY)
+ {
+ /* 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
@@ -3347,11 +3237,7 @@ yyreturn:
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
#endif
- /* Make sure YYID is used. */
- return YYID (yyresult);
+ return yyresult;
}
-
-
#line 689 "engines/director/lingo/lingo-gr.y"
-