aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/director/lingo/lingo-bytecode.cpp40
-rw-r--r--engines/director/lingo/lingo-code.cpp19
-rw-r--r--engines/director/lingo/lingo-gr.cpp3306
-rw-r--r--engines/director/lingo/lingo-gr.h332
-rw-r--r--engines/director/lingo/lingo-gr.y2
-rw-r--r--engines/director/lingo/lingo-lex.cpp432
-rw-r--r--engines/director/lingo/lingo.cpp9
-rw-r--r--engines/director/lingo/lingo.h11
8 files changed, 2011 insertions, 2140 deletions
diff --git a/engines/director/lingo/lingo-bytecode.cpp b/engines/director/lingo/lingo-bytecode.cpp
index 371f55cf13..9e8e374c32 100644
--- a/engines/director/lingo/lingo-bytecode.cpp
+++ b/engines/director/lingo/lingo-bytecode.cpp
@@ -54,18 +54,19 @@ static LingoV4Bytecode lingoV4[] = {
{ 0x1c, Lingo::c_tell, "" },
{ 0x1d, Lingo::c_telldone, "" },
{ 0x41, Lingo::c_intpush, "b" },
- { 0x42, Lingo::c_argspush, "b" },
- { 0x43, Lingo::c_arraypush, "b" },
+ { 0x42, Lingo::c_argcpush, "b" },
{ 0x44, Lingo::c_constpush, "bv" },
{ 0x45, Lingo::c_symbolpush, "b" },
{ 0x53, Lingo::c_jump, "jb" },
{ 0x54, Lingo::c_jump, "jbn" },
{ 0x55, Lingo::c_jumpifz, "jb" },
+ { 0x56, Lingo::cb_localcall, "b" },
+ { 0x57, Lingo::cb_call, "b" },
{ 0x5c, Lingo::cb_v4theentitypush, "b" },
{ 0x5d, Lingo::cb_v4theentityassign, "b" },
{ 0x66, Lingo::cb_v4theentitynamepush, "b" },
{ 0x81, Lingo::c_intpush, "w" },
- { 0x82, Lingo::c_argspush, "w" },
+ { 0x82, Lingo::c_argcpush, "w" },
{ 0x83, Lingo::c_arraypush, "w" },
{ 0x84, Lingo::c_constpush, "wv" },
{ 0x93, Lingo::c_jump, "jw" },
@@ -182,6 +183,36 @@ void Lingo::initBytecode() {
}
+void Lingo::cb_localcall() {
+ int nameId = g_lingo->readInt();
+ Common::String name = g_lingo->_namelist[nameId];
+
+ Datum nargs = g_lingo->pop();
+ if ((nargs.type == ARGC) || (nargs.type == ARGCNORET)) {
+ warning("STUB: cb_localcall(%s)", name.c_str());
+
+ } else {
+ warning("cb_localcall: first arg should be of type ARGC or ARGCNORET, not %s", nargs.type2str());
+ }
+
+}
+
+
+void Lingo::cb_call() {
+ int nameId = g_lingo->readInt();
+ Common::String name = g_lingo->_namelist[nameId];
+
+ Datum nargs = g_lingo->pop();
+ if ((nargs.type == ARGC) || (nargs.type == ARGCNORET)) {
+ g_lingo->call(name, nargs.u.i);
+
+ } else {
+ warning("cb_call: first arg should be of type ARGC or ARGCNORET, not %s", nargs.type2str());
+ }
+
+}
+
+
void Lingo::cb_v4theentitypush() {
int bank = g_lingo->readInt();
@@ -252,7 +283,8 @@ void Lingo::cb_v4theentitynamepush() {
TheEntity *entity = g_lingo->_theEntities[name];
- debugC(3, kDebugLingoExec, "cb_v4theentitynamepush: calling getTheEntity(0x%02x, id, kTheNOField)", entity->entity, name.c_str());
+ debugC(3, kDebugLingoExec, "cb_v4theentitynamepush: %s", name.c_str());
+ debugC(3, kDebugLingoExec, "cb_v4theentitynamepush: calling getTheEntity(0x%02x, id, kTheNOField)", entity->entity);
Datum result = g_lingo->getTheEntity(entity->entity, id, kTheNOField);
g_lingo->push(result);
diff --git a/engines/director/lingo/lingo-code.cpp b/engines/director/lingo/lingo-code.cpp
index 3575dc32eb..be4c10fcf8 100644
--- a/engines/director/lingo/lingo-code.cpp
+++ b/engines/director/lingo/lingo-code.cpp
@@ -57,7 +57,8 @@ static struct FuncDescr {
} funcDescr[] = {
{ 0, "STOP", "" },
{ Lingo::c_xpop, "c_xpop", "" },
- { Lingo::c_argspush, "c_argspush", "i" },
+ { Lingo::c_argcpush, "c_argcpush", "i" },
+ { Lingo::c_argcnoretpush, "c_argcnoretpush", "i" },
{ Lingo::c_arraypush, "c_arraypush", "i" },
{ Lingo::c_printtop, "c_printtop", "" },
{ Lingo::c_intpush, "c_intpush", "i" },
@@ -132,6 +133,8 @@ static struct FuncDescr {
{ Lingo::c_unk, "c_unk", "i" },
{ Lingo::c_unk1, "c_unk1", "ii" },
{ Lingo::c_unk2, "c_unk2", "iii" },
+ { Lingo::cb_call, "cb_call", "i" },
+ { Lingo::cb_localcall, "cb_localcall", "i" },
{ Lingo::cb_v4theentitypush,"c_v4theentitypush","i" },
{ Lingo::cb_v4theentitynamepush,"c_v4theentitynamepush","i" },
{ Lingo::cb_v4theentityassign,"c_v4theentityassign","i" },
@@ -253,17 +256,21 @@ void Lingo::c_constpush() {
g_lingo->push(d);
}
-void Lingo::c_argspush() {
+void Lingo::c_argcpush() {
Datum d;
int argsSize = g_lingo->readInt();
- warning("STUB: c_argspush()");
+ d.u.i = argsSize;
+ d.type = ARGC;
+ g_lingo->push(d);
+}
- for (int i = 0; i < argsSize; i++)
- g_lingo->pop();
+void Lingo::c_argcnoretpush() {
+ Datum d;
+ int argsSize = g_lingo->readInt();
d.u.i = argsSize;
- d.type = INT;
+ d.type = ARGCNORET;
g_lingo->push(d);
}
diff --git a/engines/director/lingo/lingo-gr.cpp b/engines/director/lingo/lingo-gr.cpp
index 050449a3d5..31c1e161ef 100644
--- a/engines/director/lingo/lingo-gr.cpp
+++ b/engines/director/lingo/lingo-gr.cpp
@@ -1,14 +1,14 @@
-/* A Bison parser, made by GNU Bison 2.3. */
+/* A Bison parser, made by GNU Bison 3.4. */
-/* Skeleton implementation for Bison's Yacc-like parsers in C
+/* Bison implementation for Yacc-like parsers in C
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
- Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
+ Inc.
- This program is free software; you can redistribute it and/or modify
+ This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -16,9 +16,7 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
@@ -43,11 +41,14 @@
define necessary library symbols; they are noted "INFRINGES ON
USER NAME SPACE" below. */
+/* Undocumented macros, especially those whose name start with YY_,
+ are private implementation details. Do not rely on them. */
+
/* Identify Bison output. */
#define YYBISON 1
/* Bison version. */
-#define YYBISON_VERSION "2.3"
+#define YYBISON_VERSION "3.4"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -55,201 +56,16 @@
/* Pure parsers. */
#define YYPURE 0
-/* Using locations. */
-#define YYLSP_NEEDED 0
+/* Push parsers. */
+#define YYPUSH 0
+/* Pull parsers. */
+#define YYPULL 1
-/* Tokens. */
-#ifndef YYTOKENTYPE
-# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- UNARY = 258,
- CASTREF = 259,
- VOID = 260,
- VAR = 261,
- POINT = 262,
- RECT = 263,
- ARRAY = 264,
- OBJECT = 265,
- REFERENCE = 266,
- INT = 267,
- THEENTITY = 268,
- THEENTITYWITHID = 269,
- FLOAT = 270,
- BLTIN = 271,
- BLTINNOARGS = 272,
- BLTINNOARGSORONE = 273,
- BLTINONEARG = 274,
- BLTINARGLIST = 275,
- TWOWORDBUILTIN = 276,
- FBLTIN = 277,
- FBLTINNOARGS = 278,
- FBLTINONEARG = 279,
- FBLTINARGLIST = 280,
- RBLTIN = 281,
- RBLTINONEARG = 282,
- ID = 283,
- STRING = 284,
- HANDLER = 285,
- SYMBOL = 286,
- ENDCLAUSE = 287,
- tPLAYACCEL = 288,
- tDOWN = 289,
- tELSE = 290,
- tNLELSIF = 291,
- tEXIT = 292,
- tFRAME = 293,
- tGLOBAL = 294,
- tGO = 295,
- tIF = 296,
- tINTO = 297,
- tLOOP = 298,
- tMACRO = 299,
- tMOVIE = 300,
- tNEXT = 301,
- tOF = 302,
- tPREVIOUS = 303,
- tPUT = 304,
- tREPEAT = 305,
- tSET = 306,
- tTHEN = 307,
- tTHENNL = 308,
- tTO = 309,
- tWHEN = 310,
- tWITH = 311,
- tWHILE = 312,
- tNLELSE = 313,
- tFACTORY = 314,
- tMETHOD = 315,
- tOPEN = 316,
- tPLAY = 317,
- tDONE = 318,
- tINSTANCE = 319,
- tGE = 320,
- tLE = 321,
- tGT = 322,
- tLT = 323,
- tEQ = 324,
- tNEQ = 325,
- tAND = 326,
- tOR = 327,
- tNOT = 328,
- tMOD = 329,
- tAFTER = 330,
- tBEFORE = 331,
- tCONCAT = 332,
- tCONTAINS = 333,
- tSTARTS = 334,
- tCHAR = 335,
- tITEM = 336,
- tLINE = 337,
- tWORD = 338,
- tSPRITE = 339,
- tINTERSECTS = 340,
- tWITHIN = 341,
- tTELL = 342,
- tPROPERTY = 343,
- tON = 344,
- tME = 345
- };
-#endif
-/* Tokens. */
-#define UNARY 258
-#define CASTREF 259
-#define VOID 260
-#define VAR 261
-#define POINT 262
-#define RECT 263
-#define ARRAY 264
-#define OBJECT 265
-#define REFERENCE 266
-#define INT 267
-#define THEENTITY 268
-#define THEENTITYWITHID 269
-#define FLOAT 270
-#define BLTIN 271
-#define BLTINNOARGS 272
-#define BLTINNOARGSORONE 273
-#define BLTINONEARG 274
-#define BLTINARGLIST 275
-#define TWOWORDBUILTIN 276
-#define FBLTIN 277
-#define FBLTINNOARGS 278
-#define FBLTINONEARG 279
-#define FBLTINARGLIST 280
-#define RBLTIN 281
-#define RBLTINONEARG 282
-#define ID 283
-#define STRING 284
-#define HANDLER 285
-#define SYMBOL 286
-#define ENDCLAUSE 287
-#define tPLAYACCEL 288
-#define tDOWN 289
-#define tELSE 290
-#define tNLELSIF 291
-#define tEXIT 292
-#define tFRAME 293
-#define tGLOBAL 294
-#define tGO 295
-#define tIF 296
-#define tINTO 297
-#define tLOOP 298
-#define tMACRO 299
-#define tMOVIE 300
-#define tNEXT 301
-#define tOF 302
-#define tPREVIOUS 303
-#define tPUT 304
-#define tREPEAT 305
-#define tSET 306
-#define tTHEN 307
-#define tTHENNL 308
-#define tTO 309
-#define tWHEN 310
-#define tWITH 311
-#define tWHILE 312
-#define tNLELSE 313
-#define tFACTORY 314
-#define tMETHOD 315
-#define tOPEN 316
-#define tPLAY 317
-#define tDONE 318
-#define tINSTANCE 319
-#define tGE 320
-#define tLE 321
-#define tGT 322
-#define tLT 323
-#define tEQ 324
-#define tNEQ 325
-#define tAND 326
-#define tOR 327
-#define tNOT 328
-#define tMOD 329
-#define tAFTER 330
-#define tBEFORE 331
-#define tCONCAT 332
-#define tCONTAINS 333
-#define tSTARTS 334
-#define tCHAR 335
-#define tITEM 336
-#define tLINE 337
-#define tWORD 338
-#define tSPRITE 339
-#define tINTERSECTS 340
-#define tWITHIN 341
-#define tTELL 342
-#define tPROPERTY 343
-#define tON 344
-#define tME 345
-
-
-
-
-/* Copy the first part of user declarations. */
+
+
+/* First part of user prologue. */
#line 49 "engines/director/lingo/lingo-gr.y"
#define FORBIDDEN_SYMBOL_ALLOW_ALL
@@ -280,11 +96,19 @@ void checkEnd(Common::String *token, const char *expect, bool required) {
}
+#line 100 "engines/director/lingo/lingo-gr.cpp"
-/* Enabling traces. */
-#ifndef YYDEBUG
-# define YYDEBUG 1
-#endif
+# ifndef YY_NULLPTR
+# if defined __cplusplus
+# if 201103L <= __cplusplus
+# define YY_NULLPTR nullptr
+# else
+# define YY_NULLPTR 0
+# endif
+# else
+# define YY_NULLPTR ((void*)0)
+# endif
+# endif
/* Enabling verbose error messages. */
#ifdef YYERROR_VERBOSE
@@ -294,15 +118,122 @@ void checkEnd(Common::String *token, const char *expect, bool required) {
# define YYERROR_VERBOSE 0
#endif
-/* Enabling the token table. */
-#ifndef YYTOKEN_TABLE
-# define YYTOKEN_TABLE 0
+/* Use api.header.include to #include this header
+ instead of duplicating it here. */
+#ifndef YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_HPP_INCLUDED
+# define YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_HPP_INCLUDED
+/* Debug traces. */
+#ifndef YYDEBUG
+# define YYDEBUG 1
+#endif
+#if YYDEBUG
+extern int yydebug;
+#endif
+
+/* Token type. */
+#ifndef YYTOKENTYPE
+# define YYTOKENTYPE
+ enum yytokentype
+ {
+ UNARY = 258,
+ CASTREF = 259,
+ VOID = 260,
+ VAR = 261,
+ POINT = 262,
+ RECT = 263,
+ ARRAY = 264,
+ OBJECT = 265,
+ REFERENCE = 266,
+ INT = 267,
+ ARGC = 268,
+ ARGCNORET = 269,
+ THEENTITY = 270,
+ THEENTITYWITHID = 271,
+ FLOAT = 272,
+ BLTIN = 273,
+ BLTINNOARGS = 274,
+ BLTINNOARGSORONE = 275,
+ BLTINONEARG = 276,
+ BLTINARGLIST = 277,
+ TWOWORDBUILTIN = 278,
+ FBLTIN = 279,
+ FBLTINNOARGS = 280,
+ FBLTINONEARG = 281,
+ FBLTINARGLIST = 282,
+ RBLTIN = 283,
+ RBLTINONEARG = 284,
+ ID = 285,
+ STRING = 286,
+ HANDLER = 287,
+ SYMBOL = 288,
+ ENDCLAUSE = 289,
+ tPLAYACCEL = 290,
+ tDOWN = 291,
+ tELSE = 292,
+ tNLELSIF = 293,
+ tEXIT = 294,
+ tFRAME = 295,
+ tGLOBAL = 296,
+ tGO = 297,
+ tIF = 298,
+ tINTO = 299,
+ tLOOP = 300,
+ tMACRO = 301,
+ tMOVIE = 302,
+ tNEXT = 303,
+ tOF = 304,
+ tPREVIOUS = 305,
+ tPUT = 306,
+ tREPEAT = 307,
+ tSET = 308,
+ tTHEN = 309,
+ tTHENNL = 310,
+ tTO = 311,
+ tWHEN = 312,
+ tWITH = 313,
+ tWHILE = 314,
+ tNLELSE = 315,
+ tFACTORY = 316,
+ tMETHOD = 317,
+ tOPEN = 318,
+ tPLAY = 319,
+ tDONE = 320,
+ tINSTANCE = 321,
+ tGE = 322,
+ tLE = 323,
+ tGT = 324,
+ tLT = 325,
+ tEQ = 326,
+ tNEQ = 327,
+ tAND = 328,
+ tOR = 329,
+ tNOT = 330,
+ tMOD = 331,
+ tAFTER = 332,
+ tBEFORE = 333,
+ tCONCAT = 334,
+ tCONTAINS = 335,
+ tSTARTS = 336,
+ tCHAR = 337,
+ tITEM = 338,
+ tLINE = 339,
+ tWORD = 340,
+ tSPRITE = 341,
+ tINTERSECTS = 342,
+ tWITHIN = 343,
+ tTELL = 344,
+ tPROPERTY = 345,
+ tON = 346,
+ tME = 347
+ };
#endif
+/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
-#line 79 "engines/director/lingo/lingo-gr.y"
+union YYSTYPE
{
+#line 79 "engines/director/lingo/lingo-gr.y"
+
Common::String *s;
int i;
double f;
@@ -310,22 +241,23 @@ typedef union YYSTYPE
int code;
int narg; /* number of arguments */
Common::Array<double> *arr;
-}
-/* Line 193 of yacc.c. */
-#line 316 "engines/director/lingo/lingo-gr.cpp"
- YYSTYPE;
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
+
+#line 246 "engines/director/lingo/lingo-gr.cpp"
+
+};
+typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
+# define YYSTYPE_IS_DECLARED 1
#endif
+extern YYSTYPE yylval;
-/* Copy the second part of user declarations. */
+int yyparse (void);
+
+#endif /* !YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_HPP_INCLUDED */
-/* Line 216 of yacc.c. */
-#line 329 "engines/director/lingo/lingo-gr.cpp"
#ifdef short
# undef short
@@ -339,23 +271,20 @@ typedef unsigned char yytype_uint8;
#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
-#elif (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-typedef signed char yytype_int8;
#else
-typedef short int yytype_int8;
+typedef signed char yytype_int8;
#endif
#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
-typedef unsigned short int yytype_uint16;
+typedef unsigned short yytype_uint16;
#endif
#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
-typedef short int yytype_int16;
+typedef short yytype_int16;
#endif
#ifndef YYSIZE_T
@@ -363,12 +292,11 @@ typedef short int yytype_int16;
# define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
# define YYSIZE_T size_t
-# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
+# elif ! defined YYSIZE_T
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# else
-# define YYSIZE_T unsigned int
+# define YYSIZE_T unsigned
# endif
#endif
@@ -378,39 +306,61 @@ typedef short int yytype_int16;
# if defined YYENABLE_NLS && YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
-# define YY_(msgid) dgettext ("bison-runtime", msgid)
+# define YY_(Msgid) dgettext ("bison-runtime", Msgid)
# endif
# endif
# ifndef YY_
-# define YY_(msgid) msgid
+# define YY_(Msgid) Msgid
+# endif
+#endif
+
+#ifndef YY_ATTRIBUTE
+# if (defined __GNUC__ \
+ && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \
+ || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C
+# define YY_ATTRIBUTE(Spec) __attribute__(Spec)
+# else
+# define YY_ATTRIBUTE(Spec) /* empty */
# endif
#endif
+#ifndef YY_ATTRIBUTE_PURE
+# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__))
+#endif
+
+#ifndef YY_ATTRIBUTE_UNUSED
+# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__))
+#endif
+
/* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__
-# define YYUSE(e) ((void) (e))
+# define YYUSE(E) ((void) (E))
#else
-# define YYUSE(e) /* empty */
+# define YYUSE(E) /* empty */
#endif
-/* Identity function, used to suppress warnings about constant conditions. */
-#ifndef lint
-# define YYID(n) (n)
-#else
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static int
-YYID (int i)
+#if defined __GNUC__ && ! defined __ICC && 407 <= __GNUC__ * 100 + __GNUC_MINOR__
+/* Suppress an incorrect diagnostic about yylval being uninitialized. */
+# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \
+ _Pragma ("GCC diagnostic push") \
+ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\
+ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
+# define YY_IGNORE_MAYBE_UNINITIALIZED_END \
+ _Pragma ("GCC diagnostic pop")
#else
-static int
-YYID (i)
- int i;
+# define YY_INITIAL_VALUE(Value) Value
#endif
-{
- return i;
-}
+#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+# define YY_IGNORE_MAYBE_UNINITIALIZED_END
+#endif
+#ifndef YY_INITIAL_VALUE
+# define YY_INITIAL_VALUE(Value) /* Nothing. */
#endif
+
+#define YY_ASSERT(E) ((void) (0 && (E)))
+
#if ! defined yyoverflow || YYERROR_VERBOSE
/* The parser invokes alloca or malloc; define the necessary symbols. */
@@ -428,11 +378,11 @@ YYID (i)
# define alloca _alloca
# else
# define YYSTACK_ALLOC alloca
-# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
+# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-# ifndef _STDLIB_H
-# define _STDLIB_H 1
+ /* Use EXIT_SUCCESS as a witness for stdlib.h. */
+# ifndef EXIT_SUCCESS
+# define EXIT_SUCCESS 0
# endif
# endif
# endif
@@ -440,8 +390,8 @@ YYID (i)
# endif
# ifdef YYSTACK_ALLOC
- /* Pacify GCC's `empty if-body' warning. */
-# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
+ /* Pacify GCC's 'empty if-body' warning. */
+# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
# ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack,
and a page size can be as small as 4096 bytes. So we cannot safely
@@ -455,25 +405,23 @@ YYID (i)
# ifndef YYSTACK_ALLOC_MAXIMUM
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
# endif
-# if (defined __cplusplus && ! defined _STDLIB_H \
+# if (defined __cplusplus && ! defined EXIT_SUCCESS \
&& ! ((defined YYMALLOC || defined malloc) \
- && (defined YYFREE || defined free)))
+ && (defined YYFREE || defined free)))
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
-# ifndef _STDLIB_H
-# define _STDLIB_H 1
+# ifndef EXIT_SUCCESS
+# define EXIT_SUCCESS 0
# endif
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
-# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
+# if ! defined malloc && ! defined EXIT_SUCCESS
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# ifndef YYFREE
# define YYFREE free
-# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
+# if ! defined free && ! defined EXIT_SUCCESS
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
@@ -483,14 +431,14 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */
#if (! defined yyoverflow \
&& (! defined __cplusplus \
- || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
+ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
{
- yytype_int16 yyss;
- YYSTYPE yyvs;
- };
+ yytype_int16 yyss_alloc;
+ YYSTYPE yyvs_alloc;
+};
/* The size of the maximum gap between one aligned stack and the next. */
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
@@ -501,76 +449,82 @@ union yyalloc
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
+ YYSTACK_GAP_MAXIMUM)
-/* Copy COUNT objects from FROM to TO. The source and destination do
- not overlap. */
-# ifndef YYCOPY
-# if defined __GNUC__ && 1 < __GNUC__
-# define YYCOPY(To, From, Count) \
- __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
-# else
-# define YYCOPY(To, From, Count) \
- do \
- { \
- YYSIZE_T yyi; \
- for (yyi = 0; yyi < (Count); yyi++) \
- (To)[yyi] = (From)[yyi]; \
- } \
- while (YYID (0))
-# endif
-# endif
+# define YYCOPY_NEEDED 1
/* Relocate STACK from its old location to the new one. The
local variables YYSIZE and YYSTACKSIZE give the old and new number of
elements in the stack, and YYPTR gives the new location of the
stack. Advance YYPTR to a properly aligned location for the next
stack. */
-# define YYSTACK_RELOCATE(Stack) \
- do \
- { \
- YYSIZE_T yynewbytes; \
- YYCOPY (&yyptr->Stack, Stack, yysize); \
- Stack = &yyptr->Stack; \
- yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
- yyptr += yynewbytes / sizeof (*yyptr); \
- } \
- while (YYID (0))
+# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
+ do \
+ { \
+ YYSIZE_T yynewbytes; \
+ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
+ Stack = &yyptr->Stack_alloc; \
+ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
+ yyptr += yynewbytes / sizeof (*yyptr); \
+ } \
+ while (0)
#endif
+#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
+/* Copy COUNT objects from SRC to DST. The source and destination do
+ not overlap. */
+# ifndef YYCOPY
+# if defined __GNUC__ && 1 < __GNUC__
+# define YYCOPY(Dst, Src, Count) \
+ __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
+# else
+# define YYCOPY(Dst, Src, Count) \
+ do \
+ { \
+ YYSIZE_T yyi; \
+ for (yyi = 0; yyi < (Count); yyi++) \
+ (Dst)[yyi] = (Src)[yyi]; \
+ } \
+ while (0)
+# endif
+# endif
+#endif /* !YYCOPY_NEEDED */
+
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 129
/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 1870
+#define YYLAST 1844
/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 105
+#define YYNTOKENS 107
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 47
/* YYNRULES -- Number of rules. */
#define YYNRULES 172
-/* YYNRULES -- Number of states. */
+/* YYNSTATES -- Number of states. */
#define YYNSTATES 369
-/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
-#define YYMAXUTOK 345
+#define YYMAXUTOK 347
-#define YYTRANSLATE(YYX) \
- ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
+/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
+ as returned by yylex, with out-of-bounds checking. */
+#define YYTRANSLATE(YYX) \
+ ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
-/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
+/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
+ as returned by yylex. */
static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 97, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 99, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 96, 91, 2,
- 98, 99, 94, 92, 104, 93, 2, 95, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 98, 93, 2,
+ 100, 101, 96, 94, 106, 95, 2, 97, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 101, 2, 100, 2, 2, 2, 2, 2, 2, 2,
+ 103, 2, 102, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 2, 102, 2, 103, 2, 2, 2, 2, 2, 2,
+ 2, 104, 2, 105, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -595,106 +549,11 @@ static const yytype_uint8 yytranslate[] =
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
- 85, 86, 87, 88, 89, 90
+ 85, 86, 87, 88, 89, 90, 91, 92
};
#if YYDEBUG
-/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
- YYRHS. */
-static const yytype_uint16 yyprhs[] =
-{
- 0, 0, 3, 7, 9, 12, 14, 16, 18, 20,
- 21, 23, 25, 30, 35, 40, 45, 50, 55, 60,
- 65, 71, 77, 79, 81, 83, 85, 87, 93, 104,
- 116, 120, 127, 132, 139, 149, 159, 169, 180, 191,
- 198, 199, 203, 206, 208, 211, 213, 220, 222, 229,
- 236, 239, 243, 245, 247, 248, 249, 251, 254, 257,
- 261, 263, 265, 267, 269, 271, 273, 275, 277, 279,
- 282, 285, 290, 295, 297, 300, 302, 306, 310, 314,
- 318, 322, 326, 330, 334, 338, 342, 346, 350, 354,
- 357, 361, 365, 369, 373, 376, 379, 383, 387, 392,
- 397, 402, 409, 414, 421, 426, 433, 438, 445, 447,
- 450, 453, 455, 457, 460, 462, 465, 468, 471, 473,
- 476, 479, 481, 484, 489, 494, 501, 506, 509, 513,
- 515, 519, 521, 525, 527, 531, 534, 537, 540, 543,
- 547, 550, 553, 555, 559, 562, 565, 568, 572, 575,
- 576, 580, 581, 590, 593, 594, 603, 612, 619, 622,
- 623, 625, 629, 634, 635, 637, 641, 642, 645, 646,
- 648, 652, 654
-};
-
-/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-static const yytype_int16 yyrhs[] =
-{
- 106, 0, -1, 106, 107, 111, -1, 111, -1, 1,
- 107, -1, 97, -1, 53, -1, 58, -1, 36, -1,
- -1, 142, -1, 114, -1, 49, 131, 42, 28, -1,
- 49, 131, 42, 132, -1, 49, 131, 75, 131, -1,
- 49, 131, 76, 131, -1, 51, 28, 69, 131, -1,
- 51, 13, 69, 131, -1, 51, 28, 54, 131, -1,
- 51, 13, 54, 131, -1, 51, 14, 131, 54, 131,
- -1, 51, 14, 130, 69, 131, -1, 149, -1, 131,
- -1, 133, -1, 113, -1, 115, -1, 121, 131, 127,
- 126, 32, -1, 122, 69, 131, 126, 54, 131, 126,
- 127, 126, 32, -1, 122, 69, 131, 126, 34, 54,
- 131, 126, 127, 126, 32, -1, 128, 113, 126, -1,
- 129, 131, 107, 127, 126, 32, -1, 129, 131, 54,
- 131, -1, 123, 131, 108, 127, 126, 32, -1, 123,
- 131, 108, 127, 126, 109, 127, 126, 32, -1, 123,
- 131, 108, 127, 126, 125, 117, 126, 32, -1, 123,
- 131, 108, 127, 126, 109, 125, 113, 126, -1, 123,
- 131, 52, 125, 113, 126, 118, 126, 116, 126, -1,
- 123, 131, 52, 125, 113, 126, 109, 125, 113, 126,
- -1, 123, 131, 52, 125, 113, 126, -1, -1, 109,
- 125, 113, -1, 117, 120, -1, 120, -1, 118, 119,
- -1, 119, -1, 124, 131, 52, 125, 114, 126, -1,
- 118, -1, 124, 131, 52, 125, 127, 126, -1, 124,
- 131, 108, 125, 127, 126, -1, 50, 57, -1, 50,
- 56, 28, -1, 41, -1, 110, -1, -1, -1, 125,
- -1, 127, 107, -1, 127, 114, -1, 55, 28, 52,
- -1, 87, -1, 12, -1, 15, -1, 31, -1, 29,
- -1, 28, -1, 130, -1, 132, -1, 23, -1, 24,
- 131, -1, 25, 151, -1, 25, 98, 151, 99, -1,
- 28, 98, 150, 99, -1, 13, -1, 14, 131, -1,
- 112, -1, 131, 92, 131, -1, 131, 93, 131, -1,
- 131, 94, 131, -1, 131, 95, 131, -1, 131, 74,
- 131, -1, 131, 100, 131, -1, 131, 101, 131, -1,
- 131, 69, 131, -1, 131, 70, 131, -1, 131, 65,
- 131, -1, 131, 66, 131, -1, 131, 71, 131, -1,
- 131, 72, 131, -1, 73, 131, -1, 131, 91, 131,
- -1, 131, 77, 131, -1, 131, 78, 131, -1, 131,
- 79, 131, -1, 92, 131, -1, 93, 131, -1, 98,
- 131, 99, -1, 102, 150, 103, -1, 84, 131, 85,
- 131, -1, 84, 131, 86, 131, -1, 80, 131, 47,
- 131, -1, 80, 131, 54, 131, 47, 131, -1, 81,
- 131, 47, 131, -1, 81, 131, 54, 131, 47, 131,
- -1, 82, 131, 47, 131, -1, 82, 131, 54, 131,
- 47, 131, -1, 83, 131, 47, 131, -1, 83, 131,
- 54, 131, 47, 131, -1, 90, -1, 27, 131, -1,
- 49, 131, -1, 137, -1, 140, -1, 37, 50, -1,
- 37, -1, 39, 134, -1, 88, 135, -1, 64, 136,
- -1, 17, -1, 19, 131, -1, 18, 131, -1, 18,
- -1, 20, 151, -1, 20, 98, 151, 99, -1, 90,
- 98, 28, 99, -1, 90, 98, 28, 104, 150, 99,
- -1, 61, 131, 56, 131, -1, 61, 131, -1, 21,
- 28, 150, -1, 28, -1, 134, 104, 28, -1, 28,
- -1, 135, 104, 28, -1, 28, -1, 136, 104, 28,
- -1, 40, 43, -1, 40, 46, -1, 40, 48, -1,
- 40, 138, -1, 40, 138, 139, -1, 40, 139, -1,
- 38, 131, -1, 131, -1, 47, 45, 131, -1, 45,
- 131, -1, 62, 63, -1, 62, 138, -1, 62, 138,
- 139, -1, 62, 139, -1, -1, 33, 141, 150, -1,
- -1, 44, 28, 143, 125, 146, 107, 148, 127, -1,
- 59, 28, -1, -1, 60, 28, 144, 125, 146, 107,
- 148, 127, -1, 145, 125, 146, 107, 148, 127, 32,
- 147, -1, 145, 125, 146, 107, 148, 127, -1, 89,
- 28, -1, -1, 28, -1, 146, 104, 28, -1, 146,
- 107, 104, 28, -1, -1, 28, -1, 147, 104, 28,
- -1, -1, 28, 151, -1, -1, 131, -1, 150, 104,
- 131, -1, 131, -1, 151, 104, 131, -1
-};
-
-/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
+ /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
0, 120, 120, 121, 122, 125, 130, 135, 140, 145,
@@ -718,41 +577,41 @@ static const yytype_uint16 yyrline[] =
};
#endif
-#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
+#if YYDEBUG || YYERROR_VERBOSE || 0
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
static const char *const yytname[] =
{
"$end", "error", "$undefined", "UNARY", "CASTREF", "VOID", "VAR",
- "POINT", "RECT", "ARRAY", "OBJECT", "REFERENCE", "INT", "THEENTITY",
- "THEENTITYWITHID", "FLOAT", "BLTIN", "BLTINNOARGS", "BLTINNOARGSORONE",
- "BLTINONEARG", "BLTINARGLIST", "TWOWORDBUILTIN", "FBLTIN",
- "FBLTINNOARGS", "FBLTINONEARG", "FBLTINARGLIST", "RBLTIN",
- "RBLTINONEARG", "ID", "STRING", "HANDLER", "SYMBOL", "ENDCLAUSE",
- "tPLAYACCEL", "tDOWN", "tELSE", "tNLELSIF", "tEXIT", "tFRAME", "tGLOBAL",
- "tGO", "tIF", "tINTO", "tLOOP", "tMACRO", "tMOVIE", "tNEXT", "tOF",
- "tPREVIOUS", "tPUT", "tREPEAT", "tSET", "tTHEN", "tTHENNL", "tTO",
- "tWHEN", "tWITH", "tWHILE", "tNLELSE", "tFACTORY", "tMETHOD", "tOPEN",
- "tPLAY", "tDONE", "tINSTANCE", "tGE", "tLE", "tGT", "tLT", "tEQ", "tNEQ",
- "tAND", "tOR", "tNOT", "tMOD", "tAFTER", "tBEFORE", "tCONCAT",
- "tCONTAINS", "tSTARTS", "tCHAR", "tITEM", "tLINE", "tWORD", "tSPRITE",
- "tINTERSECTS", "tWITHIN", "tTELL", "tPROPERTY", "tON", "tME", "'&'",
- "'+'", "'-'", "'*'", "'/'", "'%'", "'\\n'", "'('", "')'", "'>'", "'<'",
- "'['", "']'", "','", "$accept", "program", "nl", "thennl", "nlelse",
- "nlelsif", "programline", "asgn", "stmtoneliner", "stmt", "ifstmt",
- "elsestmtoneliner", "elseifstmt", "elseifstmtoneliner",
- "elseifstmtoneliner1", "elseifstmt1", "repeatwhile", "repeatwith", "if",
- "elseif", "begin", "end", "stmtlist", "when", "tell", "simpleexpr",
- "expr", "reference", "proc", "globallist", "propertylist",
- "instancelist", "gotofunc", "gotoframe", "gotomovie", "playfunc", "@1",
- "defn", "@2", "@3", "on", "argdef", "endargdef", "argstore", "macro",
- "arglist", "nonemptyarglist", 0
+ "POINT", "RECT", "ARRAY", "OBJECT", "REFERENCE", "INT", "ARGC",
+ "ARGCNORET", "THEENTITY", "THEENTITYWITHID", "FLOAT", "BLTIN",
+ "BLTINNOARGS", "BLTINNOARGSORONE", "BLTINONEARG", "BLTINARGLIST",
+ "TWOWORDBUILTIN", "FBLTIN", "FBLTINNOARGS", "FBLTINONEARG",
+ "FBLTINARGLIST", "RBLTIN", "RBLTINONEARG", "ID", "STRING", "HANDLER",
+ "SYMBOL", "ENDCLAUSE", "tPLAYACCEL", "tDOWN", "tELSE", "tNLELSIF",
+ "tEXIT", "tFRAME", "tGLOBAL", "tGO", "tIF", "tINTO", "tLOOP", "tMACRO",
+ "tMOVIE", "tNEXT", "tOF", "tPREVIOUS", "tPUT", "tREPEAT", "tSET",
+ "tTHEN", "tTHENNL", "tTO", "tWHEN", "tWITH", "tWHILE", "tNLELSE",
+ "tFACTORY", "tMETHOD", "tOPEN", "tPLAY", "tDONE", "tINSTANCE", "tGE",
+ "tLE", "tGT", "tLT", "tEQ", "tNEQ", "tAND", "tOR", "tNOT", "tMOD",
+ "tAFTER", "tBEFORE", "tCONCAT", "tCONTAINS", "tSTARTS", "tCHAR", "tITEM",
+ "tLINE", "tWORD", "tSPRITE", "tINTERSECTS", "tWITHIN", "tTELL",
+ "tPROPERTY", "tON", "tME", "'&'", "'+'", "'-'", "'*'", "'/'", "'%'",
+ "'\\n'", "'('", "')'", "'>'", "'<'", "'['", "']'", "','", "$accept",
+ "program", "nl", "thennl", "nlelse", "nlelsif", "programline", "asgn",
+ "stmtoneliner", "stmt", "ifstmt", "elsestmtoneliner", "elseifstmt",
+ "elseifstmtoneliner", "elseifstmtoneliner1", "elseifstmt1",
+ "repeatwhile", "repeatwith", "if", "elseif", "begin", "end", "stmtlist",
+ "when", "tell", "simpleexpr", "expr", "reference", "proc", "globallist",
+ "propertylist", "instancelist", "gotofunc", "gotoframe", "gotomovie",
+ "playfunc", "$@1", "defn", "$@2", "$@3", "on", "argdef", "endargdef",
+ "argstore", "macro", "arglist", "nonemptyarglist", YY_NULLPTR
};
#endif
# ifdef YYPRINT
-/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
- token YYLEX-NUM. */
+/* YYTOKNUM[NUM] -- (External) token number corresponding to the
+ (internal) symbol number NUM (which must be that of a token). */
static const yytype_uint16 yytoknum[] =
{
0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
@@ -764,60 +623,67 @@ static const yytype_uint16 yytoknum[] =
315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
- 345, 38, 43, 45, 42, 47, 37, 10, 40, 41,
- 62, 60, 91, 93, 44
+ 345, 346, 347, 38, 43, 45, 42, 47, 37, 10,
+ 40, 41, 62, 60, 91, 93, 44
};
# endif
-/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
-static const yytype_uint8 yyr1[] =
-{
- 0, 105, 106, 106, 106, 107, 108, 109, 110, 111,
- 111, 111, 112, 112, 112, 112, 112, 112, 112, 112,
- 112, 112, 113, 113, 113, 114, 114, 114, 114, 114,
- 114, 114, 114, 115, 115, 115, 115, 115, 115, 115,
- 116, 116, 117, 117, 118, 118, 119, 120, 120, 120,
- 121, 122, 123, 124, 125, 126, 127, 127, 127, 128,
- 129, 130, 130, 130, 130, 130, 131, 131, 131, 131,
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 132,
- 133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
- 133, 133, 133, 133, 133, 133, 133, 133, 133, 134,
- 134, 135, 135, 136, 136, 137, 137, 137, 137, 137,
- 137, 138, 138, 139, 139, 140, 140, 140, 140, 141,
- 140, 143, 142, 142, 144, 142, 142, 142, 145, 146,
- 146, 146, 146, 147, 147, 147, 148, 149, 150, 150,
- 150, 151, 151
-};
+#define YYPACT_NINF -288
-/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
-static const yytype_uint8 yyr2[] =
+#define yypact_value_is_default(Yystate) \
+ (!!((Yystate) == (-288)))
+
+#define YYTABLE_NINF -10
+
+#define yytable_value_is_error(Yytable_value) \
+ 0
+
+ /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
+ STATE-NUM. */
+static const yytype_int16 yypact[] =
{
- 0, 2, 3, 1, 2, 1, 1, 1, 1, 0,
- 1, 1, 4, 4, 4, 4, 4, 4, 4, 4,
- 5, 5, 1, 1, 1, 1, 1, 5, 10, 11,
- 3, 6, 4, 6, 9, 9, 9, 10, 10, 6,
- 0, 3, 2, 1, 2, 1, 6, 1, 6, 6,
- 2, 3, 1, 1, 0, 0, 1, 2, 2, 3,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
- 2, 4, 4, 1, 2, 1, 3, 3, 3, 3,
- 3, 3, 3, 3, 3, 3, 3, 3, 3, 2,
- 3, 3, 3, 3, 2, 2, 3, 3, 4, 4,
- 4, 6, 4, 6, 4, 6, 4, 6, 1, 2,
- 2, 1, 1, 2, 1, 2, 2, 2, 1, 2,
- 2, 1, 2, 4, 4, 6, 4, 2, 3, 1,
- 3, 1, 3, 1, 3, 2, 2, 2, 2, 3,
- 2, 2, 1, 3, 2, 2, 2, 3, 2, 0,
- 3, 0, 8, 2, 0, 8, 8, 6, 2, 0,
- 1, 3, 4, 0, 1, 3, 0, 2, 0, 1,
- 3, 1, 3
+ 382, -77, -288, -288, 1014, -288, -288, 1014, 1014, 1054,
+ 26, -288, 1014, 1135, 1014, 1175, -288, -288, -288, -26,
+ 30, 893, -288, 44, 1014, -34, 33, 53, 61, 64,
+ 1014, 933, 81, 1014, 1014, 1014, 1014, 1014, 1014, -288,
+ 84, 89, -22, 1014, 1014, 1014, 1014, 2, -288, -288,
+ -288, -288, -288, 1014, 49, 1014, 812, 1014, -288, 1741,
+ -288, -288, -288, -288, -288, -288, -288, -288, -288, 21,
+ 1014, -288, 1741, 1741, 1741, 1014, 1741, 16, 1014, 1741,
+ 1014, 16, 1741, 1014, 16, 1014, -288, -288, 17, 1014,
+ -288, 1014, -288, 77, -288, 1741, 48, -288, -288, 1209,
+ 95, -288, -5, 1014, -1, 72, -288, -288, 1638, -288,
+ 48, -288, -288, 22, -64, 1242, 1275, 1308, 1341, 1671,
+ -288, 25, -288, 97, -64, -64, 1704, 1741, -37, -288,
+ 468, 1741, 1014, 1506, -288, 1605, 1014, 1014, 1014, 1014,
+ 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014, 1014,
+ 1014, 1014, 1014, 102, 1014, 1209, 1704, -25, 1014, 46,
+ -16, 1704, -8, 46, 123, 1741, 1741, 1014, -288, -288,
+ 73, 1014, 1014, -288, 1014, 1014, 83, 788, 1014, 1014,
+ -288, -288, 1014, -288, 126, 1014, 1014, 1014, 1014, 1014,
+ 1014, 1014, 1014, 1014, 1014, 127, 11, -288, -288, 1014,
+ -288, -288, 640, 1741, -288, -288, -288, -288, 1014, -288,
+ 13, 13, 13, 13, 283, 283, -64, 1741, 13, 13,
+ 118, 130, 130, -64, -64, 1741, 1741, -288, -35, -288,
+ 1741, -288, -288, -288, 1741, 102, -288, -288, 1741, 1741,
+ 1741, 13, 1014, 1014, 1741, 13, 102, 1741, -288, 1741,
+ 1374, 1741, 1407, 1741, 1440, 1741, 1473, 1741, 1741, -288,
+ -288, 1014, 1741, -288, -288, 124, 1, 812, 640, 1741,
+ 640, 129, 54, -35, 13, 1741, -35, 1014, 1014, 1014,
+ 1014, 12, -288, 105, 1014, -288, -31, 128, -288, 133,
+ -288, 54, 54, 1741, 1741, 1741, 1741, -288, 1014, 1741,
+ -15, -288, -288, -288, 132, -288, -288, 554, -288, -288,
+ 1741, -288, -288, -288, -288, 132, -288, 1014, 812, 640,
+ 132, 132, -288, 1014, 136, 640, 640, -288, 640, 812,
+ -288, 107, 1572, -288, 139, -288, 140, 1539, -288, 75,
+ 640, 144, -288, -288, -288, -288, -288, -288, -288, -288,
+ -288, 162, 161, -288, -288, 812, -288, 726, 726, -288,
+ -288, -288, -288, -288, 640, 640, -288, -288, -288
};
-/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
- STATE-NUM when YYTABLE doesn't specify something else to do. Zero
- means the default is an error. */
+ /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
+ Performed when YYTABLE does not specify something else to do. Zero
+ means the default is an error. */
static const yytype_uint8 yydefact[] =
{
0, 0, 61, 73, 0, 62, 118, 121, 0, 0,
@@ -859,7 +725,17 @@ static const yytype_uint8 yydefact[] =
165, 29, 41, 55, 55, 55, 46, 48, 49
};
-/* YYDEFGOTO[NTERM-NUM]. */
+ /* YYPGOTO[NTERM-NUM]. */
+static const yytype_int16 yypgoto[] =
+{
+ -288, -288, 15, -135, -287, -288, 74, -288, -49, 0,
+ -288, -288, -288, -97, -256, -113, -288, -288, -288, -284,
+ -4, 28, -110, -288, -288, 108, -3, 38, -288, -288,
+ -288, -288, -288, 179, -23, -288, -288, -288, -288, -288,
+ -288, -188, -288, -187, -288, -32, 4
+};
+
+ /* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] =
{
-1, 47, 263, 206, 303, 314, 48, 49, 50, 264,
@@ -869,92 +745,36 @@ static const yytype_int16 yydefgoto[] =
65, 228, 339, 290, 66, 162, 77
};
-/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
- STATE-NUM. */
-#define YYPACT_NINF -283
-static const yytype_int16 yypact[] =
-{
- 382, -58, -283, -283, 1041, -283, -283, 1041, 1041, 1081,
- 63, -283, 1041, 1163, 1041, 1203, -283, -283, -283, 45,
- 69, 919, -283, 76, 1041, -33, 35, 79, 82, 84,
- 1041, 959, 92, 1041, 1041, 1041, 1041, 1041, 1041, -283,
- 103, 104, 54, 1041, 1041, 1041, 1041, 8, -283, -283,
- -283, -283, -283, 1041, 85, 1041, 837, 1041, -283, 1769,
- -283, -283, -283, -283, -283, -283, -283, -283, -283, 55,
- 1041, -283, 1769, 1769, 1769, 1041, 1769, 52, 1041, 1769,
- 1041, 52, 1769, 1041, 52, 1041, -283, -283, 53, 1041,
- -283, 1041, -283, 113, -283, 1769, 38, -283, -283, 1237,
- 131, -283, -9, 1041, 5, 108, -283, -283, 1666, -283,
- 38, -283, -283, 57, -75, 1270, 1303, 1336, 1369, 1699,
- -283, 58, -283, 135, -75, -75, 1732, 1769, -46, -283,
- 473, 1769, 1041, 1534, -283, 1633, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 138, 1041, 1237, 1732, -31, 1041, 66,
- 7, 1732, 9, 66, 139, 1769, 1769, 1041, -283, -283,
- 95, 1041, 1041, -283, 1041, 1041, 105, 813, 1041, 1041,
- -283, -283, 1041, -283, 145, 1041, 1041, 1041, 1041, 1041,
- 1041, 1041, 1041, 1041, 1041, 150, 10, -283, -283, 1041,
- -283, -283, 655, 1769, -283, -283, -283, -283, 1041, -283,
- 120, 120, 120, 120, 24, 24, -75, 1769, 120, 120,
- 132, -30, -30, -75, -75, 1769, 1769, -283, -28, -283,
- 1769, -283, -283, -283, 1769, 138, -283, -283, 1769, 1769,
- 1769, 120, 1041, 1041, 1769, 120, 138, 1769, -283, 1769,
- 1402, 1769, 1435, 1769, 1468, 1769, 1501, 1769, 1769, -283,
- -283, 1041, 1769, -283, -283, 149, 2, 837, 655, 1769,
- 655, 164, 91, -28, 120, 1769, -28, 1041, 1041, 1041,
- 1041, 22, -283, 148, 1041, -283, -29, 171, -283, 176,
- -283, 91, 91, 1769, 1769, 1769, 1769, -283, 1041, 1769,
- -21, -283, -283, -283, 172, -283, -283, 564, -283, -283,
- 1769, -283, -283, -283, -283, 172, -283, 1041, 837, 655,
- 172, 172, -283, 1041, 179, 655, 655, -283, 655, 837,
- -283, 152, 1600, -283, 184, -283, 187, 1567, -283, 118,
- 655, 191, -283, -283, -283, -283, -283, -283, -283, -283,
- -283, 200, 202, -283, -283, 837, -283, 746, 746, -283,
- -283, -283, -283, -283, 655, 655, -283, -283, -283
-};
-
-/* YYPGOTO[NTERM-NUM]. */
-static const yytype_int16 yypgoto[] =
-{
- -283, -283, 15, -102, -280, -283, 106, -283, -49, 0,
- -283, -283, -283, -63, -234, -82, -283, -283, -283, -282,
- -4, 28, -110, -283, -283, 141, -3, 71, -283, -283,
- -283, -283, -283, 211, -18, -283, -283, -283, -283, -283,
- -283, -180, -283, -164, -283, -32, 4
-};
-
-/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
- positive, shift that token. If negative, reduce the rule which
- number is the opposite. If zero, do what YYDEFACT says.
- If YYTABLE_NINF, syntax error. */
-#define YYTABLE_NINF -10
+ /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If
+ positive, shift that token. If negative, reduce the rule whose
+ number is the opposite. If YYTABLE_NINF, syntax error. */
static const yytype_int16 yytable[] =
{
- 51, 72, 143, 301, 73, 74, 76, 134, 129, 79,
- 76, 82, 76, 111, 128, 312, 68, 81, 95, 84,
- 313, 99, 323, 100, 101, 151, 152, 108, 95, 302,
- 114, 115, 116, 117, 118, 119, 283, 302, 323, 67,
- 124, 125, 126, 127, 142, 174, 159, 143, 102, 103,
- 131, 343, 133, 163, 135, 273, 284, 198, 199, 178,
- 175, 153, 130, 104, 149, 150, 276, 155, 229, 67,
- 151, 152, 156, 158, 179, 127, 271, 156, 168, 157,
- 161, 330, 127, 91, 160, 93, 165, 330, 166, 136,
- 137, 78, 183, 138, 139, 86, 268, 87, 142, 270,
- 177, 143, 144, 145, 98, 67, 231, 105, 232, 260,
- 106, 158, 107, 199, 261, 146, 147, 148, 149, 150,
- 112, 297, 14, 236, 151, 152, 199, 308, 309, 203,
- 51, 120, 122, 210, 211, 212, 213, 214, 215, 216,
+ 51, 72, 129, 301, 73, 74, 76, 134, 111, 79,
+ 76, 82, 76, 313, 128, 143, 68, 81, 95, 84,
+ 323, 99, 67, 312, 100, 101, 86, 108, 95, 302,
+ 114, 115, 116, 117, 118, 119, 323, 283, 151, 152,
+ 124, 125, 126, 127, 343, 302, 159, 273, 102, 103,
+ 131, 174, 133, 163, 135, 178, 78, 284, 276, 330,
+ 87, 153, 130, 104, 67, 330, 175, 155, 198, 199,
+ 179, 271, 156, 168, 98, 127, 229, 156, 123, 157,
+ 161, 158, 127, 105, 160, 231, 165, 183, 166, 142,
+ 158, 106, 143, 232, 107, 91, 268, 93, 199, 270,
+ 177, 67, 14, 236, 308, 309, 146, 147, 148, 149,
+ 150, 112, 260, 297, 120, 151, 152, 261, 199, 122,
+ 132, 154, 158, 164, 167, 173, 180, 196, 184, 203,
+ 51, 195, 227, 210, 211, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
- 209, 127, 123, 154, 132, 230, 158, 164, 167, 173,
- 180, 184, 195, 196, 234, 235, 227, 233, 238, 239,
- 199, 240, 241, 248, 242, 244, 245, 246, 259, 247,
- 307, 282, 249, 250, 251, 252, 253, 254, 255, 256,
- 257, 258, 288, 319, 142, 289, 262, 143, 325, 326,
- 267, 328, 298, 305, 306, 269, 142, 338, 312, 143,
- 302, 146, 147, 148, 149, 150, 347, 340, 285, 348,
- 151, 152, 351, 353, 147, 148, 149, 150, 360, 281,
- 265, 266, 151, 152, 361, 350, 200, 315, 335, 274,
- 275, 237, 110, 272, 176, 0, 0, 0, 364, 365,
+ 209, 127, 199, 233, 242, 230, 248, 259, 282, 288,
+ 289, 298, 305, 306, 234, 235, 338, 302, 238, 239,
+ 312, 240, 241, 347, 348, 244, 245, 246, 353, 247,
+ 307, 351, 249, 250, 251, 252, 253, 254, 255, 256,
+ 257, 258, 360, 319, 142, 361, 262, 143, 325, 326,
+ 267, 328, 350, 315, 200, 269, 142, 335, 237, 143,
+ 110, 176, 147, 148, 149, 150, 0, 340, 285, 0,
+ 151, 152, 0, 0, 0, 0, 149, 150, 0, 281,
+ 265, 266, 151, 152, 0, 0, 0, 0, 0, 274,
+ 275, 0, 0, 272, 0, 0, 0, 0, 364, 365,
0, 0, 0, 0, 0, 0, 0, 0, 127, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 333,
0, 0, 0, 0, 293, 294, 295, 296, 0, 0,
@@ -965,188 +785,185 @@ static const yytype_int16 yytable[] =
337, 0, 0, 0, 0, 0, 0, 311, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 327, 355,
0, 357, 0, 331, 0, 358, 359, 334, 336, 0,
- 0, 0, 0, 0, 0, 0, 341, 363, 363, 0,
- 0, 346, 0, 0, 0, 0, 0, 0, 352, 0,
- 354, 0, 356, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, -9, 1, 0, 0, 0, 0, 0, 0,
- 0, 366, 367, 368, 2, 3, 4, 5, 0, 6,
- 7, 8, 9, 10, 0, 11, 12, 13, 0, 14,
- 15, 16, 0, 17, 0, 18, 0, 0, 0, 19,
- 0, 20, 21, 22, 0, 0, 23, 0, 0, 0,
- 0, 24, 25, 26, 0, 0, 0, 27, 0, 0,
- 0, 28, 29, 30, 31, 0, 32, 0, 0, 0,
- 0, 0, 0, 0, 0, 33, 0, 0, 0, 0,
- 0, 0, 34, 35, 36, 37, 38, 0, 0, 39,
- 40, 41, 42, 0, 43, 44, 0, 0, 0, -9,
- 45, 0, 0, 0, 46, 2, 3, 4, 5, 0,
- 6, 7, 8, 9, 10, 0, 11, 12, 13, 0,
- 14, 15, 16, 0, 17, 0, 18, 0, 0, 0,
- 19, 0, 20, 21, 22, 0, 0, 23, 0, 0,
- 0, 0, 24, 25, 26, 0, 0, 0, 27, 0,
- 0, 0, 28, 29, 30, 31, 0, 32, 0, 0,
- 0, 0, 0, 0, 0, 0, 33, 0, 0, 0,
- 0, 0, 0, 34, 35, 36, 37, 38, 0, 0,
- 39, 40, 41, 42, 0, 43, 44, 0, 0, 0,
- 0, 45, 0, 0, 0, 46, 2, 3, 4, 5,
+ 136, 137, 0, 0, 138, 139, 341, 363, 363, 142,
+ 0, 346, 143, 144, 145, 0, 0, 0, 352, 0,
+ 354, 0, 356, 0, 0, 0, 146, 147, 148, 149,
+ 150, 0, -9, 1, 0, 151, 152, 0, 0, 0,
+ 0, 366, 367, 368, 2, 0, 0, 3, 4, 5,
0, 6, 7, 8, 9, 10, 0, 11, 12, 13,
- 0, 14, 15, 16, 0, 17, 324, 18, 0, 0,
- 0, 19, 0, 20, 21, 22, 0, 0, 0, 0,
+ 0, 14, 15, 16, 0, 17, 0, 18, 0, 0,
+ 0, 19, 0, 20, 21, 22, 0, 0, 23, 0,
0, 0, 0, 24, 25, 26, 0, 0, 0, 27,
- 0, 0, 0, 0, 0, 30, 31, 0, 32, 0,
+ 0, 0, 0, 28, 29, 30, 31, 0, 32, 0,
0, 0, 0, 0, 0, 0, 0, 33, 0, 0,
0, 0, 0, 0, 34, 35, 36, 37, 38, 0,
- 0, 39, 40, 0, 42, 0, 43, 44, 0, 0,
- 0, 67, 45, 0, 0, 0, 46, 2, 3, 4,
- 5, 0, 6, 7, 8, 9, 10, 0, 11, 12,
- 13, 0, 14, 15, 16, 0, 17, 0, 18, 0,
- 0, 0, 19, 0, 20, 21, 22, 0, 0, 0,
- 0, 0, 0, 0, 24, 25, 26, 0, 0, 0,
- 27, 0, 0, 0, 0, 0, 30, 31, 0, 32,
- 0, 0, 0, 0, 0, 0, 0, 0, 33, 0,
- 0, 0, 0, 0, 0, 34, 35, 36, 37, 38,
- 0, 0, 39, 40, 0, 42, 0, 43, 44, 0,
- 0, 0, 67, 45, 0, 0, 0, 46, 2, 3,
- 4, 5, 0, 6, 7, 8, 9, 10, 0, 11,
- 12, 13, 0, 14, 15, 16, 0, 17, 0, 18,
+ 0, 39, 40, 41, 42, 0, 43, 44, 0, 0,
+ 2, -9, 45, 3, 4, 5, 46, 6, 7, 8,
+ 9, 10, 0, 11, 12, 13, 0, 14, 15, 16,
+ 0, 17, 0, 18, 0, 0, 0, 19, 0, 20,
+ 21, 22, 0, 0, 23, 0, 0, 0, 0, 24,
+ 25, 26, 0, 0, 0, 27, 0, 0, 0, 28,
+ 29, 30, 31, 0, 32, 0, 0, 0, 0, 0,
+ 0, 0, 0, 33, 0, 0, 0, 0, 0, 0,
+ 34, 35, 36, 37, 38, 0, 0, 39, 40, 41,
+ 42, 0, 43, 44, 0, 0, 2, 0, 45, 3,
+ 4, 5, 46, 6, 7, 8, 9, 10, 0, 11,
+ 12, 13, 0, 14, 15, 16, 0, 17, 324, 18,
0, 0, 0, 19, 0, 20, 21, 22, 0, 0,
0, 0, 0, 0, 0, 24, 25, 26, 0, 0,
0, 27, 0, 0, 0, 0, 0, 30, 31, 0,
32, 0, 0, 0, 0, 0, 0, 0, 0, 33,
0, 0, 0, 0, 0, 0, 34, 35, 36, 37,
38, 0, 0, 39, 40, 0, 42, 0, 43, 44,
- 0, 0, 0, 0, 45, 0, 0, 0, 46, 2,
- 3, 4, 5, 0, 6, 7, 8, 9, 10, 0,
- 11, 12, 13, 0, 14, 15, 16, 243, 17, 0,
- 18, 0, 0, 0, 19, 0, 20, 21, 136, 137,
- 0, 0, 138, 139, 140, 141, 24, 142, 26, 0,
- 143, 144, 145, 0, 0, 0, 0, 0, 30, 31,
- 0, 32, 0, 0, 146, 147, 148, 149, 150, 0,
- 33, 0, 0, 151, 152, 0, 0, 34, 35, 36,
- 37, 38, 0, 0, 0, 40, 0, 42, 0, 43,
- 44, 2, 3, 4, 5, 45, 0, 0, 0, 46,
- 0, 0, 11, 12, 13, 0, 14, 69, 16, 0,
- 17, 0, 0, 0, 0, 0, 0, 89, 0, 0,
- 0, 0, 90, 0, 91, 92, 93, 94, 70, 0,
- 26, 2, 3, 4, 5, 0, 0, 0, 0, 0,
- 0, 0, 11, 12, 13, 0, 14, 69, 16, 0,
- 17, 0, 33, 0, 0, 0, 0, 89, 0, 34,
- 35, 36, 37, 38, 91, 0, 93, 0, 70, 71,
- 26, 43, 44, 0, 0, 0, 0, 45, 0, 0,
- 0, 46, 109, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 33, 0, 0, 0, 0, 0, 0, 34,
- 35, 36, 37, 38, 0, 0, 0, 0, 0, 71,
- 0, 43, 44, 2, 3, 4, 5, 45, 0, 0,
- 0, 46, 0, 0, 11, 12, 13, 0, 14, 69,
- 16, 0, 17, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 2, 67, 45, 3, 4, 5, 46, 6,
+ 7, 8, 9, 10, 0, 11, 12, 13, 0, 14,
+ 15, 16, 0, 17, 0, 18, 0, 0, 0, 19,
+ 0, 20, 21, 22, 0, 0, 0, 0, 0, 0,
+ 0, 24, 25, 26, 0, 0, 0, 27, 0, 0,
+ 0, 0, 0, 30, 31, 0, 32, 0, 0, 0,
+ 0, 0, 0, 0, 0, 33, 0, 0, 0, 0,
+ 0, 0, 34, 35, 36, 37, 38, 0, 0, 39,
+ 40, 0, 42, 0, 43, 44, 0, 0, 2, 67,
+ 45, 3, 4, 5, 46, 6, 7, 8, 9, 10,
+ 0, 11, 12, 13, 0, 14, 15, 16, 0, 17,
+ 0, 18, 0, 0, 0, 19, 0, 20, 21, 22,
+ 0, 0, 0, 0, 0, 0, 0, 24, 25, 26,
+ 0, 0, 0, 27, 0, 0, 0, 0, 0, 30,
+ 31, 0, 32, 0, 0, 0, 0, 0, 0, 0,
+ 0, 33, 0, 0, 0, 0, 0, 0, 34, 35,
+ 36, 37, 38, 0, 0, 39, 40, 0, 42, 0,
+ 43, 44, 0, 0, 2, 0, 45, 3, 4, 5,
+ 46, 6, 7, 8, 9, 10, 0, 11, 12, 13,
+ 0, 14, 15, 16, 243, 17, 0, 18, 0, 0,
+ 0, 19, 0, 20, 21, 136, 137, 0, 0, 138,
+ 139, 140, 141, 24, 142, 26, 0, 143, 144, 145,
+ 0, 0, 0, 0, 0, 30, 31, 0, 32, 0,
+ 0, 146, 147, 148, 149, 150, 0, 33, 0, 0,
+ 151, 152, 0, 0, 34, 35, 36, 37, 38, 0,
+ 0, 0, 40, 0, 42, 2, 43, 44, 3, 4,
+ 5, 0, 45, 0, 0, 0, 46, 0, 11, 12,
+ 13, 0, 14, 69, 16, 0, 17, 0, 0, 0,
+ 0, 0, 0, 89, 0, 0, 0, 0, 90, 0,
+ 91, 92, 93, 94, 70, 2, 26, 0, 3, 4,
+ 5, 0, 0, 0, 0, 0, 0, 0, 11, 12,
+ 13, 0, 14, 69, 16, 0, 17, 0, 33, 0,
+ 0, 0, 0, 89, 0, 34, 35, 36, 37, 38,
+ 91, 0, 93, 0, 70, 71, 26, 43, 44, 0,
+ 0, 0, 0, 45, 0, 0, 0, 46, 109, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 33, 0,
+ 0, 0, 0, 0, 0, 34, 35, 36, 37, 38,
+ 0, 0, 0, 0, 0, 71, 2, 43, 44, 3,
+ 4, 5, 0, 45, 0, 0, 0, 46, 0, 11,
+ 12, 13, 0, 14, 69, 16, 0, 17, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 70, 0, 26, 2, 3, 4, 5, 0, 0, 0,
- 0, 0, 0, 0, 11, 12, 13, 0, 14, 69,
- 16, 0, 17, 0, 33, 0, 0, 0, 0, 0,
- 0, 34, 35, 36, 37, 38, 0, 0, 0, 0,
- 70, 71, 26, 43, 44, 0, 0, 0, 0, 45,
- 0, 0, 0, 46, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 33, 0, 0, 0, 0, 0,
- 0, 34, 35, 36, 37, 38, 0, 0, 0, 0,
- 0, 71, 0, 43, 44, 2, 3, 4, 5, 75,
- 0, 0, 0, 46, 0, 0, 11, 12, 13, 0,
- 14, 69, 16, 0, 17, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 70, 2, 26, 0, 3,
+ 4, 5, 0, 0, 0, 0, 0, 0, 0, 11,
+ 12, 13, 0, 14, 69, 16, 0, 17, 0, 33,
+ 0, 0, 0, 0, 0, 0, 34, 35, 36, 37,
+ 38, 0, 0, 0, 0, 70, 71, 26, 43, 44,
+ 0, 0, 0, 0, 45, 0, 0, 0, 46, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 33,
+ 0, 0, 0, 0, 0, 0, 34, 35, 36, 37,
+ 38, 0, 0, 0, 0, 0, 71, 2, 43, 44,
+ 3, 4, 5, 0, 75, 0, 0, 0, 46, 0,
+ 11, 12, 13, 0, 14, 69, 16, 0, 17, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 70, 2, 26, 0,
+ 3, 4, 5, 0, 0, 0, 0, 0, 0, 0,
+ 11, 12, 13, 0, 14, 69, 16, 0, 17, 0,
+ 33, 0, 0, 0, 0, 0, 0, 34, 35, 36,
+ 37, 38, 0, 0, 0, 0, 70, 71, 26, 43,
+ 44, 0, 0, 0, 0, 80, 0, 0, 0, 46,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 70, 0, 26, 2, 3, 4, 5, 0,
- 0, 0, 0, 0, 0, 0, 11, 12, 13, 0,
- 14, 69, 16, 0, 17, 0, 33, 0, 0, 0,
- 0, 0, 0, 34, 35, 36, 37, 38, 0, 0,
- 0, 0, 70, 71, 26, 43, 44, 0, 0, 0,
- 0, 80, 0, 0, 0, 46, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 33, 0, 0, 170,
- 0, 0, 0, 34, 35, 36, 37, 38, 0, 0,
- 0, 0, 0, 71, 0, 43, 44, 0, 0, 0,
- 0, 83, 136, 137, 0, 46, 138, 139, 140, 141,
- 0, 142, 171, 172, 143, 144, 145, 185, 0, 0,
- 0, 0, 0, 0, 186, 0, 0, 0, 146, 147,
+ 33, 0, 0, 170, 0, 0, 0, 34, 35, 36,
+ 37, 38, 0, 0, 0, 0, 0, 71, 0, 43,
+ 44, 0, 0, 0, 0, 83, 136, 137, 0, 46,
+ 138, 139, 140, 141, 0, 142, 171, 172, 143, 144,
+ 145, 185, 0, 0, 0, 0, 0, 0, 186, 0,
+ 0, 0, 146, 147, 148, 149, 150, 0, 0, 136,
+ 137, 151, 152, 138, 139, 140, 141, 0, 142, 0,
+ 0, 143, 144, 145, 187, 0, 0, 0, 0, 0,
+ 0, 188, 0, 0, 0, 146, 147, 148, 149, 150,
+ 0, 0, 136, 137, 151, 152, 138, 139, 140, 141,
+ 0, 142, 0, 0, 143, 144, 145, 189, 0, 0,
+ 0, 0, 0, 0, 190, 0, 0, 0, 146, 147,
148, 149, 150, 0, 0, 136, 137, 151, 152, 138,
139, 140, 141, 0, 142, 0, 0, 143, 144, 145,
- 187, 0, 0, 0, 0, 0, 0, 188, 0, 0,
+ 191, 0, 0, 0, 0, 0, 0, 192, 0, 0,
0, 146, 147, 148, 149, 150, 0, 0, 136, 137,
151, 152, 138, 139, 140, 141, 0, 142, 0, 0,
- 143, 144, 145, 189, 0, 0, 0, 0, 0, 0,
- 190, 0, 0, 0, 146, 147, 148, 149, 150, 0,
+ 143, 144, 145, 277, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 146, 147, 148, 149, 150, 0,
0, 136, 137, 151, 152, 138, 139, 140, 141, 0,
- 142, 0, 0, 143, 144, 145, 191, 0, 0, 0,
- 0, 0, 0, 192, 0, 0, 0, 146, 147, 148,
+ 142, 0, 0, 143, 144, 145, 278, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 146, 147, 148,
149, 150, 0, 0, 136, 137, 151, 152, 138, 139,
- 140, 141, 0, 142, 0, 0, 143, 144, 145, 277,
+ 140, 141, 0, 142, 0, 0, 143, 144, 145, 279,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
146, 147, 148, 149, 150, 0, 0, 136, 137, 151,
152, 138, 139, 140, 141, 0, 142, 0, 0, 143,
- 144, 145, 278, 0, 0, 0, 0, 0, 0, 0,
+ 144, 145, 280, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 146, 147, 148, 149, 150, 0, 0,
136, 137, 151, 152, 138, 139, 140, 141, 0, 142,
- 0, 0, 143, 144, 145, 279, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 146, 147, 148, 149,
+ 0, 0, 143, 144, 145, 0, 0, 0, 0, 0,
+ 204, 205, 0, 0, 0, 0, 146, 147, 148, 149,
150, 0, 0, 136, 137, 151, 152, 138, 139, 140,
- 141, 0, 142, 0, 0, 143, 144, 145, 280, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 146,
+ 141, 0, 142, 0, 0, 143, 144, 145, 0, 0,
+ 0, 0, 0, 349, 205, 0, 0, 0, 0, 146,
147, 148, 149, 150, 0, 0, 136, 137, 151, 152,
138, 139, 140, 141, 0, 142, 0, 0, 143, 144,
- 145, 0, 0, 0, 0, 0, 204, 205, 0, 0,
+ 145, 0, 0, 0, 0, 0, 345, 0, 0, 0,
0, 0, 146, 147, 148, 149, 150, 0, 0, 136,
137, 151, 152, 138, 139, 140, 141, 0, 142, 0,
- 0, 143, 144, 145, 0, 0, 0, 0, 0, 349,
- 205, 0, 0, 0, 0, 146, 147, 148, 149, 150,
+ 0, 143, 144, 145, 0, 0, 0, 0, 0, 0,
+ 0, 208, 0, 0, 0, 146, 147, 148, 149, 150,
0, 0, 136, 137, 151, 152, 138, 139, 140, 141,
0, 142, 0, 0, 143, 144, 145, 0, 0, 0,
- 0, 0, 345, 0, 0, 0, 0, 0, 146, 147,
- 148, 149, 150, 0, 0, 136, 137, 151, 152, 138,
+ 0, 0, 0, 0, 0, 0, 182, 0, 146, 147,
+ 148, 149, 150, 0, 67, 136, 137, 151, 152, 138,
139, 140, 141, 0, 142, 0, 0, 143, 144, 145,
- 0, 0, 0, 0, 0, 0, 0, 208, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 146, 147, 148, 149, 150, 0, 0, 136, 137,
151, 152, 138, 139, 140, 141, 0, 142, 0, 0,
- 143, 144, 145, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 182, 0, 146, 147, 148, 149, 150, 0,
- 67, 136, 137, 151, 152, 138, 139, 140, 141, 0,
+ 143, 144, 145, 0, 0, 0, 0, 0, 193, 194,
+ 0, 0, 0, 0, 146, 147, 148, 149, 150, 0,
+ 0, 136, 137, 151, 152, 138, 139, 140, 141, 0,
142, 0, 0, 143, 144, 145, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 146, 147, 148,
- 149, 150, 0, 0, 136, 137, 151, 152, 138, 139,
- 140, 141, 0, 142, 0, 0, 143, 144, 145, 0,
- 0, 0, 0, 0, 193, 194, 0, 0, 0, 0,
- 146, 147, 148, 149, 150, 0, 0, 136, 137, 151,
- 152, 138, 139, 140, 141, 0, 142, 0, 0, 143,
- 144, 145, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 146, 147, 148, 149, 150, 0, 0,
- 0, 197, 151, 152, 136, 137, 0, 0, 138, 139,
- 140, 141, 0, 142, 0, 0, 143, 144, 145, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 146, 147, 148, 149, 150, 0, 0, 0, 0, 151,
- 152
+ 149, 150, 0, 0, 0, 197, 151, 152, 136, 137,
+ 0, 0, 138, 139, 140, 141, 0, 142, 0, 0,
+ 143, 144, 145, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 146, 147, 148, 149, 150, 0,
+ 0, 0, 0, 151, 152
};
static const yytype_int16 yycheck[] =
{
- 0, 4, 77, 32, 7, 8, 9, 56, 0, 12,
- 13, 14, 15, 31, 46, 36, 1, 13, 21, 15,
- 300, 24, 304, 56, 57, 100, 101, 30, 31, 58,
- 33, 34, 35, 36, 37, 38, 34, 58, 320, 97,
- 43, 44, 45, 46, 74, 54, 78, 77, 13, 14,
- 53, 331, 55, 85, 57, 235, 54, 103, 104, 54,
- 69, 65, 47, 28, 94, 95, 246, 70, 99, 97,
- 100, 101, 75, 104, 69, 78, 104, 80, 96, 75,
- 83, 315, 85, 45, 80, 47, 89, 321, 91, 65,
- 66, 28, 110, 69, 70, 50, 206, 28, 74, 209,
- 103, 77, 78, 79, 28, 97, 99, 28, 99, 99,
- 28, 104, 28, 104, 104, 91, 92, 93, 94, 95,
- 28, 99, 27, 28, 100, 101, 104, 291, 292, 132,
- 130, 28, 28, 136, 137, 138, 139, 140, 141, 142,
+ 0, 4, 0, 34, 7, 8, 9, 56, 31, 12,
+ 13, 14, 15, 300, 46, 79, 1, 13, 21, 15,
+ 304, 24, 99, 38, 58, 59, 52, 30, 31, 60,
+ 33, 34, 35, 36, 37, 38, 320, 36, 102, 103,
+ 43, 44, 45, 46, 331, 60, 78, 235, 15, 16,
+ 53, 56, 55, 85, 57, 56, 30, 56, 246, 315,
+ 30, 65, 47, 30, 99, 321, 71, 70, 105, 106,
+ 71, 106, 75, 96, 30, 78, 101, 80, 100, 75,
+ 83, 106, 85, 30, 80, 101, 89, 110, 91, 76,
+ 106, 30, 79, 101, 30, 47, 206, 49, 106, 209,
+ 103, 99, 29, 30, 291, 292, 93, 94, 95, 96,
+ 97, 30, 101, 101, 30, 102, 103, 106, 106, 30,
+ 71, 100, 106, 106, 47, 30, 54, 30, 106, 132,
+ 130, 106, 30, 136, 137, 138, 139, 140, 141, 142,
143, 144, 145, 146, 147, 148, 149, 150, 151, 152,
- 135, 154, 98, 98, 69, 158, 104, 104, 45, 28,
- 52, 104, 104, 28, 167, 169, 28, 28, 171, 172,
- 104, 174, 175, 28, 69, 178, 179, 181, 28, 182,
- 290, 32, 185, 186, 187, 188, 189, 190, 191, 192,
- 193, 194, 28, 303, 74, 104, 199, 77, 308, 309,
- 204, 311, 54, 32, 28, 208, 74, 28, 36, 77,
- 58, 91, 92, 93, 94, 95, 32, 327, 267, 32,
- 100, 101, 104, 32, 92, 93, 94, 95, 28, 261,
- 202, 203, 100, 101, 32, 337, 130, 300, 320, 242,
- 243, 170, 31, 228, 103, -1, -1, -1, 358, 359,
+ 135, 154, 106, 30, 71, 158, 30, 30, 34, 30,
+ 106, 56, 34, 30, 167, 169, 30, 60, 171, 172,
+ 38, 174, 175, 34, 34, 178, 179, 181, 34, 182,
+ 290, 106, 185, 186, 187, 188, 189, 190, 191, 192,
+ 193, 194, 30, 303, 76, 34, 199, 79, 308, 309,
+ 204, 311, 337, 300, 130, 208, 76, 320, 170, 79,
+ 31, 103, 94, 95, 96, 97, -1, 327, 267, -1,
+ 102, 103, -1, -1, -1, -1, 96, 97, -1, 261,
+ 202, 203, 102, 103, -1, -1, -1, -1, -1, 242,
+ 243, -1, -1, 228, -1, -1, -1, -1, 358, 359,
-1, -1, -1, -1, -1, -1, -1, -1, 261, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 318,
-1, -1, -1, -1, 277, 278, 279, 280, -1, -1,
@@ -1157,293 +974,282 @@ static const yytype_int16 yycheck[] =
323, -1, -1, -1, -1, -1, -1, 299, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 310, 343,
-1, 345, -1, 315, -1, 349, 350, 319, 320, -1,
- -1, -1, -1, -1, -1, -1, 328, 357, 358, -1,
- -1, 333, -1, -1, -1, -1, -1, -1, 340, -1,
- 342, -1, 344, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, 0, 1, -1, -1, -1, -1, -1, -1,
- -1, 363, 364, 365, 12, 13, 14, 15, -1, 17,
- 18, 19, 20, 21, -1, 23, 24, 25, -1, 27,
- 28, 29, -1, 31, -1, 33, -1, -1, -1, 37,
- -1, 39, 40, 41, -1, -1, 44, -1, -1, -1,
- -1, 49, 50, 51, -1, -1, -1, 55, -1, -1,
- -1, 59, 60, 61, 62, -1, 64, -1, -1, -1,
- -1, -1, -1, -1, -1, 73, -1, -1, -1, -1,
- -1, -1, 80, 81, 82, 83, 84, -1, -1, 87,
- 88, 89, 90, -1, 92, 93, -1, -1, -1, 97,
- 98, -1, -1, -1, 102, 12, 13, 14, 15, -1,
- 17, 18, 19, 20, 21, -1, 23, 24, 25, -1,
- 27, 28, 29, -1, 31, -1, 33, -1, -1, -1,
- 37, -1, 39, 40, 41, -1, -1, 44, -1, -1,
- -1, -1, 49, 50, 51, -1, -1, -1, 55, -1,
- -1, -1, 59, 60, 61, 62, -1, 64, -1, -1,
- -1, -1, -1, -1, -1, -1, 73, -1, -1, -1,
- -1, -1, -1, 80, 81, 82, 83, 84, -1, -1,
- 87, 88, 89, 90, -1, 92, 93, -1, -1, -1,
- -1, 98, -1, -1, -1, 102, 12, 13, 14, 15,
- -1, 17, 18, 19, 20, 21, -1, 23, 24, 25,
- -1, 27, 28, 29, -1, 31, 32, 33, -1, -1,
- -1, 37, -1, 39, 40, 41, -1, -1, -1, -1,
- -1, -1, -1, 49, 50, 51, -1, -1, -1, 55,
- -1, -1, -1, -1, -1, 61, 62, -1, 64, -1,
- -1, -1, -1, -1, -1, -1, -1, 73, -1, -1,
- -1, -1, -1, -1, 80, 81, 82, 83, 84, -1,
- -1, 87, 88, -1, 90, -1, 92, 93, -1, -1,
- -1, 97, 98, -1, -1, -1, 102, 12, 13, 14,
- 15, -1, 17, 18, 19, 20, 21, -1, 23, 24,
- 25, -1, 27, 28, 29, -1, 31, -1, 33, -1,
- -1, -1, 37, -1, 39, 40, 41, -1, -1, -1,
- -1, -1, -1, -1, 49, 50, 51, -1, -1, -1,
- 55, -1, -1, -1, -1, -1, 61, 62, -1, 64,
- -1, -1, -1, -1, -1, -1, -1, -1, 73, -1,
- -1, -1, -1, -1, -1, 80, 81, 82, 83, 84,
- -1, -1, 87, 88, -1, 90, -1, 92, 93, -1,
- -1, -1, 97, 98, -1, -1, -1, 102, 12, 13,
- 14, 15, -1, 17, 18, 19, 20, 21, -1, 23,
- 24, 25, -1, 27, 28, 29, -1, 31, -1, 33,
- -1, -1, -1, 37, -1, 39, 40, 41, -1, -1,
- -1, -1, -1, -1, -1, 49, 50, 51, -1, -1,
- -1, 55, -1, -1, -1, -1, -1, 61, 62, -1,
- 64, -1, -1, -1, -1, -1, -1, -1, -1, 73,
- -1, -1, -1, -1, -1, -1, 80, 81, 82, 83,
- 84, -1, -1, 87, 88, -1, 90, -1, 92, 93,
- -1, -1, -1, -1, 98, -1, -1, -1, 102, 12,
- 13, 14, 15, -1, 17, 18, 19, 20, 21, -1,
- 23, 24, 25, -1, 27, 28, 29, 54, 31, -1,
- 33, -1, -1, -1, 37, -1, 39, 40, 65, 66,
- -1, -1, 69, 70, 71, 72, 49, 74, 51, -1,
- 77, 78, 79, -1, -1, -1, -1, -1, 61, 62,
- -1, 64, -1, -1, 91, 92, 93, 94, 95, -1,
- 73, -1, -1, 100, 101, -1, -1, 80, 81, 82,
- 83, 84, -1, -1, -1, 88, -1, 90, -1, 92,
- 93, 12, 13, 14, 15, 98, -1, -1, -1, 102,
- -1, -1, 23, 24, 25, -1, 27, 28, 29, -1,
- 31, -1, -1, -1, -1, -1, -1, 38, -1, -1,
- -1, -1, 43, -1, 45, 46, 47, 48, 49, -1,
- 51, 12, 13, 14, 15, -1, -1, -1, -1, -1,
- -1, -1, 23, 24, 25, -1, 27, 28, 29, -1,
- 31, -1, 73, -1, -1, -1, -1, 38, -1, 80,
- 81, 82, 83, 84, 45, -1, 47, -1, 49, 90,
- 51, 92, 93, -1, -1, -1, -1, 98, -1, -1,
- -1, 102, 63, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, 73, -1, -1, -1, -1, -1, -1, 80,
- 81, 82, 83, 84, -1, -1, -1, -1, -1, 90,
- -1, 92, 93, 12, 13, 14, 15, 98, -1, -1,
- -1, 102, -1, -1, 23, 24, 25, -1, 27, 28,
- 29, -1, 31, -1, -1, -1, -1, -1, -1, -1,
+ 67, 68, -1, -1, 71, 72, 328, 357, 358, 76,
+ -1, 333, 79, 80, 81, -1, -1, -1, 340, -1,
+ 342, -1, 344, -1, -1, -1, 93, 94, 95, 96,
+ 97, -1, 0, 1, -1, 102, 103, -1, -1, -1,
+ -1, 363, 364, 365, 12, -1, -1, 15, 16, 17,
+ -1, 19, 20, 21, 22, 23, -1, 25, 26, 27,
+ -1, 29, 30, 31, -1, 33, -1, 35, -1, -1,
+ -1, 39, -1, 41, 42, 43, -1, -1, 46, -1,
+ -1, -1, -1, 51, 52, 53, -1, -1, -1, 57,
+ -1, -1, -1, 61, 62, 63, 64, -1, 66, -1,
+ -1, -1, -1, -1, -1, -1, -1, 75, -1, -1,
+ -1, -1, -1, -1, 82, 83, 84, 85, 86, -1,
+ -1, 89, 90, 91, 92, -1, 94, 95, -1, -1,
+ 12, 99, 100, 15, 16, 17, 104, 19, 20, 21,
+ 22, 23, -1, 25, 26, 27, -1, 29, 30, 31,
+ -1, 33, -1, 35, -1, -1, -1, 39, -1, 41,
+ 42, 43, -1, -1, 46, -1, -1, -1, -1, 51,
+ 52, 53, -1, -1, -1, 57, -1, -1, -1, 61,
+ 62, 63, 64, -1, 66, -1, -1, -1, -1, -1,
+ -1, -1, -1, 75, -1, -1, -1, -1, -1, -1,
+ 82, 83, 84, 85, 86, -1, -1, 89, 90, 91,
+ 92, -1, 94, 95, -1, -1, 12, -1, 100, 15,
+ 16, 17, 104, 19, 20, 21, 22, 23, -1, 25,
+ 26, 27, -1, 29, 30, 31, -1, 33, 34, 35,
+ -1, -1, -1, 39, -1, 41, 42, 43, -1, -1,
+ -1, -1, -1, -1, -1, 51, 52, 53, -1, -1,
+ -1, 57, -1, -1, -1, -1, -1, 63, 64, -1,
+ 66, -1, -1, -1, -1, -1, -1, -1, -1, 75,
+ -1, -1, -1, -1, -1, -1, 82, 83, 84, 85,
+ 86, -1, -1, 89, 90, -1, 92, -1, 94, 95,
+ -1, -1, 12, 99, 100, 15, 16, 17, 104, 19,
+ 20, 21, 22, 23, -1, 25, 26, 27, -1, 29,
+ 30, 31, -1, 33, -1, 35, -1, -1, -1, 39,
+ -1, 41, 42, 43, -1, -1, -1, -1, -1, -1,
+ -1, 51, 52, 53, -1, -1, -1, 57, -1, -1,
+ -1, -1, -1, 63, 64, -1, 66, -1, -1, -1,
+ -1, -1, -1, -1, -1, 75, -1, -1, -1, -1,
+ -1, -1, 82, 83, 84, 85, 86, -1, -1, 89,
+ 90, -1, 92, -1, 94, 95, -1, -1, 12, 99,
+ 100, 15, 16, 17, 104, 19, 20, 21, 22, 23,
+ -1, 25, 26, 27, -1, 29, 30, 31, -1, 33,
+ -1, 35, -1, -1, -1, 39, -1, 41, 42, 43,
+ -1, -1, -1, -1, -1, -1, -1, 51, 52, 53,
+ -1, -1, -1, 57, -1, -1, -1, -1, -1, 63,
+ 64, -1, 66, -1, -1, -1, -1, -1, -1, -1,
+ -1, 75, -1, -1, -1, -1, -1, -1, 82, 83,
+ 84, 85, 86, -1, -1, 89, 90, -1, 92, -1,
+ 94, 95, -1, -1, 12, -1, 100, 15, 16, 17,
+ 104, 19, 20, 21, 22, 23, -1, 25, 26, 27,
+ -1, 29, 30, 31, 56, 33, -1, 35, -1, -1,
+ -1, 39, -1, 41, 42, 67, 68, -1, -1, 71,
+ 72, 73, 74, 51, 76, 53, -1, 79, 80, 81,
+ -1, -1, -1, -1, -1, 63, 64, -1, 66, -1,
+ -1, 93, 94, 95, 96, 97, -1, 75, -1, -1,
+ 102, 103, -1, -1, 82, 83, 84, 85, 86, -1,
+ -1, -1, 90, -1, 92, 12, 94, 95, 15, 16,
+ 17, -1, 100, -1, -1, -1, 104, -1, 25, 26,
+ 27, -1, 29, 30, 31, -1, 33, -1, -1, -1,
+ -1, -1, -1, 40, -1, -1, -1, -1, 45, -1,
+ 47, 48, 49, 50, 51, 12, 53, -1, 15, 16,
+ 17, -1, -1, -1, -1, -1, -1, -1, 25, 26,
+ 27, -1, 29, 30, 31, -1, 33, -1, 75, -1,
+ -1, -1, -1, 40, -1, 82, 83, 84, 85, 86,
+ 47, -1, 49, -1, 51, 92, 53, 94, 95, -1,
+ -1, -1, -1, 100, -1, -1, -1, 104, 65, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 75, -1,
+ -1, -1, -1, -1, -1, 82, 83, 84, 85, 86,
+ -1, -1, -1, -1, -1, 92, 12, 94, 95, 15,
+ 16, 17, -1, 100, -1, -1, -1, 104, -1, 25,
+ 26, 27, -1, 29, 30, 31, -1, 33, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 51, 12, 53, -1, 15,
+ 16, 17, -1, -1, -1, -1, -1, -1, -1, 25,
+ 26, 27, -1, 29, 30, 31, -1, 33, -1, 75,
+ -1, -1, -1, -1, -1, -1, 82, 83, 84, 85,
+ 86, -1, -1, -1, -1, 51, 92, 53, 94, 95,
+ -1, -1, -1, -1, 100, -1, -1, -1, 104, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 75,
+ -1, -1, -1, -1, -1, -1, 82, 83, 84, 85,
+ 86, -1, -1, -1, -1, -1, 92, 12, 94, 95,
+ 15, 16, 17, -1, 100, -1, -1, -1, 104, -1,
+ 25, 26, 27, -1, 29, 30, 31, -1, 33, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 49, -1, 51, 12, 13, 14, 15, -1, -1, -1,
- -1, -1, -1, -1, 23, 24, 25, -1, 27, 28,
- 29, -1, 31, -1, 73, -1, -1, -1, -1, -1,
- -1, 80, 81, 82, 83, 84, -1, -1, -1, -1,
- 49, 90, 51, 92, 93, -1, -1, -1, -1, 98,
- -1, -1, -1, 102, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, 73, -1, -1, -1, -1, -1,
- -1, 80, 81, 82, 83, 84, -1, -1, -1, -1,
- -1, 90, -1, 92, 93, 12, 13, 14, 15, 98,
- -1, -1, -1, 102, -1, -1, 23, 24, 25, -1,
- 27, 28, 29, -1, 31, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 51, 12, 53, -1,
+ 15, 16, 17, -1, -1, -1, -1, -1, -1, -1,
+ 25, 26, 27, -1, 29, 30, 31, -1, 33, -1,
+ 75, -1, -1, -1, -1, -1, -1, 82, 83, 84,
+ 85, 86, -1, -1, -1, -1, 51, 92, 53, 94,
+ 95, -1, -1, -1, -1, 100, -1, -1, -1, 104,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, 49, -1, 51, 12, 13, 14, 15, -1,
- -1, -1, -1, -1, -1, -1, 23, 24, 25, -1,
- 27, 28, 29, -1, 31, -1, 73, -1, -1, -1,
- -1, -1, -1, 80, 81, 82, 83, 84, -1, -1,
- -1, -1, 49, 90, 51, 92, 93, -1, -1, -1,
- -1, 98, -1, -1, -1, 102, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, 73, -1, -1, 42,
- -1, -1, -1, 80, 81, 82, 83, 84, -1, -1,
- -1, -1, -1, 90, -1, 92, 93, -1, -1, -1,
- -1, 98, 65, 66, -1, 102, 69, 70, 71, 72,
- -1, 74, 75, 76, 77, 78, 79, 47, -1, -1,
- -1, -1, -1, -1, 54, -1, -1, -1, 91, 92,
- 93, 94, 95, -1, -1, 65, 66, 100, 101, 69,
- 70, 71, 72, -1, 74, -1, -1, 77, 78, 79,
- 47, -1, -1, -1, -1, -1, -1, 54, -1, -1,
- -1, 91, 92, 93, 94, 95, -1, -1, 65, 66,
- 100, 101, 69, 70, 71, 72, -1, 74, -1, -1,
- 77, 78, 79, 47, -1, -1, -1, -1, -1, -1,
- 54, -1, -1, -1, 91, 92, 93, 94, 95, -1,
- -1, 65, 66, 100, 101, 69, 70, 71, 72, -1,
- 74, -1, -1, 77, 78, 79, 47, -1, -1, -1,
- -1, -1, -1, 54, -1, -1, -1, 91, 92, 93,
- 94, 95, -1, -1, 65, 66, 100, 101, 69, 70,
- 71, 72, -1, 74, -1, -1, 77, 78, 79, 47,
+ 75, -1, -1, 44, -1, -1, -1, 82, 83, 84,
+ 85, 86, -1, -1, -1, -1, -1, 92, -1, 94,
+ 95, -1, -1, -1, -1, 100, 67, 68, -1, 104,
+ 71, 72, 73, 74, -1, 76, 77, 78, 79, 80,
+ 81, 49, -1, -1, -1, -1, -1, -1, 56, -1,
+ -1, -1, 93, 94, 95, 96, 97, -1, -1, 67,
+ 68, 102, 103, 71, 72, 73, 74, -1, 76, -1,
+ -1, 79, 80, 81, 49, -1, -1, -1, -1, -1,
+ -1, 56, -1, -1, -1, 93, 94, 95, 96, 97,
+ -1, -1, 67, 68, 102, 103, 71, 72, 73, 74,
+ -1, 76, -1, -1, 79, 80, 81, 49, -1, -1,
+ -1, -1, -1, -1, 56, -1, -1, -1, 93, 94,
+ 95, 96, 97, -1, -1, 67, 68, 102, 103, 71,
+ 72, 73, 74, -1, 76, -1, -1, 79, 80, 81,
+ 49, -1, -1, -1, -1, -1, -1, 56, -1, -1,
+ -1, 93, 94, 95, 96, 97, -1, -1, 67, 68,
+ 102, 103, 71, 72, 73, 74, -1, 76, -1, -1,
+ 79, 80, 81, 49, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 93, 94, 95, 96, 97, -1,
+ -1, 67, 68, 102, 103, 71, 72, 73, 74, -1,
+ 76, -1, -1, 79, 80, 81, 49, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 93, 94, 95,
+ 96, 97, -1, -1, 67, 68, 102, 103, 71, 72,
+ 73, 74, -1, 76, -1, -1, 79, 80, 81, 49,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 91, 92, 93, 94, 95, -1, -1, 65, 66, 100,
- 101, 69, 70, 71, 72, -1, 74, -1, -1, 77,
- 78, 79, 47, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 91, 92, 93, 94, 95, -1, -1,
- 65, 66, 100, 101, 69, 70, 71, 72, -1, 74,
- -1, -1, 77, 78, 79, 47, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, 91, 92, 93, 94,
- 95, -1, -1, 65, 66, 100, 101, 69, 70, 71,
- 72, -1, 74, -1, -1, 77, 78, 79, 47, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, 91,
- 92, 93, 94, 95, -1, -1, 65, 66, 100, 101,
- 69, 70, 71, 72, -1, 74, -1, -1, 77, 78,
- 79, -1, -1, -1, -1, -1, 52, 53, -1, -1,
- -1, -1, 91, 92, 93, 94, 95, -1, -1, 65,
- 66, 100, 101, 69, 70, 71, 72, -1, 74, -1,
- -1, 77, 78, 79, -1, -1, -1, -1, -1, 52,
- 53, -1, -1, -1, -1, 91, 92, 93, 94, 95,
- -1, -1, 65, 66, 100, 101, 69, 70, 71, 72,
- -1, 74, -1, -1, 77, 78, 79, -1, -1, -1,
- -1, -1, 52, -1, -1, -1, -1, -1, 91, 92,
- 93, 94, 95, -1, -1, 65, 66, 100, 101, 69,
- 70, 71, 72, -1, 74, -1, -1, 77, 78, 79,
- -1, -1, -1, -1, -1, -1, -1, 54, -1, -1,
- -1, 91, 92, 93, 94, 95, -1, -1, 65, 66,
- 100, 101, 69, 70, 71, 72, -1, 74, -1, -1,
- 77, 78, 79, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, 56, -1, 91, 92, 93, 94, 95, -1,
- 97, 65, 66, 100, 101, 69, 70, 71, 72, -1,
- 74, -1, -1, 77, 78, 79, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, 91, 92, 93,
- 94, 95, -1, -1, 65, 66, 100, 101, 69, 70,
- 71, 72, -1, 74, -1, -1, 77, 78, 79, -1,
- -1, -1, -1, -1, 85, 86, -1, -1, -1, -1,
- 91, 92, 93, 94, 95, -1, -1, 65, 66, 100,
- 101, 69, 70, 71, 72, -1, 74, -1, -1, 77,
- 78, 79, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 91, 92, 93, 94, 95, -1, -1,
- -1, 99, 100, 101, 65, 66, -1, -1, 69, 70,
- 71, 72, -1, 74, -1, -1, 77, 78, 79, -1,
+ 93, 94, 95, 96, 97, -1, -1, 67, 68, 102,
+ 103, 71, 72, 73, 74, -1, 76, -1, -1, 79,
+ 80, 81, 49, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 93, 94, 95, 96, 97, -1, -1,
+ 67, 68, 102, 103, 71, 72, 73, 74, -1, 76,
+ -1, -1, 79, 80, 81, -1, -1, -1, -1, -1,
+ 54, 55, -1, -1, -1, -1, 93, 94, 95, 96,
+ 97, -1, -1, 67, 68, 102, 103, 71, 72, 73,
+ 74, -1, 76, -1, -1, 79, 80, 81, -1, -1,
+ -1, -1, -1, 54, 55, -1, -1, -1, -1, 93,
+ 94, 95, 96, 97, -1, -1, 67, 68, 102, 103,
+ 71, 72, 73, 74, -1, 76, -1, -1, 79, 80,
+ 81, -1, -1, -1, -1, -1, 54, -1, -1, -1,
+ -1, -1, 93, 94, 95, 96, 97, -1, -1, 67,
+ 68, 102, 103, 71, 72, 73, 74, -1, 76, -1,
+ -1, 79, 80, 81, -1, -1, -1, -1, -1, -1,
+ -1, 56, -1, -1, -1, 93, 94, 95, 96, 97,
+ -1, -1, 67, 68, 102, 103, 71, 72, 73, 74,
+ -1, 76, -1, -1, 79, 80, 81, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 58, -1, 93, 94,
+ 95, 96, 97, -1, 99, 67, 68, 102, 103, 71,
+ 72, 73, 74, -1, 76, -1, -1, 79, 80, 81,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 91, 92, 93, 94, 95, -1, -1, -1, -1, 100,
- 101
+ -1, 93, 94, 95, 96, 97, -1, -1, 67, 68,
+ 102, 103, 71, 72, 73, 74, -1, 76, -1, -1,
+ 79, 80, 81, -1, -1, -1, -1, -1, 87, 88,
+ -1, -1, -1, -1, 93, 94, 95, 96, 97, -1,
+ -1, 67, 68, 102, 103, 71, 72, 73, 74, -1,
+ 76, -1, -1, 79, 80, 81, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 93, 94, 95,
+ 96, 97, -1, -1, -1, 101, 102, 103, 67, 68,
+ -1, -1, 71, 72, 73, 74, -1, 76, -1, -1,
+ 79, 80, 81, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 93, 94, 95, 96, 97, -1,
+ -1, -1, -1, 102, 103
};
-/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
- symbol of state STATE-NUM. */
+ /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
+ symbol of state STATE-NUM. */
static const yytype_uint8 yystos[] =
{
- 0, 1, 12, 13, 14, 15, 17, 18, 19, 20,
- 21, 23, 24, 25, 27, 28, 29, 31, 33, 37,
- 39, 40, 41, 44, 49, 50, 51, 55, 59, 60,
- 61, 62, 64, 73, 80, 81, 82, 83, 84, 87,
- 88, 89, 90, 92, 93, 98, 102, 106, 111, 112,
- 113, 114, 115, 121, 122, 123, 128, 129, 130, 131,
- 132, 133, 137, 140, 142, 145, 149, 97, 107, 28,
- 49, 90, 131, 131, 131, 98, 131, 151, 28, 131,
- 98, 151, 131, 98, 151, 141, 50, 28, 134, 38,
- 43, 45, 46, 47, 48, 131, 138, 139, 28, 131,
- 56, 57, 13, 14, 28, 28, 28, 28, 131, 63,
- 138, 139, 28, 136, 131, 131, 131, 131, 131, 131,
- 28, 135, 28, 98, 131, 131, 131, 131, 150, 0,
- 107, 131, 69, 131, 113, 131, 65, 66, 69, 70,
- 71, 72, 74, 77, 78, 79, 91, 92, 93, 94,
- 95, 100, 101, 125, 98, 131, 131, 151, 104, 150,
- 151, 131, 150, 150, 104, 131, 131, 45, 139, 143,
- 42, 75, 76, 28, 54, 69, 130, 131, 54, 69,
- 52, 144, 56, 139, 104, 47, 54, 47, 54, 47,
- 54, 47, 54, 85, 86, 104, 28, 99, 103, 104,
- 111, 125, 127, 131, 52, 53, 108, 126, 54, 107,
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
- 131, 131, 131, 131, 131, 131, 131, 28, 146, 99,
- 131, 99, 99, 28, 131, 125, 28, 132, 131, 131,
- 131, 131, 69, 54, 131, 131, 125, 131, 28, 131,
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 28,
- 99, 104, 131, 107, 114, 126, 126, 125, 127, 131,
- 127, 104, 107, 146, 131, 131, 146, 47, 47, 47,
- 47, 150, 32, 34, 54, 113, 126, 126, 28, 104,
- 148, 107, 107, 131, 131, 131, 131, 99, 54, 131,
- 126, 32, 58, 109, 125, 32, 28, 127, 148, 148,
- 131, 126, 36, 109, 110, 118, 119, 124, 125, 127,
- 117, 118, 120, 124, 32, 127, 127, 126, 127, 125,
- 119, 126, 131, 113, 126, 120, 126, 131, 28, 147,
- 127, 126, 113, 109, 116, 52, 126, 32, 32, 52,
- 108, 104, 126, 32, 126, 125, 126, 125, 125, 125,
- 28, 32, 113, 114, 127, 127, 126, 126, 126
+ 0, 1, 12, 15, 16, 17, 19, 20, 21, 22,
+ 23, 25, 26, 27, 29, 30, 31, 33, 35, 39,
+ 41, 42, 43, 46, 51, 52, 53, 57, 61, 62,
+ 63, 64, 66, 75, 82, 83, 84, 85, 86, 89,
+ 90, 91, 92, 94, 95, 100, 104, 108, 113, 114,
+ 115, 116, 117, 123, 124, 125, 130, 131, 132, 133,
+ 134, 135, 139, 142, 144, 147, 151, 99, 109, 30,
+ 51, 92, 133, 133, 133, 100, 133, 153, 30, 133,
+ 100, 153, 133, 100, 153, 143, 52, 30, 136, 40,
+ 45, 47, 48, 49, 50, 133, 140, 141, 30, 133,
+ 58, 59, 15, 16, 30, 30, 30, 30, 133, 65,
+ 140, 141, 30, 138, 133, 133, 133, 133, 133, 133,
+ 30, 137, 30, 100, 133, 133, 133, 133, 152, 0,
+ 109, 133, 71, 133, 115, 133, 67, 68, 71, 72,
+ 73, 74, 76, 79, 80, 81, 93, 94, 95, 96,
+ 97, 102, 103, 127, 100, 133, 133, 153, 106, 152,
+ 153, 133, 152, 152, 106, 133, 133, 47, 141, 145,
+ 44, 77, 78, 30, 56, 71, 132, 133, 56, 71,
+ 54, 146, 58, 141, 106, 49, 56, 49, 56, 49,
+ 56, 49, 56, 87, 88, 106, 30, 101, 105, 106,
+ 113, 127, 129, 133, 54, 55, 110, 128, 56, 109,
+ 133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
+ 133, 133, 133, 133, 133, 133, 133, 30, 148, 101,
+ 133, 101, 101, 30, 133, 127, 30, 134, 133, 133,
+ 133, 133, 71, 56, 133, 133, 127, 133, 30, 133,
+ 133, 133, 133, 133, 133, 133, 133, 133, 133, 30,
+ 101, 106, 133, 109, 116, 128, 128, 127, 129, 133,
+ 129, 106, 109, 148, 133, 133, 148, 49, 49, 49,
+ 49, 152, 34, 36, 56, 115, 128, 128, 30, 106,
+ 150, 109, 109, 133, 133, 133, 133, 101, 56, 133,
+ 128, 34, 60, 111, 127, 34, 30, 129, 150, 150,
+ 133, 128, 38, 111, 112, 120, 121, 126, 127, 129,
+ 119, 120, 122, 126, 34, 129, 129, 128, 129, 127,
+ 121, 128, 133, 115, 128, 122, 128, 133, 30, 149,
+ 129, 128, 115, 111, 118, 54, 128, 34, 34, 54,
+ 110, 106, 128, 34, 128, 127, 128, 127, 127, 127,
+ 30, 34, 115, 116, 129, 129, 128, 128, 128
};
-#define yyerrok (yyerrstatus = 0)
-#define yyclearin (yychar = YYEMPTY)
-#define YYEMPTY (-2)
-#define YYEOF 0
-
-#define YYACCEPT goto yyacceptlab
-#define YYABORT goto yyabortlab
-#define YYERROR goto yyerrorlab
-
-
-/* Like YYERROR except do call yyerror. This remains here temporarily
- to ease the transition to the new meaning of YYERROR, for GCC.
- Once GCC version 2 has supplanted version 1, this can go. */
+ /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
+static const yytype_uint8 yyr1[] =
+{
+ 0, 107, 108, 108, 108, 109, 110, 111, 112, 113,
+ 113, 113, 114, 114, 114, 114, 114, 114, 114, 114,
+ 114, 114, 115, 115, 115, 116, 116, 116, 116, 116,
+ 116, 116, 116, 117, 117, 117, 117, 117, 117, 117,
+ 118, 118, 119, 119, 120, 120, 121, 122, 122, 122,
+ 123, 124, 125, 126, 127, 128, 129, 129, 129, 130,
+ 131, 132, 132, 132, 132, 132, 133, 133, 133, 133,
+ 133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
+ 133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
+ 133, 133, 133, 133, 133, 133, 133, 133, 133, 133,
+ 133, 133, 133, 133, 133, 133, 133, 133, 133, 134,
+ 135, 135, 135, 135, 135, 135, 135, 135, 135, 135,
+ 135, 135, 135, 135, 135, 135, 135, 135, 135, 136,
+ 136, 137, 137, 138, 138, 139, 139, 139, 139, 139,
+ 139, 140, 140, 141, 141, 142, 142, 142, 142, 143,
+ 142, 145, 144, 144, 146, 144, 144, 144, 147, 148,
+ 148, 148, 148, 149, 149, 149, 150, 151, 152, 152,
+ 152, 153, 153
+};
-#define YYFAIL goto yyerrlab
+ /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */
+static const yytype_uint8 yyr2[] =
+{
+ 0, 2, 3, 1, 2, 1, 1, 1, 1, 0,
+ 1, 1, 4, 4, 4, 4, 4, 4, 4, 4,
+ 5, 5, 1, 1, 1, 1, 1, 5, 10, 11,
+ 3, 6, 4, 6, 9, 9, 9, 10, 10, 6,
+ 0, 3, 2, 1, 2, 1, 6, 1, 6, 6,
+ 2, 3, 1, 1, 0, 0, 1, 2, 2, 3,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
+ 2, 4, 4, 1, 2, 1, 3, 3, 3, 3,
+ 3, 3, 3, 3, 3, 3, 3, 3, 3, 2,
+ 3, 3, 3, 3, 2, 2, 3, 3, 4, 4,
+ 4, 6, 4, 6, 4, 6, 4, 6, 1, 2,
+ 2, 1, 1, 2, 1, 2, 2, 2, 1, 2,
+ 2, 1, 2, 4, 4, 6, 4, 2, 3, 1,
+ 3, 1, 3, 1, 3, 2, 2, 2, 2, 3,
+ 2, 2, 1, 3, 2, 2, 2, 3, 2, 0,
+ 3, 0, 8, 2, 0, 8, 8, 6, 2, 0,
+ 1, 3, 4, 0, 1, 3, 0, 2, 0, 1,
+ 3, 1, 3
+};
-#define YYRECOVERING() (!!yyerrstatus)
-#define YYBACKUP(Token, Value) \
-do \
- if (yychar == YYEMPTY && yylen == 1) \
- { \
- yychar = (Token); \
- yylval = (Value); \
- yytoken = YYTRANSLATE (yychar); \
- YYPOPSTACK (1); \
- goto yybackup; \
- } \
- else \
- { \
- yyerror (YY_("syntax error: cannot back up")); \
- YYERROR; \
- } \
-while (YYID (0))
-
-
-#define YYTERROR 1
-#define YYERRCODE 256
-
-
-/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
- If N is 0, then set CURRENT to the empty location which ends
- the previous symbol: RHS[0] (always defined). */
-
-#define YYRHSLOC(Rhs, K) ((Rhs)[K])
-#ifndef YYLLOC_DEFAULT
-# define YYLLOC_DEFAULT(Current, Rhs, N) \
- do \
- if (YYID (N)) \
- { \
- (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
- (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
- (Current).last_line = YYRHSLOC (Rhs, N).last_line; \
- (Current).last_column = YYRHSLOC (Rhs, N).last_column; \
- } \
- else \
- { \
- (Current).first_line = (Current).last_line = \
- YYRHSLOC (Rhs, 0).last_line; \
- (Current).first_column = (Current).last_column = \
- YYRHSLOC (Rhs, 0).last_column; \
- } \
- while (YYID (0))
-#endif
+#define yyerrok (yyerrstatus = 0)
+#define yyclearin (yychar = YYEMPTY)
+#define YYEMPTY (-2)
+#define YYEOF 0
+#define YYACCEPT goto yyacceptlab
+#define YYABORT goto yyabortlab
+#define YYERROR goto yyerrorlab
-/* YY_LOCATION_PRINT -- Print the location on the stream.
- This macro was not mandated originally: define only if we know
- we won't break user code: when these are the locations we know. */
-#ifndef YY_LOCATION_PRINT
-# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
-# define YY_LOCATION_PRINT(File, Loc) \
- fprintf (File, "%d.%d-%d.%d", \
- (Loc).first_line, (Loc).first_column, \
- (Loc).last_line, (Loc).last_column)
-# else
-# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
-# endif
-#endif
+#define YYRECOVERING() (!!yyerrstatus)
+#define YYBACKUP(Token, Value) \
+ do \
+ if (yychar == YYEMPTY) \
+ { \
+ yychar = (Token); \
+ yylval = (Value); \
+ YYPOPSTACK (yylen); \
+ yystate = *yyssp; \
+ goto yybackup; \
+ } \
+ else \
+ { \
+ yyerror (YY_("syntax error: cannot back up")); \
+ YYERROR; \
+ } \
+ while (0)
+
+/* Error token number */
+#define YYTERROR 1
+#define YYERRCODE 256
-/* YYLEX -- calling `yylex' with the right arguments. */
-#ifdef YYLEX_PARAM
-# define YYLEX yylex (YYLEX_PARAM)
-#else
-# define YYLEX yylex ()
-#endif
/* Enable debugging if requested. */
#if YYDEBUG
@@ -1453,80 +1259,61 @@ while (YYID (0))
# define YYFPRINTF fprintf
# endif
-# define YYDPRINTF(Args) \
-do { \
- if (yydebug) \
- YYFPRINTF Args; \
-} while (YYID (0))
-
-# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
-do { \
- if (yydebug) \
- { \
- YYFPRINTF (stderr, "%s ", Title); \
- yy_symbol_print (stderr, \
- Type, Value); \
- YYFPRINTF (stderr, "\n"); \
- } \
-} while (YYID (0))
-
-
-/*--------------------------------.
-| Print this symbol on YYOUTPUT. |
-`--------------------------------*/
-
-/*ARGSUSED*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
-#else
-static void
-yy_symbol_value_print (yyoutput, yytype, yyvaluep)
- FILE *yyoutput;
- int yytype;
- YYSTYPE const * const yyvaluep;
+# define YYDPRINTF(Args) \
+do { \
+ if (yydebug) \
+ YYFPRINTF Args; \
+} while (0)
+
+/* This macro is provided for backward compatibility. */
+#ifndef YY_LOCATION_PRINT
+# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
#endif
+
+
+# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
+do { \
+ if (yydebug) \
+ { \
+ YYFPRINTF (stderr, "%s ", Title); \
+ yy_symbol_print (stderr, \
+ Type, Value); \
+ YYFPRINTF (stderr, "\n"); \
+ } \
+} while (0)
+
+
+/*-----------------------------------.
+| Print this symbol's value on YYO. |
+`-----------------------------------*/
+
+static void
+yy_symbol_value_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep)
{
+ FILE *yyoutput = yyo;
+ YYUSE (yyoutput);
if (!yyvaluep)
return;
# ifdef YYPRINT
if (yytype < YYNTOKENS)
- YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
-# else
- YYUSE (yyoutput);
+ YYPRINT (yyo, yytoknum[yytype], *yyvaluep);
# endif
- switch (yytype)
- {
- default:
- break;
- }
+ YYUSE (yytype);
}
-/*--------------------------------.
-| Print this symbol on YYOUTPUT. |
-`--------------------------------*/
+/*---------------------------.
+| Print this symbol on YYO. |
+`---------------------------*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
-#else
static void
-yy_symbol_print (yyoutput, yytype, yyvaluep)
- FILE *yyoutput;
- int yytype;
- YYSTYPE const * const yyvaluep;
-#endif
+yy_symbol_print (FILE *yyo, int yytype, YYSTYPE const * const yyvaluep)
{
- if (yytype < YYNTOKENS)
- YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
- else
- YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
+ YYFPRINTF (yyo, "%s %s (",
+ yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]);
- yy_symbol_value_print (yyoutput, yytype, yyvaluep);
- YYFPRINTF (yyoutput, ")");
+ yy_symbol_value_print (yyo, yytype, yyvaluep);
+ YYFPRINTF (yyo, ")");
}
/*------------------------------------------------------------------.
@@ -1534,66 +1321,54 @@ yy_symbol_print (yyoutput, yytype, yyvaluep)
| TOP (included). |
`------------------------------------------------------------------*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_stack_print (yytype_int16 *bottom, yytype_int16 *top)
-#else
static void
-yy_stack_print (bottom, top)
- yytype_int16 *bottom;
- yytype_int16 *top;
-#endif
+yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
{
YYFPRINTF (stderr, "Stack now");
- for (; bottom <= top; ++bottom)
- YYFPRINTF (stderr, " %d", *bottom);
+ for (; yybottom <= yytop; yybottom++)
+ {
+ int yybot = *yybottom;
+ YYFPRINTF (stderr, " %d", yybot);
+ }
YYFPRINTF (stderr, "\n");
}
-# define YY_STACK_PRINT(Bottom, Top) \
-do { \
- if (yydebug) \
- yy_stack_print ((Bottom), (Top)); \
-} while (YYID (0))
+# define YY_STACK_PRINT(Bottom, Top) \
+do { \
+ if (yydebug) \
+ yy_stack_print ((Bottom), (Top)); \
+} while (0)
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-static void
-yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
-#else
static void
-yy_reduce_print (yyvsp, yyrule)
- YYSTYPE *yyvsp;
- int yyrule;
-#endif
+yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule)
{
+ unsigned long yylno = yyrline[yyrule];
int yynrhs = yyr2[yyrule];
int yyi;
- unsigned long int yylno = yyrline[yyrule];
YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
- yyrule - 1, yylno);
+ yyrule - 1, yylno);
/* The symbols being reduced. */
for (yyi = 0; yyi < yynrhs; yyi++)
{
- fprintf (stderr, " $%d = ", yyi + 1);
- yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
- &(yyvsp[(yyi + 1) - (yynrhs)])
- );
- fprintf (stderr, "\n");
+ YYFPRINTF (stderr, " $%d = ", yyi + 1);
+ yy_symbol_print (stderr,
+ yystos[yyssp[yyi + 1 - yynrhs]],
+ &yyvsp[(yyi + 1) - (yynrhs)]
+ );
+ YYFPRINTF (stderr, "\n");
}
}
-# define YY_REDUCE_PRINT(Rule) \
-do { \
- if (yydebug) \
- yy_reduce_print (yyvsp, Rule); \
-} while (YYID (0))
+# define YY_REDUCE_PRINT(Rule) \
+do { \
+ if (yydebug) \
+ yy_reduce_print (yyssp, yyvsp, Rule); \
+} while (0)
/* Nonzero means print parse trace. It is left uninitialized so that
multiple parsers can coexist. */
@@ -1607,7 +1382,7 @@ int yydebug;
/* YYINITDEPTH -- initial size of the parser's stacks. */
-#ifndef YYINITDEPTH
+#ifndef YYINITDEPTH
# define YYINITDEPTH 200
#endif
@@ -1622,7 +1397,6 @@ int yydebug;
# define YYMAXDEPTH 10000
#endif
-
#if YYERROR_VERBOSE
@@ -1631,15 +1405,8 @@ int yydebug;
# define yystrlen strlen
# else
/* Return the length of YYSTR. */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
static YYSIZE_T
yystrlen (const char *yystr)
-#else
-static YYSIZE_T
-yystrlen (yystr)
- const char *yystr;
-#endif
{
YYSIZE_T yylen;
for (yylen = 0; yystr[yylen]; yylen++)
@@ -1655,16 +1422,8 @@ yystrlen (yystr)
# else
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
YYDEST. */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
static char *
yystpcpy (char *yydest, const char *yysrc)
-#else
-static char *
-yystpcpy (yydest, yysrc)
- char *yydest;
- const char *yysrc;
-#endif
{
char *yyd = yydest;
const char *yys = yysrc;
@@ -1694,242 +1453,245 @@ yytnamerr (char *yyres, const char *yystr)
char const *yyp = yystr;
for (;;)
- switch (*++yyp)
- {
- case '\'':
- case ',':
- goto do_not_strip_quotes;
-
- case '\\':
- if (*++yyp != '\\')
- goto do_not_strip_quotes;
- /* Fall through. */
- default:
- if (yyres)
- yyres[yyn] = *yyp;
- yyn++;
- break;
-
- case '"':
- if (yyres)
- yyres[yyn] = '\0';
- return yyn;
- }
+ switch (*++yyp)
+ {
+ case '\'':
+ case ',':
+ goto do_not_strip_quotes;
+
+ case '\\':
+ if (*++yyp != '\\')
+ goto do_not_strip_quotes;
+ else
+ goto append;
+
+ append:
+ default:
+ if (yyres)
+ yyres[yyn] = *yyp;
+ yyn++;
+ break;
+
+ case '"':
+ if (yyres)
+ yyres[yyn] = '\0';
+ return yyn;
+ }
do_not_strip_quotes: ;
}
if (! yyres)
return yystrlen (yystr);
- return yystpcpy (yyres, yystr) - yyres;
+ return (YYSIZE_T) (yystpcpy (yyres, yystr) - yyres);
}
# endif
-/* Copy into YYRESULT an error message about the unexpected token
- YYCHAR while in state YYSTATE. Return the number of bytes copied,
- including the terminating null byte. If YYRESULT is null, do not
- copy anything; just return the number of bytes that would be
- copied. As a special case, return 0 if an ordinary "syntax error"
- message will do. Return YYSIZE_MAXIMUM if overflow occurs during
- size calculation. */
-static YYSIZE_T
-yysyntax_error (char *yyresult, int yystate, int yychar)
+/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
+ about the unexpected token YYTOKEN for the state stack whose top is
+ YYSSP.
+
+ Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
+ not large enough to hold the message. In that case, also set
+ *YYMSG_ALLOC to the required number of bytes. Return 2 if the
+ required number of bytes is too large to store. */
+static int
+yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
+ yytype_int16 *yyssp, int yytoken)
{
- int yyn = yypact[yystate];
+ YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]);
+ YYSIZE_T yysize = yysize0;
+ enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
+ /* Internationalized format string. */
+ const char *yyformat = YY_NULLPTR;
+ /* Arguments of yyformat. */
+ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
+ /* Number of reported tokens (one for the "unexpected", one per
+ "expected"). */
+ int yycount = 0;
+
+ /* There are many possibilities here to consider:
+ - If this state is a consistent state with a default action, then
+ the only way this function was invoked is if the default action
+ is an error action. In that case, don't check for expected
+ tokens because there are none.
+ - The only way there can be no lookahead present (in yychar) is if
+ this state is a consistent state with a default action. Thus,
+ detecting the absence of a lookahead is sufficient to determine
+ that there is no unexpected or expected token to report. In that
+ case, just report a simple "syntax error".
+ - Don't assume there isn't a lookahead just because this state is a
+ consistent state with a default action. There might have been a
+ previous inconsistent state, consistent state with a non-default
+ action, or user semantic action that manipulated yychar.
+ - Of course, the expected token list depends on states to have
+ correct lookahead information, and it depends on the parser not
+ to perform extra reductions after fetching a lookahead from the
+ scanner and before detecting a syntax error. Thus, state merging
+ (from LALR or IELR) and default reductions corrupt the expected
+ token list. However, the list is correct for canonical LR with
+ one exception: it will still contain any token that will not be
+ accepted due to an error action in a later state.
+ */
+ if (yytoken != YYEMPTY)
+ {
+ int yyn = yypact[*yyssp];
+ yyarg[yycount++] = yytname[yytoken];
+ if (!yypact_value_is_default (yyn))
+ {
+ /* Start YYX at -YYN if negative to avoid negative indexes in
+ YYCHECK. In other words, skip the first -YYN actions for
+ this state because they are default actions. */
+ int yyxbegin = yyn < 0 ? -yyn : 0;
+ /* Stay within bounds of both yycheck and yytname. */
+ int yychecklim = YYLAST - yyn + 1;
+ int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
+ int yyx;
+
+ for (yyx = yyxbegin; yyx < yyxend; ++yyx)
+ if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
+ && !yytable_value_is_error (yytable[yyx + yyn]))
+ {
+ if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
+ {
+ yycount = 1;
+ yysize = yysize0;
+ break;
+ }
+ yyarg[yycount++] = yytname[yyx];
+ {
+ YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]);
+ if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
+ yysize = yysize1;
+ else
+ return 2;
+ }
+ }
+ }
+ }
- if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
- return 0;
- else
- {
- int yytype = YYTRANSLATE (yychar);
- YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
- YYSIZE_T yysize = yysize0;
- YYSIZE_T yysize1;
- int yysize_overflow = 0;
- enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
- char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
- int yyx;
-
-# if 0
- /* This is so xgettext sees the translatable formats that are
- constructed on the fly. */
- YY_("syntax error, unexpected %s");
- YY_("syntax error, unexpected %s, expecting %s");
- YY_("syntax error, unexpected %s, expecting %s or %s");
- YY_("syntax error, unexpected %s, expecting %s or %s or %s");
- YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
-# endif
- char *yyfmt;
- char const *yyf;
- static char const yyunexpected[] = "syntax error, unexpected %s";
- static char const yyexpecting[] = ", expecting %s";
- static char const yyor[] = " or %s";
- char yyformat[sizeof yyunexpected
- + sizeof yyexpecting - 1
- + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
- * (sizeof yyor - 1))];
- char const *yyprefix = yyexpecting;
-
- /* Start YYX at -YYN if negative to avoid negative indexes in
- YYCHECK. */
- int yyxbegin = yyn < 0 ? -yyn : 0;
-
- /* Stay within bounds of both yycheck and yytname. */
- int yychecklim = YYLAST - yyn + 1;
- int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
- int yycount = 1;
-
- yyarg[0] = yytname[yytype];
- yyfmt = yystpcpy (yyformat, yyunexpected);
-
- for (yyx = yyxbegin; yyx < yyxend; ++yyx)
- if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
- {
- if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
- {
- yycount = 1;
- yysize = yysize0;
- yyformat[sizeof yyunexpected - 1] = '\0';
- break;
- }
- yyarg[yycount++] = yytname[yyx];
- yysize1 = yysize + yytnamerr (0, yytname[yyx]);
- yysize_overflow |= (yysize1 < yysize);
- yysize = yysize1;
- yyfmt = yystpcpy (yyfmt, yyprefix);
- yyprefix = yyor;
- }
-
- yyf = YY_(yyformat);
- yysize1 = yysize + yystrlen (yyf);
- yysize_overflow |= (yysize1 < yysize);
+ switch (yycount)
+ {
+# define YYCASE_(N, S) \
+ case N: \
+ yyformat = S; \
+ break
+ default: /* Avoid compiler warnings. */
+ YYCASE_(0, YY_("syntax error"));
+ YYCASE_(1, YY_("syntax error, unexpected %s"));
+ YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
+ YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
+ YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
+ YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
+# undef YYCASE_
+ }
+
+ {
+ YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
+ if (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)
yysize = yysize1;
+ else
+ return 2;
+ }
- if (yysize_overflow)
- return YYSIZE_MAXIMUM;
-
- if (yyresult)
- {
- /* Avoid sprintf, as that infringes on the user's name space.
- Don't have undefined behavior even if the translation
- produced a string with the wrong number of "%s"s. */
- char *yyp = yyresult;
- int yyi = 0;
- while ((*yyp = *yyf) != '\0')
- {
- if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
- {
- yyp += yytnamerr (yyp, yyarg[yyi++]);
- yyf += 2;
- }
- else
- {
- yyp++;
- yyf++;
- }
- }
- }
- return yysize;
+ if (*yymsg_alloc < yysize)
+ {
+ *yymsg_alloc = 2 * yysize;
+ if (! (yysize <= *yymsg_alloc
+ && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
+ *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
+ return 1;
}
+
+ /* Avoid sprintf, as that infringes on the user's name space.
+ Don't have undefined behavior even if the translation
+ produced a string with the wrong number of "%s"s. */
+ {
+ char *yyp = *yymsg;
+ int yyi = 0;
+ while ((*yyp = *yyformat) != '\0')
+ if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
+ {
+ yyp += yytnamerr (yyp, yyarg[yyi++]);
+ yyformat += 2;
+ }
+ else
+ {
+ yyp++;
+ yyformat++;
+ }
+ }
+ return 0;
}
#endif /* YYERROR_VERBOSE */
-
/*-----------------------------------------------.
| Release the memory associated to this symbol. |
`-----------------------------------------------*/
-/*ARGSUSED*/
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
-#else
-static void
-yydestruct (yymsg, yytype, yyvaluep)
- const char *yymsg;
- int yytype;
- YYSTYPE *yyvaluep;
-#endif
{
YYUSE (yyvaluep);
-
if (!yymsg)
yymsg = "Deleting";
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
- switch (yytype)
- {
-
- default:
- break;
- }
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
+ YYUSE (yytype);
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
}
-
-/* Prevent warnings from -Wmissing-prototypes. */
-
-#ifdef YYPARSE_PARAM
-#if defined __STDC__ || defined __cplusplus
-int yyparse (void *YYPARSE_PARAM);
-#else
-int yyparse ();
-#endif
-#else /* ! YYPARSE_PARAM */
-#if defined __STDC__ || defined __cplusplus
-int yyparse (void);
-#else
-int yyparse ();
-#endif
-#endif /* ! YYPARSE_PARAM */
-/* The look-ahead symbol. */
+/* The lookahead symbol. */
int yychar;
-/* The semantic value of the look-ahead symbol. */
+/* The semantic value of the lookahead symbol. */
YYSTYPE yylval;
-
/* Number of syntax errors so far. */
int yynerrs;
-
/*----------.
| yyparse. |
`----------*/
-#ifdef YYPARSE_PARAM
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
-int
-yyparse (void *YYPARSE_PARAM)
-#else
-int
-yyparse (YYPARSE_PARAM)
- void *YYPARSE_PARAM;
-#endif
-#else /* ! YYPARSE_PARAM */
-#if (defined __STDC__ || defined __C99__FUNC__ \
- || defined __cplusplus || defined _MSC_VER)
int
yyparse (void)
-#else
-int
-yyparse ()
-
-#endif
-#endif
{
-
- int yystate;
+ int yystate;
+ /* Number of tokens to shift before error messages enabled. */
+ int yyerrstatus;
+
+ /* The stacks and their tools:
+ 'yyss': related to states.
+ 'yyvs': related to semantic values.
+
+ Refer to the stacks through separate pointers, to allow yyoverflow
+ to reallocate them elsewhere. */
+
+ /* The state stack. */
+ yytype_int16 yyssa[YYINITDEPTH];
+ yytype_int16 *yyss;
+ yytype_int16 *yyssp;
+
+ /* The semantic value stack. */
+ YYSTYPE yyvsa[YYINITDEPTH];
+ YYSTYPE *yyvs;
+ YYSTYPE *yyvsp;
+
+ YYSIZE_T yystacksize;
+
int yyn;
int yyresult;
- /* Number of tokens to shift before error messages enabled. */
- int yyerrstatus;
- /* Look-ahead token as an internal (translated) token number. */
+ /* Lookahead token as an internal (translated) token number. */
int yytoken = 0;
+ /* The variables used to return semantic value and location from the
+ action routines. */
+ YYSTYPE yyval;
+
#if YYERROR_VERBOSE
/* Buffer for error messages, and its allocated size. */
char yymsgbuf[128];
@@ -1937,156 +1699,127 @@ yyparse ()
YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif
- /* Three stacks and their tools:
- `yyss': related to states,
- `yyvs': related to semantic values,
- `yyls': related to locations.
-
- Refer to the stacks thru separate pointers, to allow yyoverflow
- to reallocate them elsewhere. */
-
- /* The state stack. */
- yytype_int16 yyssa[YYINITDEPTH];
- yytype_int16 *yyss = yyssa;
- yytype_int16 *yyssp;
-
- /* The semantic value stack. */
- YYSTYPE yyvsa[YYINITDEPTH];
- YYSTYPE *yyvs = yyvsa;
- YYSTYPE *yyvsp;
-
-
-
#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
- YYSIZE_T yystacksize = YYINITDEPTH;
-
- /* The variables used to return semantic value and location from the
- action routines. */
- YYSTYPE yyval;
-
-
/* The number of symbols on the RHS of the reduced rule.
Keep to zero when no symbol should be popped. */
int yylen = 0;
+ yyssp = yyss = yyssa;
+ yyvsp = yyvs = yyvsa;
+ yystacksize = YYINITDEPTH;
+
YYDPRINTF ((stderr, "Starting parse\n"));
yystate = 0;
yyerrstatus = 0;
yynerrs = 0;
- yychar = YYEMPTY; /* Cause a token to be read. */
-
- /* Initialize stack pointers.
- Waste one element of value and location stack
- so that they stay on the same level as the state stack.
- The wasted elements are never initialized. */
-
- yyssp = yyss;
- yyvsp = yyvs;
-
+ yychar = YYEMPTY; /* Cause a token to be read. */
goto yysetstate;
+
/*------------------------------------------------------------.
-| yynewstate -- Push a new state, which is found in yystate. |
+| yynewstate -- push a new state, which is found in yystate. |
`------------------------------------------------------------*/
- yynewstate:
+yynewstate:
/* In all cases, when you get here, the value and location stacks
have just been pushed. So pushing a state here evens the stacks. */
yyssp++;
- yysetstate:
- *yyssp = yystate;
+
+/*--------------------------------------------------------------------.
+| yynewstate -- set current state (the top of the stack) to yystate. |
+`--------------------------------------------------------------------*/
+yysetstate:
+ YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+ YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
+ *yyssp = (yytype_int16) yystate;
if (yyss + yystacksize - 1 <= yyssp)
+#if !defined yyoverflow && !defined YYSTACK_RELOCATE
+ goto yyexhaustedlab;
+#else
{
/* Get the current used size of the three stacks, in elements. */
- YYSIZE_T yysize = yyssp - yyss + 1;
+ YYSIZE_T yysize = (YYSIZE_T) (yyssp - yyss + 1);
-#ifdef yyoverflow
+# if defined yyoverflow
{
- /* Give user a chance to reallocate the stack. Use copies of
- these so that the &'s don't force the real ones into
- memory. */
- YYSTYPE *yyvs1 = yyvs;
- yytype_int16 *yyss1 = yyss;
-
-
- /* Each stack pointer address is followed by the size of the
- data in use in that stack, in bytes. This used to be a
- conditional around just the two extra args, but that might
- be undefined if yyoverflow is a macro. */
- yyoverflow (YY_("memory exhausted"),
- &yyss1, yysize * sizeof (*yyssp),
- &yyvs1, yysize * sizeof (*yyvsp),
-
- &yystacksize);
-
- yyss = yyss1;
- yyvs = yyvs1;
+ /* Give user a chance to reallocate the stack. Use copies of
+ these so that the &'s don't force the real ones into
+ memory. */
+ YYSTYPE *yyvs1 = yyvs;
+ yytype_int16 *yyss1 = yyss;
+
+ /* Each stack pointer address is followed by the size of the
+ data in use in that stack, in bytes. This used to be a
+ conditional around just the two extra args, but that might
+ be undefined if yyoverflow is a macro. */
+ yyoverflow (YY_("memory exhausted"),
+ &yyss1, yysize * sizeof (*yyssp),
+ &yyvs1, yysize * sizeof (*yyvsp),
+ &yystacksize);
+ yyss = yyss1;
+ yyvs = yyvs1;
}
-#else /* no yyoverflow */
-# ifndef YYSTACK_RELOCATE
- goto yyexhaustedlab;
-# else
+# else /* defined YYSTACK_RELOCATE */
/* Extend the stack our own way. */
if (YYMAXDEPTH <= yystacksize)
- goto yyexhaustedlab;
+ goto yyexhaustedlab;
yystacksize *= 2;
if (YYMAXDEPTH < yystacksize)
- yystacksize = YYMAXDEPTH;
+ yystacksize = YYMAXDEPTH;
{
- yytype_int16 *yyss1 = yyss;
- union yyalloc *yyptr =
- (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
- if (! yyptr)
- goto yyexhaustedlab;
- YYSTACK_RELOCATE (yyss);
- YYSTACK_RELOCATE (yyvs);
-
-# undef YYSTACK_RELOCATE
- if (yyss1 != yyssa)
- YYSTACK_FREE (yyss1);
+ yytype_int16 *yyss1 = yyss;
+ union yyalloc *yyptr =
+ (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
+ if (! yyptr)
+ goto yyexhaustedlab;
+ YYSTACK_RELOCATE (yyss_alloc, yyss);
+ YYSTACK_RELOCATE (yyvs_alloc, yyvs);
+# undef YYSTACK_RELOCATE
+ if (yyss1 != yyssa)
+ YYSTACK_FREE (yyss1);
}
# endif
-#endif /* no yyoverflow */
yyssp = yyss + yysize - 1;
yyvsp = yyvs + yysize - 1;
-
YYDPRINTF ((stderr, "Stack size increased to %lu\n",
- (unsigned long int) yystacksize));
+ (unsigned long) yystacksize));
if (yyss + yystacksize - 1 <= yyssp)
- YYABORT;
+ YYABORT;
}
+#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */
- YYDPRINTF ((stderr, "Entering state %d\n", yystate));
+ if (yystate == YYFINAL)
+ YYACCEPT;
goto yybackup;
+
/*-----------.
| yybackup. |
`-----------*/
yybackup:
-
/* Do appropriate processing given the current state. Read a
- look-ahead token if we need one and don't already have one. */
+ lookahead token if we need one and don't already have one. */
- /* First try to decide what to do without reference to look-ahead token. */
+ /* First try to decide what to do without reference to lookahead token. */
yyn = yypact[yystate];
- if (yyn == YYPACT_NINF)
+ if (yypact_value_is_default (yyn))
goto yydefault;
- /* Not known => get a look-ahead token if don't already have one. */
+ /* Not known => get a lookahead token if don't already have one. */
- /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol. */
+ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
if (yychar == YYEMPTY)
{
YYDPRINTF ((stderr, "Reading a token: "));
- yychar = YYLEX;
+ yychar = yylex ();
}
if (yychar <= YYEOF)
@@ -2108,30 +1841,27 @@ yybackup:
yyn = yytable[yyn];
if (yyn <= 0)
{
- if (yyn == 0 || yyn == YYTABLE_NINF)
- goto yyerrlab;
+ if (yytable_value_is_error (yyn))
+ goto yyerrlab;
yyn = -yyn;
goto yyreduce;
}
- if (yyn == YYFINAL)
- YYACCEPT;
-
/* Count tokens shifted since error; after three, turn off error
status. */
if (yyerrstatus)
yyerrstatus--;
- /* Shift the look-ahead token. */
+ /* Shift the lookahead token. */
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
- /* Discard the shifted token unless it is eof. */
- if (yychar != YYEOF)
- yychar = YYEMPTY;
+ /* Discard the shifted token. */
+ yychar = YYEMPTY;
yystate = yyn;
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval;
-
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
goto yynewstate;
@@ -2146,14 +1876,14 @@ yydefault:
/*-----------------------------.
-| yyreduce -- Do a reduction. |
+| yyreduce -- do a reduction. |
`-----------------------------*/
yyreduce:
/* yyn is the number of a rule to reduce with. */
yylen = yyr2[yyn];
/* If YYLEN is nonzero, implement the default value of the action:
- `$$ = $1'.
+ '$$ = $1'.
Otherwise, the following line sets YYVAL to garbage.
This behavior is undocumented and Bison
@@ -2166,74 +1896,84 @@ yyreduce:
YY_REDUCE_PRINT (yyn);
switch (yyn)
{
- case 4:
+ case 4:
#line 122 "engines/director/lingo/lingo-gr.y"
- { yyerrok; ;}
+ { yyerrok; }
+#line 1903 "engines/director/lingo/lingo-gr.cpp"
break;
case 5:
#line 125 "engines/director/lingo/lingo-gr.y"
{
g_lingo->_linenumber++;
- g_lingo->_colnumber = 1; ;}
+ g_lingo->_colnumber = 1; }
+#line 1911 "engines/director/lingo/lingo-gr.cpp"
break;
case 6:
#line 130 "engines/director/lingo/lingo-gr.y"
{
g_lingo->_linenumber++;
- g_lingo->_colnumber = 1; ;}
+ g_lingo->_colnumber = 1; }
+#line 1919 "engines/director/lingo/lingo-gr.cpp"
break;
case 7:
#line 135 "engines/director/lingo/lingo-gr.y"
{
g_lingo->_linenumber++;
- g_lingo->_colnumber = 5; ;}
+ g_lingo->_colnumber = 5; }
+#line 1927 "engines/director/lingo/lingo-gr.cpp"
break;
case 8:
#line 140 "engines/director/lingo/lingo-gr.y"
{
g_lingo->_linenumber++;
- g_lingo->_colnumber = 8; ;}
+ g_lingo->_colnumber = 8; }
+#line 1935 "engines/director/lingo/lingo-gr.cpp"
break;
case 12:
#line 150 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_varpush);
- g_lingo->codeString((yyvsp[(4) - (4)].s)->c_str());
+ g_lingo->codeString((yyvsp[0].s)->c_str());
g_lingo->code1(g_lingo->c_assign);
- (yyval.code) = (yyvsp[(2) - (4)].code);
- delete (yyvsp[(4) - (4)].s); ;}
+ (yyval.code) = (yyvsp[-2].code);
+ delete (yyvsp[0].s); }
+#line 1946 "engines/director/lingo/lingo-gr.cpp"
break;
case 13:
#line 156 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_assign);
- (yyval.code) = (yyvsp[(2) - (4)].code); ;}
+ (yyval.code) = (yyvsp[-2].code); }
+#line 1954 "engines/director/lingo/lingo-gr.cpp"
break;
case 14:
#line 159 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->code1(g_lingo->c_after); ;}
+ { (yyval.code) = g_lingo->code1(g_lingo->c_after); }
+#line 1960 "engines/director/lingo/lingo-gr.cpp"
break;
case 15:
#line 160 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->code1(g_lingo->c_before); ;}
+ { (yyval.code) = g_lingo->code1(g_lingo->c_before); }
+#line 1966 "engines/director/lingo/lingo-gr.cpp"
break;
case 16:
#line 161 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_varpush);
- g_lingo->codeString((yyvsp[(2) - (4)].s)->c_str());
+ g_lingo->codeString((yyvsp[-2].s)->c_str());
g_lingo->code1(g_lingo->c_assign);
- (yyval.code) = (yyvsp[(4) - (4)].code);
- delete (yyvsp[(2) - (4)].s); ;}
+ (yyval.code) = (yyvsp[0].code);
+ delete (yyvsp[-2].s); }
+#line 1977 "engines/director/lingo/lingo-gr.cpp"
break;
case 17:
@@ -2242,19 +1982,21 @@ yyreduce:
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(0); // Put dummy id
g_lingo->code1(g_lingo->c_theentityassign);
- g_lingo->codeInt((yyvsp[(2) - (4)].e)[0]);
- g_lingo->codeInt((yyvsp[(2) - (4)].e)[1]);
- (yyval.code) = (yyvsp[(4) - (4)].code); ;}
+ g_lingo->codeInt((yyvsp[-2].e)[0]);
+ g_lingo->codeInt((yyvsp[-2].e)[1]);
+ (yyval.code) = (yyvsp[0].code); }
+#line 1989 "engines/director/lingo/lingo-gr.cpp"
break;
case 18:
#line 174 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_varpush);
- g_lingo->codeString((yyvsp[(2) - (4)].s)->c_str());
+ g_lingo->codeString((yyvsp[-2].s)->c_str());
g_lingo->code1(g_lingo->c_assign);
- (yyval.code) = (yyvsp[(4) - (4)].code);
- delete (yyvsp[(2) - (4)].s); ;}
+ (yyval.code) = (yyvsp[0].code);
+ delete (yyvsp[-2].s); }
+#line 2000 "engines/director/lingo/lingo-gr.cpp"
break;
case 19:
@@ -2263,9 +2005,10 @@ yyreduce:
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(0); // Put dummy id
g_lingo->code1(g_lingo->c_theentityassign);
- g_lingo->codeInt((yyvsp[(2) - (4)].e)[0]);
- g_lingo->codeInt((yyvsp[(2) - (4)].e)[1]);
- (yyval.code) = (yyvsp[(4) - (4)].code); ;}
+ g_lingo->codeInt((yyvsp[-2].e)[0]);
+ g_lingo->codeInt((yyvsp[-2].e)[1]);
+ (yyval.code) = (yyvsp[0].code); }
+#line 2012 "engines/director/lingo/lingo-gr.cpp"
break;
case 20:
@@ -2273,9 +2016,10 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_swap);
g_lingo->code1(g_lingo->c_theentityassign);
- g_lingo->codeInt((yyvsp[(2) - (5)].e)[0]);
- g_lingo->codeInt((yyvsp[(2) - (5)].e)[1]);
- (yyval.code) = (yyvsp[(5) - (5)].code); ;}
+ g_lingo->codeInt((yyvsp[-3].e)[0]);
+ g_lingo->codeInt((yyvsp[-3].e)[1]);
+ (yyval.code) = (yyvsp[0].code); }
+#line 2023 "engines/director/lingo/lingo-gr.cpp"
break;
case 21:
@@ -2283,227 +2027,247 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_swap);
g_lingo->code1(g_lingo->c_theentityassign);
- g_lingo->codeInt((yyvsp[(2) - (5)].e)[0]);
- g_lingo->codeInt((yyvsp[(2) - (5)].e)[1]);
- (yyval.code) = (yyvsp[(5) - (5)].code); ;}
+ g_lingo->codeInt((yyvsp[-3].e)[0]);
+ g_lingo->codeInt((yyvsp[-3].e)[1]);
+ (yyval.code) = (yyvsp[0].code); }
+#line 2034 "engines/director/lingo/lingo-gr.cpp"
break;
case 27:
#line 212 "engines/director/lingo/lingo-gr.y"
{
inst body = 0, end = 0;
- WRITE_UINT32(&body, (yyvsp[(3) - (5)].code) - (yyvsp[(1) - (5)].code));
- WRITE_UINT32(&end, (yyvsp[(4) - (5)].code) - (yyvsp[(1) - (5)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (5)].code) + 1] = body; /* body of loop */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (5)].code) + 2] = end; /* end, if cond fails */
+ WRITE_UINT32(&body, (yyvsp[-2].code) - (yyvsp[-4].code));
+ WRITE_UINT32(&end, (yyvsp[-1].code) - (yyvsp[-4].code));
+ (*g_lingo->_currentScript)[(yyvsp[-4].code) + 1] = body; /* body of loop */
+ (*g_lingo->_currentScript)[(yyvsp[-4].code) + 2] = end; /* end, if cond fails */
- checkEnd((yyvsp[(5) - (5)].s), "repeat", true); ;}
+ checkEnd((yyvsp[0].s), "repeat", true); }
+#line 2047 "engines/director/lingo/lingo-gr.cpp"
break;
case 28:
#line 225 "engines/director/lingo/lingo-gr.y"
{
inst init = 0, finish = 0, body = 0, end = 0, inc = 0;
- WRITE_UINT32(&init, (yyvsp[(3) - (10)].code) - (yyvsp[(1) - (10)].code));
- WRITE_UINT32(&finish, (yyvsp[(6) - (10)].code) - (yyvsp[(1) - (10)].code));
- WRITE_UINT32(&body, (yyvsp[(8) - (10)].code) - (yyvsp[(1) - (10)].code));
- WRITE_UINT32(&end, (yyvsp[(9) - (10)].code) - (yyvsp[(1) - (10)].code));
+ WRITE_UINT32(&init, (yyvsp[-7].code) - (yyvsp[-9].code));
+ WRITE_UINT32(&finish, (yyvsp[-4].code) - (yyvsp[-9].code));
+ WRITE_UINT32(&body, (yyvsp[-2].code) - (yyvsp[-9].code));
+ WRITE_UINT32(&end, (yyvsp[-1].code) - (yyvsp[-9].code));
WRITE_UINT32(&inc, 1);
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 1] = init; /* initial count value */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 2] = finish;/* final count value */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 3] = body; /* body of loop */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 4] = inc; /* increment */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 5] = end; /* end, if cond fails */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 1] = init; /* initial count value */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 2] = finish;/* final count value */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 3] = body; /* body of loop */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 4] = inc; /* increment */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 5] = end; /* end, if cond fails */
- checkEnd((yyvsp[(10) - (10)].s), "repeat", true); ;}
+ checkEnd((yyvsp[0].s), "repeat", true); }
+#line 2066 "engines/director/lingo/lingo-gr.cpp"
break;
case 29:
#line 243 "engines/director/lingo/lingo-gr.y"
{
inst init = 0, finish = 0, body = 0, end = 0, inc = 0;
- WRITE_UINT32(&init, (yyvsp[(3) - (11)].code) - (yyvsp[(1) - (11)].code));
- WRITE_UINT32(&finish, (yyvsp[(7) - (11)].code) - (yyvsp[(1) - (11)].code));
- WRITE_UINT32(&body, (yyvsp[(9) - (11)].code) - (yyvsp[(1) - (11)].code));
- WRITE_UINT32(&end, (yyvsp[(10) - (11)].code) - (yyvsp[(1) - (11)].code));
+ WRITE_UINT32(&init, (yyvsp[-8].code) - (yyvsp[-10].code));
+ WRITE_UINT32(&finish, (yyvsp[-4].code) - (yyvsp[-10].code));
+ WRITE_UINT32(&body, (yyvsp[-2].code) - (yyvsp[-10].code));
+ WRITE_UINT32(&end, (yyvsp[-1].code) - (yyvsp[-10].code));
WRITE_UINT32(&inc, (uint32)-1);
- (*g_lingo->_currentScript)[(yyvsp[(1) - (11)].code) + 1] = init; /* initial count value */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (11)].code) + 2] = finish;/* final count value */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (11)].code) + 3] = body; /* body of loop */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (11)].code) + 4] = inc; /* increment */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (11)].code) + 5] = end; /* end, if cond fails */
+ (*g_lingo->_currentScript)[(yyvsp[-10].code) + 1] = init; /* initial count value */
+ (*g_lingo->_currentScript)[(yyvsp[-10].code) + 2] = finish;/* final count value */
+ (*g_lingo->_currentScript)[(yyvsp[-10].code) + 3] = body; /* body of loop */
+ (*g_lingo->_currentScript)[(yyvsp[-10].code) + 4] = inc; /* increment */
+ (*g_lingo->_currentScript)[(yyvsp[-10].code) + 5] = end; /* end, if cond fails */
- checkEnd((yyvsp[(11) - (11)].s), "repeat", true); ;}
+ checkEnd((yyvsp[0].s), "repeat", true); }
+#line 2085 "engines/director/lingo/lingo-gr.cpp"
break;
case 30:
#line 257 "engines/director/lingo/lingo-gr.y"
{
inst end = 0;
- WRITE_UINT32(&end, (yyvsp[(3) - (3)].code) - (yyvsp[(1) - (3)].code));
+ WRITE_UINT32(&end, (yyvsp[0].code) - (yyvsp[-2].code));
g_lingo->code1(STOP);
- (*g_lingo->_currentScript)[(yyvsp[(1) - (3)].code) + 1] = end; ;}
+ (*g_lingo->_currentScript)[(yyvsp[-2].code) + 1] = end; }
+#line 2095 "engines/director/lingo/lingo-gr.cpp"
break;
case 31:
#line 262 "engines/director/lingo/lingo-gr.y"
{
warning("STUB: TELL is not implemented");
- checkEnd((yyvsp[(6) - (6)].s), "tell", true); ;}
+ checkEnd((yyvsp[0].s), "tell", true); }
+#line 2103 "engines/director/lingo/lingo-gr.cpp"
break;
case 32:
#line 265 "engines/director/lingo/lingo-gr.y"
{
warning("STUB: TELL is not implemented");
- ;}
+ }
+#line 2111 "engines/director/lingo/lingo-gr.cpp"
break;
case 33:
#line 270 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (6)].code) - (yyvsp[(1) - (6)].code));
- WRITE_UINT32(&end, (yyvsp[(5) - (6)].code) - (yyvsp[(1) - (6)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 1] = then; /* thenpart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 3] = end; /* end, if cond fails */
+ WRITE_UINT32(&then, (yyvsp[-2].code) - (yyvsp[-5].code));
+ WRITE_UINT32(&end, (yyvsp[-1].code) - (yyvsp[-5].code));
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 3] = end; /* end, if cond fails */
- checkEnd((yyvsp[(6) - (6)].s), "if", true);
+ checkEnd((yyvsp[0].s), "if", true);
- g_lingo->processIf(0, 0); ;}
+ g_lingo->processIf(0, 0); }
+#line 2126 "engines/director/lingo/lingo-gr.cpp"
break;
case 34:
#line 280 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, else1 = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (9)].code) - (yyvsp[(1) - (9)].code));
- WRITE_UINT32(&else1, (yyvsp[(7) - (9)].code) - (yyvsp[(1) - (9)].code));
- WRITE_UINT32(&end, (yyvsp[(8) - (9)].code) - (yyvsp[(1) - (9)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 1] = then; /* thenpart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 2] = else1; /* elsepart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 3] = end; /* end, if cond fails */
+ WRITE_UINT32(&then, (yyvsp[-5].code) - (yyvsp[-8].code));
+ WRITE_UINT32(&else1, (yyvsp[-2].code) - (yyvsp[-8].code));
+ WRITE_UINT32(&end, (yyvsp[-1].code) - (yyvsp[-8].code));
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 2] = else1; /* elsepart */
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 3] = end; /* end, if cond fails */
- checkEnd((yyvsp[(9) - (9)].s), "if", true);
+ checkEnd((yyvsp[0].s), "if", true);
- g_lingo->processIf(0, 0); ;}
+ g_lingo->processIf(0, 0); }
+#line 2143 "engines/director/lingo/lingo-gr.cpp"
break;
case 35:
#line 292 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, else1 = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (9)].code) - (yyvsp[(1) - (9)].code));
- WRITE_UINT32(&else1, (yyvsp[(6) - (9)].code) - (yyvsp[(1) - (9)].code));
- WRITE_UINT32(&end, (yyvsp[(8) - (9)].code) - (yyvsp[(1) - (9)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 1] = then; /* thenpart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 2] = else1; /* elsepart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 3] = end; /* end, if cond fails */
+ WRITE_UINT32(&then, (yyvsp[-5].code) - (yyvsp[-8].code));
+ WRITE_UINT32(&else1, (yyvsp[-3].code) - (yyvsp[-8].code));
+ WRITE_UINT32(&end, (yyvsp[-1].code) - (yyvsp[-8].code));
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 2] = else1; /* elsepart */
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 3] = end; /* end, if cond fails */
- checkEnd((yyvsp[(9) - (9)].s), "if", true);
+ checkEnd((yyvsp[0].s), "if", true);
- g_lingo->processIf(0, (yyvsp[(8) - (9)].code) - (yyvsp[(1) - (9)].code)); ;}
+ g_lingo->processIf(0, (yyvsp[-1].code) - (yyvsp[-8].code)); }
+#line 2160 "engines/director/lingo/lingo-gr.cpp"
break;
case 36:
#line 304 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, else1 = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (9)].code) - (yyvsp[(1) - (9)].code));
- WRITE_UINT32(&else1, (yyvsp[(7) - (9)].code) - (yyvsp[(1) - (9)].code));
- WRITE_UINT32(&end, (yyvsp[(9) - (9)].code) - (yyvsp[(1) - (9)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 1] = then; /* thenpart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 2] = else1; /* elsepart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (9)].code) + 3] = end; /* end, if cond fails */
+ WRITE_UINT32(&then, (yyvsp[-5].code) - (yyvsp[-8].code));
+ WRITE_UINT32(&else1, (yyvsp[-2].code) - (yyvsp[-8].code));
+ WRITE_UINT32(&end, (yyvsp[0].code) - (yyvsp[-8].code));
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 2] = else1; /* elsepart */
+ (*g_lingo->_currentScript)[(yyvsp[-8].code) + 3] = end; /* end, if cond fails */
- g_lingo->processIf(0, (yyvsp[(9) - (9)].code) - (yyvsp[(1) - (9)].code)); ;}
+ g_lingo->processIf(0, (yyvsp[0].code) - (yyvsp[-8].code)); }
+#line 2175 "engines/director/lingo/lingo-gr.cpp"
break;
case 37:
#line 314 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, else1 = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (10)].code) - (yyvsp[(1) - (10)].code));
- WRITE_UINT32(&else1, (yyvsp[(6) - (10)].code) - (yyvsp[(1) - (10)].code));
- WRITE_UINT32(&end, (yyvsp[(10) - (10)].code) - (yyvsp[(1) - (10)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 1] = then; /* thenpart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 2] = else1; /* elsepart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 3] = end; /* end, if cond fails */
+ WRITE_UINT32(&then, (yyvsp[-6].code) - (yyvsp[-9].code));
+ WRITE_UINT32(&else1, (yyvsp[-4].code) - (yyvsp[-9].code));
+ WRITE_UINT32(&end, (yyvsp[0].code) - (yyvsp[-9].code));
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 2] = else1; /* elsepart */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 3] = end; /* end, if cond fails */
- g_lingo->processIf(0, (yyvsp[(10) - (10)].code) - (yyvsp[(1) - (10)].code)); ;}
+ g_lingo->processIf(0, (yyvsp[0].code) - (yyvsp[-9].code)); }
+#line 2190 "engines/director/lingo/lingo-gr.cpp"
break;
case 38:
#line 324 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, else1 = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (10)].code) - (yyvsp[(1) - (10)].code));
- WRITE_UINT32(&else1, (yyvsp[(8) - (10)].code) - (yyvsp[(1) - (10)].code));
- WRITE_UINT32(&end, (yyvsp[(10) - (10)].code) - (yyvsp[(1) - (10)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 1] = then; /* thenpart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 2] = else1; /* elsepart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 3] = end; /* end, if cond fails */
+ WRITE_UINT32(&then, (yyvsp[-6].code) - (yyvsp[-9].code));
+ WRITE_UINT32(&else1, (yyvsp[-2].code) - (yyvsp[-9].code));
+ WRITE_UINT32(&end, (yyvsp[0].code) - (yyvsp[-9].code));
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 2] = else1; /* elsepart */
+ (*g_lingo->_currentScript)[(yyvsp[-9].code) + 3] = end; /* end, if cond fails */
- g_lingo->processIf(0, 0); ;}
+ g_lingo->processIf(0, 0); }
+#line 2205 "engines/director/lingo/lingo-gr.cpp"
break;
case 39:
#line 334 "engines/director/lingo/lingo-gr.y"
{
inst then = 0, else1 = 0, end = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (6)].code) - (yyvsp[(1) - (6)].code));
+ WRITE_UINT32(&then, (yyvsp[-2].code) - (yyvsp[-5].code));
WRITE_UINT32(&else1, 0);
- WRITE_UINT32(&end, (yyvsp[(6) - (6)].code) - (yyvsp[(1) - (6)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 1] = then; /* thenpart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 2] = else1; /* elsepart */
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 3] = end; /* end, if cond fails */
+ WRITE_UINT32(&end, (yyvsp[0].code) - (yyvsp[-5].code));
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 1] = then; /* thenpart */
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 2] = else1; /* elsepart */
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 3] = end; /* end, if cond fails */
- g_lingo->processIf(0, 0); ;}
+ g_lingo->processIf(0, 0); }
+#line 2220 "engines/director/lingo/lingo-gr.cpp"
break;
case 40:
#line 346 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = 0; ;}
+ { (yyval.code) = 0; }
+#line 2226 "engines/director/lingo/lingo-gr.cpp"
break;
case 41:
#line 347 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[(2) - (3)].code); ;}
+ { (yyval.code) = (yyvsp[-1].code); }
+#line 2232 "engines/director/lingo/lingo-gr.cpp"
break;
case 46:
#line 358 "engines/director/lingo/lingo-gr.y"
{
inst then = 0;
- WRITE_UINT32(&then, (yyvsp[(4) - (6)].code) - (yyvsp[(1) - (6)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 1] = then; /* thenpart */
+ WRITE_UINT32(&then, (yyvsp[-2].code) - (yyvsp[-5].code));
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 1] = then; /* thenpart */
- g_lingo->codeLabel((yyvsp[(1) - (6)].code)); ;}
+ g_lingo->codeLabel((yyvsp[-5].code)); }
+#line 2243 "engines/director/lingo/lingo-gr.cpp"
break;
case 48:
#line 367 "engines/director/lingo/lingo-gr.y"
{
inst then = 0;
- WRITE_UINT32(&then, (yyvsp[(5) - (6)].code) - (yyvsp[(1) - (6)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 1] = then; /* thenpart */
+ WRITE_UINT32(&then, (yyvsp[-1].code) - (yyvsp[-5].code));
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 1] = then; /* thenpart */
- g_lingo->codeLabel((yyvsp[(1) - (6)].code)); ;}
+ g_lingo->codeLabel((yyvsp[-5].code)); }
+#line 2254 "engines/director/lingo/lingo-gr.cpp"
break;
case 49:
#line 373 "engines/director/lingo/lingo-gr.y"
{
inst then = 0;
- WRITE_UINT32(&then, (yyvsp[(5) - (6)].code) - (yyvsp[(1) - (6)].code));
- (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 1] = then; /* thenpart */
+ WRITE_UINT32(&then, (yyvsp[-1].code) - (yyvsp[-5].code));
+ (*g_lingo->_currentScript)[(yyvsp[-5].code) + 1] = then; /* thenpart */
- g_lingo->codeLabel((yyvsp[(1) - (6)].code)); ;}
+ g_lingo->codeLabel((yyvsp[-5].code)); }
+#line 2265 "engines/director/lingo/lingo-gr.cpp"
break;
case 50:
#line 381 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->code3(g_lingo->c_repeatwhilecode, STOP, STOP); ;}
+ { (yyval.code) = g_lingo->code3(g_lingo->c_repeatwhilecode, STOP, STOP); }
+#line 2271 "engines/director/lingo/lingo-gr.cpp"
break;
case 51:
@@ -2511,8 +2275,9 @@ yyreduce:
{
(yyval.code) = g_lingo->code3(g_lingo->c_repeatwithcode, STOP, STOP);
g_lingo->code3(STOP, STOP, STOP);
- g_lingo->codeString((yyvsp[(3) - (3)].s)->c_str());
- delete (yyvsp[(3) - (3)].s); ;}
+ g_lingo->codeString((yyvsp[0].s)->c_str());
+ delete (yyvsp[0].s); }
+#line 2281 "engines/director/lingo/lingo-gr.cpp"
break;
case 52:
@@ -2521,7 +2286,8 @@ yyreduce:
(yyval.code) = g_lingo->code1(g_lingo->c_ifcode);
g_lingo->code3(STOP, STOP, STOP);
g_lingo->code1(0); // Do not skip end
- g_lingo->codeLabel(0); ;}
+ g_lingo->codeLabel(0); }
+#line 2291 "engines/director/lingo/lingo-gr.cpp"
break;
case 53:
@@ -2531,22 +2297,26 @@ yyreduce:
WRITE_UINT32(&skipEnd, 1); // We have to skip end to avoid multiple executions
(yyval.code) = g_lingo->code1(g_lingo->c_ifcode);
g_lingo->code3(STOP, STOP, STOP);
- g_lingo->code1(skipEnd); ;}
+ g_lingo->code1(skipEnd); }
+#line 2302 "engines/director/lingo/lingo-gr.cpp"
break;
case 54:
#line 406 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->_currentScript->size(); ;}
+ { (yyval.code) = g_lingo->_currentScript->size(); }
+#line 2308 "engines/director/lingo/lingo-gr.cpp"
break;
case 55:
#line 409 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(STOP); (yyval.code) = g_lingo->_currentScript->size(); ;}
+ { g_lingo->code1(STOP); (yyval.code) = g_lingo->_currentScript->size(); }
+#line 2314 "engines/director/lingo/lingo-gr.cpp"
break;
case 56:
#line 412 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->_currentScript->size(); ;}
+ { (yyval.code) = g_lingo->_currentScript->size(); }
+#line 2320 "engines/director/lingo/lingo-gr.cpp"
break;
case 59:
@@ -2554,87 +2324,100 @@ yyreduce:
{
(yyval.code) = g_lingo->code1(g_lingo->c_whencode);
g_lingo->code1(STOP);
- g_lingo->codeString((yyvsp[(2) - (3)].s)->c_str());
- delete (yyvsp[(2) - (3)].s); ;}
+ g_lingo->codeString((yyvsp[-1].s)->c_str());
+ delete (yyvsp[-1].s); }
+#line 2330 "engines/director/lingo/lingo-gr.cpp"
break;
case 60:
#line 423 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_tellcode);
- g_lingo->code1(STOP); ;}
+ g_lingo->code1(STOP); }
+#line 2338 "engines/director/lingo/lingo-gr.cpp"
break;
case 61:
#line 427 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_intpush);
- g_lingo->codeInt((yyvsp[(1) - (1)].i)); ;}
+ g_lingo->codeInt((yyvsp[0].i)); }
+#line 2346 "engines/director/lingo/lingo-gr.cpp"
break;
case 62:
#line 430 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_floatpush);
- g_lingo->codeFloat((yyvsp[(1) - (1)].f)); ;}
+ g_lingo->codeFloat((yyvsp[0].f)); }
+#line 2354 "engines/director/lingo/lingo-gr.cpp"
break;
case 63:
#line 433 "engines/director/lingo/lingo-gr.y"
{ // D3
(yyval.code) = g_lingo->code1(g_lingo->c_symbolpush);
- g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); ;}
+ g_lingo->codeString((yyvsp[0].s)->c_str()); }
+#line 2362 "engines/director/lingo/lingo-gr.cpp"
break;
case 64:
#line 436 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_stringpush);
- g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); ;}
+ g_lingo->codeString((yyvsp[0].s)->c_str()); }
+#line 2370 "engines/director/lingo/lingo-gr.cpp"
break;
case 65:
#line 439 "engines/director/lingo/lingo-gr.y"
{
(yyval.code) = g_lingo->code1(g_lingo->c_eval);
- g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str());
- delete (yyvsp[(1) - (1)].s); ;}
+ g_lingo->codeString((yyvsp[0].s)->c_str());
+ delete (yyvsp[0].s); }
+#line 2379 "engines/director/lingo/lingo-gr.cpp"
break;
case 66:
#line 445 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[(1) - (1)].code); ;}
+ { (yyval.code) = (yyvsp[0].code); }
+#line 2385 "engines/director/lingo/lingo-gr.cpp"
break;
case 68:
#line 447 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[(1) - (1)].s), 0);
- delete (yyvsp[(1) - (1)].s); ;}
+ g_lingo->codeFunc((yyvsp[0].s), 0);
+ delete (yyvsp[0].s); }
+#line 2393 "engines/director/lingo/lingo-gr.cpp"
break;
case 69:
#line 450 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1);
- delete (yyvsp[(1) - (2)].s); ;}
+ g_lingo->codeFunc((yyvsp[-1].s), 1);
+ delete (yyvsp[-1].s); }
+#line 2401 "engines/director/lingo/lingo-gr.cpp"
break;
case 70:
#line 453 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeFunc((yyvsp[(1) - (2)].s), (yyvsp[(2) - (2)].narg)); ;}
+ { g_lingo->codeFunc((yyvsp[-1].s), (yyvsp[0].narg)); }
+#line 2407 "engines/director/lingo/lingo-gr.cpp"
break;
case 71:
#line 454 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeFunc((yyvsp[(1) - (4)].s), (yyvsp[(3) - (4)].narg)); ;}
+ { g_lingo->codeFunc((yyvsp[-3].s), (yyvsp[-1].narg)); }
+#line 2413 "engines/director/lingo/lingo-gr.cpp"
break;
case 72:
#line 455 "engines/director/lingo/lingo-gr.y"
{
- (yyval.code) = g_lingo->codeFunc((yyvsp[(1) - (4)].s), (yyvsp[(3) - (4)].narg));
- delete (yyvsp[(1) - (4)].s); ;}
+ (yyval.code) = g_lingo->codeFunc((yyvsp[-3].s), (yyvsp[-1].narg));
+ delete (yyvsp[-3].s); }
+#line 2421 "engines/director/lingo/lingo-gr.cpp"
break;
case 73:
@@ -2644,9 +2427,10 @@ yyreduce:
g_lingo->codeInt(0); // Put dummy id
g_lingo->code1(g_lingo->c_theentitypush);
inst e = 0, f = 0;
- WRITE_UINT32(&e, (yyvsp[(1) - (1)].e)[0]);
- WRITE_UINT32(&f, (yyvsp[(1) - (1)].e)[1]);
- g_lingo->code2(e, f); ;}
+ WRITE_UINT32(&e, (yyvsp[0].e)[0]);
+ WRITE_UINT32(&f, (yyvsp[0].e)[1]);
+ g_lingo->code2(e, f); }
+#line 2434 "engines/director/lingo/lingo-gr.cpp"
break;
case 74:
@@ -2654,305 +2438,363 @@ yyreduce:
{
(yyval.code) = g_lingo->code1(g_lingo->c_theentitypush);
inst e = 0, f = 0;
- WRITE_UINT32(&e, (yyvsp[(1) - (2)].e)[0]);
- WRITE_UINT32(&f, (yyvsp[(1) - (2)].e)[1]);
- g_lingo->code2(e, f); ;}
+ WRITE_UINT32(&e, (yyvsp[-1].e)[0]);
+ WRITE_UINT32(&f, (yyvsp[-1].e)[1]);
+ g_lingo->code2(e, f); }
+#line 2445 "engines/director/lingo/lingo-gr.cpp"
break;
case 76:
#line 473 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_add); ;}
+ { g_lingo->code1(g_lingo->c_add); }
+#line 2451 "engines/director/lingo/lingo-gr.cpp"
break;
case 77:
#line 474 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_sub); ;}
+ { g_lingo->code1(g_lingo->c_sub); }
+#line 2457 "engines/director/lingo/lingo-gr.cpp"
break;
case 78:
#line 475 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_mul); ;}
+ { g_lingo->code1(g_lingo->c_mul); }
+#line 2463 "engines/director/lingo/lingo-gr.cpp"
break;
case 79:
#line 476 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_div); ;}
+ { g_lingo->code1(g_lingo->c_div); }
+#line 2469 "engines/director/lingo/lingo-gr.cpp"
break;
case 80:
#line 477 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_mod); ;}
+ { g_lingo->code1(g_lingo->c_mod); }
+#line 2475 "engines/director/lingo/lingo-gr.cpp"
break;
case 81:
#line 478 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gt); ;}
+ { g_lingo->code1(g_lingo->c_gt); }
+#line 2481 "engines/director/lingo/lingo-gr.cpp"
break;
case 82:
#line 479 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_lt); ;}
+ { g_lingo->code1(g_lingo->c_lt); }
+#line 2487 "engines/director/lingo/lingo-gr.cpp"
break;
case 83:
#line 480 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_eq); ;}
+ { g_lingo->code1(g_lingo->c_eq); }
+#line 2493 "engines/director/lingo/lingo-gr.cpp"
break;
case 84:
#line 481 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_neq); ;}
+ { g_lingo->code1(g_lingo->c_neq); }
+#line 2499 "engines/director/lingo/lingo-gr.cpp"
break;
case 85:
#line 482 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_ge); ;}
+ { g_lingo->code1(g_lingo->c_ge); }
+#line 2505 "engines/director/lingo/lingo-gr.cpp"
break;
case 86:
#line 483 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_le); ;}
+ { g_lingo->code1(g_lingo->c_le); }
+#line 2511 "engines/director/lingo/lingo-gr.cpp"
break;
case 87:
#line 484 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_and); ;}
+ { g_lingo->code1(g_lingo->c_and); }
+#line 2517 "engines/director/lingo/lingo-gr.cpp"
break;
case 88:
#line 485 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_or); ;}
+ { g_lingo->code1(g_lingo->c_or); }
+#line 2523 "engines/director/lingo/lingo-gr.cpp"
break;
case 89:
#line 486 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_not); ;}
+ { g_lingo->code1(g_lingo->c_not); }
+#line 2529 "engines/director/lingo/lingo-gr.cpp"
break;
case 90:
#line 487 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_ampersand); ;}
+ { g_lingo->code1(g_lingo->c_ampersand); }
+#line 2535 "engines/director/lingo/lingo-gr.cpp"
break;
case 91:
#line 488 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_concat); ;}
+ { g_lingo->code1(g_lingo->c_concat); }
+#line 2541 "engines/director/lingo/lingo-gr.cpp"
break;
case 92:
#line 489 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_contains); ;}
+ { g_lingo->code1(g_lingo->c_contains); }
+#line 2547 "engines/director/lingo/lingo-gr.cpp"
break;
case 93:
#line 490 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_starts); ;}
+ { g_lingo->code1(g_lingo->c_starts); }
+#line 2553 "engines/director/lingo/lingo-gr.cpp"
break;
case 94:
#line 491 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[(2) - (2)].code); ;}
+ { (yyval.code) = (yyvsp[0].code); }
+#line 2559 "engines/director/lingo/lingo-gr.cpp"
break;
case 95:
#line 492 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[(2) - (2)].code); g_lingo->code1(g_lingo->c_negate); ;}
+ { (yyval.code) = (yyvsp[0].code); g_lingo->code1(g_lingo->c_negate); }
+#line 2565 "engines/director/lingo/lingo-gr.cpp"
break;
case 96:
#line 493 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = (yyvsp[(2) - (3)].code); ;}
+ { (yyval.code) = (yyvsp[-1].code); }
+#line 2571 "engines/director/lingo/lingo-gr.cpp"
break;
case 97:
#line 494 "engines/director/lingo/lingo-gr.y"
- { (yyval.code) = g_lingo->code1(g_lingo->c_arraypush); g_lingo->codeArray((yyvsp[(2) - (3)].narg)); ;}
+ { (yyval.code) = g_lingo->code1(g_lingo->c_arraypush); g_lingo->codeArray((yyvsp[-1].narg)); }
+#line 2577 "engines/director/lingo/lingo-gr.cpp"
break;
case 98:
#line 495 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_intersects); ;}
+ { g_lingo->code1(g_lingo->c_intersects); }
+#line 2583 "engines/director/lingo/lingo-gr.cpp"
break;
case 99:
#line 496 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_within); ;}
+ { g_lingo->code1(g_lingo->c_within); }
+#line 2589 "engines/director/lingo/lingo-gr.cpp"
break;
case 100:
#line 497 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_charOf); ;}
+ { g_lingo->code1(g_lingo->c_charOf); }
+#line 2595 "engines/director/lingo/lingo-gr.cpp"
break;
case 101:
#line 498 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_charToOf); ;}
+ { g_lingo->code1(g_lingo->c_charToOf); }
+#line 2601 "engines/director/lingo/lingo-gr.cpp"
break;
case 102:
#line 499 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_itemOf); ;}
+ { g_lingo->code1(g_lingo->c_itemOf); }
+#line 2607 "engines/director/lingo/lingo-gr.cpp"
break;
case 103:
#line 500 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_itemToOf); ;}
+ { g_lingo->code1(g_lingo->c_itemToOf); }
+#line 2613 "engines/director/lingo/lingo-gr.cpp"
break;
case 104:
#line 501 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_lineOf); ;}
+ { g_lingo->code1(g_lingo->c_lineOf); }
+#line 2619 "engines/director/lingo/lingo-gr.cpp"
break;
case 105:
#line 502 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_lineToOf); ;}
+ { g_lingo->code1(g_lingo->c_lineToOf); }
+#line 2625 "engines/director/lingo/lingo-gr.cpp"
break;
case 106:
#line 503 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_wordOf); ;}
+ { g_lingo->code1(g_lingo->c_wordOf); }
+#line 2631 "engines/director/lingo/lingo-gr.cpp"
break;
case 107:
#line 504 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_wordToOf); ;}
+ { g_lingo->code1(g_lingo->c_wordToOf); }
+#line 2637 "engines/director/lingo/lingo-gr.cpp"
break;
case 108:
#line 505 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeMe(nullptr, 0); ;}
+ { g_lingo->codeMe(nullptr, 0); }
+#line 2643 "engines/director/lingo/lingo-gr.cpp"
break;
case 109:
#line 508 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1);
- delete (yyvsp[(1) - (2)].s); ;}
+ g_lingo->codeFunc((yyvsp[-1].s), 1);
+ delete (yyvsp[-1].s); }
+#line 2651 "engines/director/lingo/lingo-gr.cpp"
break;
case 110:
#line 513 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_printtop); ;}
+ { g_lingo->code1(g_lingo->c_printtop); }
+#line 2657 "engines/director/lingo/lingo-gr.cpp"
break;
case 113:
#line 516 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_exitRepeat); ;}
+ { g_lingo->code1(g_lingo->c_exitRepeat); }
+#line 2663 "engines/director/lingo/lingo-gr.cpp"
break;
case 114:
#line 517 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_procret); ;}
+ { g_lingo->code1(g_lingo->c_procret); }
+#line 2669 "engines/director/lingo/lingo-gr.cpp"
break;
case 118:
#line 521 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[(1) - (1)].s), 0);
- delete (yyvsp[(1) - (1)].s); ;}
+ g_lingo->codeFunc((yyvsp[0].s), 0);
+ delete (yyvsp[0].s); }
+#line 2677 "engines/director/lingo/lingo-gr.cpp"
break;
case 119:
#line 524 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1);
- delete (yyvsp[(1) - (2)].s); ;}
+ g_lingo->codeFunc((yyvsp[-1].s), 1);
+ delete (yyvsp[-1].s); }
+#line 2685 "engines/director/lingo/lingo-gr.cpp"
break;
case 120:
#line 527 "engines/director/lingo/lingo-gr.y"
{
- g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1);
- delete (yyvsp[(1) - (2)].s); ;}
+ g_lingo->codeFunc((yyvsp[-1].s), 1);
+ delete (yyvsp[-1].s); }
+#line 2693 "engines/director/lingo/lingo-gr.cpp"
break;
case 121:
#line 530 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_voidpush);
- g_lingo->codeFunc((yyvsp[(1) - (1)].s), 1);
- delete (yyvsp[(1) - (1)].s); ;}
+ g_lingo->codeFunc((yyvsp[0].s), 1);
+ delete (yyvsp[0].s); }
+#line 2702 "engines/director/lingo/lingo-gr.cpp"
break;
case 122:
#line 534 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeFunc((yyvsp[(1) - (2)].s), (yyvsp[(2) - (2)].narg)); ;}
+ { g_lingo->codeFunc((yyvsp[-1].s), (yyvsp[0].narg)); }
+#line 2708 "engines/director/lingo/lingo-gr.cpp"
break;
case 123:
#line 535 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeFunc((yyvsp[(1) - (4)].s), (yyvsp[(3) - (4)].narg)); ;}
+ { g_lingo->codeFunc((yyvsp[-3].s), (yyvsp[-1].narg)); }
+#line 2714 "engines/director/lingo/lingo-gr.cpp"
break;
case 124:
#line 536 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeMe((yyvsp[(3) - (4)].s), 0); ;}
+ { g_lingo->codeMe((yyvsp[-1].s), 0); }
+#line 2720 "engines/director/lingo/lingo-gr.cpp"
break;
case 125:
#line 537 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeMe((yyvsp[(3) - (6)].s), (yyvsp[(5) - (6)].narg)); ;}
+ { g_lingo->codeMe((yyvsp[-3].s), (yyvsp[-1].narg)); }
+#line 2726 "engines/director/lingo/lingo-gr.cpp"
break;
case 126:
#line 538 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_open); ;}
+ { g_lingo->code1(g_lingo->c_open); }
+#line 2732 "engines/director/lingo/lingo-gr.cpp"
break;
case 127:
#line 539 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code2(g_lingo->c_voidpush, g_lingo->c_open); ;}
+ { g_lingo->code2(g_lingo->c_voidpush, g_lingo->c_open); }
+#line 2738 "engines/director/lingo/lingo-gr.cpp"
break;
case 128:
#line 540 "engines/director/lingo/lingo-gr.y"
- { Common::String s(*(yyvsp[(1) - (3)].s)); s += '-'; s += *(yyvsp[(2) - (3)].s); g_lingo->codeFunc(&s, (yyvsp[(3) - (3)].narg)); ;}
+ { Common::String s(*(yyvsp[-2].s)); s += '-'; s += *(yyvsp[-1].s); g_lingo->codeFunc(&s, (yyvsp[0].narg)); }
+#line 2744 "engines/director/lingo/lingo-gr.cpp"
break;
case 129:
#line 543 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_global); g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); delete (yyvsp[(1) - (1)].s); ;}
+ { g_lingo->code1(g_lingo->c_global); g_lingo->codeString((yyvsp[0].s)->c_str()); delete (yyvsp[0].s); }
+#line 2750 "engines/director/lingo/lingo-gr.cpp"
break;
case 130:
#line 544 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_global); g_lingo->codeString((yyvsp[(3) - (3)].s)->c_str()); delete (yyvsp[(3) - (3)].s); ;}
+ { g_lingo->code1(g_lingo->c_global); g_lingo->codeString((yyvsp[0].s)->c_str()); delete (yyvsp[0].s); }
+#line 2756 "engines/director/lingo/lingo-gr.cpp"
break;
case 131:
#line 547 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_property); g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); delete (yyvsp[(1) - (1)].s); ;}
+ { g_lingo->code1(g_lingo->c_property); g_lingo->codeString((yyvsp[0].s)->c_str()); delete (yyvsp[0].s); }
+#line 2762 "engines/director/lingo/lingo-gr.cpp"
break;
case 132:
#line 548 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_property); g_lingo->codeString((yyvsp[(3) - (3)].s)->c_str()); delete (yyvsp[(3) - (3)].s); ;}
+ { g_lingo->code1(g_lingo->c_property); g_lingo->codeString((yyvsp[0].s)->c_str()); delete (yyvsp[0].s); }
+#line 2768 "engines/director/lingo/lingo-gr.cpp"
break;
case 133:
#line 551 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_instance); g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); delete (yyvsp[(1) - (1)].s); ;}
+ { g_lingo->code1(g_lingo->c_instance); g_lingo->codeString((yyvsp[0].s)->c_str()); delete (yyvsp[0].s); }
+#line 2774 "engines/director/lingo/lingo-gr.cpp"
break;
case 134:
#line 552 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_instance); g_lingo->codeString((yyvsp[(3) - (3)].s)->c_str()); delete (yyvsp[(3) - (3)].s); ;}
+ { g_lingo->code1(g_lingo->c_instance); g_lingo->codeString((yyvsp[0].s)->c_str()); delete (yyvsp[0].s); }
+#line 2780 "engines/director/lingo/lingo-gr.cpp"
break;
case 135:
#line 563 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gotoloop); ;}
+ { g_lingo->code1(g_lingo->c_gotoloop); }
+#line 2786 "engines/director/lingo/lingo-gr.cpp"
break;
case 136:
#line 564 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gotonext); ;}
+ { g_lingo->code1(g_lingo->c_gotonext); }
+#line 2792 "engines/director/lingo/lingo-gr.cpp"
break;
case 137:
#line 565 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gotoprevious); ;}
+ { g_lingo->code1(g_lingo->c_gotoprevious); }
+#line 2798 "engines/director/lingo/lingo-gr.cpp"
break;
case 138:
@@ -2960,7 +2802,8 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(1);
- g_lingo->code1(g_lingo->c_goto); ;}
+ g_lingo->code1(g_lingo->c_goto); }
+#line 2807 "engines/director/lingo/lingo-gr.cpp"
break;
case 139:
@@ -2968,7 +2811,8 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(3);
- g_lingo->code1(g_lingo->c_goto); ;}
+ g_lingo->code1(g_lingo->c_goto); }
+#line 2816 "engines/director/lingo/lingo-gr.cpp"
break;
case 140:
@@ -2976,12 +2820,14 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(2);
- g_lingo->code1(g_lingo->c_goto); ;}
+ g_lingo->code1(g_lingo->c_goto); }
+#line 2825 "engines/director/lingo/lingo-gr.cpp"
break;
case 145:
#line 588 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_playdone); ;}
+ { g_lingo->code1(g_lingo->c_playdone); }
+#line 2831 "engines/director/lingo/lingo-gr.cpp"
break;
case 146:
@@ -2989,7 +2835,8 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(1);
- g_lingo->code1(g_lingo->c_play); ;}
+ g_lingo->code1(g_lingo->c_play); }
+#line 2840 "engines/director/lingo/lingo-gr.cpp"
break;
case 147:
@@ -2997,7 +2844,8 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(3);
- g_lingo->code1(g_lingo->c_play); ;}
+ g_lingo->code1(g_lingo->c_play); }
+#line 2849 "engines/director/lingo/lingo-gr.cpp"
break;
case 148:
@@ -3005,142 +2853,175 @@ yyreduce:
{
g_lingo->code1(g_lingo->c_intpush);
g_lingo->codeInt(2);
- g_lingo->code1(g_lingo->c_play); ;}
+ g_lingo->code1(g_lingo->c_play); }
+#line 2858 "engines/director/lingo/lingo-gr.cpp"
break;
case 149:
#line 601 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeSetImmediate(true); ;}
+ { g_lingo->codeSetImmediate(true); }
+#line 2864 "engines/director/lingo/lingo-gr.cpp"
break;
case 150:
#line 601 "engines/director/lingo/lingo-gr.y"
{
g_lingo->codeSetImmediate(false);
- g_lingo->codeFunc((yyvsp[(1) - (3)].s), (yyvsp[(3) - (3)].narg)); ;}
+ g_lingo->codeFunc((yyvsp[-2].s), (yyvsp[0].narg)); }
+#line 2872 "engines/director/lingo/lingo-gr.cpp"
break;
case 151:
#line 631 "engines/director/lingo/lingo-gr.y"
- { g_lingo->_indef = true; g_lingo->_currentFactory.clear(); ;}
+ { g_lingo->_indef = true; g_lingo->_currentFactory.clear(); }
+#line 2878 "engines/director/lingo/lingo-gr.cpp"
break;
case 152:
#line 632 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_procret);
- g_lingo->define(*(yyvsp[(2) - (8)].s), (yyvsp[(4) - (8)].code), (yyvsp[(5) - (8)].narg));
- g_lingo->_indef = false; ;}
+ g_lingo->define(*(yyvsp[-6].s), (yyvsp[-4].code), (yyvsp[-3].narg));
+ g_lingo->_indef = false; }
+#line 2887 "engines/director/lingo/lingo-gr.cpp"
break;
case 153:
#line 636 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeFactory(*(yyvsp[(2) - (2)].s)); ;}
+ { g_lingo->codeFactory(*(yyvsp[0].s)); }
+#line 2893 "engines/director/lingo/lingo-gr.cpp"
break;
case 154:
#line 637 "engines/director/lingo/lingo-gr.y"
- { g_lingo->_indef = true; ;}
+ { g_lingo->_indef = true; }
+#line 2899 "engines/director/lingo/lingo-gr.cpp"
break;
case 155:
#line 638 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_procret);
- g_lingo->define(*(yyvsp[(2) - (8)].s), (yyvsp[(4) - (8)].code), (yyvsp[(5) - (8)].narg) + 1, &g_lingo->_currentFactory);
- g_lingo->_indef = false; ;}
+ g_lingo->define(*(yyvsp[-6].s), (yyvsp[-4].code), (yyvsp[-3].narg) + 1, &g_lingo->_currentFactory);
+ g_lingo->_indef = false; }
+#line 2908 "engines/director/lingo/lingo-gr.cpp"
break;
case 156:
#line 642 "engines/director/lingo/lingo-gr.y"
{ // D3
g_lingo->code1(g_lingo->c_procret);
- g_lingo->define(*(yyvsp[(1) - (8)].s), (yyvsp[(2) - (8)].code), (yyvsp[(3) - (8)].narg));
+ g_lingo->define(*(yyvsp[-7].s), (yyvsp[-6].code), (yyvsp[-5].narg));
g_lingo->_indef = false;
g_lingo->_ignoreMe = false;
- checkEnd((yyvsp[(7) - (8)].s), (yyvsp[(1) - (8)].s)->c_str(), false); ;}
+ checkEnd((yyvsp[-1].s), (yyvsp[-7].s)->c_str(), false); }
+#line 2920 "engines/director/lingo/lingo-gr.cpp"
break;
case 157:
#line 649 "engines/director/lingo/lingo-gr.y"
{ // D4. No 'end' clause
g_lingo->code1(g_lingo->c_procret);
- g_lingo->define(*(yyvsp[(1) - (6)].s), (yyvsp[(2) - (6)].code), (yyvsp[(3) - (6)].narg));
+ g_lingo->define(*(yyvsp[-5].s), (yyvsp[-4].code), (yyvsp[-3].narg));
g_lingo->_indef = false;
- g_lingo->_ignoreMe = false; ;}
+ g_lingo->_ignoreMe = false; }
+#line 2930 "engines/director/lingo/lingo-gr.cpp"
break;
case 158:
#line 655 "engines/director/lingo/lingo-gr.y"
- { (yyval.s) = (yyvsp[(2) - (2)].s); g_lingo->_indef = true; g_lingo->_currentFactory.clear(); g_lingo->_ignoreMe = true; ;}
+ { (yyval.s) = (yyvsp[0].s); g_lingo->_indef = true; g_lingo->_currentFactory.clear(); g_lingo->_ignoreMe = true; }
+#line 2936 "engines/director/lingo/lingo-gr.cpp"
break;
case 159:
#line 657 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = 0; ;}
+ { (yyval.narg) = 0; }
+#line 2942 "engines/director/lingo/lingo-gr.cpp"
break;
case 160:
#line 658 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeArg((yyvsp[(1) - (1)].s)); (yyval.narg) = 1; ;}
+ { g_lingo->codeArg((yyvsp[0].s)); (yyval.narg) = 1; }
+#line 2948 "engines/director/lingo/lingo-gr.cpp"
break;
case 161:
#line 659 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeArg((yyvsp[(3) - (3)].s)); (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;}
+ { g_lingo->codeArg((yyvsp[0].s)); (yyval.narg) = (yyvsp[-2].narg) + 1; }
+#line 2954 "engines/director/lingo/lingo-gr.cpp"
break;
case 162:
#line 660 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeArg((yyvsp[(4) - (4)].s)); (yyval.narg) = (yyvsp[(1) - (4)].narg) + 1; ;}
+ { g_lingo->codeArg((yyvsp[0].s)); (yyval.narg) = (yyvsp[-3].narg) + 1; }
+#line 2960 "engines/director/lingo/lingo-gr.cpp"
break;
case 166:
#line 668 "engines/director/lingo/lingo-gr.y"
- { g_lingo->codeArgStore(); ;}
+ { g_lingo->codeArgStore(); }
+#line 2966 "engines/director/lingo/lingo-gr.cpp"
break;
case 167:
#line 672 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_call);
- g_lingo->codeString((yyvsp[(1) - (2)].s)->c_str());
+ g_lingo->codeString((yyvsp[-1].s)->c_str());
inst numpar = 0;
- WRITE_UINT32(&numpar, (yyvsp[(2) - (2)].narg));
- g_lingo->code1(numpar); ;}
+ WRITE_UINT32(&numpar, (yyvsp[0].narg));
+ g_lingo->code1(numpar); }
+#line 2977 "engines/director/lingo/lingo-gr.cpp"
break;
case 168:
#line 680 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = 0; ;}
+ { (yyval.narg) = 0; }
+#line 2983 "engines/director/lingo/lingo-gr.cpp"
break;
case 169:
#line 681 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = 1; ;}
+ { (yyval.narg) = 1; }
+#line 2989 "engines/director/lingo/lingo-gr.cpp"
break;
case 170:
#line 682 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;}
+ { (yyval.narg) = (yyvsp[-2].narg) + 1; }
+#line 2995 "engines/director/lingo/lingo-gr.cpp"
break;
case 171:
#line 685 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = 1; ;}
+ { (yyval.narg) = 1; }
+#line 3001 "engines/director/lingo/lingo-gr.cpp"
break;
case 172:
#line 686 "engines/director/lingo/lingo-gr.y"
- { (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;}
+ { (yyval.narg) = (yyvsp[-2].narg) + 1; }
+#line 3007 "engines/director/lingo/lingo-gr.cpp"
break;
-/* Line 1267 of yacc.c. */
-#line 3142 "engines/director/lingo/lingo-gr.cpp"
+#line 3011 "engines/director/lingo/lingo-gr.cpp"
+
default: break;
}
+ /* User semantic actions sometimes alter yychar, and that requires
+ that yytoken be updated with the new translation. We take the
+ approach of translating immediately before every use of yytoken.
+ One alternative is translating here after every semantic action,
+ but that translation would be missed if the semantic action invokes
+ YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
+ if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
+ incorrect destructor might then be invoked immediately. In the
+ case of YYERROR or YYBACKUP, subsequent parser actions might lead
+ to an incorrect destructor call or verbose syntax error message
+ before the lookahead is translated. */
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
YYPOPSTACK (yylen);
@@ -3149,26 +3030,28 @@ yyreduce:
*++yyvsp = yyval;
-
- /* Now `shift' the result of the reduction. Determine what state
+ /* Now 'shift' the result of the reduction. Determine what state
that goes to, based on the state we popped back to and the rule
number reduced by. */
-
- yyn = yyr1[yyn];
-
- yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
- if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
- yystate = yytable[yystate];
- else
- yystate = yydefgoto[yyn - YYNTOKENS];
+ {
+ const int yylhs = yyr1[yyn] - YYNTOKENS;
+ const int yyi = yypgoto[yylhs] + *yyssp;
+ yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
+ ? yytable[yyi]
+ : yydefgoto[yylhs]);
+ }
goto yynewstate;
-/*------------------------------------.
-| yyerrlab -- here on detecting error |
-`------------------------------------*/
+/*--------------------------------------.
+| yyerrlab -- here on detecting error. |
+`--------------------------------------*/
yyerrlab:
+ /* Make sure we have latest lookahead translation. See comments at
+ user semantic actions for why this is necessary. */
+ yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
+
/* If not already recovering from an error, report this error. */
if (!yyerrstatus)
{
@@ -3176,37 +3059,36 @@ yyerrlab:
#if ! YYERROR_VERBOSE
yyerror (YY_("syntax error"));
#else
+# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
+ yyssp, yytoken)
{
- YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
- if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
- {
- YYSIZE_T yyalloc = 2 * yysize;
- if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
- yyalloc = YYSTACK_ALLOC_MAXIMUM;
- if (yymsg != yymsgbuf)
- YYSTACK_FREE (yymsg);
- yymsg = (char *) YYSTACK_ALLOC (yyalloc);
- if (yymsg)
- yymsg_alloc = yyalloc;
- else
- {
- yymsg = yymsgbuf;
- yymsg_alloc = sizeof yymsgbuf;
- }
- }
-
- if (0 < yysize && yysize <= yymsg_alloc)
- {
- (void) yysyntax_error (yymsg, yystate, yychar);
- yyerror (yymsg);
- }
- else
- {
- yyerror (YY_("syntax error"));
- if (yysize != 0)
- goto yyexhaustedlab;
- }
+ char const *yymsgp = YY_("syntax error");
+ int yysyntax_error_status;
+ yysyntax_error_status = YYSYNTAX_ERROR;
+ if (yysyntax_error_status == 0)
+ yymsgp = yymsg;
+ else if (yysyntax_error_status == 1)
+ {
+ if (yymsg != yymsgbuf)
+ YYSTACK_FREE (yymsg);
+ yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
+ if (!yymsg)
+ {
+ yymsg = yymsgbuf;
+ yymsg_alloc = sizeof yymsgbuf;
+ yysyntax_error_status = 2;
+ }
+ else
+ {
+ yysyntax_error_status = YYSYNTAX_ERROR;
+ yymsgp = yymsg;
+ }
+ }
+ yyerror (yymsgp);
+ if (yysyntax_error_status == 2)
+ goto yyexhaustedlab;
}
+# undef YYSYNTAX_ERROR
#endif
}
@@ -3214,24 +3096,24 @@ yyerrlab:
if (yyerrstatus == 3)
{
- /* If just tried and failed to reuse look-ahead token after an
- error, discard it. */
+ /* If just tried and failed to reuse lookahead token after an
+ error, discard it. */
if (yychar <= YYEOF)
- {
- /* Return failure if at end of input. */
- if (yychar == YYEOF)
- YYABORT;
- }
+ {
+ /* Return failure if at end of input. */
+ if (yychar == YYEOF)
+ YYABORT;
+ }
else
- {
- yydestruct ("Error: discarding",
- yytoken, &yylval);
- yychar = YYEMPTY;
- }
+ {
+ yydestruct ("Error: discarding",
+ yytoken, &yylval);
+ yychar = YYEMPTY;
+ }
}
- /* Else will try to reuse look-ahead token after shifting the error
+ /* Else will try to reuse lookahead token after shifting the error
token. */
goto yyerrlab1;
@@ -3240,14 +3122,12 @@ yyerrlab:
| yyerrorlab -- error raised explicitly by YYERROR. |
`---------------------------------------------------*/
yyerrorlab:
+ /* Pacify compilers when the user code never invokes YYERROR and the
+ label yyerrorlab therefore never appears in user code. */
+ if (0)
+ YYERROR;
- /* Pacify compilers like GCC when the user code never invokes
- YYERROR and the label yyerrorlab therefore never appears in user
- code. */
- if (/*CONSTCOND*/ 0)
- goto yyerrorlab;
-
- /* Do not reclaim the symbols of the rule which action triggered
+ /* Do not reclaim the symbols of the rule whose action triggered
this YYERROR. */
YYPOPSTACK (yylen);
yylen = 0;
@@ -3260,38 +3140,37 @@ yyerrorlab:
| yyerrlab1 -- common code for both syntax error and YYERROR. |
`-------------------------------------------------------------*/
yyerrlab1:
- yyerrstatus = 3; /* Each real token shifted decrements this. */
+ yyerrstatus = 3; /* Each real token shifted decrements this. */
for (;;)
{
yyn = yypact[yystate];
- if (yyn != YYPACT_NINF)
- {
- yyn += YYTERROR;
- if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
- {
- yyn = yytable[yyn];
- if (0 < yyn)
- break;
- }
- }
+ if (!yypact_value_is_default (yyn))
+ {
+ yyn += YYTERROR;
+ if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
+ {
+ yyn = yytable[yyn];
+ if (0 < yyn)
+ break;
+ }
+ }
/* Pop the current state because it cannot handle the error token. */
if (yyssp == yyss)
- YYABORT;
+ YYABORT;
yydestruct ("Error: popping",
- yystos[yystate], yyvsp);
+ yystos[yystate], yyvsp);
YYPOPSTACK (1);
yystate = *yyssp;
YY_STACK_PRINT (yyss, yyssp);
}
- if (yyn == YYFINAL)
- YYACCEPT;
-
+ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval;
+ YY_IGNORE_MAYBE_UNINITIALIZED_END
/* Shift the error token. */
@@ -3308,6 +3187,7 @@ yyacceptlab:
yyresult = 0;
goto yyreturn;
+
/*-----------------------------------.
| yyabortlab -- YYABORT comes here. |
`-----------------------------------*/
@@ -3315,7 +3195,8 @@ yyabortlab:
yyresult = 1;
goto yyreturn;
-#ifndef yyoverflow
+
+#if !defined yyoverflow || YYERROR_VERBOSE
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here. |
`-------------------------------------------------*/
@@ -3325,18 +3206,27 @@ yyexhaustedlab:
/* Fall through. */
#endif
+
+/*-----------------------------------------------------.
+| yyreturn -- parsing is finished, return the result. |
+`-----------------------------------------------------*/
yyreturn:
- if (yychar != YYEOF && yychar != YYEMPTY)
- yydestruct ("Cleanup: discarding lookahead",
- yytoken, &yylval);
- /* Do not reclaim the symbols of the rule which action triggered
+ if (yychar != YYEMPTY)
+ {
+ /* Make sure we have latest lookahead translation. See comments at
+ user semantic actions for why this is necessary. */
+ yytoken = YYTRANSLATE (yychar);
+ yydestruct ("Cleanup: discarding lookahead",
+ yytoken, &yylval);
+ }
+ /* Do not reclaim the symbols of the rule whose action triggered
this YYABORT or YYACCEPT. */
YYPOPSTACK (yylen);
YY_STACK_PRINT (yyss, yyssp);
while (yyssp != yyss)
{
yydestruct ("Cleanup: popping",
- yystos[*yyssp], yyvsp);
+ yystos[*yyssp], yyvsp);
YYPOPSTACK (1);
}
#ifndef yyoverflow
@@ -3347,11 +3237,7 @@ yyreturn:
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
#endif
- /* Make sure YYID is used. */
- return YYID (yyresult);
+ return yyresult;
}
-
-
#line 689 "engines/director/lingo/lingo-gr.y"
-
diff --git a/engines/director/lingo/lingo-gr.h b/engines/director/lingo/lingo-gr.h
index 2d1093f1e5..d440580515 100644
--- a/engines/director/lingo/lingo-gr.h
+++ b/engines/director/lingo/lingo-gr.h
@@ -1,14 +1,14 @@
-/* A Bison parser, made by GNU Bison 2.3. */
+/* A Bison parser, made by GNU Bison 3.4. */
-/* Skeleton interface for Bison's Yacc-like parsers in C
+/* Bison interface for Yacc-like parsers in C
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
- Free Software Foundation, Inc.
+ Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
+ Inc.
- This program is free software; you can redistribute it and/or modify
+ This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -16,9 +16,7 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
- Boston, MA 02110-1301, USA. */
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
@@ -33,199 +31,123 @@
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
-/* Tokens. */
+/* Undocumented macros, especially those whose name start with YY_,
+ are private implementation details. Do not rely on them. */
+
+#ifndef YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_HPP_INCLUDED
+# define YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_HPP_INCLUDED
+/* Debug traces. */
+#ifndef YYDEBUG
+# define YYDEBUG 1
+#endif
+#if YYDEBUG
+extern int yydebug;
+#endif
+
+/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
- /* Put the tokens into the symbol table, so that GDB and other debuggers
- know about them. */
- enum yytokentype {
- UNARY = 258,
- CASTREF = 259,
- VOID = 260,
- VAR = 261,
- POINT = 262,
- RECT = 263,
- ARRAY = 264,
- OBJECT = 265,
- REFERENCE = 266,
- INT = 267,
- THEENTITY = 268,
- THEENTITYWITHID = 269,
- FLOAT = 270,
- BLTIN = 271,
- BLTINNOARGS = 272,
- BLTINNOARGSORONE = 273,
- BLTINONEARG = 274,
- BLTINARGLIST = 275,
- TWOWORDBUILTIN = 276,
- FBLTIN = 277,
- FBLTINNOARGS = 278,
- FBLTINONEARG = 279,
- FBLTINARGLIST = 280,
- RBLTIN = 281,
- RBLTINONEARG = 282,
- ID = 283,
- STRING = 284,
- HANDLER = 285,
- SYMBOL = 286,
- ENDCLAUSE = 287,
- tPLAYACCEL = 288,
- tDOWN = 289,
- tELSE = 290,
- tNLELSIF = 291,
- tEXIT = 292,
- tFRAME = 293,
- tGLOBAL = 294,
- tGO = 295,
- tIF = 296,
- tINTO = 297,
- tLOOP = 298,
- tMACRO = 299,
- tMOVIE = 300,
- tNEXT = 301,
- tOF = 302,
- tPREVIOUS = 303,
- tPUT = 304,
- tREPEAT = 305,
- tSET = 306,
- tTHEN = 307,
- tTHENNL = 308,
- tTO = 309,
- tWHEN = 310,
- tWITH = 311,
- tWHILE = 312,
- tNLELSE = 313,
- tFACTORY = 314,
- tMETHOD = 315,
- tOPEN = 316,
- tPLAY = 317,
- tDONE = 318,
- tINSTANCE = 319,
- tGE = 320,
- tLE = 321,
- tGT = 322,
- tLT = 323,
- tEQ = 324,
- tNEQ = 325,
- tAND = 326,
- tOR = 327,
- tNOT = 328,
- tMOD = 329,
- tAFTER = 330,
- tBEFORE = 331,
- tCONCAT = 332,
- tCONTAINS = 333,
- tSTARTS = 334,
- tCHAR = 335,
- tITEM = 336,
- tLINE = 337,
- tWORD = 338,
- tSPRITE = 339,
- tINTERSECTS = 340,
- tWITHIN = 341,
- tTELL = 342,
- tPROPERTY = 343,
- tON = 344,
- tME = 345
- };
+ 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 THEENTITY 268
-#define THEENTITYWITHID 269
-#define FLOAT 270
-#define BLTIN 271
-#define BLTINNOARGS 272
-#define BLTINNOARGSORONE 273
-#define BLTINONEARG 274
-#define BLTINARGLIST 275
-#define TWOWORDBUILTIN 276
-#define FBLTIN 277
-#define FBLTINNOARGS 278
-#define FBLTINONEARG 279
-#define FBLTINARGLIST 280
-#define RBLTIN 281
-#define RBLTINONEARG 282
-#define ID 283
-#define STRING 284
-#define HANDLER 285
-#define SYMBOL 286
-#define ENDCLAUSE 287
-#define tPLAYACCEL 288
-#define tDOWN 289
-#define tELSE 290
-#define tNLELSIF 291
-#define tEXIT 292
-#define tFRAME 293
-#define tGLOBAL 294
-#define tGO 295
-#define tIF 296
-#define tINTO 297
-#define tLOOP 298
-#define tMACRO 299
-#define tMOVIE 300
-#define tNEXT 301
-#define tOF 302
-#define tPREVIOUS 303
-#define tPUT 304
-#define tREPEAT 305
-#define tSET 306
-#define tTHEN 307
-#define tTHENNL 308
-#define tTO 309
-#define tWHEN 310
-#define tWITH 311
-#define tWHILE 312
-#define tNLELSE 313
-#define tFACTORY 314
-#define tMETHOD 315
-#define tOPEN 316
-#define tPLAY 317
-#define tDONE 318
-#define tINSTANCE 319
-#define tGE 320
-#define tLE 321
-#define tGT 322
-#define tLT 323
-#define tEQ 324
-#define tNEQ 325
-#define tAND 326
-#define tOR 327
-#define tNOT 328
-#define tMOD 329
-#define tAFTER 330
-#define tBEFORE 331
-#define tCONCAT 332
-#define tCONTAINS 333
-#define tSTARTS 334
-#define tCHAR 335
-#define tITEM 336
-#define tLINE 337
-#define tWORD 338
-#define tSPRITE 339
-#define tINTERSECTS 340
-#define tWITHIN 341
-#define tTELL 342
-#define tPROPERTY 343
-#define tON 344
-#define tME 345
-
-
-
+/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
-typedef union YYSTYPE
-#line 79 "engines/director/lingo/lingo-gr.y"
+union YYSTYPE
{
+#line 79 "engines/director/lingo/lingo-gr.y"
+
Common::String *s;
int i;
double f;
@@ -233,14 +155,18 @@ typedef union YYSTYPE
int code;
int narg; /* number of arguments */
Common::Array<double> *arr;
-}
-/* Line 1529 of yacc.c. */
-#line 239 "engines/director/lingo/lingo-gr.hpp"
- YYSTYPE;
-# define yystype YYSTYPE /* obsolescent; will be withdrawn */
-# define YYSTYPE_IS_DECLARED 1
+
+#line 160 "engines/director/lingo/lingo-gr.hpp"
+
+};
+typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
+# define YYSTYPE_IS_DECLARED 1
#endif
+
extern YYSTYPE yylval;
+int yyparse (void);
+
+#endif /* !YY_YY_ENGINES_DIRECTOR_LINGO_LINGO_GR_HPP_INCLUDED */
diff --git a/engines/director/lingo/lingo-gr.y b/engines/director/lingo/lingo-gr.y
index 52ff7e57db..2be154211e 100644
--- a/engines/director/lingo/lingo-gr.y
+++ b/engines/director/lingo/lingo-gr.y
@@ -88,7 +88,7 @@ void checkEnd(Common::String *token, const char *expect, bool required) {
%token UNARY
%token CASTREF VOID VAR POINT RECT ARRAY OBJECT REFERENCE
-%token<i> INT
+%token<i> INT ARGC ARGCNORET
%token<e> THEENTITY THEENTITYWITHID
%token<f> FLOAT
%token<s> BLTIN BLTINNOARGS BLTINNOARGSORONE BLTINONEARG BLTINARGLIST TWOWORDBUILTIN
diff --git a/engines/director/lingo/lingo-lex.cpp b/engines/director/lingo/lingo-lex.cpp
index f17b25ec50..ba99f195c6 100644
--- a/engines/director/lingo/lingo-lex.cpp
+++ b/engines/director/lingo/lingo-lex.cpp
@@ -1,6 +1,6 @@
-#line 2 "engines/director/lingo/lingo-lex.cpp"
+#line 1 "engines/director/lingo/lingo-lex.cpp"
-#line 4 "engines/director/lingo/lingo-lex.cpp"
+#line 3 "engines/director/lingo/lingo-lex.cpp"
#define YY_INT_ALIGNED short int
@@ -8,8 +8,8 @@
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
-#define YY_FLEX_MINOR_VERSION 5
-#define YY_FLEX_SUBMINOR_VERSION 35
+#define YY_FLEX_MINOR_VERSION 6
+#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
@@ -47,7 +47,6 @@ typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
-typedef uint64_t flex_uint64_t;
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
@@ -55,7 +54,6 @@ typedef int flex_int32_t;
typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
-#endif /* ! C99 */
/* Limits of integral types. */
#ifndef INT8_MIN
@@ -86,63 +84,61 @@ typedef unsigned int flex_uint32_t;
#define UINT32_MAX (4294967295U)
#endif
-#endif /* ! FLEXINT_H */
-
-#ifdef __cplusplus
-
-/* The "const" storage-class-modifier is valid. */
-#define YY_USE_CONST
-
-#else /* ! __cplusplus */
+#ifndef SIZE_MAX
+#define SIZE_MAX (~(size_t)0)
+#endif
-/* C99 requires __STDC__ to be defined as 1. */
-#if defined (__STDC__)
+#endif /* ! C99 */
-#define YY_USE_CONST
+#endif /* ! FLEXINT_H */
-#endif /* defined (__STDC__) */
-#endif /* ! __cplusplus */
+/* begin standard C++ headers. */
-#ifdef YY_USE_CONST
+/* TODO: this is always defined, so inline it */
#define yyconst const
+
+#if defined(__GNUC__) && __GNUC__ >= 3
+#define yynoreturn __attribute__((__noreturn__))
#else
-#define yyconst
+#define yynoreturn
#endif
/* Returned upon end-of-file. */
#define YY_NULL 0
-/* Promotes a possibly negative, possibly signed char to an unsigned
- * integer for use as an array index. If the signed char is negative,
- * we want to instead treat it as an 8-bit unsigned char, hence the
- * double cast.
+/* Promotes a possibly negative, possibly signed char to an
+ * integer in range [0..255] for use as an array index.
*/
-#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
+#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
/* Enter a start condition. This macro really ought to take a parameter,
* but we do it the disgusting crufty way forced on us by the ()-less
* definition of BEGIN.
*/
#define BEGIN (yy_start) = 1 + 2 *
-
/* Translate the current start state into a value that can be later handed
* to BEGIN to return to the state. The YYSTATE alias is for lex
* compatibility.
*/
#define YY_START (((yy_start) - 1) / 2)
#define YYSTATE YY_START
-
/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
-
/* Special action meaning "start processing a new file". */
-#define YY_NEW_FILE yyrestart(yyin )
-
+#define YY_NEW_FILE yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k.
+ * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
+ * Ditto for the __ia64__ case accordingly.
+ */
+#define YY_BUF_SIZE 32768
+#else
#define YY_BUF_SIZE 16384
+#endif /* __ia64__ */
#endif
/* The state buf must be large enough to hold one state per character in the main buffer.
@@ -159,15 +155,16 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
typedef size_t yy_size_t;
#endif
-extern yy_size_t yyleng;
+extern int yyleng;
extern FILE *yyin, *yyout;
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
-
+
#define YY_LESS_LINENO(n)
+ #define YY_LINENO_REWIND_TO(ptr)
/* Return all but the first "n" matched characters back to the input stream. */
#define yyless(n) \
@@ -182,7 +179,6 @@ extern FILE *yyin, *yyout;
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
-
#define unput(c) yyunput( c, (yytext_ptr) )
#ifndef YY_STRUCT_YY_BUFFER_STATE
@@ -197,12 +193,12 @@ struct yy_buffer_state
/* Size of input buffer in bytes, not including room for EOB
* characters.
*/
- yy_size_t yy_buf_size;
+ int yy_buf_size;
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
- yy_size_t yy_n_chars;
+ int yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
@@ -225,7 +221,7 @@ struct yy_buffer_state
int yy_bs_lineno; /**< The line count. */
int yy_bs_column; /**< The column count. */
-
+
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
@@ -253,7 +249,7 @@ struct yy_buffer_state
/* Stack of input buffers. */
static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
-static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
+static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
/* We provide macros for accessing buffer states in case in the
* future we want to put the buffer states in a more general
@@ -264,7 +260,6 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)
-
/* Same as previous macro, but useful when we know that the buffer stack is not
* NULL or when we need an lvalue. For internal use only.
*/
@@ -272,11 +267,11 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;
-static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
-yy_size_t yyleng;
+static int yy_n_chars; /* number of characters read into yy_ch_buf */
+int yyleng;
/* Points to current character in buffer. */
-static char *yy_c_buf_p = (char *) 0;
+static char *yy_c_buf_p = NULL;
static int yy_init = 0; /* whether we need to initialize */
static int yy_start = 0; /* start state number */
@@ -285,85 +280,81 @@ static int yy_start = 0; /* start state number */
*/
static int yy_did_buffer_switch_on_eof;
-void yyrestart (FILE *input_file );
-void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
-YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
-void yy_delete_buffer (YY_BUFFER_STATE b );
-void yy_flush_buffer (YY_BUFFER_STATE b );
-void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
-void yypop_buffer_state (void );
-
-static void yyensure_buffer_stack (void );
-static void yy_load_buffer_state (void );
-static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
+void yyrestart ( FILE *input_file );
+void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
+YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
+void yy_delete_buffer ( YY_BUFFER_STATE b );
+void yy_flush_buffer ( YY_BUFFER_STATE b );
+void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
+void yypop_buffer_state ( void );
-#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
+static void yyensure_buffer_stack ( void );
+static void yy_load_buffer_state ( void );
+static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
+#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
-YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
-YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
-YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len );
+YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
+YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
+YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
-void *yyalloc (yy_size_t );
-void *yyrealloc (void *,yy_size_t );
-void yyfree (void * );
+void *yyalloc ( yy_size_t );
+void *yyrealloc ( void *, yy_size_t );
+void yyfree ( void * );
#define yy_new_buffer yy_create_buffer
-
#define yy_set_interactive(is_interactive) \
{ \
if ( ! YY_CURRENT_BUFFER ){ \
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
- yy_create_buffer(yyin,YY_BUF_SIZE ); \
+ yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
-
#define yy_set_bol(at_bol) \
{ \
if ( ! YY_CURRENT_BUFFER ){\
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
- yy_create_buffer(yyin,YY_BUF_SIZE ); \
+ yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
-
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
/* Begin user sect3 */
-#define yywrap(n) 1
+#define yywrap() (/*CONSTCOND*/1)
#define YY_SKIP_YYWRAP
+typedef flex_uint8_t YY_CHAR;
-typedef unsigned char YY_CHAR;
-
-FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
+FILE *yyin = NULL, *yyout = NULL;
typedef int yy_state_type;
extern int yylineno;
-
int yylineno = 1;
extern char *yytext;
+#ifdef yytext_ptr
+#undef yytext_ptr
+#endif
#define yytext_ptr yytext
-static yy_state_type yy_get_previous_state (void );
-static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
-static int yy_get_next_buffer (void );
-static void yy_fatal_error (yyconst char msg[] );
+static yy_state_type yy_get_previous_state ( void );
+static yy_state_type yy_try_NUL_trans ( yy_state_type current_state );
+static int yy_get_next_buffer ( void );
+static void yynoreturn yy_fatal_error ( const char* msg );
/* Done after the current pattern has been matched and before the
* corresponding action - sets up yytext.
*/
#define YY_DO_BEFORE_ACTION \
(yytext_ptr) = yy_bp; \
- yyleng = (yy_size_t) (yy_cp - yy_bp); \
+ yyleng = (int) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
-
#define YY_NUM_RULES 76
#define YY_END_OF_BUFFER 77
/* This struct is not used in this scanner,
@@ -373,7 +364,7 @@ struct yy_trans_info
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
};
-static yyconst flex_int16_t yy_accept[286] =
+static const flex_int16_t yy_accept[286] =
{ 0,
0, 0, 77, 75, 4, 73, 73, 75, 75, 75,
72, 72, 72, 71, 72, 68, 72, 69, 69, 69,
@@ -408,7 +399,7 @@ static yyconst flex_int16_t yy_accept[286] =
49, 50, 51, 51, 0
} ;
-static yyconst flex_int32_t yy_ec[256] =
+static const YY_CHAR yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
@@ -440,7 +431,7 @@ static yyconst flex_int32_t yy_ec[256] =
1, 1, 1, 1, 1
} ;
-static yyconst flex_int32_t yy_meta[66] =
+static const YY_CHAR yy_meta[66] =
{ 0,
1, 2, 3, 3, 2, 1, 1, 1, 1, 1,
1, 1, 4, 1, 1, 1, 5, 5, 5, 5,
@@ -451,7 +442,7 @@ static yyconst flex_int32_t yy_meta[66] =
5, 5, 5, 5, 1
} ;
-static yyconst flex_int16_t yy_base[297] =
+static const flex_int16_t yy_base[297] =
{ 0,
0, 64, 190, 760, 68, 72, 76, 80, 172, 0,
760, 152, 121, 55, 71, 760, 106, 66, 68, 66,
@@ -488,7 +479,7 @@ static yyconst flex_int16_t yy_base[297] =
} ;
-static yyconst flex_int16_t yy_def[297] =
+static const flex_int16_t yy_def[297] =
{ 0,
285, 1, 285, 285, 285, 285, 285, 285, 286, 287,
285, 285, 285, 285, 285, 285, 285, 288, 288, 288,
@@ -525,7 +516,7 @@ static yyconst flex_int16_t yy_def[297] =
} ;
-static yyconst flex_int16_t yy_nxt[826] =
+static const flex_int16_t yy_nxt[826] =
{ 0,
4, 5, 6, 7, 8, 9, 10, 11, 12, 11,
13, 4, 14, 15, 16, 17, 18, 19, 20, 21,
@@ -620,7 +611,7 @@ static yyconst flex_int16_t yy_nxt[826] =
285, 285, 285, 285, 285
} ;
-static yyconst flex_int16_t yy_chk[826] =
+static const flex_int16_t yy_chk[826] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@@ -792,7 +783,8 @@ static int checkImmediate(int token) {
return token;
}
-#line 796 "engines/director/lingo/lingo-lex.cpp"
+#line 786 "engines/director/lingo/lingo-lex.cpp"
+#line 787 "engines/director/lingo/lingo-lex.cpp"
#define INITIAL 0
@@ -808,36 +800,36 @@ static int checkImmediate(int token) {
#define YY_EXTRA_TYPE void *
#endif
-static int yy_init_globals (void );
+static int yy_init_globals ( void );
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
-int yylex_destroy (void );
+int yylex_destroy ( void );
-int yyget_debug (void );
+int yyget_debug ( void );
-void yyset_debug (int debug_flag );
+void yyset_debug ( int debug_flag );
-YY_EXTRA_TYPE yyget_extra (void );
+YY_EXTRA_TYPE yyget_extra ( void );
-void yyset_extra (YY_EXTRA_TYPE user_defined );
+void yyset_extra ( YY_EXTRA_TYPE user_defined );
-FILE *yyget_in (void );
+FILE *yyget_in ( void );
-void yyset_in (FILE * in_str );
+void yyset_in ( FILE * _in_str );
-FILE *yyget_out (void );
+FILE *yyget_out ( void );
-void yyset_out (FILE * out_str );
+void yyset_out ( FILE * _out_str );
-yy_size_t yyget_leng (void );
+ int yyget_leng ( void );
-char *yyget_text (void );
+char *yyget_text ( void );
-int yyget_lineno (void );
+int yyget_lineno ( void );
-void yyset_lineno (int line_number );
+void yyset_lineno ( int _line_number );
/* Macros after this point can all be overridden by user definitions in
* section 1.
@@ -845,33 +837,41 @@ void yyset_lineno (int line_number );
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
-extern "C" int yywrap (void );
+extern "C" int yywrap ( void );
#else
-extern int yywrap (void );
+extern int yywrap ( void );
#endif
#endif
+#ifndef YY_NO_UNPUT
+
+#endif
+
#ifndef yytext_ptr
-static void yy_flex_strncpy (char *,yyconst char *,int );
+static void yy_flex_strncpy ( char *, const char *, int );
#endif
#ifdef YY_NEED_STRLEN
-static int yy_flex_strlen (yyconst char * );
+static int yy_flex_strlen ( const char * );
#endif
#ifndef YY_NO_INPUT
-
#ifdef __cplusplus
-static int yyinput (void );
+static int yyinput ( void );
#else
-static int input (void );
+static int input ( void );
#endif
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
+#ifdef __ia64__
+/* On IA-64, the buffer size is 16k, not 8k */
+#define YY_READ_BUF_SIZE 16384
+#else
#define YY_READ_BUF_SIZE 8192
+#endif /* __ia64__ */
#endif
/* Copy whatever the last rule matched to the standard output. */
@@ -879,7 +879,7 @@ static int input (void );
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO fwrite( yytext, yyleng, 1, yyout )
+#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@@ -890,7 +890,7 @@ static int input (void );
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
- yy_size_t n; \
+ int n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
@@ -903,7 +903,7 @@ static int input (void );
else \
{ \
errno=0; \
- while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
+ while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
@@ -958,7 +958,7 @@ extern int yylex (void);
/* Code executed at the end of each rule. */
#ifndef YY_BREAK
-#define YY_BREAK break;
+#define YY_BREAK /*LINTED*/break;
#endif
#define YY_RULE_SETUP \
@@ -971,15 +971,10 @@ extern int yylex (void);
*/
YY_DECL
{
- register yy_state_type yy_current_state;
- register char *yy_cp, *yy_bp;
- register int yy_act;
+ yy_state_type yy_current_state;
+ char *yy_cp, *yy_bp;
+ int yy_act;
-#line 78 "engines/director/lingo/lingo-lex.l"
-
-
-#line 982 "engines/director/lingo/lingo-lex.cpp"
-
if ( !(yy_init) )
{
(yy_init) = 1;
@@ -1000,13 +995,19 @@ YY_DECL
if ( ! YY_CURRENT_BUFFER ) {
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
- yy_create_buffer(yyin,YY_BUF_SIZE );
+ yy_create_buffer( yyin, YY_BUF_SIZE );
}
- yy_load_buffer_state( );
+ yy_load_buffer_state( );
}
- while ( 1 ) /* loops until end-of-file is reached */
+ {
+#line 78 "engines/director/lingo/lingo-lex.l"
+
+
+#line 1008 "engines/director/lingo/lingo-lex.cpp"
+
+ while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
{
yy_cp = (yy_c_buf_p);
@@ -1023,7 +1024,7 @@ YY_DECL
yy_match:
do
{
- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
+ YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
@@ -1033,9 +1034,9 @@ yy_match:
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 286 )
- yy_c = yy_meta[(unsigned int) yy_c];
+ yy_c = yy_meta[yy_c];
}
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
++yy_cp;
}
while ( yy_current_state != 285 );
@@ -1683,7 +1684,7 @@ case YY_STATE_EOF(INITIAL):
{
(yy_did_buffer_switch_on_eof) = 0;
- if ( yywrap( ) )
+ if ( yywrap( ) )
{
/* Note: because we've taken care in
* yy_get_next_buffer() to have set up
@@ -1736,6 +1737,7 @@ case YY_STATE_EOF(INITIAL):
"fatal flex scanner internal error--no action found" );
} /* end of action switch */
} /* end of scanning one token */
+ } /* end of user's declarations */
} /* end of yylex */
/* yy_get_next_buffer - try to read in a new buffer
@@ -1747,9 +1749,9 @@ case YY_STATE_EOF(INITIAL):
*/
static int yy_get_next_buffer (void)
{
- register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
- register char *source = (yytext_ptr);
- register int number_to_move, i;
+ char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
+ char *source = (yytext_ptr);
+ int number_to_move, i;
int ret_val;
if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
@@ -1778,7 +1780,7 @@ static int yy_get_next_buffer (void)
/* Try to read more data. */
/* First move last chars to start of buffer. */
- number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
+ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
for ( i = 0; i < number_to_move; ++i )
*(dest++) = *(source++);
@@ -1791,21 +1793,21 @@ static int yy_get_next_buffer (void)
else
{
- yy_size_t num_to_read =
+ int num_to_read =
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
{ /* Not enough room in the buffer - grow it. */
/* just a shorter name for the current buffer */
- YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
+ YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
int yy_c_buf_p_offset =
(int) ((yy_c_buf_p) - b->yy_ch_buf);
if ( b->yy_is_our_buffer )
{
- yy_size_t new_size = b->yy_buf_size * 2;
+ int new_size = b->yy_buf_size * 2;
if ( new_size <= 0 )
b->yy_buf_size += b->yy_buf_size / 8;
@@ -1814,11 +1816,12 @@ static int yy_get_next_buffer (void)
b->yy_ch_buf = (char *)
/* Include room in for 2 EOB chars. */
- yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
+ yyrealloc( (void *) b->yy_ch_buf,
+ (yy_size_t) (b->yy_buf_size + 2) );
}
else
/* Can't grow it, we don't own it. */
- b->yy_ch_buf = 0;
+ b->yy_ch_buf = NULL;
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR(
@@ -1846,7 +1849,7 @@ static int yy_get_next_buffer (void)
if ( number_to_move == YY_MORE_ADJ )
{
ret_val = EOB_ACT_END_OF_FILE;
- yyrestart(yyin );
+ yyrestart( yyin );
}
else
@@ -1860,12 +1863,15 @@ static int yy_get_next_buffer (void)
else
ret_val = EOB_ACT_CONTINUE_SCAN;
- if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
+ if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
/* Extend the array by 50%, plus the number we really need. */
- yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
+ int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
+ (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
+ /* "- 2" to take care of EOB's */
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
}
(yy_n_chars) += number_to_move;
@@ -1881,15 +1887,15 @@ static int yy_get_next_buffer (void)
static yy_state_type yy_get_previous_state (void)
{
- register yy_state_type yy_current_state;
- register char *yy_cp;
+ yy_state_type yy_current_state;
+ char *yy_cp;
yy_current_state = (yy_start);
yy_current_state += YY_AT_BOL();
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
{
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
+ YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
@@ -1899,9 +1905,9 @@ static int yy_get_next_buffer (void)
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 286 )
- yy_c = yy_meta[(unsigned int) yy_c];
+ yy_c = yy_meta[yy_c];
}
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
}
return yy_current_state;
@@ -1914,10 +1920,10 @@ static int yy_get_next_buffer (void)
*/
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
{
- register int yy_is_jam;
- register char *yy_cp = (yy_c_buf_p);
+ int yy_is_jam;
+ char *yy_cp = (yy_c_buf_p);
- register YY_CHAR yy_c = 1;
+ YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
{
(yy_last_accepting_state) = yy_current_state;
@@ -1927,14 +1933,18 @@ static int yy_get_next_buffer (void)
{
yy_current_state = (int) yy_def[yy_current_state];
if ( yy_current_state >= 286 )
- yy_c = yy_meta[(unsigned int) yy_c];
+ yy_c = yy_meta[yy_c];
}
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
yy_is_jam = (yy_current_state == 285);
- return yy_is_jam ? 0 : yy_current_state;
+ return yy_is_jam ? 0 : yy_current_state;
}
+#ifndef YY_NO_UNPUT
+
+#endif
+
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput (void)
@@ -1959,7 +1969,7 @@ static int yy_get_next_buffer (void)
else
{ /* need more input */
- yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
+ int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
++(yy_c_buf_p);
switch ( yy_get_next_buffer( ) )
@@ -1976,13 +1986,13 @@ static int yy_get_next_buffer (void)
*/
/* Reset buffer status. */
- yyrestart(yyin );
+ yyrestart( yyin );
/*FALLTHROUGH*/
case EOB_ACT_END_OF_FILE:
{
- if ( yywrap( ) )
+ if ( yywrap( ) )
return 0;
if ( ! (yy_did_buffer_switch_on_eof) )
@@ -2022,11 +2032,11 @@ static int yy_get_next_buffer (void)
if ( ! YY_CURRENT_BUFFER ){
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
- yy_create_buffer(yyin,YY_BUF_SIZE );
+ yy_create_buffer( yyin, YY_BUF_SIZE );
}
- yy_init_buffer(YY_CURRENT_BUFFER,input_file );
- yy_load_buffer_state( );
+ yy_init_buffer( YY_CURRENT_BUFFER, input_file );
+ yy_load_buffer_state( );
}
/** Switch to a different input buffer.
@@ -2054,7 +2064,7 @@ static int yy_get_next_buffer (void)
}
YY_CURRENT_BUFFER_LVALUE = new_buffer;
- yy_load_buffer_state( );
+ yy_load_buffer_state( );
/* We don't actually know whether we did this switch during
* EOF (yywrap()) processing, but the only time this flag
@@ -2082,7 +2092,7 @@ static void yy_load_buffer_state (void)
{
YY_BUFFER_STATE b;
- b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
+ b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
@@ -2091,13 +2101,13 @@ static void yy_load_buffer_state (void)
/* yy_ch_buf has to be 2 characters longer than the size given because
* we need to put in 2 end-of-buffer characters.
*/
- b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
+ b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_is_our_buffer = 1;
- yy_init_buffer(b,file );
+ yy_init_buffer( b, file );
return b;
}
@@ -2116,9 +2126,9 @@ static void yy_load_buffer_state (void)
YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
if ( b->yy_is_our_buffer )
- yyfree((void *) b->yy_ch_buf );
+ yyfree( (void *) b->yy_ch_buf );
- yyfree((void *) b );
+ yyfree( (void *) b );
}
/* Initializes or reinitializes a buffer.
@@ -2130,7 +2140,7 @@ static void yy_load_buffer_state (void)
{
int oerrno = errno;
- yy_flush_buffer(b );
+ yy_flush_buffer( b );
b->yy_input_file = file;
b->yy_fill_buffer = 1;
@@ -2173,7 +2183,7 @@ static void yy_load_buffer_state (void)
b->yy_buffer_status = YY_BUFFER_NEW;
if ( b == YY_CURRENT_BUFFER )
- yy_load_buffer_state( );
+ yy_load_buffer_state( );
}
/** Pushes the new state onto the stack. The new state becomes
@@ -2204,7 +2214,7 @@ void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
YY_CURRENT_BUFFER_LVALUE = new_buffer;
/* copied from yy_switch_to_buffer. */
- yy_load_buffer_state( );
+ yy_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
@@ -2223,7 +2233,7 @@ void yypop_buffer_state (void)
--(yy_buffer_stack_top);
if (YY_CURRENT_BUFFER) {
- yy_load_buffer_state( );
+ yy_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
}
@@ -2241,15 +2251,15 @@ static void yyensure_buffer_stack (void)
* scanner will even need a stack. We use 2 instead of 1 to avoid an
* immediate realloc on the next call.
*/
- num_to_alloc = 1;
+ num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
(num_to_alloc * sizeof(struct yy_buffer_state*)
);
if ( ! (yy_buffer_stack) )
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
-
+
memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
-
+
(yy_buffer_stack_max) = num_to_alloc;
(yy_buffer_stack_top) = 0;
return;
@@ -2258,7 +2268,7 @@ static void yyensure_buffer_stack (void)
if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
/* Increase the buffer to prepare for a possible push. */
- int grow_size = 8 /* arbitrary grow size */;
+ yy_size_t grow_size = 8 /* arbitrary grow size */;
num_to_alloc = (yy_buffer_stack_max) + grow_size;
(yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
@@ -2278,7 +2288,7 @@ static void yyensure_buffer_stack (void)
* @param base the character buffer
* @param size the size in bytes of the character buffer
*
- * @return the newly allocated buffer state object.
+ * @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
{
@@ -2288,23 +2298,23 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
base[size-2] != YY_END_OF_BUFFER_CHAR ||
base[size-1] != YY_END_OF_BUFFER_CHAR )
/* They forgot to leave room for the EOB's. */
- return 0;
+ return NULL;
- b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
+ b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
- b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
+ b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
b->yy_buf_pos = b->yy_ch_buf = base;
b->yy_is_our_buffer = 0;
- b->yy_input_file = 0;
+ b->yy_input_file = NULL;
b->yy_n_chars = b->yy_buf_size;
b->yy_is_interactive = 0;
b->yy_at_bol = 1;
b->yy_fill_buffer = 0;
b->yy_buffer_status = YY_BUFFER_NEW;
- yy_switch_to_buffer(b );
+ yy_switch_to_buffer( b );
return b;
}
@@ -2317,28 +2327,29 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
* @note If you want to scan bytes that may contain NUL values, then use
* yy_scan_bytes() instead.
*/
-YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
+YY_BUFFER_STATE yy_scan_string (const char * yystr )
{
- return yy_scan_bytes(yystr,strlen(yystr) );
+ return yy_scan_bytes( yystr, (int) strlen(yystr) );
}
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
* scan from a @e copy of @a bytes.
- * @param bytes the byte buffer to scan
- * @param len the number of bytes in the buffer pointed to by @a bytes.
+ * @param yybytes the byte buffer to scan
+ * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
*
* @return the newly allocated buffer state object.
*/
-YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
+YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
{
YY_BUFFER_STATE b;
char *buf;
- yy_size_t n, i;
+ yy_size_t n;
+ int i;
/* Get memory for full buffer, including space for trailing EOB's. */
- n = _yybytes_len + 2;
- buf = (char *) yyalloc(n );
+ n = (yy_size_t) (_yybytes_len + 2);
+ buf = (char *) yyalloc( n );
if ( ! buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
@@ -2347,7 +2358,7 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len
buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
- b = yy_scan_buffer(buf,n );
+ b = yy_scan_buffer( buf, n );
if ( ! b )
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
@@ -2363,9 +2374,9 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len
#define YY_EXIT_FAILURE 2
#endif
-static void yy_fatal_error (yyconst char* msg )
+static void yynoreturn yy_fatal_error (const char* msg )
{
- (void) fprintf( stderr, "%s\n", msg );
+ fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
}
@@ -2393,7 +2404,7 @@ static void yy_fatal_error (yyconst char* msg )
*/
int yyget_lineno (void)
{
-
+
return yylineno;
}
@@ -2416,7 +2427,7 @@ FILE *yyget_out (void)
/** Get the length of the current token.
*
*/
-yy_size_t yyget_leng (void)
+int yyget_leng (void)
{
return yyleng;
}
@@ -2431,29 +2442,29 @@ char *yyget_text (void)
}
/** Set the current line number.
- * @param line_number
+ * @param _line_number line number
*
*/
-void yyset_lineno (int line_number )
+void yyset_lineno (int _line_number )
{
- yylineno = line_number;
+ yylineno = _line_number;
}
/** Set the input stream. This does not discard the current
* input buffer.
- * @param in_str A readable stream.
+ * @param _in_str A readable stream.
*
* @see yy_switch_to_buffer
*/
-void yyset_in (FILE * in_str )
+void yyset_in (FILE * _in_str )
{
- yyin = in_str ;
+ yyin = _in_str ;
}
-void yyset_out (FILE * out_str )
+void yyset_out (FILE * _out_str )
{
- yyout = out_str ;
+ yyout = _out_str ;
}
int yyget_debug (void)
@@ -2461,9 +2472,9 @@ int yyget_debug (void)
return yy_flex_debug;
}
-void yyset_debug (int bdebug )
+void yyset_debug (int _bdebug )
{
- yy_flex_debug = bdebug ;
+ yy_flex_debug = _bdebug ;
}
static int yy_init_globals (void)
@@ -2472,10 +2483,10 @@ static int yy_init_globals (void)
* This function is called from yylex_destroy(), so don't allocate here.
*/
- (yy_buffer_stack) = 0;
+ (yy_buffer_stack) = NULL;
(yy_buffer_stack_top) = 0;
(yy_buffer_stack_max) = 0;
- (yy_c_buf_p) = (char *) 0;
+ (yy_c_buf_p) = NULL;
(yy_init) = 0;
(yy_start) = 0;
@@ -2484,8 +2495,8 @@ static int yy_init_globals (void)
yyin = stdin;
yyout = stdout;
#else
- yyin = (FILE *) 0;
- yyout = (FILE *) 0;
+ yyin = NULL;
+ yyout = NULL;
#endif
/* For future reference: Set errno on error, since we are called by
@@ -2500,7 +2511,7 @@ int yylex_destroy (void)
/* Pop the buffer stack, destroying each element. */
while(YY_CURRENT_BUFFER){
- yy_delete_buffer(YY_CURRENT_BUFFER );
+ yy_delete_buffer( YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
yypop_buffer_state();
}
@@ -2521,18 +2532,19 @@ int yylex_destroy (void)
*/
#ifndef yytext_ptr
-static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
+static void yy_flex_strncpy (char* s1, const char * s2, int n )
{
- register int i;
+
+ int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
#endif
#ifdef YY_NEED_STRLEN
-static int yy_flex_strlen (yyconst char * s )
+static int yy_flex_strlen (const char * s )
{
- register int n;
+ int n;
for ( n = 0; s[n]; ++n )
;
@@ -2542,11 +2554,12 @@ static int yy_flex_strlen (yyconst char * s )
void *yyalloc (yy_size_t size )
{
- return (void *) malloc( size );
+ return malloc(size);
}
void *yyrealloc (void * ptr, yy_size_t size )
{
+
/* The cast to (char *) in the following accommodates both
* implementations that use char* generic pointers, and those
* that use void* generic pointers. It works with the latter
@@ -2554,12 +2567,12 @@ void *yyrealloc (void * ptr, yy_size_t size )
* any pointer type to void*, and deal with argument conversions
* as though doing an assignment.
*/
- return (void *) realloc( (char *) ptr, size );
+ return realloc(ptr, size);
}
void yyfree (void * ptr )
{
- free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
+ free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
}
#define YYTABLES_NAME "yytables"
@@ -2567,7 +2580,6 @@ void yyfree (void * ptr )
#line 321 "engines/director/lingo/lingo-lex.l"
-
extern int yydebug;
namespace Director {
diff --git a/engines/director/lingo/lingo.cpp b/engines/director/lingo/lingo.cpp
index dd0041d7fb..52e471a6f8 100644
--- a/engines/director/lingo/lingo.cpp
+++ b/engines/director/lingo/lingo.cpp
@@ -366,12 +366,17 @@ Common::String *Datum::toString() {
case INT:
*s = Common::String::format("%d", u.i);
break;
+ case ARGC:
+ *s = Common::String::format("argc: %d", u.i);
+ break;
+ case ARGCNORET:
+ *s = Common::String::format("argcnoret: %d", u.i);
+ break;
case FLOAT:
*s = Common::String::format(g_lingo->_floatPrecisionFormat.c_str(), u.f);
break;
case STRING:
- delete s;
- s = u.s;
+ *s = Common::String::format("\"%s\"", u.s->c_str());
break;
case SYMBOL:
switch (u.i) {
diff --git a/engines/director/lingo/lingo.h b/engines/director/lingo/lingo.h
index 65f985094a..d15ade5335 100644
--- a/engines/director/lingo/lingo.h
+++ b/engines/director/lingo/lingo.h
@@ -115,9 +115,9 @@ struct Datum { /* interpreter stack type */
int type;
union {
- int i;
- double f;
- Common::String *s;
+ int i; /* INT, ARGC, ARGCNORET */
+ double f; /* FLOAT */
+ Common::String *s; /* STRING */
Symbol *sym;
FloatArray *farr; /* ARRAY, POINT, RECT */
} u;
@@ -290,7 +290,8 @@ public:
static void c_symbolpush();
static void c_constpush();
static void c_varpush();
- static void c_argspush();
+ static void c_argcpush();
+ static void c_argcnoretpush();
static void c_arraypush();
static void c_assign();
bool verify(Symbol *s);
@@ -347,6 +348,8 @@ public:
static void c_unk2();
// bytecode-related instructions
+ static void cb_localcall();
+ static void cb_call();
static void cb_v4theentitypush();
static void cb_v4theentitynamepush();
static void cb_v4theentityassign();