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.cpp3819
1 files changed, 1981 insertions, 1838 deletions
diff --git a/engines/director/lingo/lingo-gr.cpp b/engines/director/lingo/lingo-gr.cpp
index 31c1e161ef..582d6ff834 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 3.4. */
+/* A Bison parser, made by GNU Bison 2.3. */
-/* Bison implementation for Yacc-like parsers in C
+/* Skeleton implementation for Bison's Yacc-like parsers in C
- Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
- Inc.
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
- This program is free software: you can redistribute it and/or modify
+ This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License, or
- (at your option) any later version.
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -16,7 +16,9 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>. */
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
@@ -41,14 +43,11 @@
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 "3.4"
+#define YYBISON_VERSION "2.3"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -56,16 +55,205 @@
/* Pure parsers. */
#define YYPURE 0
-/* Push parsers. */
-#define YYPUSH 0
-
-/* Pull parsers. */
-#define YYPULL 1
-
+/* Using locations. */
+#define YYLSP_NEEDED 0
-/* First part of user prologue. */
+/* 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,
+ 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
+/* 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 ARGC 268
+#define ARGCNORET 269
+#define THEENTITY 270
+#define THEENTITYWITHID 271
+#define FLOAT 272
+#define BLTIN 273
+#define BLTINNOARGS 274
+#define BLTINNOARGSORONE 275
+#define BLTINONEARG 276
+#define BLTINARGLIST 277
+#define TWOWORDBUILTIN 278
+#define FBLTIN 279
+#define FBLTINNOARGS 280
+#define FBLTINONEARG 281
+#define FBLTINARGLIST 282
+#define RBLTIN 283
+#define RBLTINONEARG 284
+#define ID 285
+#define STRING 286
+#define HANDLER 287
+#define SYMBOL 288
+#define ENDCLAUSE 289
+#define tPLAYACCEL 290
+#define tDOWN 291
+#define tELSE 292
+#define tNLELSIF 293
+#define tEXIT 294
+#define tFRAME 295
+#define tGLOBAL 296
+#define tGO 297
+#define tIF 298
+#define tINTO 299
+#define tLOOP 300
+#define tMACRO 301
+#define tMOVIE 302
+#define tNEXT 303
+#define tOF 304
+#define tPREVIOUS 305
+#define tPUT 306
+#define tREPEAT 307
+#define tSET 308
+#define tTHEN 309
+#define tTHENNL 310
+#define tTO 311
+#define tWHEN 312
+#define tWITH 313
+#define tWHILE 314
+#define tNLELSE 315
+#define tFACTORY 316
+#define tMETHOD 317
+#define tOPEN 318
+#define tPLAY 319
+#define tDONE 320
+#define tINSTANCE 321
+#define tGE 322
+#define tLE 323
+#define tGT 324
+#define tLT 325
+#define tEQ 326
+#define tNEQ 327
+#define tAND 328
+#define tOR 329
+#define tNOT 330
+#define tMOD 331
+#define tAFTER 332
+#define tBEFORE 333
+#define tCONCAT 334
+#define tCONTAINS 335
+#define tSTARTS 336
+#define tCHAR 337
+#define tITEM 338
+#define tLINE 339
+#define tWORD 340
+#define tSPRITE 341
+#define tINTERSECTS 342
+#define tWITHIN 343
+#define tTELL 344
+#define tPROPERTY 345
+#define tON 346
+#define tME 347
+
+
+
+
+/* Copy the first part of user declarations. */
#line 49 "engines/director/lingo/lingo-gr.y"
#define FORBIDDEN_SYMBOL_ALLOW_ALL
@@ -96,19 +284,11 @@ void checkEnd(Common::String *token, const char *expect, bool required) {
}
-#line 100 "engines/director/lingo/lingo-gr.cpp"
-# 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 traces. */
+#ifndef YYDEBUG
+# define YYDEBUG 1
+#endif
/* Enabling verbose error messages. */
#ifdef YYERROR_VERBOSE
@@ -118,122 +298,15 @@ void checkEnd(Common::String *token, const char *expect, bool required) {
# define YYERROR_VERBOSE 0
#endif
-/* 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;
+/* Enabling the token table. */
+#ifndef YYTOKEN_TABLE
+# define YYTOKEN_TABLE 0
#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
-union YYSTYPE
-{
+typedef union YYSTYPE
#line 79 "engines/director/lingo/lingo-gr.y"
-
+{
Common::String *s;
int i;
double f;
@@ -241,23 +314,22 @@ union YYSTYPE
int code;
int narg; /* number of arguments */
Common::Array<double> *arr;
-
-#line 246 "engines/director/lingo/lingo-gr.cpp"
-
-};
-typedef union YYSTYPE YYSTYPE;
-# define YYSTYPE_IS_TRIVIAL 1
+}
+/* Line 193 of yacc.c. */
+#line 320 "engines/director/lingo/lingo-gr.cpp"
+ YYSTYPE;
+# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
+# define YYSTYPE_IS_TRIVIAL 1
#endif
-extern YYSTYPE yylval;
-int yyparse (void);
-
-#endif /* !YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_HPP_INCLUDED */
+/* Copy the second part of user declarations. */
+/* Line 216 of yacc.c. */
+#line 333 "engines/director/lingo/lingo-gr.cpp"
#ifdef short
# undef short
@@ -271,20 +343,23 @@ typedef unsigned char yytype_uint8;
#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
-#else
+#elif (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
typedef signed char yytype_int8;
+#else
+typedef short int yytype_int8;
#endif
#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
-typedef unsigned short yytype_uint16;
+typedef unsigned short int yytype_uint16;
#endif
#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
-typedef short yytype_int16;
+typedef short int yytype_int16;
#endif
#ifndef YYSIZE_T
@@ -292,11 +367,12 @@ typedef short yytype_int16;
# define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
# define YYSIZE_T size_t
-# elif ! defined YYSIZE_T
+# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# else
-# define YYSIZE_T unsigned
+# define YYSIZE_T unsigned int
# endif
#endif
@@ -306,61 +382,39 @@ typedef short 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
-#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")
+/* Identity function, used to suppress warnings about constant conditions. */
+#ifndef lint
+# define YYID(n) (n)
#else
-# define YY_INITIAL_VALUE(Value) Value
-#endif
-#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
-# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
-# define YY_IGNORE_MAYBE_UNINITIALIZED_END
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static int
+YYID (int i)
+#else
+static int
+YYID (i)
+ int i;
#endif
-#ifndef YY_INITIAL_VALUE
-# define YY_INITIAL_VALUE(Value) /* Nothing. */
+{
+ return i;
+}
#endif
-
-#define YY_ASSERT(E) ((void) (0 && (E)))
-
#if ! defined yyoverflow || YYERROR_VERBOSE
/* The parser invokes alloca or malloc; define the necessary symbols. */
@@ -378,11 +432,11 @@ typedef short yytype_int16;
# define alloca _alloca
# else
# define YYSTACK_ALLOC alloca
-# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
+# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
- /* Use EXIT_SUCCESS as a witness for stdlib.h. */
-# ifndef EXIT_SUCCESS
-# define EXIT_SUCCESS 0
+# ifndef _STDLIB_H
+# define _STDLIB_H 1
# endif
# endif
# endif
@@ -390,8 +444,8 @@ typedef short yytype_int16;
# endif
# ifdef YYSTACK_ALLOC
- /* Pacify GCC's 'empty if-body' warning. */
-# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
+ /* Pacify GCC's `empty if-body' warning. */
+# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
# ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack,
and a page size can be as small as 4096 bytes. So we cannot safely
@@ -405,23 +459,25 @@ typedef short yytype_int16;
# ifndef YYSTACK_ALLOC_MAXIMUM
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
# endif
-# if (defined __cplusplus && ! defined EXIT_SUCCESS \
+# if (defined __cplusplus && ! defined _STDLIB_H \
&& ! ((defined YYMALLOC || defined malloc) \
- && (defined YYFREE || defined free)))
+ && (defined YYFREE || defined free)))
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-# ifndef EXIT_SUCCESS
-# define EXIT_SUCCESS 0
+# ifndef _STDLIB_H
+# define _STDLIB_H 1
# endif
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
-# if ! defined malloc && ! defined EXIT_SUCCESS
+# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# ifndef YYFREE
# define YYFREE free
-# if ! defined free && ! defined EXIT_SUCCESS
+# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
@@ -431,14 +487,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_alloc;
- YYSTYPE yyvs_alloc;
-};
+ yytype_int16 yyss;
+ YYSTYPE yyvs;
+ };
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
@@ -449,70 +505,64 @@ union yyalloc
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
+ YYSTACK_GAP_MAXIMUM)
-# define YYCOPY_NEEDED 1
+/* Copy COUNT objects from FROM to TO. The source and destination do
+ not overlap. */
+# ifndef YYCOPY
+# if defined __GNUC__ && 1 < __GNUC__
+# define YYCOPY(To, From, Count) \
+ __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
+# else
+# define YYCOPY(To, From, Count) \
+ do \
+ { \
+ YYSIZE_T yyi; \
+ for (yyi = 0; yyi < (Count); yyi++) \
+ (To)[yyi] = (From)[yyi]; \
+ } \
+ while (YYID (0))
+# endif
+# endif
/* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
-# define YYSTACK_RELOCATE(Stack_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)
+# define YYSTACK_RELOCATE(Stack) \
+ do \
+ { \
+ YYSIZE_T yynewbytes; \
+ YYCOPY (&yyptr->Stack, Stack, yysize); \
+ Stack = &yyptr->Stack; \
+ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
+ yyptr += yynewbytes / sizeof (*yyptr); \
+ } \
+ while (YYID (0))
#endif
-#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
+#define YYFINAL 128
/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 1844
+#define YYLAST 1946
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 107
/* YYNNTS -- Number of nonterminals. */
-#define YYNNTS 47
+#define YYNNTS 43
/* YYNRULES -- Number of rules. */
-#define YYNRULES 172
-/* YYNSTATES -- Number of states. */
-#define YYNSTATES 369
+#define YYNRULES 171
+/* YYNRULES -- Number of states. */
+#define YYNSTATES 388
+/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 347
-/* 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)
+#define YYTRANSLATE(YYX) \
+ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
-/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
- as returned by yylex. */
+/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -553,31 +603,128 @@ static const yytype_uint8 yytranslate[] =
};
#if YYDEBUG
- /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
+/* 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, 13, 15, 17, 22,
+ 27, 32, 37, 42, 47, 52, 57, 63, 69, 71,
+ 73, 75, 77, 79, 85, 96, 108, 112, 119, 124,
+ 127, 129, 132, 134, 141, 143, 150, 157, 164, 174,
+ 181, 192, 202, 211, 219, 229, 236, 244, 250, 255,
+ 258, 262, 264, 266, 267, 268, 270, 273, 276, 280,
+ 282, 284, 286, 288, 290, 292, 294, 296, 298, 301,
+ 304, 309, 314, 316, 319, 321, 325, 329, 333, 337,
+ 341, 345, 349, 353, 357, 361, 365, 369, 373, 376,
+ 380, 384, 388, 392, 395, 398, 402, 406, 411, 416,
+ 421, 428, 433, 440, 445, 452, 457, 464, 466, 469,
+ 472, 474, 476, 479, 481, 484, 487, 490, 492, 495,
+ 498, 500, 503, 508, 513, 520, 525, 528, 532, 534,
+ 538, 540, 544, 546, 550, 553, 556, 559, 562, 566,
+ 569, 572, 574, 578, 581, 584, 587, 591, 594, 595,
+ 599, 600, 609, 612, 613, 622, 631, 638, 641, 642,
+ 644, 648, 653, 654, 656, 660, 661, 664, 665, 667,
+ 671, 673
+};
+
+/* YYRHS -- A `-1'-separated list of the rules' RHS. */
+static const yytype_int16 yyrhs[] =
+{
+ 108, 0, -1, 108, 99, 109, -1, 109, -1, 1,
+ 99, -1, -1, 140, -1, 112, -1, 51, 129, 44,
+ 30, -1, 51, 129, 44, 130, -1, 51, 129, 77,
+ 129, -1, 51, 129, 78, 129, -1, 53, 30, 71,
+ 129, -1, 53, 15, 71, 129, -1, 53, 30, 56,
+ 129, -1, 53, 15, 56, 129, -1, 53, 16, 129,
+ 56, 129, -1, 53, 16, 128, 71, 129, -1, 147,
+ -1, 129, -1, 131, -1, 111, -1, 117, -1, 119,
+ 129, 125, 124, 34, -1, 120, 71, 129, 124, 56,
+ 129, 124, 125, 124, 34, -1, 120, 71, 129, 124,
+ 36, 56, 129, 124, 125, 124, 34, -1, 126, 111,
+ 124, -1, 127, 129, 99, 125, 124, 34, -1, 127,
+ 129, 56, 129, -1, 113, 116, -1, 116, -1, 114,
+ 115, -1, 115, -1, 122, 129, 54, 123, 112, 124,
+ -1, 114, -1, 122, 129, 54, 123, 125, 124, -1,
+ 122, 129, 55, 123, 125, 124, -1, 121, 129, 55,
+ 125, 124, 34, -1, 121, 129, 54, 123, 111, 124,
+ 37, 111, 124, -1, 121, 129, 54, 123, 111, 124,
+ -1, 121, 129, 54, 123, 111, 124, 113, 124, 118,
+ 124, -1, 121, 129, 55, 125, 124, 113, 124, 118,
+ 124, -1, 121, 129, 54, 123, 111, 124, 118, 124,
+ -1, 121, 129, 55, 125, 124, 118, 124, -1, 122,
+ 129, 54, 123, 111, 124, 37, 111, 124, -1, 122,
+ 129, 54, 123, 111, 124, -1, 122, 129, 55, 123,
+ 125, 124, 34, -1, 60, 123, 125, 124, 34, -1,
+ 60, 123, 111, 124, -1, 52, 59, -1, 52, 58,
+ 30, -1, 43, -1, 38, -1, -1, -1, 123, -1,
+ 125, 99, -1, 125, 112, -1, 57, 30, 54, -1,
+ 89, -1, 12, -1, 17, -1, 33, -1, 31, -1,
+ 30, -1, 128, -1, 130, -1, 25, -1, 26, 129,
+ -1, 27, 149, -1, 27, 100, 149, 101, -1, 30,
+ 100, 148, 101, -1, 15, -1, 16, 129, -1, 110,
+ -1, 129, 94, 129, -1, 129, 95, 129, -1, 129,
+ 96, 129, -1, 129, 97, 129, -1, 129, 76, 129,
+ -1, 129, 102, 129, -1, 129, 103, 129, -1, 129,
+ 71, 129, -1, 129, 72, 129, -1, 129, 67, 129,
+ -1, 129, 68, 129, -1, 129, 73, 129, -1, 129,
+ 74, 129, -1, 75, 129, -1, 129, 93, 129, -1,
+ 129, 79, 129, -1, 129, 80, 129, -1, 129, 81,
+ 129, -1, 94, 129, -1, 95, 129, -1, 100, 129,
+ 101, -1, 104, 148, 105, -1, 86, 129, 87, 129,
+ -1, 86, 129, 88, 129, -1, 82, 129, 49, 129,
+ -1, 82, 129, 56, 129, 49, 129, -1, 83, 129,
+ 49, 129, -1, 83, 129, 56, 129, 49, 129, -1,
+ 84, 129, 49, 129, -1, 84, 129, 56, 129, 49,
+ 129, -1, 85, 129, 49, 129, -1, 85, 129, 56,
+ 129, 49, 129, -1, 92, -1, 29, 129, -1, 51,
+ 129, -1, 135, -1, 138, -1, 39, 52, -1, 39,
+ -1, 41, 132, -1, 90, 133, -1, 66, 134, -1,
+ 19, -1, 21, 129, -1, 20, 129, -1, 20, -1,
+ 22, 149, -1, 22, 100, 149, 101, -1, 92, 100,
+ 30, 101, -1, 92, 100, 30, 106, 148, 101, -1,
+ 63, 129, 58, 129, -1, 63, 129, -1, 23, 30,
+ 148, -1, 30, -1, 132, 106, 30, -1, 30, -1,
+ 133, 106, 30, -1, 30, -1, 134, 106, 30, -1,
+ 42, 45, -1, 42, 48, -1, 42, 50, -1, 42,
+ 136, -1, 42, 136, 137, -1, 42, 137, -1, 40,
+ 129, -1, 129, -1, 49, 47, 129, -1, 47, 129,
+ -1, 64, 65, -1, 64, 136, -1, 64, 136, 137,
+ -1, 64, 137, -1, -1, 35, 139, 148, -1, -1,
+ 46, 30, 141, 123, 144, 99, 146, 125, -1, 61,
+ 30, -1, -1, 62, 30, 142, 123, 144, 99, 146,
+ 125, -1, 143, 123, 144, 99, 146, 125, 34, 145,
+ -1, 143, 123, 144, 99, 146, 125, -1, 91, 30,
+ -1, -1, 30, -1, 144, 106, 30, -1, 144, 99,
+ 106, 30, -1, -1, 30, -1, 145, 106, 30, -1,
+ -1, 30, 149, -1, -1, 129, -1, 148, 106, 129,
+ -1, 129, -1, 149, 106, 129, -1
+};
+
+/* 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,
- 146, 147, 150, 156, 159, 160, 161, 167, 174, 180,
- 187, 193, 201, 202, 203, 206, 207, 212, 225, 243,
- 257, 262, 265, 270, 280, 292, 304, 314, 324, 334,
- 346, 347, 350, 351, 354, 355, 358, 366, 367, 373,
- 381, 384, 391, 398, 406, 409, 412, 413, 414, 417,
- 423, 427, 430, 433, 436, 439, 445, 446, 447, 450,
- 453, 454, 455, 458, 466, 472, 473, 474, 475, 476,
- 477, 478, 479, 480, 481, 482, 483, 484, 485, 486,
- 487, 488, 489, 490, 491, 492, 493, 494, 495, 496,
- 497, 498, 499, 500, 501, 502, 503, 504, 505, 508,
- 513, 514, 515, 516, 517, 518, 519, 520, 521, 524,
- 527, 530, 534, 535, 536, 537, 538, 539, 540, 543,
- 544, 547, 548, 551, 552, 563, 564, 565, 566, 570,
- 574, 580, 581, 584, 585, 588, 589, 593, 597, 601,
- 601, 631, 631, 636, 637, 637, 642, 649, 655, 657,
- 658, 659, 660, 663, 664, 665, 668, 672, 680, 681,
- 682, 685, 686
+ 0, 120, 120, 121, 122, 125, 126, 127, 130, 136,
+ 139, 140, 141, 147, 154, 160, 167, 173, 181, 182,
+ 183, 186, 187, 192, 205, 223, 237, 242, 245, 250,
+ 251, 254, 255, 258, 266, 267, 273, 281, 291, 302,
+ 312, 322, 332, 342, 356, 362, 368, 376, 380, 384,
+ 387, 394, 401, 409, 412, 415, 416, 417, 420, 426,
+ 430, 433, 436, 439, 442, 448, 449, 450, 453, 456,
+ 457, 458, 461, 469, 475, 476, 477, 478, 479, 480,
+ 481, 482, 483, 484, 485, 486, 487, 488, 489, 490,
+ 491, 492, 493, 494, 495, 496, 497, 498, 499, 500,
+ 501, 502, 503, 504, 505, 506, 507, 508, 511, 516,
+ 517, 518, 519, 520, 521, 522, 523, 524, 527, 530,
+ 533, 537, 538, 539, 540, 541, 542, 543, 546, 547,
+ 550, 551, 554, 555, 566, 567, 568, 569, 573, 577,
+ 583, 584, 587, 588, 591, 592, 596, 600, 604, 604,
+ 634, 634, 639, 640, 640, 645, 652, 658, 660, 661,
+ 662, 663, 666, 667, 668, 671, 675, 683, 684, 685,
+ 688, 689
};
#endif
-#if YYDEBUG || YYERROR_VERBOSE || 0
+#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
@@ -598,20 +745,19 @@ static const char *const yytname[] =
"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
+ "program", "programline", "asgn", "stmtoneliner", "stmt", "elseifstmt",
+ "elseifstmtoneliner", "elseifstmtoneliner1", "elseifstmt1", "ifstmt",
+ "endifstmt", "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
};
#endif
# ifdef YYPRINT
-/* YYTOKNUM[NUM] -- (External) token number corresponding to the
- (internal) symbol number NUM (which must be that of a token). */
+/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
+ token YYLEX-NUM. */
static const yytype_uint16 yytoknum[] =
{
0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
@@ -628,177 +774,215 @@ static const yytype_uint16 yytoknum[] =
};
# endif
-#define YYPACT_NINF -288
-
-#define yypact_value_is_default(Yystate) \
- (!!((Yystate) == (-288)))
-
-#define YYTABLE_NINF -10
-
-#define yytable_value_is_error(Yytable_value) \
- 0
+/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
+static const yytype_uint8 yyr1[] =
+{
+ 0, 107, 108, 108, 108, 109, 109, 109, 110, 110,
+ 110, 110, 110, 110, 110, 110, 110, 110, 111, 111,
+ 111, 112, 112, 112, 112, 112, 112, 112, 112, 113,
+ 113, 114, 114, 115, 116, 116, 116, 117, 117, 117,
+ 117, 117, 117, 117, 118, 118, 118, 118, 118, 119,
+ 120, 121, 122, 123, 124, 125, 125, 125, 126, 127,
+ 128, 128, 128, 128, 128, 129, 129, 129, 129, 129,
+ 129, 129, 129, 129, 129, 129, 129, 129, 129, 129,
+ 129, 129, 129, 129, 129, 129, 129, 129, 129, 129,
+ 129, 129, 129, 129, 129, 129, 129, 129, 129, 129,
+ 129, 129, 129, 129, 129, 129, 129, 129, 130, 131,
+ 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
+ 131, 131, 131, 131, 131, 131, 131, 131, 132, 132,
+ 133, 133, 134, 134, 135, 135, 135, 135, 135, 135,
+ 136, 136, 137, 137, 138, 138, 138, 138, 139, 138,
+ 141, 140, 140, 142, 140, 140, 140, 143, 144, 144,
+ 144, 144, 145, 145, 145, 146, 147, 148, 148, 148,
+ 149, 149
+};
- /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
- STATE-NUM. */
-static const yytype_int16 yypact[] =
+/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
+static const yytype_uint8 yyr2[] =
{
- 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
+ 0, 2, 3, 1, 2, 0, 1, 1, 4, 4,
+ 4, 4, 4, 4, 4, 4, 5, 5, 1, 1,
+ 1, 1, 1, 5, 10, 11, 3, 6, 4, 2,
+ 1, 2, 1, 6, 1, 6, 6, 6, 9, 6,
+ 10, 9, 8, 7, 9, 6, 7, 5, 4, 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
};
- /* 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. */
+/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
+ STATE-NUM when YYTABLE doesn't specify something else to do. Zero
+ means the default is an error. */
static const yytype_uint8 yydefact[] =
{
- 0, 0, 61, 73, 0, 62, 118, 121, 0, 0,
- 0, 68, 0, 0, 0, 65, 64, 63, 149, 114,
- 0, 0, 52, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 60,
- 0, 0, 108, 0, 0, 0, 168, 0, 3, 75,
- 25, 11, 26, 0, 0, 0, 0, 0, 66, 23,
- 67, 24, 111, 112, 10, 54, 22, 5, 4, 65,
- 0, 108, 74, 120, 119, 0, 171, 122, 168, 69,
- 0, 70, 109, 168, 167, 168, 113, 129, 115, 0,
- 135, 0, 136, 0, 137, 142, 138, 140, 151, 110,
- 0, 50, 0, 0, 0, 0, 153, 154, 127, 145,
- 146, 148, 133, 117, 89, 0, 0, 0, 0, 0,
- 131, 116, 158, 0, 94, 95, 0, 169, 0, 1,
- 9, 54, 0, 0, 55, 0, 0, 0, 0, 0,
+ 0, 0, 60, 72, 0, 61, 117, 120, 0, 0,
+ 0, 67, 0, 0, 0, 64, 63, 62, 148, 113,
+ 0, 0, 51, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 59,
+ 0, 0, 107, 0, 0, 0, 167, 0, 3, 74,
+ 21, 7, 22, 0, 0, 0, 0, 0, 65, 19,
+ 66, 20, 110, 111, 6, 53, 18, 4, 64, 0,
+ 107, 73, 119, 118, 0, 170, 121, 167, 68, 0,
+ 69, 108, 167, 166, 167, 112, 128, 114, 0, 134,
+ 0, 135, 0, 136, 141, 137, 139, 150, 109, 0,
+ 49, 0, 0, 0, 0, 152, 153, 126, 144, 145,
+ 147, 132, 116, 88, 0, 0, 0, 0, 0, 130,
+ 115, 157, 0, 93, 94, 0, 168, 0, 1, 5,
+ 53, 0, 0, 54, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 159, 168, 0, 171, 0, 0, 128,
- 0, 169, 0, 150, 0, 141, 144, 0, 139, 54,
- 0, 0, 0, 51, 0, 0, 66, 0, 0, 0,
- 59, 54, 0, 147, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 96, 97, 0,
- 2, 56, 55, 55, 54, 6, 54, 30, 0, 54,
- 85, 86, 83, 84, 87, 88, 80, 91, 92, 93,
- 90, 76, 77, 78, 79, 81, 82, 160, 0, 123,
- 172, 71, 72, 130, 143, 159, 12, 13, 14, 15,
- 19, 17, 0, 0, 18, 16, 159, 126, 134, 100,
- 0, 102, 0, 104, 0, 106, 0, 98, 99, 132,
- 124, 168, 170, 57, 58, 0, 0, 0, 55, 32,
- 55, 0, 166, 0, 21, 20, 0, 0, 0, 0,
- 0, 0, 27, 0, 0, 55, 54, 0, 161, 0,
- 54, 166, 166, 101, 103, 105, 107, 125, 0, 55,
- 39, 33, 7, 54, 0, 31, 162, 157, 54, 54,
- 55, 54, 8, 54, 53, 55, 45, 0, 56, 55,
- 55, 47, 43, 0, 163, 152, 155, 54, 55, 0,
- 44, 40, 0, 55, 0, 42, 0, 0, 164, 156,
- 55, 0, 55, 54, 55, 54, 36, 34, 35, 54,
- 54, 0, 0, 28, 38, 0, 37, 0, 54, 54,
- 165, 29, 41, 55, 55, 55, 46, 48, 49
+ 0, 0, 158, 167, 0, 170, 0, 0, 127, 0,
+ 168, 0, 149, 0, 140, 143, 0, 138, 53, 0,
+ 0, 0, 50, 0, 0, 65, 0, 0, 0, 58,
+ 53, 0, 146, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 95, 96, 0, 2,
+ 55, 54, 54, 53, 53, 26, 0, 53, 84, 85,
+ 82, 83, 86, 87, 79, 90, 91, 92, 89, 75,
+ 76, 77, 78, 80, 81, 159, 0, 122, 171, 70,
+ 71, 129, 142, 158, 8, 9, 10, 11, 15, 13,
+ 0, 0, 14, 12, 158, 125, 133, 99, 0, 101,
+ 0, 103, 0, 105, 0, 97, 98, 131, 123, 167,
+ 169, 56, 57, 0, 0, 0, 54, 28, 54, 165,
+ 0, 0, 17, 16, 0, 0, 0, 0, 0, 0,
+ 23, 0, 0, 54, 0, 0, 0, 53, 160, 165,
+ 165, 100, 102, 104, 106, 124, 0, 54, 39, 37,
+ 52, 53, 54, 34, 32, 30, 54, 0, 27, 161,
+ 156, 53, 53, 54, 53, 0, 54, 54, 53, 29,
+ 0, 0, 31, 0, 43, 0, 162, 151, 154, 53,
+ 54, 54, 0, 42, 54, 54, 0, 54, 0, 0,
+ 53, 53, 163, 155, 54, 0, 38, 54, 48, 0,
+ 53, 53, 41, 0, 53, 53, 53, 0, 0, 24,
+ 40, 47, 53, 53, 53, 53, 0, 54, 54, 54,
+ 54, 164, 25, 54, 0, 53, 45, 33, 35, 36,
+ 36, 54, 54, 0, 46, 0, 54, 44
};
- /* YYPGOTO[NTERM-NUM]. */
-static const yytype_int16 yypgoto[] =
+/* YYDEFGOTO[NTERM-NUM]. */
+static const yytype_int16 yydefgoto[] =
{
- -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
+ -1, 47, 48, 49, 50, 262, 302, 303, 304, 305,
+ 52, 306, 53, 54, 55, 307, 200, 376, 369, 56,
+ 57, 58, 59, 60, 61, 87, 120, 112, 62, 95,
+ 96, 63, 84, 64, 168, 180, 65, 226, 343, 287,
+ 66, 161, 76
};
- /* YYDEFGOTO[NTERM-NUM]. */
-static const yytype_int16 yydefgoto[] =
+/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
+ STATE-NUM. */
+#define YYPACT_NINF -288
+static const yytype_int16 yypact[] =
+{
+ 418, -80, -288, -288, 1050, -288, -288, 1050, 1050, 1090,
+ 23, -288, 1050, 1171, 1050, 1211, -288, -288, -288, -29,
+ 35, 929, -288, 82, 1050, 97, 92, 101, 119, 121,
+ 1050, 969, 132, 1050, 1050, 1050, 1050, 1050, 1050, -288,
+ 136, 139, 72, 1050, 1050, 1050, 1050, 2, -288, -288,
+ -288, -288, -288, 1050, 106, 1050, 848, 1050, -288, 1810,
+ -288, -288, -288, -288, -288, -288, -288, -288, 91, 1050,
+ -288, 1810, 1810, 1810, 1050, 1810, 86, 1050, 1810, 1050,
+ 86, 1810, 1050, 86, 1050, -288, -288, 87, 1050, -288,
+ 1050, -288, 150, -288, 1810, 76, -288, -288, 1245, 168,
+ -288, -8, 1050, 59, 145, -288, -288, 1707, -288, 76,
+ -288, -288, 94, -9, 1278, 1311, 1344, 1377, 1740, -288,
+ 95, -288, 172, -9, -9, 1773, 1810, 54, -288, 504,
+ 1810, 1050, 1509, -288, 1674, 1050, 1050, 1050, 1050, 1050,
+ 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050, 1050,
+ 1050, 1050, 174, 1050, 1245, 1773, -84, 1050, 99, -45,
+ 1773, -42, 99, 176, 1810, 1810, 1050, -288, -288, 135,
+ 1050, 1050, -288, 1050, 1050, 138, 824, 1050, 1050, -288,
+ -288, 1050, -288, 177, 1050, 1050, 1050, 1050, 1050, 1050,
+ 1050, 1050, 1050, 1050, 178, 51, -288, -288, 1050, -288,
+ -288, 676, 1810, -288, -288, -288, 1050, -288, 137, 137,
+ 137, 137, 1843, 1843, -9, 1810, 137, 137, 204, -19,
+ -19, -9, -9, 1810, 1810, -288, -17, -288, 1810, -288,
+ -288, -288, 1810, 174, -288, -288, 1810, 1810, 1810, 137,
+ 1050, 1050, 1810, 137, 174, 1810, -288, 1810, 24, 1810,
+ 1410, 1810, 1443, 1810, 1476, 1810, 1810, -288, -288, 1050,
+ 1810, -288, -288, 180, 13, 848, 676, 1810, 676, 104,
+ 181, 7, 137, 1810, 10, 1050, 1050, 1050, 1050, 52,
+ -288, 159, 1050, -288, -14, 183, 192, -288, -288, 104,
+ 104, 1810, 1810, 1810, 1810, -288, 1050, 1810, 30, -288,
+ -288, -288, 185, 185, -288, -288, -288, 1050, -288, -288,
+ 590, -288, -288, 1810, -288, 848, 185, -288, 848, -288,
+ 1050, 50, -288, 1050, -288, 1542, 194, 676, 676, -288,
+ 676, -288, 50, -288, -288, 676, 1575, -288, 1050, 1641,
+ -288, -288, -288, 120, 676, 193, -288, -288, -288, 195,
+ -288, -288, -288, 1608, -288, 762, -288, 198, 201, -288,
+ -288, -288, 762, -288, -288, -288, 762, 64, -288, 676,
+ 676, -288, -288, 676, 848, -288, 205, -288, -288, 207,
+ -288, -288, 676, 848, -288, 207, -288, -288
+};
+
+/* YYPGOTO[NTERM-NUM]. */
+static const yytype_int16 yypgoto[] =
{
- -1, 47, 263, 206, 303, 314, 48, 49, 50, 264,
- 52, 344, 320, 321, 316, 322, 53, 54, 55, 317,
- 201, 207, 202, 56, 57, 58, 59, 60, 61, 88,
- 121, 113, 62, 96, 97, 63, 85, 64, 169, 181,
- 65, 228, 339, 290, 66, 162, 77
+ -288, -288, 114, -288, -53, 0, -52, -288, -56, -287,
+ -288, -285, -288, -288, -288, -277, -7, 43, -93, -288,
+ -288, 146, -3, 80, -288, -288, -288, -288, -288, 219,
+ -23, -288, -288, -288, -288, -288, -288, -182, -288, -110,
+ -288, -39, 1
};
- /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
- positive, shift that token. If negative, reduce the rule whose
- number is the opposite. If YYTABLE_NINF, syntax error. */
+/* 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 -22
static const yytype_int16 yytable[] =
{
- 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, 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,
- 342, 299, 304, 0, 0, 0, 0, 0, 291, 0,
- 0, 292, 0, 0, 0, 310, 286, 0, 287, 318,
- 0, 0, 0, 0, 0, 0, 362, 0, 0, 329,
- 0, 0, 0, 300, 332, 0, 0, 0, 0, 0,
- 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,
- 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, 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, -9, 45, 3, 4, 5, 46, 6, 7, 8,
+ 51, 71, 128, 133, 72, 73, 75, 127, 110, 78,
+ 75, 81, 75, 317, 80, 319, 83, 227, 94, 67,
+ 299, 98, 157, 85, 300, 320, 323, 107, 94, 319,
+ 113, 114, 115, 116, 117, 118, 337, 201, 158, 320,
+ 123, 124, 125, 126, 338, 162, 301, 347, 173, 281,
+ 130, 271, 132, 77, 134, 338, 229, 141, 152, 230,
+ 142, 157, 274, 174, 198, 86, 154, 315, 300, 282,
+ 142, 155, 167, 275, 126, 156, 155, 148, 149, 160,
+ 159, 126, 269, 150, 151, 164, 182, 165, 300, 270,
+ 301, 135, 136, 150, 151, 137, 138, 139, 140, 176,
+ 141, 129, -21, 142, 143, 144, 289, 101, 102, 290,
+ 301, 266, 97, 270, 268, 177, 270, 145, 146, 147,
+ 148, 149, 103, 90, -21, 92, 150, 151, 202, 51,
+ 178, 104, 208, 209, 210, 211, 212, 213, 214, 215,
+ 216, 217, 218, 219, 220, 221, 222, 223, 224, 105,
+ 126, 106, 258, 295, 228, 99, 100, 259, 198, 197,
+ 198, 233, 111, 232, 14, 234, 119, 236, 237, 121,
+ 238, 239, 122, 244, 242, 243, 205, 131, 245, 311,
+ 312, 247, 248, 249, 250, 251, 252, 253, 254, 255,
+ 256, 153, 157, 163, 310, 260, 265, 166, 172, 179,
+ 183, 194, 195, 267, 225, 198, 231, 246, 257, 240,
+ 286, 288, 283, 141, 280, 296, 142, 308, 327, 328,
+ 279, 330, 309, 300, 342, 335, 357, 359, 371, 361,
+ 145, 146, 147, 148, 149, 372, 344, 272, 273, 150,
+ 151, 384, 383, 199, 263, 264, 316, 322, 175, 235,
+ 109, 0, 0, 0, 0, 0, 126, 0, 0, 0,
+ 0, 0, 331, 370, 0, 334, 0, 0, 0, 0,
+ 373, 0, 291, 292, 293, 294, 0, 0, 0, 297,
+ 141, 0, 382, 142, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 313, 318, 0, 0, 0, 146, 147,
+ 148, 149, 367, 0, 325, 0, 150, 151, 0, 284,
+ 0, 285, 0, 0, 0, 0, 0, 336, 0, 0,
+ 339, 381, 0, 0, 0, 0, 298, 0, 0, 0,
+ 386, 0, 0, 355, 356, 353, 0, 0, 0, 0,
+ 314, 0, 0, 362, 363, 321, 0, 366, 0, 324,
+ 0, 0, 0, 0, 0, 368, 329, 374, 375, 332,
+ 333, 0, 368, 0, 0, 0, 368, 0, 0, 0,
+ 0, 0, 0, 345, 346, 0, 0, 348, 349, 0,
+ 352, 0, 0, 0, 0, 0, 0, 358, 0, 0,
+ 360, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 377, 378, 379, 0, 0, 380, 0, -5, 1,
+ 0, 0, 0, 0, 0, 385, 0, 0, 0, 387,
+ 2, 0, 0, 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,
@@ -806,24 +990,24 @@ static const yytype_int16 yytable[] =
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,
+ 42, 0, 43, 44, 0, 0, 2, -5, 45, 3,
4, 5, 46, 6, 7, 8, 9, 10, 0, 11,
- 12, 13, 0, 14, 15, 16, 0, 17, 324, 18,
+ 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,
+ 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, 0, 42, 0, 43, 44,
- 0, 0, 2, 67, 45, 3, 4, 5, 46, 6,
+ 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, 0, 18, 0, 0, 0, 19,
+ 15, 16, 0, 17, 326, 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,
+ 40, 0, 42, 0, 43, 44, 0, 0, 2, 261,
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,
@@ -832,162 +1016,172 @@ static const yytype_int16 yytable[] =
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,
+ 43, 44, 0, 0, 2, 261, 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, 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, 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,
- 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, 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,
+ 241, 17, 0, 18, 0, 0, 0, 19, 0, 20,
+ 21, 135, 136, 0, 0, 137, 138, 139, 140, 24,
+ 141, 26, 0, 142, 143, 144, 0, 0, 0, 0,
+ 0, 30, 31, 0, 32, 0, 0, 145, 146, 147,
+ 148, 149, 0, 33, 0, 0, 150, 151, 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, 68,
+ 16, 0, 17, 0, 0, 0, 0, 0, 0, 88,
+ 0, 0, 0, 0, 89, 0, 90, 91, 92, 93,
+ 69, 2, 26, 0, 3, 4, 5, 0, 0, 0,
+ 0, 0, 0, 0, 11, 12, 13, 0, 14, 68,
+ 16, 0, 17, 0, 33, 0, 0, 0, 0, 88,
+ 0, 34, 35, 36, 37, 38, 90, 0, 92, 0,
+ 69, 70, 26, 43, 44, 0, 0, 0, 0, 45,
+ 0, 0, 0, 46, 108, 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, 70, 2, 43, 44, 3, 4, 5, 0, 45,
+ 0, 0, 0, 46, 0, 11, 12, 13, 0, 14,
+ 68, 16, 0, 17, 0, 0, 0, 0, 0, 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, 69, 2, 26, 0, 3, 4, 5, 0, 0,
+ 0, 0, 0, 0, 0, 11, 12, 13, 0, 14,
+ 68, 16, 0, 17, 0, 33, 0, 0, 0, 0,
+ 0, 0, 34, 35, 36, 37, 38, 0, 0, 0,
+ 0, 69, 70, 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, 70, 2, 43, 44, 3, 4, 5, 0,
+ 74, 0, 0, 0, 46, 0, 11, 12, 13, 0,
+ 14, 68, 16, 0, 17, 0, 0, 0, 0, 0,
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, 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,
- 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, 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, 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, 279,
+ 0, 0, 69, 2, 26, 0, 3, 4, 5, 0,
+ 0, 0, 0, 0, 0, 0, 11, 12, 13, 0,
+ 14, 68, 16, 0, 17, 0, 33, 0, 0, 0,
+ 0, 0, 0, 34, 35, 36, 37, 38, 0, 0,
+ 0, 0, 69, 70, 26, 43, 44, 0, 0, 0,
+ 0, 79, 0, 0, 0, 46, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 33, 0, 0, 169,
+ 0, 0, 0, 34, 35, 36, 37, 38, 0, 0,
+ 0, 0, 0, 70, 0, 43, 44, 0, 0, 0,
+ 0, 82, 135, 136, 0, 46, 137, 138, 139, 140,
+ 0, 141, 170, 171, 142, 143, 144, 184, 0, 0,
+ 0, 0, 0, 0, 185, 0, 0, 0, 145, 146,
+ 147, 148, 149, 0, 0, 135, 136, 150, 151, 137,
+ 138, 139, 140, 0, 141, 0, 0, 142, 143, 144,
+ 186, 0, 0, 0, 0, 0, 0, 187, 0, 0,
+ 0, 145, 146, 147, 148, 149, 0, 0, 135, 136,
+ 150, 151, 137, 138, 139, 140, 0, 141, 0, 0,
+ 142, 143, 144, 188, 0, 0, 0, 0, 0, 0,
+ 189, 0, 0, 0, 145, 146, 147, 148, 149, 0,
+ 0, 135, 136, 150, 151, 137, 138, 139, 140, 0,
+ 141, 0, 0, 142, 143, 144, 190, 0, 0, 0,
+ 0, 0, 0, 191, 0, 0, 0, 145, 146, 147,
+ 148, 149, 0, 0, 135, 136, 150, 151, 137, 138,
+ 139, 140, 0, 141, 0, 0, 142, 143, 144, 276,
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, 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, 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, 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, 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, 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, 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,
+ 145, 146, 147, 148, 149, 0, 0, 135, 136, 150,
+ 151, 137, 138, 139, 140, 0, 141, 0, 0, 142,
+ 143, 144, 277, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 145, 146, 147, 148, 149, 0, 0,
+ 135, 136, 150, 151, 137, 138, 139, 140, 0, 141,
+ 0, 0, 142, 143, 144, 278, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 145, 146, 147, 148,
+ 149, 0, 0, 135, 136, 150, 151, 137, 138, 139,
+ 140, 0, 141, 0, 0, 142, 143, 144, 0, 0,
+ 0, 0, 0, 203, 204, 0, 0, 0, 0, 145,
+ 146, 147, 148, 149, 0, 0, 135, 136, 150, 151,
+ 137, 138, 139, 140, 0, 141, 0, 0, 142, 143,
+ 144, 0, 0, 0, 0, 0, 340, 341, 0, 0,
+ 0, 0, 145, 146, 147, 148, 149, 0, 0, 135,
+ 136, 150, 151, 137, 138, 139, 140, 0, 141, 0,
+ 0, 142, 143, 144, 0, 0, 0, 0, 0, 350,
+ 351, 0, 0, 0, 0, 145, 146, 147, 148, 149,
+ 0, 0, 135, 136, 150, 151, 137, 138, 139, 140,
+ 0, 141, 0, 0, 142, 143, 144, 0, 0, 0,
+ 0, 0, 364, 365, 0, 0, 0, 0, 145, 146,
+ 147, 148, 149, 0, 0, 135, 136, 150, 151, 137,
+ 138, 139, 140, 0, 141, 0, 0, 142, 143, 144,
+ 0, 0, 0, 0, 0, 354, 0, 0, 0, 0,
+ 0, 145, 146, 147, 148, 149, 0, 0, 135, 136,
+ 150, 151, 137, 138, 139, 140, 0, 141, 0, 0,
+ 142, 143, 144, 0, 0, 0, 0, 0, 0, 0,
+ 206, 0, 0, 0, 145, 146, 147, 148, 149, 0,
+ 0, 135, 136, 150, 151, 137, 138, 139, 140, 0,
+ 141, 0, 0, 142, 143, 144, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 181, 0, 145, 146, 147,
+ 148, 149, 0, 207, 135, 136, 150, 151, 137, 138,
+ 139, 140, 0, 141, 0, 0, 142, 143, 144, 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, 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
+ 145, 146, 147, 148, 149, 0, 0, 135, 136, 150,
+ 151, 137, 138, 139, 140, 0, 141, 0, 0, 142,
+ 143, 144, 0, 0, 0, 0, 0, 192, 193, 0,
+ 0, 0, 0, 145, 146, 147, 148, 149, 0, 0,
+ 135, 136, 150, 151, 137, 138, 139, 140, 0, 141,
+ 0, 0, 142, 143, 144, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 145, 146, 147, 148,
+ 149, 0, 0, 0, 196, 150, 151, 135, 136, 0,
+ 0, 137, 138, 139, 140, 0, 141, 0, 0, 142,
+ 143, 144, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 145, 146, 147, 148, 149, 0, 0,
+ 135, 136, 150, 151, 137, 138, 0, 0, 0, 141,
+ 0, 0, 142, 143, 144, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 145, 146, 147, 148,
+ 149, 0, 0, 0, 0, 150, 151
};
static const yytype_int16 yycheck[] =
{
- 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, 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,
- 329, 284, 286, -1, -1, -1, -1, -1, 273, -1,
- -1, 276, -1, -1, -1, 298, 268, -1, 270, 303,
- -1, -1, -1, -1, -1, -1, 355, -1, -1, 313,
- -1, -1, -1, 285, 317, -1, -1, -1, -1, -1,
- 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,
- 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,
+ 0, 4, 0, 56, 7, 8, 9, 46, 31, 12,
+ 13, 14, 15, 298, 13, 302, 15, 101, 21, 99,
+ 34, 24, 106, 52, 38, 302, 303, 30, 31, 316,
+ 33, 34, 35, 36, 37, 38, 321, 130, 77, 316,
+ 43, 44, 45, 46, 321, 84, 60, 332, 56, 36,
+ 53, 233, 55, 30, 57, 332, 101, 76, 65, 101,
+ 79, 106, 244, 71, 106, 30, 69, 37, 38, 56,
+ 79, 74, 95, 49, 77, 74, 79, 96, 97, 82,
+ 79, 84, 99, 102, 103, 88, 109, 90, 38, 106,
+ 60, 67, 68, 102, 103, 71, 72, 73, 74, 102,
+ 76, 99, 38, 79, 80, 81, 99, 15, 16, 99,
+ 60, 204, 30, 106, 207, 56, 106, 93, 94, 95,
+ 96, 97, 30, 47, 60, 49, 102, 103, 131, 129,
+ 71, 30, 135, 136, 137, 138, 139, 140, 141, 142,
+ 143, 144, 145, 146, 147, 148, 149, 150, 151, 30,
+ 153, 30, 101, 101, 157, 58, 59, 106, 106, 105,
+ 106, 168, 30, 166, 29, 30, 30, 170, 171, 30,
+ 173, 174, 100, 180, 177, 178, 133, 71, 181, 289,
+ 290, 184, 185, 186, 187, 188, 189, 190, 191, 192,
+ 193, 100, 106, 106, 287, 198, 203, 47, 30, 54,
+ 106, 106, 30, 206, 30, 106, 30, 30, 30, 71,
+ 106, 30, 265, 76, 34, 56, 79, 34, 311, 312,
+ 259, 314, 30, 38, 30, 318, 106, 34, 30, 34,
+ 93, 94, 95, 96, 97, 34, 329, 240, 241, 102,
+ 103, 34, 37, 129, 201, 202, 298, 303, 102, 169,
+ 31, -1, -1, -1, -1, -1, 259, -1, -1, -1,
+ -1, -1, 315, 356, -1, 318, -1, -1, -1, -1,
+ 363, -1, 275, 276, 277, 278, -1, -1, -1, 282,
+ 76, -1, 375, 79, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 296, 301, -1, -1, -1, 94, 95,
+ 96, 97, 355, -1, 307, -1, 102, 103, -1, 266,
+ -1, 268, -1, -1, -1, -1, -1, 320, -1, -1,
+ 323, 374, -1, -1, -1, -1, 283, -1, -1, -1,
+ 383, -1, -1, 340, 341, 338, -1, -1, -1, -1,
+ 297, -1, -1, 350, 351, 302, -1, 354, -1, 306,
+ -1, -1, -1, -1, -1, 355, 313, 364, 365, 316,
+ 317, -1, 362, -1, -1, -1, 366, -1, -1, -1,
+ -1, -1, -1, 330, 331, -1, -1, 334, 335, -1,
+ 337, -1, -1, -1, -1, -1, -1, 344, -1, -1,
+ 347, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 368, 369, 370, -1, -1, 373, -1, 0, 1,
+ -1, -1, -1, -1, -1, 382, -1, -1, -1, 386,
+ 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,
@@ -995,18 +1189,18 @@ static const yytype_int16 yycheck[] =
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,
+ 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, 34, 35,
+ 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,
+ 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, -1, 92, -1, 94, 95,
- -1, -1, 12, 99, 100, 15, 16, 17, 104, 19,
+ 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, -1, 35, -1, -1, -1, 39,
+ 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,
@@ -1021,60 +1215,62 @@ static const yytype_int16 yycheck[] =
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,
+ 94, 95, -1, -1, 12, 99, 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, 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, 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, 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, -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, 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, -1, -1, -1, -1,
- 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, 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, 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,
@@ -1082,10 +1278,10 @@ static const yytype_int16 yycheck[] =
-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,
+ 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,
+ -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,
@@ -1094,162 +1290,185 @@ static const yytype_int16 yycheck[] =
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,
+ -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, -1, -1, -1,
+ 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, -1,
- -1, 56, -1, -1, -1, 93, 94, 95, 96, 97,
+ -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, -1, -1, -1, -1, 58, -1, 93, 94,
- 95, 96, 97, -1, 99, 67, 68, 102, 103, 71,
+ -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, -1, -1, -1, -1, -1,
+ -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, 87, 88,
- -1, -1, -1, -1, 93, 94, 95, 96, 97, -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, -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
+ -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, -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,
+ 67, 68, 102, 103, 71, 72, -1, -1, -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, 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
-};
-
- /* 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
+ 90, 91, 92, 94, 95, 100, 104, 108, 109, 110,
+ 111, 112, 117, 119, 120, 121, 126, 127, 128, 129,
+ 130, 131, 135, 138, 140, 143, 147, 99, 30, 51,
+ 92, 129, 129, 129, 100, 129, 149, 30, 129, 100,
+ 149, 129, 100, 149, 139, 52, 30, 132, 40, 45,
+ 47, 48, 49, 50, 129, 136, 137, 30, 129, 58,
+ 59, 15, 16, 30, 30, 30, 30, 129, 65, 136,
+ 137, 30, 134, 129, 129, 129, 129, 129, 129, 30,
+ 133, 30, 100, 129, 129, 129, 129, 148, 0, 99,
+ 129, 71, 129, 111, 129, 67, 68, 71, 72, 73,
+ 74, 76, 79, 80, 81, 93, 94, 95, 96, 97,
+ 102, 103, 123, 100, 129, 129, 149, 106, 148, 149,
+ 129, 148, 148, 106, 129, 129, 47, 137, 141, 44,
+ 77, 78, 30, 56, 71, 128, 129, 56, 71, 54,
+ 142, 58, 137, 106, 49, 56, 49, 56, 49, 56,
+ 49, 56, 87, 88, 106, 30, 101, 105, 106, 109,
+ 123, 125, 129, 54, 55, 124, 56, 99, 129, 129,
+ 129, 129, 129, 129, 129, 129, 129, 129, 129, 129,
+ 129, 129, 129, 129, 129, 30, 144, 101, 129, 101,
+ 101, 30, 129, 123, 30, 130, 129, 129, 129, 129,
+ 71, 56, 129, 129, 123, 129, 30, 129, 129, 129,
+ 129, 129, 129, 129, 129, 129, 129, 30, 101, 106,
+ 129, 99, 112, 124, 124, 123, 125, 129, 125, 99,
+ 106, 144, 129, 129, 144, 49, 49, 49, 49, 148,
+ 34, 36, 56, 111, 124, 124, 106, 146, 30, 99,
+ 99, 129, 129, 129, 129, 101, 56, 129, 124, 34,
+ 38, 60, 113, 114, 115, 116, 118, 122, 34, 30,
+ 125, 146, 146, 129, 124, 37, 113, 118, 123, 116,
+ 122, 124, 115, 122, 124, 129, 34, 125, 125, 124,
+ 125, 111, 124, 124, 111, 125, 129, 118, 122, 129,
+ 54, 55, 30, 145, 125, 124, 124, 118, 124, 124,
+ 54, 55, 124, 129, 54, 123, 123, 106, 124, 34,
+ 124, 34, 123, 123, 54, 55, 123, 111, 112, 125,
+ 125, 30, 34, 125, 123, 123, 124, 124, 124, 124,
+ 124, 111, 125, 37, 34, 124, 111, 124
};
- /* 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 yyerrok (yyerrstatus = 0)
+#define yyclearin (yychar = YYEMPTY)
+#define YYEMPTY (-2)
+#define YYEOF 0
+#define YYACCEPT goto yyacceptlab
+#define YYABORT goto yyabortlab
+#define YYERROR goto yyerrorlab
-#define yyerrok (yyerrstatus = 0)
-#define yyclearin (yychar = YYEMPTY)
-#define YYEMPTY (-2)
-#define YYEOF 0
-#define YYACCEPT goto yyacceptlab
-#define YYABORT goto yyabortlab
-#define YYERROR goto yyerrorlab
+/* Like YYERROR except do call yyerror. This remains here temporarily
+ to ease the transition to the new meaning of YYERROR, for GCC.
+ Once GCC version 2 has supplanted version 1, this can go. */
+#define YYFAIL goto yyerrlab
#define YYRECOVERING() (!!yyerrstatus)
-#define YYBACKUP(Token, Value) \
- do \
- if (yychar == YYEMPTY) \
- { \
- 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
+#define YYBACKUP(Token, Value) \
+do \
+ if (yychar == YYEMPTY && yylen == 1) \
+ { \
+ yychar = (Token); \
+ yylval = (Value); \
+ yytoken = YYTRANSLATE (yychar); \
+ YYPOPSTACK (1); \
+ goto yybackup; \
+ } \
+ else \
+ { \
+ yyerror (YY_("syntax error: cannot back up")); \
+ YYERROR; \
+ } \
+while (YYID (0))
+
+
+#define YYTERROR 1
+#define YYERRCODE 256
+
+
+/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
+ If N is 0, then set CURRENT to the empty location which ends
+ the previous symbol: RHS[0] (always defined). */
+
+#define YYRHSLOC(Rhs, K) ((Rhs)[K])
+#ifndef YYLLOC_DEFAULT
+# define YYLLOC_DEFAULT(Current, Rhs, N) \
+ do \
+ if (YYID (N)) \
+ { \
+ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
+ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
+ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
+ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
+ } \
+ else \
+ { \
+ (Current).first_line = (Current).last_line = \
+ YYRHSLOC (Rhs, 0).last_line; \
+ (Current).first_column = (Current).last_column = \
+ YYRHSLOC (Rhs, 0).last_column; \
+ } \
+ while (YYID (0))
+#endif
+/* YY_LOCATION_PRINT -- Print the location on the stream.
+ This macro was not mandated originally: define only if we know
+ we won't break user code: when these are the locations we know. */
+
+#ifndef YY_LOCATION_PRINT
+# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
+# define YY_LOCATION_PRINT(File, Loc) \
+ fprintf (File, "%d.%d-%d.%d", \
+ (Loc).first_line, (Loc).first_column, \
+ (Loc).last_line, (Loc).last_column)
+# else
+# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
+# endif
+#endif
+
+
+/* YYLEX -- calling `yylex' with the right arguments. */
+
+#ifdef YYLEX_PARAM
+# define YYLEX yylex (YYLEX_PARAM)
+#else
+# define YYLEX yylex ()
+#endif
/* Enable debugging if requested. */
#if YYDEBUG
@@ -1259,61 +1478,80 @@ static const yytype_uint8 yyr2[] =
# define YYFPRINTF fprintf
# endif
-# 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. |
-`-----------------------------------*/
-
+# 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 *yyo, int yytype, YYSTYPE const * const yyvaluep)
+yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+#else
+static void
+yy_symbol_value_print (yyoutput, yytype, yyvaluep)
+ FILE *yyoutput;
+ int yytype;
+ YYSTYPE const * const yyvaluep;
+#endif
{
- FILE *yyoutput = yyo;
- YYUSE (yyoutput);
if (!yyvaluep)
return;
# ifdef YYPRINT
if (yytype < YYNTOKENS)
- YYPRINT (yyo, yytoknum[yytype], *yyvaluep);
+ YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
+# else
+ YYUSE (yyoutput);
# endif
- YYUSE (yytype);
+ switch (yytype)
+ {
+ default:
+ break;
+ }
}
-/*---------------------------.
-| Print this symbol on YYO. |
-`---------------------------*/
+/*--------------------------------.
+| Print this symbol on YYOUTPUT. |
+`--------------------------------*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+static void
+yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
+#else
static void
-yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep)
+yy_symbol_print (yyoutput, yytype, yyvaluep)
+ FILE *yyoutput;
+ int yytype;
+ YYSTYPE const * const yyvaluep;
+#endif
{
- YYFPRINTF (yyo, "%s %s (",
- yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
+ if (yytype < YYNTOKENS)
+ YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
+ else
+ YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
- yy_symbol_value_print (yyo, yytype, yyvaluep);
- YYFPRINTF (yyo, ")");
+ yy_symbol_value_print (yyoutput, yytype, yyvaluep);
+ YYFPRINTF (yyoutput, ")");
}
/*------------------------------------------------------------------.
@@ -1321,54 +1559,66 @@ yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep)
| TOP (included). |
`------------------------------------------------------------------*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
static void
-yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
+yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
+#else
+static void
+yy_stack_print (bottom, top)
+ yytype_int16 *bottom;
+ yytype_int16 *top;
+#endif
{
YYFPRINTF (stderr, "Stack now");
- for (; yybottom <= yytop; yybottom++)
- {
- int yybot = *yybottom;
- YYFPRINTF (stderr, " %d", yybot);
- }
+ for (; bottom <= top; ++bottom)
+ YYFPRINTF (stderr, " %d", *bottom);
YYFPRINTF (stderr, "\n");
}
-# define YY_STACK_PRINT(Bottom, Top) \
-do { \
- if (yydebug) \
- yy_stack_print ((Bottom), (Top)); \
-} while (0)
+# define YY_STACK_PRINT(Bottom, Top) \
+do { \
+ if (yydebug) \
+ yy_stack_print ((Bottom), (Top)); \
+} while (YYID (0))
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
static void
-yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule)
+yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
+#else
+static void
+yy_reduce_print (yyvsp, yyrule)
+ YYSTYPE *yyvsp;
+ int yyrule;
+#endif
{
- unsigned long yylno = yyrline[yyrule];
int yynrhs = yyr2[yyrule];
int yyi;
+ unsigned long int yylno = yyrline[yyrule];
YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
- yyrule - 1, yylno);
+ yyrule - 1, yylno);
/* The symbols being reduced. */
for (yyi = 0; yyi < yynrhs; yyi++)
{
- YYFPRINTF (stderr, " $%d = ", yyi + 1);
- yy_symbol_print (stderr,
- yystos[yyssp[yyi + 1 - yynrhs]],
- &yyvsp[(yyi + 1) - (yynrhs)]
- );
- YYFPRINTF (stderr, "\n");
+ fprintf (stderr, " $%d = ", yyi + 1);
+ yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
+ &(yyvsp[(yyi + 1) - (yynrhs)])
+ );
+ fprintf (stderr, "\n");
}
}
-# define YY_REDUCE_PRINT(Rule) \
-do { \
- if (yydebug) \
- yy_reduce_print (yyssp, yyvsp, Rule); \
-} while (0)
+# define YY_REDUCE_PRINT(Rule) \
+do { \
+ if (yydebug) \
+ yy_reduce_print (yyvsp, Rule); \
+} while (YYID (0))
/* Nonzero means print parse trace. It is left uninitialized so that
multiple parsers can coexist. */
@@ -1382,7 +1632,7 @@ int yydebug;
/* YYINITDEPTH -- initial size of the parser's stacks. */
-#ifndef YYINITDEPTH
+#ifndef YYINITDEPTH
# define YYINITDEPTH 200
#endif
@@ -1397,6 +1647,7 @@ int yydebug;
# define YYMAXDEPTH 10000
#endif
+
#if YYERROR_VERBOSE
@@ -1405,8 +1656,15 @@ 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++)
@@ -1422,8 +1680,16 @@ yystrlen (const char *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;
@@ -1453,245 +1719,242 @@ 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;
- else
- goto append;
-
- append:
- 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;
+ /* Fall through. */
+ default:
+ if (yyres)
+ yyres[yyn] = *yyp;
+ yyn++;
+ break;
+
+ case '"':
+ if (yyres)
+ yyres[yyn] = '\0';
+ return yyn;
+ }
do_not_strip_quotes: ;
}
if (! yyres)
return yystrlen (yystr);
- return (YYSIZE_T) (yystpcpy (yyres, yystr) - yyres);
+ return yystpcpy (yyres, yystr) - yyres;
}
# endif
-/* 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)
+/* 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)
{
- 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;
- }
- }
- }
- }
+ int yyn = yypact[yystate];
- 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)
+ if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
+ return 0;
+ else
+ {
+ int yytype = YYTRANSLATE (yychar);
+ YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
+ YYSIZE_T yysize = yysize0;
+ YYSIZE_T yysize1;
+ int yysize_overflow = 0;
+ enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
+ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
+ int yyx;
+
+# if 0
+ /* This is so xgettext sees the translatable formats that are
+ constructed on the fly. */
+ YY_("syntax error, unexpected %s");
+ YY_("syntax error, unexpected %s, expecting %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s or %s");
+ YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
+# endif
+ char *yyfmt;
+ char const *yyf;
+ static char const yyunexpected[] = "syntax error, unexpected %s";
+ static char const yyexpecting[] = ", expecting %s";
+ static char const yyor[] = " or %s";
+ char yyformat[sizeof yyunexpected
+ + sizeof yyexpecting - 1
+ + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
+ * (sizeof yyor - 1))];
+ char const *yyprefix = yyexpecting;
+
+ /* Start YYX at -YYN if negative to avoid negative indexes in
+ YYCHECK. */
+ int yyxbegin = yyn < 0 ? -yyn : 0;
+
+ /* Stay within bounds of both yycheck and yytname. */
+ int yychecklim = YYLAST - yyn + 1;
+ int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
+ int yycount = 1;
+
+ yyarg[0] = yytname[yytype];
+ yyfmt = yystpcpy (yyformat, yyunexpected);
+
+ for (yyx = yyxbegin; yyx < yyxend; ++yyx)
+ if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
+ {
+ if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
+ {
+ yycount = 1;
+ yysize = yysize0;
+ yyformat[sizeof yyunexpected - 1] = '\0';
+ break;
+ }
+ yyarg[yycount++] = yytname[yyx];
+ yysize1 = yysize + yytnamerr (0, yytname[yyx]);
+ yysize_overflow |= (yysize1 < yysize);
+ yysize = yysize1;
+ yyfmt = yystpcpy (yyfmt, yyprefix);
+ yyprefix = yyor;
+ }
+
+ yyf = YY_(yyformat);
+ yysize1 = yysize + yystrlen (yyf);
+ yysize_overflow |= (yysize1 < yysize);
yysize = yysize1;
- else
- return 2;
- }
- if (*yymsg_alloc < yysize)
- {
- *yymsg_alloc = 2 * yysize;
- if (! (yysize <= *yymsg_alloc
- && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
- *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
- return 1;
+ 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;
}
-
- /* 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);
- YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
- YYUSE (yytype);
- YY_IGNORE_MAYBE_UNINITIALIZED_END
+ switch (yytype)
+ {
+
+ default:
+ break;
+ }
}
+
+/* Prevent warnings from -Wmissing-prototypes. */
+
+#ifdef YYPARSE_PARAM
+#if defined __STDC__ || defined __cplusplus
+int yyparse (void *YYPARSE_PARAM);
+#else
+int yyparse ();
+#endif
+#else /* ! YYPARSE_PARAM */
+#if defined __STDC__ || defined __cplusplus
+int yyparse (void);
+#else
+int yyparse ();
+#endif
+#endif /* ! YYPARSE_PARAM */
-/* The lookahead symbol. */
+/* The look-ahead symbol. */
int yychar;
-/* The semantic value of the lookahead symbol. */
+/* The semantic value of the look-ahead symbol. */
YYSTYPE yylval;
+
/* Number of syntax errors so far. */
int yynerrs;
+
/*----------.
| yyparse. |
`----------*/
+#ifdef YYPARSE_PARAM
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
+int
+yyparse (void *YYPARSE_PARAM)
+#else
+int
+yyparse (YYPARSE_PARAM)
+ void *YYPARSE_PARAM;
+#endif
+#else /* ! YYPARSE_PARAM */
+#if (defined __STDC__ || defined __C99__FUNC__ \
+ || defined __cplusplus || defined _MSC_VER)
int
yyparse (void)
-{
- 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;
+#else
+int
+yyparse ()
+#endif
+#endif
+{
+
+ int yystate;
int yyn;
int yyresult;
- /* Lookahead token as an internal (translated) token number. */
+ /* Number of tokens to shift before error messages enabled. */
+ int yyerrstatus;
+ /* Look-ahead 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];
@@ -1699,127 +1962,156 @@ yyparse (void)
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. */
- goto yysetstate;
+ yychar = YYEMPTY; /* Cause a token to be read. */
+
+ /* Initialize stack pointers.
+ Waste one element of value and location stack
+ so that they stay on the same level as the state stack.
+ The wasted elements are never initialized. */
+ yyssp = yyss;
+ yyvsp = yyvs;
+
+ goto yysetstate;
/*------------------------------------------------------------.
-| yynewstate -- push a new state, which is found in yystate. |
+| yynewstate -- 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++;
-
-/*--------------------------------------------------------------------.
-| 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;
+ yysetstate:
+ *yyssp = 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 = (YYSIZE_T) (yyssp - yyss + 1);
+ YYSIZE_T yysize = yyssp - yyss + 1;
-# if defined yyoverflow
+#ifdef yyoverflow
{
- /* Give user a chance to reallocate the stack. Use copies of
- these so that the &'s don't force the real ones into
- memory. */
- YYSTYPE *yyvs1 = yyvs;
- yytype_int16 *yyss1 = yyss;
-
- /* Each stack pointer address is followed by the size of the
- data in use in that stack, in bytes. This used to be a
- conditional around just the two extra args, but that might
- be undefined if yyoverflow is a macro. */
- yyoverflow (YY_("memory exhausted"),
- &yyss1, yysize * sizeof (*yyssp),
- &yyvs1, yysize * sizeof (*yyvsp),
- &yystacksize);
- yyss = yyss1;
- yyvs = yyvs1;
+ /* 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 /* defined YYSTACK_RELOCATE */
+#else /* no yyoverflow */
+# ifndef YYSTACK_RELOCATE
+ goto yyexhaustedlab;
+# else
/* Extend the stack our own way. */
if (YYMAXDEPTH <= yystacksize)
- goto yyexhaustedlab;
+ goto yyexhaustedlab;
yystacksize *= 2;
if (YYMAXDEPTH < yystacksize)
- yystacksize = YYMAXDEPTH;
+ yystacksize = YYMAXDEPTH;
{
- yytype_int16 *yyss1 = yyss;
- union yyalloc *yyptr =
- (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
- if (! yyptr)
- goto yyexhaustedlab;
- YYSTACK_RELOCATE (yyss_alloc, yyss);
- YYSTACK_RELOCATE (yyvs_alloc, yyvs);
-# 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);
+ YYSTACK_RELOCATE (yyvs);
+
+# undef YYSTACK_RELOCATE
+ if (yyss1 != yyssa)
+ YYSTACK_FREE (yyss1);
}
# endif
+#endif /* no yyoverflow */
yyssp = yyss + yysize - 1;
yyvsp = yyvs + yysize - 1;
+
YYDPRINTF ((stderr, "Stack size increased to %lu\n",
- (unsigned long) yystacksize));
+ (unsigned long int) yystacksize));
if (yyss + yystacksize - 1 <= yyssp)
- YYABORT;
+ YYABORT;
}
-#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
- if (yystate == YYFINAL)
- YYACCEPT;
+ YYDPRINTF ((stderr, "Entering state %d\n", yystate));
goto yybackup;
-
/*-----------.
| yybackup. |
`-----------*/
yybackup:
+
/* Do appropriate processing given the current state. Read a
- lookahead token if we need one and don't already have one. */
+ look-ahead token if we need one and don't already have one. */
- /* First try to decide what to do without reference to lookahead token. */
+ /* First try to decide what to do without reference to look-ahead token. */
yyn = yypact[yystate];
- if (yypact_value_is_default (yyn))
+ if (yyn == YYPACT_NINF)
goto yydefault;
- /* Not known => get a lookahead token if don't already have one. */
+ /* Not known => get a look-ahead token if don't already have one. */
- /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
+ /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
if (yychar == YYEMPTY)
{
YYDPRINTF ((stderr, "Reading a token: "));
- yychar = yylex ();
+ yychar = YYLEX;
}
if (yychar <= YYEOF)
@@ -1841,27 +2133,30 @@ yybackup:
yyn = yytable[yyn];
if (yyn <= 0)
{
- if (yytable_value_is_error (yyn))
- goto yyerrlab;
+ if (yyn == 0 || yyn == YYTABLE_NINF)
+ goto yyerrlab;
yyn = -yyn;
goto yyreduce;
}
+ if (yyn == YYFINAL)
+ YYACCEPT;
+
/* Count tokens shifted since error; after three, turn off error
status. */
if (yyerrstatus)
yyerrstatus--;
- /* Shift the lookahead token. */
+ /* Shift the look-ahead token. */
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
- /* Discard the shifted token. */
- yychar = YYEMPTY;
+ /* Discard the shifted token unless it is eof. */
+ if (yychar != YYEOF)
+ yychar = YYEMPTY;
yystate = yyn;
- YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval;
- YY_IGNORE_MAYBE_UNINITIALIZED_END
+
goto yynewstate;
@@ -1876,14 +2171,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
@@ -1896,1132 +2191,985 @@ yyreduce:
YY_REDUCE_PRINT (yyn);
switch (yyn)
{
- case 4:
+ case 4:
#line 122 "engines/director/lingo/lingo-gr.y"
- { 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; }
-#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; }
-#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; }
-#line 1927 "engines/director/lingo/lingo-gr.cpp"
+ { yyerrok; ;}
break;
case 8:
-#line 140 "engines/director/lingo/lingo-gr.y"
- {
- g_lingo->_linenumber++;
- g_lingo->_colnumber = 8; }
-#line 1935 "engines/director/lingo/lingo-gr.cpp"
- break;
-
- case 12:
-#line 150 "engines/director/lingo/lingo-gr.y"
+#line 130 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_varpush);
- g_lingo->codeString((yyvsp[0].s)->c_str());
+ g_lingo->codeString((yyvsp[(4) - (4)].s)->c_str());
g_lingo->code1(g_lingo->c_assign);
- (yyval.code) = (yyvsp[-2].code);
- delete (yyvsp[0].s); }
-#line 1946 "engines/director/lingo/lingo-gr.cpp"
+ (yyval.code) = (yyvsp[(2) - (4)].code);
+ delete (yyvsp[(4) - (4)].s); ;}
break;
- case 13:
-#line 156 "engines/director/lingo/lingo-gr.y"
+ case 9:
+#line 136 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_assign);
- (yyval.code) = (yyvsp[-2].code); }
-#line 1954 "engines/director/lingo/lingo-gr.cpp"
+ (yyval.code) = (yyvsp[(2) - (4)].code); ;}
break;
- case 14:
-#line 159 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->code1(g_lingo->c_after); }
-#line 1960 "engines/director/lingo/lingo-gr.cpp"
+ case 10:
+#line 139 "engines/director/lingo/lingo-gr.y"
+ { (yyval.code) = g_lingo->code1(g_lingo->c_after); ;}
break;
- case 15:
-#line 160 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->code1(g_lingo->c_before); }
-#line 1966 "engines/director/lingo/lingo-gr.cpp"
+ case 11:
+#line 140 "engines/director/lingo/lingo-gr.y"
+ { (yyval.code) = g_lingo->code1(g_lingo->c_before); ;}
break;
- case 16:
-#line 161 "engines/director/lingo/lingo-gr.y"
+ case 12:
+#line 141 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_varpush);
- g_lingo->codeString((yyvsp[-2].s)->c_str());
+ g_lingo->codeString((yyvsp[(2) - (4)].s)->c_str());
g_lingo->code1(g_lingo->c_assign);
- (yyval.code) = (yyvsp[0].code);
- delete (yyvsp[-2].s); }
-#line 1977 "engines/director/lingo/lingo-gr.cpp"
+ (yyval.code) = (yyvsp[(4) - (4)].code);
+ delete (yyvsp[(2) - (4)].s); ;}
break;
- case 17:
-#line 167 "engines/director/lingo/lingo-gr.y"
+ case 13:
+#line 147 "engines/director/lingo/lingo-gr.y"
{
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].e)[0]);
- g_lingo->codeInt((yyvsp[-2].e)[1]);
- (yyval.code) = (yyvsp[0].code); }
-#line 1989 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeInt((yyvsp[(2) - (4)].e)[0]);
+ g_lingo->codeInt((yyvsp[(2) - (4)].e)[1]);
+ (yyval.code) = (yyvsp[(4) - (4)].code); ;}
break;
- case 18:
-#line 174 "engines/director/lingo/lingo-gr.y"
+ case 14:
+#line 154 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_varpush);
- g_lingo->codeString((yyvsp[-2].s)->c_str());
+ g_lingo->codeString((yyvsp[(2) - (4)].s)->c_str());
g_lingo->code1(g_lingo->c_assign);
- (yyval.code) = (yyvsp[0].code);
- delete (yyvsp[-2].s); }
-#line 2000 "engines/director/lingo/lingo-gr.cpp"
+ (yyval.code) = (yyvsp[(4) - (4)].code);
+ delete (yyvsp[(2) - (4)].s); ;}
break;
- case 19:
-#line 180 "engines/director/lingo/lingo-gr.y"
+ case 15:
+#line 160 "engines/director/lingo/lingo-gr.y"
{
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].e)[0]);
- g_lingo->codeInt((yyvsp[-2].e)[1]);
- (yyval.code) = (yyvsp[0].code); }
-#line 2012 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeInt((yyvsp[(2) - (4)].e)[0]);
+ g_lingo->codeInt((yyvsp[(2) - (4)].e)[1]);
+ (yyval.code) = (yyvsp[(4) - (4)].code); ;}
break;
- case 20:
-#line 187 "engines/director/lingo/lingo-gr.y"
+ case 16:
+#line 167 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_swap);
g_lingo->code1(g_lingo->c_theentityassign);
- 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"
+ g_lingo->codeInt((yyvsp[(2) - (5)].e)[0]);
+ g_lingo->codeInt((yyvsp[(2) - (5)].e)[1]);
+ (yyval.code) = (yyvsp[(5) - (5)].code); ;}
break;
- case 21:
-#line 193 "engines/director/lingo/lingo-gr.y"
+ case 17:
+#line 173 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_swap);
g_lingo->code1(g_lingo->c_theentityassign);
- 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"
+ g_lingo->codeInt((yyvsp[(2) - (5)].e)[0]);
+ g_lingo->codeInt((yyvsp[(2) - (5)].e)[1]);
+ (yyval.code) = (yyvsp[(5) - (5)].code); ;}
break;
- case 27:
-#line 212 "engines/director/lingo/lingo-gr.y"
+ case 23:
+#line 192 "engines/director/lingo/lingo-gr.y"
{
inst body = 0, end = 0;
- 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 */
+ 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 */
- checkEnd((yyvsp[0].s), "repeat", true); }
-#line 2047 "engines/director/lingo/lingo-gr.cpp"
+ checkEnd((yyvsp[(5) - (5)].s), "repeat", true); ;}
break;
- case 28:
-#line 225 "engines/director/lingo/lingo-gr.y"
+ case 24:
+#line 205 "engines/director/lingo/lingo-gr.y"
{
inst init = 0, finish = 0, body = 0, end = 0, inc = 0;
- 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(&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(&inc, 1);
- (*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 */
+ (*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 */
- checkEnd((yyvsp[0].s), "repeat", true); }
-#line 2066 "engines/director/lingo/lingo-gr.cpp"
+ checkEnd((yyvsp[(10) - (10)].s), "repeat", true); ;}
break;
- case 29:
-#line 243 "engines/director/lingo/lingo-gr.y"
+ case 25:
+#line 223 "engines/director/lingo/lingo-gr.y"
{
inst init = 0, finish = 0, body = 0, end = 0, inc = 0;
- 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(&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(&inc, (uint32)-1);
- (*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 */
+ (*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 */
- checkEnd((yyvsp[0].s), "repeat", true); }
-#line 2085 "engines/director/lingo/lingo-gr.cpp"
+ checkEnd((yyvsp[(11) - (11)].s), "repeat", true); ;}
break;
- case 30:
-#line 257 "engines/director/lingo/lingo-gr.y"
+ case 26:
+#line 237 "engines/director/lingo/lingo-gr.y"
{
inst end = 0;
- WRITE_UINT32(&end, (yyvsp[0].code) - (yyvsp[-2].code));
+ WRITE_UINT32(&end, (yyvsp[(3) - (3)].code) - (yyvsp[(1) - (3)].code));
g_lingo->code1(STOP);
- (*g_lingo->_currentScript)[(yyvsp[-2].code) + 1] = end; }
-#line 2095 "engines/director/lingo/lingo-gr.cpp"
+ (*g_lingo->_currentScript)[(yyvsp[(1) - (3)].code) + 1] = end; ;}
break;
- case 31:
-#line 262 "engines/director/lingo/lingo-gr.y"
+ case 27:
+#line 242 "engines/director/lingo/lingo-gr.y"
{
warning("STUB: TELL is not implemented");
- checkEnd((yyvsp[0].s), "tell", true); }
-#line 2103 "engines/director/lingo/lingo-gr.cpp"
+ checkEnd((yyvsp[(6) - (6)].s), "tell", true); ;}
break;
- case 32:
-#line 265 "engines/director/lingo/lingo-gr.y"
+ case 28:
+#line 245 "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[-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[0].s), "if", true);
-
- g_lingo->processIf(0, 0); }
-#line 2126 "engines/director/lingo/lingo-gr.cpp"
- break;
-
- case 34:
-#line 280 "engines/director/lingo/lingo-gr.y"
+#line 258 "engines/director/lingo/lingo-gr.y"
{
- inst then = 0, else1 = 0, end = 0;
- 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[0].s), "if", true);
+ inst then = 0;
+ WRITE_UINT32(&then, (yyvsp[(4) - (6)].code) - (yyvsp[(1) - (6)].code));
+ (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 1] = then; /* thenpart */
- g_lingo->processIf(0, 0); }
-#line 2143 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeLabel((yyvsp[(1) - (6)].code)); ;}
break;
case 35:
-#line 292 "engines/director/lingo/lingo-gr.y"
+#line 267 "engines/director/lingo/lingo-gr.y"
{
- inst then = 0, else1 = 0, end = 0;
- 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[0].s), "if", true);
+ inst then = 0;
+ WRITE_UINT32(&then, (yyvsp[(5) - (6)].code) - (yyvsp[(1) - (6)].code));
+ (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 1] = then; /* thenpart */
- g_lingo->processIf(0, (yyvsp[-1].code) - (yyvsp[-8].code)); }
-#line 2160 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeLabel((yyvsp[(1) - (6)].code)); ;}
break;
case 36:
-#line 304 "engines/director/lingo/lingo-gr.y"
+#line 273 "engines/director/lingo/lingo-gr.y"
{
- inst then = 0, else1 = 0, end = 0;
- 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 */
+ inst then = 0;
+ WRITE_UINT32(&then, (yyvsp[(5) - (6)].code) - (yyvsp[(1) - (6)].code));
+ (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 1] = then; /* thenpart */
- g_lingo->processIf(0, (yyvsp[0].code) - (yyvsp[-8].code)); }
-#line 2175 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeLabel((yyvsp[(1) - (6)].code)); ;}
break;
case 37:
-#line 314 "engines/director/lingo/lingo-gr.y"
+#line 281 "engines/director/lingo/lingo-gr.y"
{
- inst then = 0, else1 = 0, end = 0;
- 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 */
+ 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 */
+
+ checkEnd((yyvsp[(6) - (6)].s), "if", true);
- g_lingo->processIf(0, (yyvsp[0].code) - (yyvsp[-9].code)); }
-#line 2190 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->processIf(0, 0); ;}
break;
case 38:
-#line 324 "engines/director/lingo/lingo-gr.y"
+#line 291 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, else1 = 0, end = 0;
- 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 */
+ 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[(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 */
- g_lingo->processIf(0, 0); }
-#line 2205 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->processIf(0, (yyvsp[(9) - (9)].code) - (yyvsp[(1) - (9)].code)); ;}
break;
case 39:
-#line 334 "engines/director/lingo/lingo-gr.y"
+#line 302 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, else1 = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[-2].code) - (yyvsp[-5].code));
+ WRITE_UINT32(&then, (yyvsp[(4) - (6)].code) - (yyvsp[(1) - (6)].code));
WRITE_UINT32(&else1, 0);
- 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 */
+ 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 */
- g_lingo->processIf(0, 0); }
-#line 2220 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->processIf(0, 0); ;}
break;
case 40:
-#line 346 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = 0; }
-#line 2226 "engines/director/lingo/lingo-gr.cpp"
+#line 312 "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 */
+
+ g_lingo->processIf(0, (yyvsp[(10) - (10)].code) - (yyvsp[(1) - (10)].code)); ;}
break;
case 41:
-#line 347 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[-1].code); }
-#line 2232 "engines/director/lingo/lingo-gr.cpp"
+#line 322 "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 */
+
+ g_lingo->processIf(0, 0); ;}
break;
- case 46:
-#line 358 "engines/director/lingo/lingo-gr.y"
+ case 42:
+#line 332 "engines/director/lingo/lingo-gr.y"
+ {
+ inst then = 0, else1 = 0, end = 0;
+ WRITE_UINT32(&then, (yyvsp[(4) - (8)].code) - (yyvsp[(1) - (8)].code));
+ WRITE_UINT32(&else1, (yyvsp[(6) - (8)].code) - (yyvsp[(1) - (8)].code));
+ WRITE_UINT32(&end, (yyvsp[(8) - (8)].code) - (yyvsp[(1) - (8)].code));
+ (*g_lingo->_currentScript)[(yyvsp[(1) - (8)].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[(1) - (8)].code) + 2] = else1; /* elsepart */
+ (*g_lingo->_currentScript)[(yyvsp[(1) - (8)].code) + 3] = end; /* end, if cond fails */
+
+ g_lingo->processIf(0, (yyvsp[(8) - (8)].code) - (yyvsp[(1) - (8)].code)); ;}
+ break;
+
+ case 43:
+#line 342 "engines/director/lingo/lingo-gr.y"
+ {
+ inst then = 0, else1 = 0, end = 0;
+ WRITE_UINT32(&then, (yyvsp[(4) - (7)].code) - (yyvsp[(1) - (7)].code));
+ WRITE_UINT32(&else1, (yyvsp[(7) - (7)].code) - (yyvsp[(1) - (7)].code));
+ WRITE_UINT32(&end, (yyvsp[(7) - (7)].code) - (yyvsp[(1) - (7)].code));
+ (*g_lingo->_currentScript)[(yyvsp[(1) - (7)].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[(1) - (7)].code) + 2] = else1; /* elsepart */
+ (*g_lingo->_currentScript)[(yyvsp[(1) - (7)].code) + 3] = end; /* end, if cond fails */
+
+ g_lingo->processIf(0, 0); ;}
+ break;
+
+ case 44:
+#line 356 "engines/director/lingo/lingo-gr.y"
{
inst then = 0;
- WRITE_UINT32(&then, (yyvsp[-2].code) - (yyvsp[-5].code));
- (*g_lingo->_currentScript)[(yyvsp[-5].code) + 1] = then; /* thenpart */
+ WRITE_UINT32(&then, (yyvsp[(4) - (9)].code) - (yyvsp[(1) - (9)].code));
+ (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 1] = then; /* thenpart */
- g_lingo->codeLabel((yyvsp[-5].code)); }
-#line 2243 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeLabel((yyvsp[(1) - (9)].code)); ;}
break;
- case 48:
-#line 367 "engines/director/lingo/lingo-gr.y"
+ case 45:
+#line 362 "engines/director/lingo/lingo-gr.y"
{
inst then = 0;
- WRITE_UINT32(&then, (yyvsp[-1].code) - (yyvsp[-5].code));
- (*g_lingo->_currentScript)[(yyvsp[-5].code) + 1] = then; /* thenpart */
+ WRITE_UINT32(&then, (yyvsp[(4) - (6)].code) - (yyvsp[(1) - (6)].code));
+ (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 1] = then; /* thenpart */
- g_lingo->codeLabel((yyvsp[-5].code)); }
-#line 2254 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeLabel((yyvsp[(1) - (6)].code)); ;}
break;
- case 49:
-#line 373 "engines/director/lingo/lingo-gr.y"
+ case 46:
+#line 368 "engines/director/lingo/lingo-gr.y"
{
inst then = 0;
- WRITE_UINT32(&then, (yyvsp[-1].code) - (yyvsp[-5].code));
- (*g_lingo->_currentScript)[(yyvsp[-5].code) + 1] = then; /* thenpart */
+ WRITE_UINT32(&then, (yyvsp[(4) - (7)].code) - (yyvsp[(1) - (7)].code));
+ (*g_lingo->_currentScript)[(yyvsp[(1) - (7)].code) + 1] = then; /* thenpart */
+
+ g_lingo->codeLabel((yyvsp[(1) - (7)].code));
- g_lingo->codeLabel((yyvsp[-5].code)); }
-#line 2265 "engines/director/lingo/lingo-gr.cpp"
+ checkEnd((yyvsp[(7) - (7)].s), "if", true); ;}
break;
- case 50:
-#line 381 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->code3(g_lingo->c_repeatwhilecode, STOP, STOP); }
-#line 2271 "engines/director/lingo/lingo-gr.cpp"
+ case 47:
+#line 376 "engines/director/lingo/lingo-gr.y"
+ {
+ g_lingo->codeLabel((yyvsp[(2) - (5)].code));
+
+ checkEnd((yyvsp[(5) - (5)].s), "if", true); ;}
break;
- case 51:
+ case 48:
+#line 380 "engines/director/lingo/lingo-gr.y"
+ {
+ g_lingo->codeLabel((yyvsp[(2) - (4)].code)); ;}
+ break;
+
+ case 49:
#line 384 "engines/director/lingo/lingo-gr.y"
+ { (yyval.code) = g_lingo->code3(g_lingo->c_repeatwhilecode, STOP, STOP); ;}
+ break;
+
+ case 50:
+#line 387 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code3(g_lingo->c_repeatwithcode, STOP, STOP);
g_lingo->code3(STOP, STOP, STOP);
- g_lingo->codeString((yyvsp[0].s)->c_str());
- delete (yyvsp[0].s); }
-#line 2281 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeString((yyvsp[(3) - (3)].s)->c_str());
+ delete (yyvsp[(3) - (3)].s); ;}
break;
- case 52:
-#line 391 "engines/director/lingo/lingo-gr.y"
+ case 51:
+#line 394 "engines/director/lingo/lingo-gr.y"
{
(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); }
-#line 2291 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeLabel(0); ;}
break;
- case 53:
-#line 398 "engines/director/lingo/lingo-gr.y"
+ case 52:
+#line 401 "engines/director/lingo/lingo-gr.y"
{
inst skipEnd;
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); }
-#line 2302 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->code1(skipEnd); ;}
break;
- case 54:
-#line 406 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->_currentScript->size(); }
-#line 2308 "engines/director/lingo/lingo-gr.cpp"
- break;
-
- case 55:
+ case 53:
#line 409 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(STOP); (yyval.code) = g_lingo->_currentScript->size(); }
-#line 2314 "engines/director/lingo/lingo-gr.cpp"
+ { (yyval.code) = g_lingo->_currentScript->size(); ;}
break;
- case 56:
+ case 54:
#line 412 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->_currentScript->size(); }
-#line 2320 "engines/director/lingo/lingo-gr.cpp"
+ { g_lingo->code1(STOP); (yyval.code) = g_lingo->_currentScript->size(); ;}
break;
- case 59:
-#line 417 "engines/director/lingo/lingo-gr.y"
+ case 55:
+#line 415 "engines/director/lingo/lingo-gr.y"
+ { (yyval.code) = g_lingo->_currentScript->size(); ;}
+ break;
+
+ case 58:
+#line 420 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_whencode);
g_lingo->code1(STOP);
- g_lingo->codeString((yyvsp[-1].s)->c_str());
- delete (yyvsp[-1].s); }
-#line 2330 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeString((yyvsp[(2) - (3)].s)->c_str());
+ delete (yyvsp[(2) - (3)].s); ;}
break;
- case 60:
-#line 423 "engines/director/lingo/lingo-gr.y"
+ case 59:
+#line 426 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_tellcode);
- g_lingo->code1(STOP); }
-#line 2338 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->code1(STOP); ;}
break;
- case 61:
-#line 427 "engines/director/lingo/lingo-gr.y"
+ case 60:
+#line 430 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_intpush);
- g_lingo->codeInt((yyvsp[0].i)); }
-#line 2346 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeInt((yyvsp[(1) - (1)].i)); ;}
break;
- case 62:
-#line 430 "engines/director/lingo/lingo-gr.y"
+ case 61:
+#line 433 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_floatpush);
- g_lingo->codeFloat((yyvsp[0].f)); }
-#line 2354 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeFloat((yyvsp[(1) - (1)].f)); ;}
break;
- case 63:
-#line 433 "engines/director/lingo/lingo-gr.y"
+ case 62:
+#line 436 "engines/director/lingo/lingo-gr.y"
{ // D3
(yyval.code) = g_lingo->code1(g_lingo->c_symbolpush);
- g_lingo->codeString((yyvsp[0].s)->c_str()); }
-#line 2362 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); ;}
break;
- case 64:
-#line 436 "engines/director/lingo/lingo-gr.y"
+ case 63:
+#line 439 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_stringpush);
- g_lingo->codeString((yyvsp[0].s)->c_str()); }
-#line 2370 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); ;}
break;
- case 65:
-#line 439 "engines/director/lingo/lingo-gr.y"
+ case 64:
+#line 442 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_eval);
- g_lingo->codeString((yyvsp[0].s)->c_str());
- delete (yyvsp[0].s); }
-#line 2379 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str());
+ delete (yyvsp[(1) - (1)].s); ;}
+ break;
+
+ case 65:
+#line 448 "engines/director/lingo/lingo-gr.y"
+ { (yyval.code) = (yyvsp[(1) - (1)].code); ;}
break;
- case 66:
-#line 445 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[0].code); }
-#line 2385 "engines/director/lingo/lingo-gr.cpp"
+ case 67:
+#line 450 "engines/director/lingo/lingo-gr.y"
+ {
+ g_lingo->codeFunc((yyvsp[(1) - (1)].s), 0);
+ delete (yyvsp[(1) - (1)].s); ;}
break;
case 68:
-#line 447 "engines/director/lingo/lingo-gr.y"
+#line 453 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[0].s), 0);
- delete (yyvsp[0].s); }
-#line 2393 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1);
+ delete (yyvsp[(1) - (2)].s); ;}
break;
case 69:
-#line 450 "engines/director/lingo/lingo-gr.y"
- {
- g_lingo->codeFunc((yyvsp[-1].s), 1);
- delete (yyvsp[-1].s); }
-#line 2401 "engines/director/lingo/lingo-gr.cpp"
+#line 456 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->codeFunc((yyvsp[(1) - (2)].s), (yyvsp[(2) - (2)].narg)); ;}
break;
case 70:
-#line 453 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeFunc((yyvsp[-1].s), (yyvsp[0].narg)); }
-#line 2407 "engines/director/lingo/lingo-gr.cpp"
+#line 457 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->codeFunc((yyvsp[(1) - (4)].s), (yyvsp[(3) - (4)].narg)); ;}
break;
case 71:
-#line 454 "engines/director/lingo/lingo-gr.y"
- { 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"
+#line 458 "engines/director/lingo/lingo-gr.y"
{
- (yyval.code) = g_lingo->codeFunc((yyvsp[-3].s), (yyvsp[-1].narg));
- delete (yyvsp[-3].s); }
-#line 2421 "engines/director/lingo/lingo-gr.cpp"
+ (yyval.code) = g_lingo->codeFunc((yyvsp[(1) - (4)].s), (yyvsp[(3) - (4)].narg));
+ delete (yyvsp[(1) - (4)].s); ;}
break;
- case 73:
-#line 458 "engines/director/lingo/lingo-gr.y"
+ case 72:
+#line 461 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(0); // Put dummy id
g_lingo->code1(g_lingo->c_theentitypush);
inst e = 0, f = 0;
- 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"
+ WRITE_UINT32(&e, (yyvsp[(1) - (1)].e)[0]);
+ WRITE_UINT32(&f, (yyvsp[(1) - (1)].e)[1]);
+ g_lingo->code2(e, f); ;}
break;
- case 74:
-#line 466 "engines/director/lingo/lingo-gr.y"
+ case 73:
+#line 469 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_theentitypush);
inst e = 0, f = 0;
- 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"
+ WRITE_UINT32(&e, (yyvsp[(1) - (2)].e)[0]);
+ WRITE_UINT32(&f, (yyvsp[(1) - (2)].e)[1]);
+ g_lingo->code2(e, f); ;}
+ break;
+
+ case 75:
+#line 476 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_add); ;}
break;
case 76:
-#line 473 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_add); }
-#line 2451 "engines/director/lingo/lingo-gr.cpp"
+#line 477 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_sub); ;}
break;
case 77:
-#line 474 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_sub); }
-#line 2457 "engines/director/lingo/lingo-gr.cpp"
+#line 478 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_mul); ;}
break;
case 78:
-#line 475 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_mul); }
-#line 2463 "engines/director/lingo/lingo-gr.cpp"
+#line 479 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_div); ;}
break;
case 79:
-#line 476 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_div); }
-#line 2469 "engines/director/lingo/lingo-gr.cpp"
+#line 480 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_mod); ;}
break;
case 80:
-#line 477 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_mod); }
-#line 2475 "engines/director/lingo/lingo-gr.cpp"
+#line 481 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_gt); ;}
break;
case 81:
-#line 478 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gt); }
-#line 2481 "engines/director/lingo/lingo-gr.cpp"
+#line 482 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_lt); ;}
break;
case 82:
-#line 479 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_lt); }
-#line 2487 "engines/director/lingo/lingo-gr.cpp"
+#line 483 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_eq); ;}
break;
case 83:
-#line 480 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_eq); }
-#line 2493 "engines/director/lingo/lingo-gr.cpp"
+#line 484 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_neq); ;}
break;
case 84:
-#line 481 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_neq); }
-#line 2499 "engines/director/lingo/lingo-gr.cpp"
+#line 485 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_ge); ;}
break;
case 85:
-#line 482 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_ge); }
-#line 2505 "engines/director/lingo/lingo-gr.cpp"
+#line 486 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_le); ;}
break;
case 86:
-#line 483 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_le); }
-#line 2511 "engines/director/lingo/lingo-gr.cpp"
+#line 487 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_and); ;}
break;
case 87:
-#line 484 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_and); }
-#line 2517 "engines/director/lingo/lingo-gr.cpp"
+#line 488 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_or); ;}
break;
case 88:
-#line 485 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_or); }
-#line 2523 "engines/director/lingo/lingo-gr.cpp"
+#line 489 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_not); ;}
break;
case 89:
-#line 486 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_not); }
-#line 2529 "engines/director/lingo/lingo-gr.cpp"
+#line 490 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_ampersand); ;}
break;
case 90:
-#line 487 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_ampersand); }
-#line 2535 "engines/director/lingo/lingo-gr.cpp"
+#line 491 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_concat); ;}
break;
case 91:
-#line 488 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_concat); }
-#line 2541 "engines/director/lingo/lingo-gr.cpp"
+#line 492 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_contains); ;}
break;
case 92:
-#line 489 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_contains); }
-#line 2547 "engines/director/lingo/lingo-gr.cpp"
+#line 493 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_starts); ;}
break;
case 93:
-#line 490 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_starts); }
-#line 2553 "engines/director/lingo/lingo-gr.cpp"
+#line 494 "engines/director/lingo/lingo-gr.y"
+ { (yyval.code) = (yyvsp[(2) - (2)].code); ;}
break;
case 94:
-#line 491 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[0].code); }
-#line 2559 "engines/director/lingo/lingo-gr.cpp"
+#line 495 "engines/director/lingo/lingo-gr.y"
+ { (yyval.code) = (yyvsp[(2) - (2)].code); g_lingo->code1(g_lingo->c_negate); ;}
break;
case 95:
-#line 492 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[0].code); g_lingo->code1(g_lingo->c_negate); }
-#line 2565 "engines/director/lingo/lingo-gr.cpp"
+#line 496 "engines/director/lingo/lingo-gr.y"
+ { (yyval.code) = (yyvsp[(2) - (3)].code); ;}
break;
case 96:
-#line 493 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[-1].code); }
-#line 2571 "engines/director/lingo/lingo-gr.cpp"
+#line 497 "engines/director/lingo/lingo-gr.y"
+ { (yyval.code) = g_lingo->code1(g_lingo->c_arraypush); g_lingo->codeArray((yyvsp[(2) - (3)].narg)); ;}
break;
case 97:
-#line 494 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->code1(g_lingo->c_arraypush); g_lingo->codeArray((yyvsp[-1].narg)); }
-#line 2577 "engines/director/lingo/lingo-gr.cpp"
+#line 498 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_intersects); ;}
break;
case 98:
-#line 495 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_intersects); }
-#line 2583 "engines/director/lingo/lingo-gr.cpp"
+#line 499 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_within); ;}
break;
case 99:
-#line 496 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_within); }
-#line 2589 "engines/director/lingo/lingo-gr.cpp"
+#line 500 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_charOf); ;}
break;
case 100:
-#line 497 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_charOf); }
-#line 2595 "engines/director/lingo/lingo-gr.cpp"
+#line 501 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_charToOf); ;}
break;
case 101:
-#line 498 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_charToOf); }
-#line 2601 "engines/director/lingo/lingo-gr.cpp"
+#line 502 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_itemOf); ;}
break;
case 102:
-#line 499 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_itemOf); }
-#line 2607 "engines/director/lingo/lingo-gr.cpp"
+#line 503 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_itemToOf); ;}
break;
case 103:
-#line 500 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_itemToOf); }
-#line 2613 "engines/director/lingo/lingo-gr.cpp"
+#line 504 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_lineOf); ;}
break;
case 104:
-#line 501 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_lineOf); }
-#line 2619 "engines/director/lingo/lingo-gr.cpp"
+#line 505 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_lineToOf); ;}
break;
case 105:
-#line 502 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_lineToOf); }
-#line 2625 "engines/director/lingo/lingo-gr.cpp"
+#line 506 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_wordOf); ;}
break;
case 106:
-#line 503 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_wordOf); }
-#line 2631 "engines/director/lingo/lingo-gr.cpp"
+#line 507 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_wordToOf); ;}
break;
case 107:
-#line 504 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_wordToOf); }
-#line 2637 "engines/director/lingo/lingo-gr.cpp"
+#line 508 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->codeMe(nullptr, 0); ;}
break;
case 108:
-#line 505 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeMe(nullptr, 0); }
-#line 2643 "engines/director/lingo/lingo-gr.cpp"
+#line 511 "engines/director/lingo/lingo-gr.y"
+ {
+ g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1);
+ delete (yyvsp[(1) - (2)].s); ;}
break;
case 109:
-#line 508 "engines/director/lingo/lingo-gr.y"
- {
- g_lingo->codeFunc((yyvsp[-1].s), 1);
- delete (yyvsp[-1].s); }
-#line 2651 "engines/director/lingo/lingo-gr.cpp"
+#line 516 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_printtop); ;}
break;
- case 110:
-#line 513 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_printtop); }
-#line 2657 "engines/director/lingo/lingo-gr.cpp"
+ case 112:
+#line 519 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_exitRepeat); ;}
break;
case 113:
-#line 516 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_exitRepeat); }
-#line 2663 "engines/director/lingo/lingo-gr.cpp"
+#line 520 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_procret); ;}
break;
- case 114:
-#line 517 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_procret); }
-#line 2669 "engines/director/lingo/lingo-gr.cpp"
+ case 117:
+#line 524 "engines/director/lingo/lingo-gr.y"
+ {
+ g_lingo->codeFunc((yyvsp[(1) - (1)].s), 0);
+ delete (yyvsp[(1) - (1)].s); ;}
break;
case 118:
-#line 521 "engines/director/lingo/lingo-gr.y"
+#line 527 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[0].s), 0);
- delete (yyvsp[0].s); }
-#line 2677 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1);
+ delete (yyvsp[(1) - (2)].s); ;}
break;
case 119:
-#line 524 "engines/director/lingo/lingo-gr.y"
+#line 530 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[-1].s), 1);
- delete (yyvsp[-1].s); }
-#line 2685 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1);
+ delete (yyvsp[(1) - (2)].s); ;}
break;
case 120:
-#line 527 "engines/director/lingo/lingo-gr.y"
+#line 533 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[-1].s), 1);
- delete (yyvsp[-1].s); }
-#line 2693 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->code1(g_lingo->c_voidpush);
+ g_lingo->codeFunc((yyvsp[(1) - (1)].s), 1);
+ delete (yyvsp[(1) - (1)].s); ;}
break;
case 121:
-#line 530 "engines/director/lingo/lingo-gr.y"
- {
- g_lingo->code1(g_lingo->c_voidpush);
- g_lingo->codeFunc((yyvsp[0].s), 1);
- delete (yyvsp[0].s); }
-#line 2702 "engines/director/lingo/lingo-gr.cpp"
+#line 537 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->codeFunc((yyvsp[(1) - (2)].s), (yyvsp[(2) - (2)].narg)); ;}
break;
case 122:
-#line 534 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeFunc((yyvsp[-1].s), (yyvsp[0].narg)); }
-#line 2708 "engines/director/lingo/lingo-gr.cpp"
+#line 538 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->codeFunc((yyvsp[(1) - (4)].s), (yyvsp[(3) - (4)].narg)); ;}
break;
case 123:
-#line 535 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeFunc((yyvsp[-3].s), (yyvsp[-1].narg)); }
-#line 2714 "engines/director/lingo/lingo-gr.cpp"
+#line 539 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->codeMe((yyvsp[(3) - (4)].s), 0); ;}
break;
case 124:
-#line 536 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeMe((yyvsp[-1].s), 0); }
-#line 2720 "engines/director/lingo/lingo-gr.cpp"
+#line 540 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->codeMe((yyvsp[(3) - (6)].s), (yyvsp[(5) - (6)].narg)); ;}
break;
case 125:
-#line 537 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeMe((yyvsp[-3].s), (yyvsp[-1].narg)); }
-#line 2726 "engines/director/lingo/lingo-gr.cpp"
+#line 541 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_open); ;}
break;
case 126:
-#line 538 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_open); }
-#line 2732 "engines/director/lingo/lingo-gr.cpp"
+#line 542 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code2(g_lingo->c_voidpush, g_lingo->c_open); ;}
break;
case 127:
-#line 539 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code2(g_lingo->c_voidpush, g_lingo->c_open); }
-#line 2738 "engines/director/lingo/lingo-gr.cpp"
+#line 543 "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)); ;}
break;
case 128:
-#line 540 "engines/director/lingo/lingo-gr.y"
- { 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"
+#line 546 "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); ;}
break;
case 129:
-#line 543 "engines/director/lingo/lingo-gr.y"
- { 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"
+#line 547 "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); ;}
break;
case 130:
-#line 544 "engines/director/lingo/lingo-gr.y"
- { 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"
+#line 550 "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); ;}
break;
case 131:
-#line 547 "engines/director/lingo/lingo-gr.y"
- { 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"
+#line 551 "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); ;}
break;
case 132:
-#line 548 "engines/director/lingo/lingo-gr.y"
- { 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"
+#line 554 "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); ;}
break;
case 133:
-#line 551 "engines/director/lingo/lingo-gr.y"
- { 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"
+#line 555 "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); ;}
break;
case 134:
-#line 552 "engines/director/lingo/lingo-gr.y"
- { 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"
+#line 566 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_gotoloop); ;}
break;
case 135:
-#line 563 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gotoloop); }
-#line 2786 "engines/director/lingo/lingo-gr.cpp"
+#line 567 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_gotonext); ;}
break;
case 136:
-#line 564 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gotonext); }
-#line 2792 "engines/director/lingo/lingo-gr.cpp"
+#line 568 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_gotoprevious); ;}
break;
case 137:
-#line 565 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gotoprevious); }
-#line 2798 "engines/director/lingo/lingo-gr.cpp"
- break;
-
- case 138:
-#line 566 "engines/director/lingo/lingo-gr.y"
+#line 569 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(1);
- g_lingo->code1(g_lingo->c_goto); }
-#line 2807 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->code1(g_lingo->c_goto); ;}
break;
- case 139:
-#line 570 "engines/director/lingo/lingo-gr.y"
+ case 138:
+#line 573 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(3);
- g_lingo->code1(g_lingo->c_goto); }
-#line 2816 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->code1(g_lingo->c_goto); ;}
break;
- case 140:
-#line 574 "engines/director/lingo/lingo-gr.y"
+ case 139:
+#line 577 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(2);
- g_lingo->code1(g_lingo->c_goto); }
-#line 2825 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->code1(g_lingo->c_goto); ;}
break;
- case 145:
-#line 588 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_playdone); }
-#line 2831 "engines/director/lingo/lingo-gr.cpp"
+ case 144:
+#line 591 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_playdone); ;}
break;
- case 146:
-#line 589 "engines/director/lingo/lingo-gr.y"
+ case 145:
+#line 592 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(1);
- g_lingo->code1(g_lingo->c_play); }
-#line 2840 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->code1(g_lingo->c_play); ;}
break;
- case 147:
-#line 593 "engines/director/lingo/lingo-gr.y"
+ case 146:
+#line 596 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(3);
- g_lingo->code1(g_lingo->c_play); }
-#line 2849 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->code1(g_lingo->c_play); ;}
break;
- case 148:
-#line 597 "engines/director/lingo/lingo-gr.y"
+ case 147:
+#line 600 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(2);
- g_lingo->code1(g_lingo->c_play); }
-#line 2858 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->code1(g_lingo->c_play); ;}
break;
- case 149:
-#line 601 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeSetImmediate(true); }
-#line 2864 "engines/director/lingo/lingo-gr.cpp"
+ case 148:
+#line 604 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->codeSetImmediate(true); ;}
break;
- case 150:
-#line 601 "engines/director/lingo/lingo-gr.y"
+ case 149:
+#line 604 "engines/director/lingo/lingo-gr.y"
{
g_lingo->codeSetImmediate(false);
- g_lingo->codeFunc((yyvsp[-2].s), (yyvsp[0].narg)); }
-#line 2872 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->codeFunc((yyvsp[(1) - (3)].s), (yyvsp[(3) - (3)].narg)); ;}
break;
- case 151:
-#line 631 "engines/director/lingo/lingo-gr.y"
- { g_lingo->_indef = true; g_lingo->_currentFactory.clear(); }
-#line 2878 "engines/director/lingo/lingo-gr.cpp"
+ case 150:
+#line 634 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->_indef = true; g_lingo->_currentFactory.clear(); ;}
break;
- case 152:
-#line 632 "engines/director/lingo/lingo-gr.y"
+ case 151:
+#line 635 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_procret);
- g_lingo->define(*(yyvsp[-6].s), (yyvsp[-4].code), (yyvsp[-3].narg));
- g_lingo->_indef = false; }
-#line 2887 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->define(*(yyvsp[(2) - (8)].s), (yyvsp[(4) - (8)].code), (yyvsp[(5) - (8)].narg));
+ g_lingo->_indef = false; ;}
break;
- case 153:
-#line 636 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeFactory(*(yyvsp[0].s)); }
-#line 2893 "engines/director/lingo/lingo-gr.cpp"
+ case 152:
+#line 639 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->codeFactory(*(yyvsp[(2) - (2)].s)); ;}
break;
- case 154:
-#line 637 "engines/director/lingo/lingo-gr.y"
- { g_lingo->_indef = true; }
-#line 2899 "engines/director/lingo/lingo-gr.cpp"
+ case 153:
+#line 640 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->_indef = true; ;}
break;
- case 155:
-#line 638 "engines/director/lingo/lingo-gr.y"
+ case 154:
+#line 641 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_procret);
- 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"
+ g_lingo->define(*(yyvsp[(2) - (8)].s), (yyvsp[(4) - (8)].code), (yyvsp[(5) - (8)].narg) + 1, &g_lingo->_currentFactory);
+ g_lingo->_indef = false; ;}
break;
- case 156:
-#line 642 "engines/director/lingo/lingo-gr.y"
+ case 155:
+#line 645 "engines/director/lingo/lingo-gr.y"
{ // D3
g_lingo->code1(g_lingo->c_procret);
- g_lingo->define(*(yyvsp[-7].s), (yyvsp[-6].code), (yyvsp[-5].narg));
+ g_lingo->define(*(yyvsp[(1) - (8)].s), (yyvsp[(2) - (8)].code), (yyvsp[(3) - (8)].narg));
g_lingo->_indef = false;
g_lingo->_ignoreMe = false;
- checkEnd((yyvsp[-1].s), (yyvsp[-7].s)->c_str(), false); }
-#line 2920 "engines/director/lingo/lingo-gr.cpp"
+ checkEnd((yyvsp[(7) - (8)].s), (yyvsp[(1) - (8)].s)->c_str(), false); ;}
break;
- case 157:
-#line 649 "engines/director/lingo/lingo-gr.y"
+ case 156:
+#line 652 "engines/director/lingo/lingo-gr.y"
{ // D4. No 'end' clause
g_lingo->code1(g_lingo->c_procret);
- g_lingo->define(*(yyvsp[-5].s), (yyvsp[-4].code), (yyvsp[-3].narg));
+ g_lingo->define(*(yyvsp[(1) - (6)].s), (yyvsp[(2) - (6)].code), (yyvsp[(3) - (6)].narg));
g_lingo->_indef = false;
- g_lingo->_ignoreMe = false; }
-#line 2930 "engines/director/lingo/lingo-gr.cpp"
+ g_lingo->_ignoreMe = false; ;}
+ break;
+
+ case 157:
+#line 658 "engines/director/lingo/lingo-gr.y"
+ { (yyval.s) = (yyvsp[(2) - (2)].s); g_lingo->_indef = true; g_lingo->_currentFactory.clear(); g_lingo->_ignoreMe = true; ;}
break;
case 158:
-#line 655 "engines/director/lingo/lingo-gr.y"
- { (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"
+#line 660 "engines/director/lingo/lingo-gr.y"
+ { (yyval.narg) = 0; ;}
break;
case 159:
-#line 657 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = 0; }
-#line 2942 "engines/director/lingo/lingo-gr.cpp"
+#line 661 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->codeArg((yyvsp[(1) - (1)].s)); (yyval.narg) = 1; ;}
break;
case 160:
-#line 658 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeArg((yyvsp[0].s)); (yyval.narg) = 1; }
-#line 2948 "engines/director/lingo/lingo-gr.cpp"
+#line 662 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->codeArg((yyvsp[(3) - (3)].s)); (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;}
break;
case 161:
-#line 659 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeArg((yyvsp[0].s)); (yyval.narg) = (yyvsp[-2].narg) + 1; }
-#line 2954 "engines/director/lingo/lingo-gr.cpp"
+#line 663 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->codeArg((yyvsp[(4) - (4)].s)); (yyval.narg) = (yyvsp[(1) - (4)].narg) + 1; ;}
break;
- case 162:
-#line 660 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeArg((yyvsp[0].s)); (yyval.narg) = (yyvsp[-3].narg) + 1; }
-#line 2960 "engines/director/lingo/lingo-gr.cpp"
+ case 165:
+#line 671 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->codeArgStore(); ;}
break;
case 166:
-#line 668 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeArgStore(); }
-#line 2966 "engines/director/lingo/lingo-gr.cpp"
- break;
-
- case 167:
-#line 672 "engines/director/lingo/lingo-gr.y"
+#line 675 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_call);
- g_lingo->codeString((yyvsp[-1].s)->c_str());
+ g_lingo->codeString((yyvsp[(1) - (2)].s)->c_str());
inst numpar = 0;
- WRITE_UINT32(&numpar, (yyvsp[0].narg));
- g_lingo->code1(numpar); }
-#line 2977 "engines/director/lingo/lingo-gr.cpp"
+ WRITE_UINT32(&numpar, (yyvsp[(2) - (2)].narg));
+ g_lingo->code1(numpar); ;}
+ break;
+
+ case 167:
+#line 683 "engines/director/lingo/lingo-gr.y"
+ { (yyval.narg) = 0; ;}
break;
case 168:
-#line 680 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = 0; }
-#line 2983 "engines/director/lingo/lingo-gr.cpp"
+#line 684 "engines/director/lingo/lingo-gr.y"
+ { (yyval.narg) = 1; ;}
break;
case 169:
-#line 681 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = 1; }
-#line 2989 "engines/director/lingo/lingo-gr.cpp"
+#line 685 "engines/director/lingo/lingo-gr.y"
+ { (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;}
break;
case 170:
-#line 682 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = (yyvsp[-2].narg) + 1; }
-#line 2995 "engines/director/lingo/lingo-gr.cpp"
+#line 688 "engines/director/lingo/lingo-gr.y"
+ { (yyval.narg) = 1; ;}
break;
case 171:
-#line 685 "engines/director/lingo/lingo-gr.y"
- { (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[-2].narg) + 1; }
-#line 3007 "engines/director/lingo/lingo-gr.cpp"
+#line 689 "engines/director/lingo/lingo-gr.y"
+ { (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;}
break;
-#line 3011 "engines/director/lingo/lingo-gr.cpp"
-
+/* Line 1267 of yacc.c. */
+#line 3171 "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);
@@ -3030,28 +3178,26 @@ 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. */
- {
- const int yylhs = yyr1[yyn] - YYNTOKENS;
- const int yyi = yypgoto[yylhs] + *yyssp;
- yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
- ? yytable[yyi]
- : yydefgoto[yylhs]);
- }
+
+ yyn = yyr1[yyn];
+
+ yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
+ if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
+ yystate = yytable[yystate];
+ else
+ yystate = yydefgoto[yyn - YYNTOKENS];
goto yynewstate;
-/*--------------------------------------.
-| yyerrlab -- here on detecting error. |
-`--------------------------------------*/
+/*------------------------------------.
+| yyerrlab -- 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)
{
@@ -3059,36 +3205,37 @@ yyerrlab:
#if ! YYERROR_VERBOSE
yyerror (YY_("syntax error"));
#else
-# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
- yyssp, yytoken)
{
- 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;
+ 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;
+ }
}
-# undef YYSYNTAX_ERROR
#endif
}
@@ -3096,24 +3243,24 @@ yyerrlab:
if (yyerrstatus == 3)
{
- /* If just tried and failed to reuse lookahead token after an
- error, discard it. */
+ /* If just tried and failed to reuse look-ahead token after an
+ error, discard it. */
if (yychar <= YYEOF)
- {
- /* Return failure if at end of input. */
- if (yychar == YYEOF)
- YYABORT;
- }
+ {
+ /* Return failure if at end of input. */
+ if (yychar == YYEOF)
+ YYABORT;
+ }
else
- {
- yydestruct ("Error: discarding",
- yytoken, &yylval);
- yychar = YYEMPTY;
- }
+ {
+ yydestruct ("Error: discarding",
+ yytoken, &yylval);
+ yychar = YYEMPTY;
+ }
}
- /* Else will try to reuse lookahead token after shifting the error
+ /* Else will try to reuse look-ahead token after shifting the error
token. */
goto yyerrlab1;
@@ -3122,12 +3269,14 @@ 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;
- /* Do not reclaim the symbols of the rule whose action triggered
+ /* Pacify compilers like GCC when the user code never invokes
+ YYERROR and the label yyerrorlab therefore never appears in user
+ code. */
+ if (/*CONSTCOND*/ 0)
+ goto yyerrorlab;
+
+ /* Do not reclaim the symbols of the rule which action triggered
this YYERROR. */
YYPOPSTACK (yylen);
yylen = 0;
@@ -3140,37 +3289,38 @@ 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 (!yypact_value_is_default (yyn))
- {
- yyn += YYTERROR;
- if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
- {
- yyn = yytable[yyn];
- if (0 < yyn)
- break;
- }
- }
+ if (yyn != YYPACT_NINF)
+ {
+ yyn += YYTERROR;
+ if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
+ {
+ yyn = yytable[yyn];
+ if (0 < yyn)
+ break;
+ }
+ }
/* Pop the current state because it cannot handle the error token. */
if (yyssp == yyss)
- YYABORT;
+ YYABORT;
yydestruct ("Error: popping",
- yystos[yystate], yyvsp);
+ yystos[yystate], yyvsp);
YYPOPSTACK (1);
yystate = *yyssp;
YY_STACK_PRINT (yyss, yyssp);
}
- YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+ if (yyn == YYFINAL)
+ YYACCEPT;
+
*++yyvsp = yylval;
- YY_IGNORE_MAYBE_UNINITIALIZED_END
/* Shift the error token. */
@@ -3187,7 +3337,6 @@ yyacceptlab:
yyresult = 0;
goto yyreturn;
-
/*-----------------------------------.
| yyabortlab -- YYABORT comes here. |
`-----------------------------------*/
@@ -3195,8 +3344,7 @@ yyabortlab:
yyresult = 1;
goto yyreturn;
-
-#if !defined yyoverflow || YYERROR_VERBOSE
+#ifndef yyoverflow
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here. |
`-------------------------------------------------*/
@@ -3206,27 +3354,18 @@ yyexhaustedlab:
/* Fall through. */
#endif
-
-/*-----------------------------------------------------.
-| yyreturn -- parsing is finished, return the result. |
-`-----------------------------------------------------*/
yyreturn:
- 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
+ if (yychar != YYEOF && yychar != YYEMPTY)
+ yydestruct ("Cleanup: discarding lookahead",
+ yytoken, &yylval);
+ /* Do not reclaim the symbols of the rule which action triggered
this YYABORT or YYACCEPT. */
YYPOPSTACK (yylen);
YY_STACK_PRINT (yyss, yyssp);
while (yyssp != yyss)
{
yydestruct ("Cleanup: popping",
- yystos[*yyssp], yyvsp);
+ yystos[*yyssp], yyvsp);
YYPOPSTACK (1);
}
#ifndef yyoverflow
@@ -3237,7 +3376,11 @@ yyreturn:
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
#endif
- return yyresult;
+ /* Make sure YYID is used. */
+ return YYID (yyresult);
}
-#line 689 "engines/director/lingo/lingo-gr.y"
+
+
+#line 692 "engines/director/lingo/lingo-gr.y"
+