aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/lingo-gr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/director/lingo/lingo-gr.cpp')
-rw-r--r--engines/director/lingo/lingo-gr.cpp883
1 files changed, 463 insertions, 420 deletions
diff --git a/engines/director/lingo/lingo-gr.cpp b/engines/director/lingo/lingo-gr.cpp
index d776d4a32d..64dd7089df 100644
--- a/engines/director/lingo/lingo-gr.cpp
+++ b/engines/director/lingo/lingo-gr.cpp
@@ -114,21 +114,23 @@
tMETHOD = 303,
tALERT = 304,
tBEEP = 305,
- tGE = 306,
- tLE = 307,
- tGT = 308,
- tLT = 309,
- tEQ = 310,
- tNEQ = 311,
- tAND = 312,
- tOR = 313,
- tNOT = 314,
- tCONCAT = 315,
- tCONTAINS = 316,
- tSTARTS = 317,
- tSPRITE = 318,
- tINTERSECTS = 319,
- tWITHIN = 320
+ tCLOSERESFILE = 306,
+ tCLOSEXLIB = 307,
+ tGE = 308,
+ tLE = 309,
+ tGT = 310,
+ tLT = 311,
+ tEQ = 312,
+ tNEQ = 313,
+ tAND = 314,
+ tOR = 315,
+ tNOT = 316,
+ tCONCAT = 317,
+ tCONTAINS = 318,
+ tSTARTS = 319,
+ tSPRITE = 320,
+ tINTERSECTS = 321,
+ tWITHIN = 322
};
#endif
/* Tokens. */
@@ -180,21 +182,23 @@
#define tMETHOD 303
#define tALERT 304
#define tBEEP 305
-#define tGE 306
-#define tLE 307
-#define tGT 308
-#define tLT 309
-#define tEQ 310
-#define tNEQ 311
-#define tAND 312
-#define tOR 313
-#define tNOT 314
-#define tCONCAT 315
-#define tCONTAINS 316
-#define tSTARTS 317
-#define tSPRITE 318
-#define tINTERSECTS 319
-#define tWITHIN 320
+#define tCLOSERESFILE 306
+#define tCLOSEXLIB 307
+#define tGE 308
+#define tLE 309
+#define tGT 310
+#define tLT 311
+#define tEQ 312
+#define tNEQ 313
+#define tAND 314
+#define tOR 315
+#define tNOT 316
+#define tCONCAT 317
+#define tCONTAINS 318
+#define tSTARTS 319
+#define tSPRITE 320
+#define tINTERSECTS 321
+#define tWITHIN 322
@@ -252,7 +256,7 @@ typedef union YYSTYPE
Common::Array<double> *arr;
}
/* Line 193 of yacc.c. */
-#line 256 "engines/director/lingo/lingo-gr.cpp"
+#line 260 "engines/director/lingo/lingo-gr.cpp"
YYSTYPE;
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
@@ -265,7 +269,7 @@ typedef union YYSTYPE
/* Line 216 of yacc.c. */
-#line 269 "engines/director/lingo/lingo-gr.cpp"
+#line 273 "engines/director/lingo/lingo-gr.cpp"
#ifdef short
# undef short
@@ -478,22 +482,22 @@ union yyalloc
#endif
/* YYFINAL -- State number of the termination state. */
-#define YYFINAL 81
+#define YYFINAL 85
/* YYLAST -- Last index in YYTABLE. */
-#define YYLAST 785
+#define YYLAST 801
/* YYNTOKENS -- Number of terminals. */
-#define YYNTOKENS 79
+#define YYNTOKENS 81
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 34
/* YYNRULES -- Number of rules. */
-#define YYNRULES 121
+#define YYNRULES 125
/* YYNRULES -- Number of states. */
-#define YYNSTATES 258
+#define YYNSTATES 262
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
-#define YYMAXUTOK 320
+#define YYMAXUTOK 322
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
@@ -502,12 +506,12 @@ union yyalloc
static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 72, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ 74, 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, 71, 77, 2,
- 73, 74, 69, 67, 78, 68, 2, 70, 2, 2,
+ 2, 2, 2, 2, 2, 2, 2, 73, 79, 2,
+ 75, 76, 71, 69, 80, 70, 2, 72, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
- 76, 66, 75, 2, 2, 2, 2, 2, 2, 2,
+ 78, 68, 77, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
@@ -533,7 +537,7 @@ static const yytype_uint8 yytranslate[] =
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
- 65
+ 65, 66, 67
};
#if YYDEBUG
@@ -550,61 +554,62 @@ static const yytype_uint16 yyprhs[] =
246, 248, 251, 253, 257, 261, 265, 269, 273, 277,
281, 285, 289, 293, 297, 300, 304, 308, 312, 316,
319, 322, 326, 331, 336, 339, 342, 345, 347, 349,
- 352, 355, 358, 360, 362, 366, 369, 372, 375, 378,
- 382, 385, 389, 392, 395, 397, 401, 404, 408, 409,
- 418, 421, 422, 431, 432, 434, 438, 443, 444, 448,
- 449, 451
+ 352, 355, 358, 360, 363, 365, 368, 370, 372, 376,
+ 379, 382, 385, 388, 392, 395, 399, 402, 405, 407,
+ 411, 414, 418, 419, 428, 431, 432, 441, 442, 444,
+ 448, 453, 454, 458, 459, 461
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yytype_int8 yyrhs[] =
{
- 80, 0, -1, 80, 81, 82, -1, 82, -1, 1,
- 72, -1, 72, -1, -1, 106, -1, 101, -1, 111,
- -1, 83, -1, 85, -1, 38, 100, 29, 19, -1,
- 40, 19, 66, 100, -1, 40, 12, 66, 100, -1,
- 40, 13, 100, 66, 100, -1, 40, 19, 42, 100,
- -1, 40, 12, 42, 100, -1, 40, 13, 100, 42,
- 100, -1, 100, -1, 101, -1, 84, -1, 86, -1,
- 93, 73, 92, 74, 99, 98, 23, 39, -1, 94,
- 66, 100, 98, 42, 100, 98, 99, 98, 23, 39,
- -1, 94, 66, 100, 98, 20, 42, 100, 98, 99,
- 98, 23, 39, -1, 43, 19, 41, 100, -1, 95,
- 92, 41, 81, 99, 98, 23, 28, -1, 95, 92,
- 41, 81, 99, 98, 46, 99, 98, 23, 28, -1,
- 95, 92, 41, 81, 99, 98, 97, 88, 98, 23,
- 28, -1, 95, 92, 41, 97, 84, 98, -1, 95,
- 92, 41, 97, 84, 98, 46, 97, 84, 98, -1,
- 95, 92, 41, 97, 84, 98, 89, 98, 87, 98,
- -1, -1, 46, 97, 84, -1, 88, 91, -1, 91,
- -1, 89, 90, -1, 90, -1, 96, 92, 41, 97,
- 85, 98, -1, 89, -1, 96, 92, 41, 99, 98,
- -1, 100, -1, 100, 66, 100, -1, 73, 92, 74,
+ 82, 0, -1, 82, 83, 84, -1, 84, -1, 1,
+ 74, -1, 74, -1, -1, 108, -1, 103, -1, 113,
+ -1, 85, -1, 87, -1, 38, 102, 29, 19, -1,
+ 40, 19, 68, 102, -1, 40, 12, 68, 102, -1,
+ 40, 13, 102, 68, 102, -1, 40, 19, 42, 102,
+ -1, 40, 12, 42, 102, -1, 40, 13, 102, 42,
+ 102, -1, 102, -1, 103, -1, 86, -1, 88, -1,
+ 95, 75, 94, 76, 101, 100, 23, 39, -1, 96,
+ 68, 102, 100, 42, 102, 100, 101, 100, 23, 39,
+ -1, 96, 68, 102, 100, 20, 42, 102, 100, 101,
+ 100, 23, 39, -1, 43, 19, 41, 102, -1, 97,
+ 94, 41, 83, 101, 100, 23, 28, -1, 97, 94,
+ 41, 83, 101, 100, 46, 101, 100, 23, 28, -1,
+ 97, 94, 41, 83, 101, 100, 99, 90, 100, 23,
+ 28, -1, 97, 94, 41, 99, 86, 100, -1, 97,
+ 94, 41, 99, 86, 100, 46, 99, 86, 100, -1,
+ 97, 94, 41, 99, 86, 100, 91, 100, 89, 100,
+ -1, -1, 46, 99, 86, -1, 90, 93, -1, 93,
+ -1, 91, 92, -1, 92, -1, 98, 94, 41, 99,
+ 87, 100, -1, 91, -1, 98, 94, 41, 101, 100,
+ -1, 102, -1, 102, 68, 102, -1, 75, 94, 76,
-1, 39, 45, -1, 39, 44, 19, -1, 28, -1,
- 22, -1, -1, -1, -1, 99, 81, -1, 99, 85,
+ 22, -1, -1, -1, -1, 101, 83, -1, 101, 87,
-1, 11, -1, 14, -1, 17, -1, 16, -1, 19,
- 73, 112, 74, -1, 19, -1, 12, -1, 13, 100,
- -1, 83, -1, 100, 67, 100, -1, 100, 68, 100,
- -1, 100, 69, 100, -1, 100, 70, 100, -1, 100,
- 75, 100, -1, 100, 76, 100, -1, 100, 56, 100,
- -1, 100, 51, 100, -1, 100, 52, 100, -1, 100,
- 57, 100, -1, 100, 58, 100, -1, 59, 100, -1,
- 100, 77, 100, -1, 100, 60, 100, -1, 100, 61,
- 100, -1, 100, 62, 100, -1, 67, 100, -1, 68,
- 100, -1, 73, 100, 74, -1, 63, 100, 64, 100,
- -1, 63, 100, 65, 100, -1, 32, 17, -1, 33,
- 19, -1, 38, 100, -1, 103, -1, 24, -1, 26,
- 102, -1, 49, 100, -1, 50, 11, -1, 50, -1,
- 19, -1, 102, 78, 19, -1, 27, 30, -1, 27,
- 35, -1, 27, 37, -1, 27, 104, -1, 27, 104,
- 105, -1, 27, 105, -1, 42, 25, 17, -1, 25,
+ 75, 114, 76, -1, 19, -1, 12, -1, 13, 102,
+ -1, 85, -1, 102, 69, 102, -1, 102, 70, 102,
+ -1, 102, 71, 102, -1, 102, 72, 102, -1, 102,
+ 77, 102, -1, 102, 78, 102, -1, 102, 58, 102,
+ -1, 102, 53, 102, -1, 102, 54, 102, -1, 102,
+ 59, 102, -1, 102, 60, 102, -1, 61, 102, -1,
+ 102, 79, 102, -1, 102, 62, 102, -1, 102, 63,
+ 102, -1, 102, 64, 102, -1, 69, 102, -1, 70,
+ 102, -1, 75, 102, 76, -1, 65, 102, 66, 102,
+ -1, 65, 102, 67, 102, -1, 32, 17, -1, 33,
+ 19, -1, 38, 102, -1, 105, -1, 24, -1, 26,
+ 104, -1, 49, 102, -1, 50, 11, -1, 50, -1,
+ 51, 102, -1, 51, -1, 52, 102, -1, 52, -1,
+ 19, -1, 104, 80, 19, -1, 27, 30, -1, 27,
+ 35, -1, 27, 37, -1, 27, 106, -1, 27, 106,
+ 107, -1, 27, 107, -1, 42, 25, 17, -1, 25,
17, -1, 42, 17, -1, 17, -1, 36, 34, 17,
-1, 34, 17, -1, 42, 34, 17, -1, -1, 31,
- 19, 107, 97, 109, 81, 110, 99, -1, 47, 19,
- -1, -1, 48, 19, 108, 97, 109, 81, 110, 99,
- -1, -1, 19, -1, 109, 78, 19, -1, 109, 81,
- 78, 19, -1, -1, 19, 97, 112, -1, -1, 100,
- -1, 112, 78, 100, -1
+ 19, 109, 99, 111, 83, 112, 101, -1, 47, 19,
+ -1, -1, 48, 19, 110, 99, 111, 83, 112, 101,
+ -1, -1, 19, -1, 111, 80, 19, -1, 111, 83,
+ 80, 19, -1, -1, 19, 99, 114, -1, -1, 102,
+ -1, 114, 80, 102, -1
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
@@ -619,10 +624,10 @@ static const yytype_uint16 yyrline[] =
367, 374, 380, 381, 382, 383, 384, 385, 386, 387,
388, 389, 390, 391, 392, 393, 394, 395, 396, 397,
398, 399, 400, 401, 404, 405, 406, 407, 408, 410,
- 411, 412, 418, 426, 427, 438, 439, 440, 441, 446,
- 452, 459, 460, 461, 462, 465, 466, 467, 495, 495,
- 501, 504, 504, 510, 511, 512, 513, 515, 519, 527,
- 528, 529
+ 411, 412, 418, 424, 425, 431, 432, 440, 441, 452,
+ 453, 454, 455, 460, 466, 473, 474, 475, 476, 479,
+ 480, 481, 509, 509, 515, 518, 518, 524, 525, 526,
+ 527, 529, 533, 541, 542, 543
};
#endif
@@ -638,16 +643,16 @@ static const char *const yytname[] =
"tFRAME", "tGLOBAL", "tGO", "tIF", "tINTO", "tLOOP", "tMACRO", "tMCI",
"tMCIWAIT", "tMOVIE", "tNEXT", "tOF", "tPREVIOUS", "tPUT", "tREPEAT",
"tSET", "tTHEN", "tTO", "tWHEN", "tWITH", "tWHILE", "tNLELSE",
- "tFACTORY", "tMETHOD", "tALERT", "tBEEP", "tGE", "tLE", "tGT", "tLT",
- "tEQ", "tNEQ", "tAND", "tOR", "tNOT", "tCONCAT", "tCONTAINS", "tSTARTS",
- "tSPRITE", "tINTERSECTS", "tWITHIN", "'='", "'+'", "'-'", "'*'", "'/'",
- "'%'", "'\\n'", "'('", "')'", "'>'", "'<'", "'&'", "','", "$accept",
- "program", "nl", "programline", "asgn", "stmtoneliner", "stmt", "ifstmt",
- "elsestmtoneliner", "elseifstmt", "elseifstmtoneliner",
- "elseifstmtoneliner1", "elseifstmt1", "cond", "repeatwhile",
- "repeatwith", "if", "elseif", "begin", "end", "stmtlist", "expr", "func",
- "globallist", "gotofunc", "gotoframe", "gotomovie", "defn", "@1", "@2",
- "argdef", "argstore", "macro", "arglist", 0
+ "tFACTORY", "tMETHOD", "tALERT", "tBEEP", "tCLOSERESFILE", "tCLOSEXLIB",
+ "tGE", "tLE", "tGT", "tLT", "tEQ", "tNEQ", "tAND", "tOR", "tNOT",
+ "tCONCAT", "tCONTAINS", "tSTARTS", "tSPRITE", "tINTERSECTS", "tWITHIN",
+ "'='", "'+'", "'-'", "'*'", "'/'", "'%'", "'\\n'", "'('", "')'", "'>'",
+ "'<'", "'&'", "','", "$accept", "program", "nl", "programline", "asgn",
+ "stmtoneliner", "stmt", "ifstmt", "elsestmtoneliner", "elseifstmt",
+ "elseifstmtoneliner", "elseifstmtoneliner1", "elseifstmt1", "cond",
+ "repeatwhile", "repeatwith", "if", "elseif", "begin", "end", "stmtlist",
+ "expr", "func", "globallist", "gotofunc", "gotoframe", "gotomovie",
+ "defn", "@1", "@2", "argdef", "argstore", "macro", "arglist", 0
};
#endif
@@ -662,27 +667,28 @@ static const yytype_uint16 yytoknum[] =
285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
- 315, 316, 317, 318, 319, 320, 61, 43, 45, 42,
- 47, 37, 10, 40, 41, 62, 60, 38, 44
+ 315, 316, 317, 318, 319, 320, 321, 322, 61, 43,
+ 45, 42, 47, 37, 10, 40, 41, 62, 60, 38,
+ 44
};
# endif
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const yytype_uint8 yyr1[] =
{
- 0, 79, 80, 80, 80, 81, 82, 82, 82, 82,
- 82, 82, 83, 83, 83, 83, 83, 83, 83, 84,
- 84, 85, 85, 85, 85, 85, 85, 86, 86, 86,
- 86, 86, 86, 87, 87, 88, 88, 89, 89, 90,
- 91, 91, 92, 92, 92, 93, 94, 95, 96, 97,
- 98, 99, 99, 99, 100, 100, 100, 100, 100, 100,
- 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
- 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
- 100, 100, 100, 100, 101, 101, 101, 101, 101, 101,
- 101, 101, 101, 102, 102, 103, 103, 103, 103, 103,
- 103, 104, 104, 104, 104, 105, 105, 105, 107, 106,
- 106, 108, 106, 109, 109, 109, 109, 110, 111, 112,
- 112, 112
+ 0, 81, 82, 82, 82, 83, 84, 84, 84, 84,
+ 84, 84, 85, 85, 85, 85, 85, 85, 85, 86,
+ 86, 87, 87, 87, 87, 87, 87, 88, 88, 88,
+ 88, 88, 88, 89, 89, 90, 90, 91, 91, 92,
+ 93, 93, 94, 94, 94, 95, 96, 97, 98, 99,
+ 100, 101, 101, 101, 102, 102, 102, 102, 102, 102,
+ 102, 102, 102, 102, 102, 102, 102, 102, 102, 102,
+ 102, 102, 102, 102, 102, 102, 102, 102, 102, 102,
+ 102, 102, 102, 102, 103, 103, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 104, 104, 105,
+ 105, 105, 105, 105, 105, 106, 106, 106, 106, 107,
+ 107, 107, 109, 108, 108, 110, 108, 111, 111, 111,
+ 111, 112, 113, 114, 114, 114
};
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
@@ -697,10 +703,10 @@ static const yytype_uint8 yyr2[] =
1, 2, 1, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 2, 3, 3, 3, 3, 2,
2, 3, 4, 4, 2, 2, 2, 1, 1, 2,
- 2, 2, 1, 1, 3, 2, 2, 2, 2, 3,
- 2, 3, 2, 2, 1, 3, 2, 3, 0, 8,
- 2, 0, 8, 0, 1, 3, 4, 0, 3, 0,
- 1, 3
+ 2, 2, 1, 2, 1, 2, 1, 1, 3, 2,
+ 2, 2, 2, 3, 2, 3, 2, 2, 1, 3,
+ 2, 3, 0, 8, 2, 0, 8, 0, 1, 3,
+ 4, 0, 3, 0, 1, 3
};
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
@@ -710,81 +716,83 @@ static const yytype_uint8 yydefact[] =
{
0, 0, 54, 60, 0, 55, 57, 56, 49, 88,
0, 0, 47, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 92, 0, 0, 0, 0, 0, 0,
- 3, 62, 21, 11, 22, 0, 0, 0, 19, 8,
- 87, 7, 9, 4, 59, 0, 62, 61, 119, 119,
- 93, 89, 104, 0, 95, 0, 96, 0, 97, 0,
- 98, 100, 108, 84, 85, 86, 0, 45, 0, 0,
- 0, 0, 110, 111, 90, 91, 74, 0, 79, 80,
- 0, 1, 5, 6, 0, 0, 0, 0, 42, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 120, 0, 118, 0, 102,
- 106, 0, 103, 0, 0, 0, 99, 49, 0, 46,
- 0, 0, 0, 0, 0, 0, 49, 0, 0, 81,
- 2, 0, 50, 0, 0, 49, 0, 70, 71, 69,
- 72, 73, 76, 77, 78, 63, 64, 65, 66, 67,
- 68, 75, 58, 0, 94, 105, 101, 107, 113, 12,
- 17, 14, 0, 0, 16, 13, 26, 113, 82, 83,
- 51, 0, 44, 51, 0, 43, 121, 114, 0, 18,
- 15, 0, 50, 0, 0, 50, 50, 20, 0, 117,
- 117, 52, 53, 0, 0, 50, 49, 30, 115, 0,
- 51, 51, 0, 50, 51, 0, 51, 0, 48, 49,
- 50, 38, 0, 116, 109, 112, 23, 51, 50, 27,
- 50, 50, 40, 36, 0, 0, 37, 33, 0, 50,
- 0, 0, 35, 0, 0, 50, 49, 50, 49, 0,
- 0, 0, 0, 49, 31, 0, 32, 0, 0, 24,
- 28, 29, 50, 34, 50, 25, 41, 39
+ 0, 0, 0, 92, 94, 96, 0, 0, 0, 0,
+ 0, 0, 3, 62, 21, 11, 22, 0, 0, 0,
+ 19, 8, 87, 7, 9, 4, 59, 0, 62, 61,
+ 123, 123, 97, 89, 108, 0, 99, 0, 100, 0,
+ 101, 0, 102, 104, 112, 84, 85, 86, 0, 45,
+ 0, 0, 0, 0, 114, 115, 90, 91, 93, 95,
+ 74, 0, 79, 80, 0, 1, 5, 6, 0, 0,
+ 0, 0, 42, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 124,
+ 0, 122, 0, 106, 110, 0, 107, 0, 0, 0,
+ 103, 49, 0, 46, 0, 0, 0, 0, 0, 0,
+ 49, 0, 0, 81, 2, 0, 50, 0, 0, 49,
+ 0, 70, 71, 69, 72, 73, 76, 77, 78, 63,
+ 64, 65, 66, 67, 68, 75, 58, 0, 98, 109,
+ 105, 111, 117, 12, 17, 14, 0, 0, 16, 13,
+ 26, 117, 82, 83, 51, 0, 44, 51, 0, 43,
+ 125, 118, 0, 18, 15, 0, 50, 0, 0, 50,
+ 50, 20, 0, 121, 121, 52, 53, 0, 0, 50,
+ 49, 30, 119, 0, 51, 51, 0, 50, 51, 0,
+ 51, 0, 48, 49, 50, 38, 0, 120, 113, 116,
+ 23, 51, 50, 27, 50, 50, 40, 36, 0, 0,
+ 37, 33, 0, 50, 0, 0, 35, 0, 0, 50,
+ 49, 50, 49, 0, 0, 0, 0, 49, 31, 0,
+ 32, 0, 0, 24, 28, 29, 50, 34, 50, 25,
+ 41, 39
};
/* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] =
{
- -1, 29, 191, 30, 46, 32, 192, 34, 237, 221,
- 222, 211, 223, 87, 35, 36, 37, 212, 247, 171,
- 182, 38, 187, 51, 40, 60, 61, 41, 117, 126,
- 178, 200, 42, 106
+ -1, 31, 195, 32, 48, 34, 196, 36, 241, 225,
+ 226, 215, 227, 91, 37, 38, 39, 216, 251, 175,
+ 186, 40, 191, 53, 42, 62, 63, 43, 121, 130,
+ 182, 204, 44, 110
};
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
-#define YYPACT_NINF -188
+#define YYPACT_NINF -192
static const yytype_int16 yypact[] =
{
- 192, -51, -188, -188, 500, -188, -188, -188, 668, -188,
- 36, 743, -188, 39, 47, 46, 500, -13, 44, 48,
- 49, 50, 500, 55, 500, 500, 500, 500, 500, 4,
- -188, 8, -188, -188, -188, -3, 6, 517, 646, -188,
- -188, -188, -188, -188, 1, 500, -188, 646, 500, 500,
- -188, -5, -188, 58, -188, 60, -188, 45, -188, 19,
- 18, -188, -188, -188, -188, 531, 59, -188, -33, 500,
- -31, 41, -188, -188, 646, -188, 284, 575, 284, 284,
- 597, -188, -188, 280, 517, 500, 517, 43, 624, 500,
- 500, 500, 500, 500, 500, 500, 500, 500, 500, 500,
- 500, 500, 500, 500, 531, 646, -29, 11, 88, -188,
- -188, 92, -188, 94, 95, 79, -188, -188, 96, -188,
- 500, 500, 553, 500, 500, 500, -188, 500, 500, -188,
- -188, 40, 646, 42, 101, 52, 500, 646, 646, 646,
- 646, 646, 646, 646, 646, 695, 695, 284, 284, 646,
- 646, 646, -188, 500, -188, -188, -188, -188, 98, -188,
- 646, 646, 500, 500, 646, 646, 646, 98, 646, 646,
- -188, -1, -188, -188, 459, 646, 646, -188, -56, 646,
- 646, -56, 338, 76, 500, 338, -188, -188, 102, 54,
- 54, -188, -188, 97, 500, 646, -6, -8, -188, 114,
- -188, -188, 100, 646, -188, 106, -188, 113, -188, -188,
- 113, -188, 517, -188, 338, 338, -188, -188, 338, -188,
- 338, 113, 113, -188, 517, 459, -188, 90, 99, 338,
- 118, 119, -188, 121, 104, -188, -188, -188, -188, 123,
- 108, 109, 120, -10, -188, 459, -188, 401, 110, -188,
- -188, -188, 338, -188, -188, -188, -188, -188
+ 196, -57, -192, -192, 105, -192, -192, -192, 695, -192,
+ 26, 147, -192, 28, 5, 31, 105, 14, 70, 49,
+ 56, 60, 105, 9, 105, 105, 105, 105, 105, 105,
+ 105, 3, -192, 4, -192, -192, -192, 13, 43, 530,
+ 226, -192, -192, -192, -192, -192, 18, 105, -192, 226,
+ 105, 105, -192, 35, -192, 77, -192, 96, -192, 91,
+ -192, 29, 38, -192, -192, -192, -192, 544, 109, -192,
+ -34, 105, -32, 95, -192, -192, 226, -192, 226, 226,
+ 7, 597, 7, 7, 646, -192, -192, 302, 530, 105,
+ 530, 97, 673, 105, 105, 105, 105, 105, 105, 105,
+ 105, 105, 105, 105, 105, 105, 105, 105, 544, 226,
+ -61, 57, 120, -192, -192, 123, -192, 124, 127, 112,
+ -192, -192, 129, -192, 105, 105, 575, 105, 105, 105,
+ -192, 105, 105, -192, -192, 73, 226, 74, 619, 78,
+ 105, 226, 226, 226, 226, 226, 226, 226, 226, 722,
+ 722, 7, 7, 226, 226, 226, -192, 105, -192, -192,
+ -192, -192, 132, -192, 226, 226, 105, 105, 226, 226,
+ 226, 132, 226, 226, -192, 1, -192, -192, 487, 226,
+ 226, -192, -23, 226, 226, -23, 362, 113, 105, 362,
+ -192, -192, 135, 80, 80, -192, -192, 134, 105, 226,
+ -9, -6, -192, 139, -192, -192, 122, 226, -192, 137,
+ -192, 140, -192, -192, 140, -192, 530, -192, 362, 362,
+ -192, -192, 362, -192, 362, 140, 140, -192, 530, 487,
+ -192, 117, 126, 362, 148, 150, -192, 153, 138, -192,
+ -192, -192, -192, 155, 146, 158, 159, -10, -192, 487,
+ -192, 427, 149, -192, -192, -192, 362, -192, -192, -192,
+ -192, -192
};
/* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] =
{
- -188, -188, -27, 67, 7, -164, 0, -188, -188, -188,
- -41, -185, -61, -81, -188, -188, -188, -187, -7, 51,
- -158, 2, 23, -188, -188, -188, 112, -188, -188, -188,
- 12, -24, -188, 124
+ -192, -192, -29, 104, 25, -173, 0, -192, -192, -192,
+ -3, -191, -33, -81, -192, -192, -192, -163, -7, 69,
+ -166, 2, 33, -192, -192, -192, 133, -192, -192, -192,
+ 23, 8, -192, 152
};
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
@@ -794,168 +802,172 @@ static const yytype_int16 yypgoto[] =
#define YYTABLE_NINF -60
static const yytype_int16 yytable[] =
{
- 33, 49, 83, 131, 81, 133, 47, 31, -10, 120,
- 186, 123, -51, -51, 208, 185, 82, 205, 65, 183,
- 224, 43, 188, 39, 74, 226, 76, 77, 78, 79,
- 80, 66, 67, 121, 224, 124, 112, 226, 209, 88,
- 206, 184, 214, 215, 113, 152, 218, 104, 220, 153,
- 105, 105, 55, 114, 57, 50, 68, 69, 62, 229,
- 115, 235, -51, 70, 63, 64, 75, 71, 72, 73,
- 84, 122, 85, 108, 48, 109, 82, 110, 119, 111,
- -10, 253, 125, 33, 135, 252, 88, 132, 134, 153,
- 31, 137, 138, 139, 140, 141, 142, 143, 144, 145,
- 146, 147, 148, 149, 150, 151, 39, 154, 173, 155,
- 158, 156, 157, 114, 170, 159, 172, 177, 194, 167,
- 202, 198, 160, 161, 82, 164, 165, 166, 174, 168,
- 169, 228, 199, 213, 219, 208, 236, 250, 175, 216,
- 238, 240, 241, 234, 242, 243, 248, 249, 251, 255,
- 130, 189, 89, 90, 190, 176, 210, 91, 92, 93,
- 232, 94, 95, 96, 179, 180, 201, 136, 97, 98,
- 99, 100, 116, 107, 0, 129, 101, 102, 103, 181,
- 0, 0, 0, 0, 0, 0, 195, 0, 0, 207,
- 0, 0, -6, 1, 0, 0, 203, 0, 0, 0,
- 0, 0, 225, 2, 3, 4, 5, 0, 6, 7,
- 0, 8, 0, 0, 88, 0, 9, 0, 10, 11,
- 12, 0, 0, 13, 14, 15, 88, 0, 0, 245,
- 16, 17, 18, 193, 0, 19, 196, 197, 0, 20,
- 21, 22, 23, 0, 0, 0, 204, 254, 0, 0,
- 0, 24, 0, 0, 217, 25, 0, 0, 0, 26,
- 27, 227, 0, 0, -6, 28, 0, 0, 0, 230,
- 0, 231, 233, 0, 0, 0, 0, 0, 0, 0,
- 239, 0, 0, 0, 0, 0, 244, 0, 246, 0,
- 0, 2, 3, 4, 5, 0, 6, 7, 0, 8,
- 0, 0, 0, 256, 9, 257, 10, 11, 12, 0,
- 0, 13, 14, 15, 0, 0, 0, 0, 16, 17,
- 18, 0, 0, 19, 0, 0, 0, 20, 21, 22,
- 23, 0, 0, 0, 0, 89, 90, 0, 0, 24,
- 91, 92, 93, 25, 94, 95, 96, 26, 27, 2,
- 3, 4, 5, 28, 6, 7, 0, 44, 0, 101,
- 102, 103, 9, 0, 10, 11, 12, 0, 0, 0,
- 14, 15, 0, 0, 0, 0, 16, 17, 18, 0,
- 0, 19, 0, 0, 0, 0, 0, 22, 23, 0,
- 0, 0, 0, 0, 0, 0, 0, 24, 0, 0,
- 0, 25, 0, 0, 0, 26, 27, 0, 0, 0,
- 82, 28, 2, 3, 4, 5, 0, 6, 7, 0,
- 44, 0, 0, 0, 0, 9, 0, 10, 11, 12,
- 0, 0, 0, 14, 15, 0, 0, 0, 0, 16,
- 17, 18, 0, 0, 19, 0, 0, 0, 0, 0,
- 22, 23, 0, 0, 0, 0, 0, 0, 0, 0,
- 24, 0, 0, 0, 25, 0, 0, 0, 26, 27,
- 2, 3, 4, 5, 28, 6, 7, 0, 44, 0,
- 0, 0, 0, 9, 0, 10, 11, 0, 0, 0,
- 0, 14, 15, 0, 0, 0, 0, 16, 0, 18,
- 0, 0, 0, 0, 0, 0, 0, 0, 22, 23,
- 0, 2, 3, 4, 5, 0, 6, 7, 24, 44,
- 0, 0, 25, 0, 0, 0, 26, 27, 2, 3,
- 4, 5, 28, 6, 7, 0, 44, 0, 45, 0,
- 18, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 45, 0, 18, 0, 24,
- 118, 0, 0, 25, 0, 0, 0, 26, 27, 0,
- 0, 0, 0, 28, 0, 0, 24, 0, 0, 0,
- 25, 0, 89, 90, 26, 27, 0, 91, 92, 93,
- 86, 94, 95, 96, 0, 162, 0, 0, 97, 98,
- 99, 100, 0, 0, 89, 90, 101, 102, 103, 91,
- 92, 93, 0, 94, 95, 96, 0, 0, 0, 163,
- 97, 98, 99, 100, 0, 0, 89, 90, 101, 102,
- 103, 91, 92, 93, 0, 94, 95, 96, 0, 127,
- 128, 0, 97, 98, 99, 100, 0, 0, 89, 90,
- 101, 102, 103, 91, 92, 93, 0, 94, 95, 96,
- 0, 0, 0, 0, 97, 98, 99, 100, 0, 0,
- 0, 129, 101, 102, 103, 89, 90, 0, 0, 0,
- 91, 92, 93, 0, 94, 95, 96, 0, 0, 0,
- 136, 97, 98, 99, 100, 0, 0, 89, 90, 101,
- 102, 103, 91, 92, 93, 0, 94, 95, 96, 0,
- 0, 0, 0, 97, 98, 99, 100, 0, 0, -59,
- -59, 101, 102, 103, -59, -59, -59, 0, -59, -59,
- -59, 0, 0, 0, 0, 0, 0, -59, -59, 0,
- 0, 48, 0, -59, -59, -59, 89, 90, 0, 0,
- 0, 91, 92, 93, 0, 94, 95, 96, 0, 0,
- 52, 0, 0, 0, 99, 100, 0, 0, 53, 0,
- 101, 102, 103, 54, 0, 0, 0, 55, 56, 57,
- 58, 0, 0, 0, 0, 59
+ 35, 51, 87, 85, -10, 190, 49, 135, 124, 137,
+ 127, 189, -51, -51, 209, 156, 212, 45, 67, 157,
+ 77, 187, 65, 230, 76, 33, 78, 79, 80, 81,
+ 82, 83, 84, 41, 125, 230, 128, 210, 218, 219,
+ 213, 92, 222, 188, 224, 52, 116, 64, 228, 108,
+ 66, 86, 109, 109, 117, 233, 239, 192, 68, 69,
+ 93, 94, 228, 118, -51, 95, 96, 97, 73, 98,
+ 99, 100, 57, 126, 59, 74, 257, 86, -10, 75,
+ 119, 256, 70, 71, 105, 106, 107, 35, 88, 72,
+ 92, 136, 138, 50, 113, 141, 142, 143, 144, 145,
+ 146, 147, 148, 149, 150, 151, 152, 153, 154, 155,
+ 177, 89, 33, 114, 162, 112, 2, 3, 4, 5,
+ 41, 6, 7, 171, 46, 115, 164, 165, 123, 168,
+ 169, 170, 178, 172, 173, 232, 129, 157, 139, 158,
+ 159, 160, 179, 47, 161, 18, 118, 238, 163, 174,
+ 176, 181, 86, 193, 202, 198, 194, 206, 217, 180,
+ 203, 220, 212, 240, 54, 223, 26, 242, 183, 184,
+ 27, 244, 55, 245, 28, 29, 246, 56, 252, 247,
+ 30, 57, 58, 59, 60, 253, 254, 255, 259, 61,
+ 199, 134, 236, 211, 185, 120, -6, 1, 214, 0,
+ 207, 0, 205, 111, 0, 0, 229, 2, 3, 4,
+ 5, 0, 6, 7, 0, 8, 0, 0, 92, 0,
+ 9, 0, 10, 11, 12, 0, 0, 13, 14, 15,
+ 92, 0, 0, 249, 16, 17, 18, 0, 0, 19,
+ 0, 0, 0, 20, 21, 22, 23, 24, 25, 0,
+ 0, 258, 0, 0, 0, 197, 0, 26, 200, 201,
+ 0, 27, 0, 0, 0, 28, 29, 0, 208, 0,
+ -6, 30, 0, 0, 0, 0, 221, 0, 0, 93,
+ 94, 0, 0, 231, 95, 96, 97, 0, 98, 99,
+ 100, 234, 0, 235, 237, 101, 102, 103, 104, 0,
+ 0, 0, 243, 105, 106, 107, 0, 0, 248, 0,
+ 250, 0, 0, 2, 3, 4, 5, 0, 6, 7,
+ 0, 8, 0, 0, 0, 260, 9, 261, 10, 11,
+ 12, 0, 0, 13, 14, 15, 0, 0, 0, 0,
+ 16, 17, 18, 0, 0, 19, 0, 0, 0, 20,
+ 21, 22, 23, 24, 25, 0, 0, 0, 0, 0,
+ 0, 0, 0, 26, 0, 0, 0, 27, 0, 0,
+ 0, 28, 29, 2, 3, 4, 5, 30, 6, 7,
+ 0, 46, 0, 0, 0, 0, 9, 0, 10, 11,
+ 12, 0, 0, 0, 14, 15, 0, 0, 0, 0,
+ 16, 17, 18, 0, 0, 19, 0, 0, 0, 0,
+ 0, 22, 23, 24, 25, 0, 0, 0, 0, 0,
+ 0, 0, 0, 26, 0, 0, 0, 27, 0, 0,
+ 0, 28, 29, 0, 0, 0, 86, 30, 2, 3,
+ 4, 5, 0, 6, 7, 0, 46, 0, 0, 0,
+ 0, 9, 0, 10, 11, 12, 0, 0, 0, 14,
+ 15, 0, 0, 0, 0, 16, 17, 18, 0, 0,
+ 19, 0, 0, 0, 0, 0, 22, 23, 24, 25,
+ 0, 0, 0, 0, 0, 0, 0, 0, 26, 0,
+ 0, 0, 27, 0, 0, 0, 28, 29, 2, 3,
+ 4, 5, 30, 6, 7, 0, 46, 0, 0, 0,
+ 0, 9, 0, 10, 11, 0, 0, 0, 0, 14,
+ 15, 0, 0, 0, 0, 16, 0, 18, 0, 0,
+ 0, 0, 0, 0, 0, 0, 22, 23, 24, 25,
+ 0, 2, 3, 4, 5, 0, 6, 7, 26, 46,
+ 0, 0, 27, 0, 0, 0, 28, 29, 0, 0,
+ 0, 0, 30, 0, 0, 0, 0, 0, 47, 0,
+ 18, 0, 0, 122, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 26, 0, 0, 0, 27, 0, 93, 94, 28,
+ 29, 0, 95, 96, 97, 90, 98, 99, 100, 0,
+ 0, 0, 0, 101, 102, 103, 104, 166, 0, 0,
+ 0, 105, 106, 107, 0, 0, 0, 0, 93, 94,
+ 0, 0, 0, 95, 96, 97, 0, 98, 99, 100,
+ 0, 0, 0, 167, 101, 102, 103, 104, 0, 0,
+ 93, 94, 105, 106, 107, 95, 96, 97, 0, 98,
+ 99, 100, 0, 131, 132, 0, 101, 102, 103, 104,
+ 0, 0, 93, 94, 105, 106, 107, 95, 96, 97,
+ 0, 98, 99, 100, 0, 0, 0, 140, 101, 102,
+ 103, 104, 0, 0, 0, 133, 105, 106, 107, 93,
+ 94, 0, 0, 0, 95, 96, 97, 0, 98, 99,
+ 100, 0, 0, 0, 0, 101, 102, 103, 104, 0,
+ 0, 0, 133, 105, 106, 107, 93, 94, 0, 0,
+ 0, 95, 96, 97, 0, 98, 99, 100, 0, 0,
+ 0, 140, 101, 102, 103, 104, 0, 0, -59, -59,
+ 105, 106, 107, -59, -59, -59, 0, -59, -59, -59,
+ 0, 0, 0, 0, 0, 0, -59, -59, 0, 0,
+ 50, 0, -59, -59, -59, 93, 94, 0, 0, 0,
+ 95, 96, 97, 0, 98, 99, 100, 0, 0, 0,
+ 0, 0, 0, 103, 104, 0, 0, 0, 0, 105,
+ 106, 107
};
static const yytype_int16 yycheck[] =
{
- 0, 8, 29, 84, 0, 86, 4, 0, 0, 42,
- 174, 42, 22, 23, 22, 173, 72, 23, 16, 20,
- 207, 72, 78, 0, 22, 210, 24, 25, 26, 27,
- 28, 44, 45, 66, 221, 66, 17, 222, 46, 37,
- 46, 42, 200, 201, 25, 74, 204, 45, 206, 78,
- 48, 49, 34, 34, 36, 19, 12, 13, 19, 217,
- 42, 225, 72, 19, 17, 19, 11, 19, 19, 19,
- 73, 69, 66, 78, 73, 17, 72, 17, 19, 34,
- 72, 245, 41, 83, 41, 243, 84, 85, 86, 78,
- 83, 89, 90, 91, 92, 93, 94, 95, 96, 97,
- 98, 99, 100, 101, 102, 103, 83, 19, 135, 17,
- 117, 17, 17, 34, 74, 19, 74, 19, 42, 126,
- 23, 19, 120, 121, 72, 123, 124, 125, 135, 127,
- 128, 212, 78, 19, 28, 22, 46, 28, 136, 39,
- 41, 23, 23, 224, 23, 41, 23, 39, 28, 39,
- 83, 178, 51, 52, 181, 153, 197, 56, 57, 58,
- 221, 60, 61, 62, 162, 163, 190, 66, 67, 68,
- 69, 70, 60, 49, -1, 74, 75, 76, 77, 167,
- -1, -1, -1, -1, -1, -1, 184, -1, -1, 196,
- -1, -1, 0, 1, -1, -1, 194, -1, -1, -1,
- -1, -1, 209, 11, 12, 13, 14, -1, 16, 17,
- -1, 19, -1, -1, 212, -1, 24, -1, 26, 27,
- 28, -1, -1, 31, 32, 33, 224, -1, -1, 236,
- 38, 39, 40, 182, -1, 43, 185, 186, -1, 47,
- 48, 49, 50, -1, -1, -1, 195, 247, -1, -1,
- -1, 59, -1, -1, 203, 63, -1, -1, -1, 67,
- 68, 210, -1, -1, 72, 73, -1, -1, -1, 218,
- -1, 220, 221, -1, -1, -1, -1, -1, -1, -1,
- 229, -1, -1, -1, -1, -1, 235, -1, 237, -1,
- -1, 11, 12, 13, 14, -1, 16, 17, -1, 19,
- -1, -1, -1, 252, 24, 254, 26, 27, 28, -1,
- -1, 31, 32, 33, -1, -1, -1, -1, 38, 39,
- 40, -1, -1, 43, -1, -1, -1, 47, 48, 49,
- 50, -1, -1, -1, -1, 51, 52, -1, -1, 59,
- 56, 57, 58, 63, 60, 61, 62, 67, 68, 11,
- 12, 13, 14, 73, 16, 17, -1, 19, -1, 75,
- 76, 77, 24, -1, 26, 27, 28, -1, -1, -1,
- 32, 33, -1, -1, -1, -1, 38, 39, 40, -1,
- -1, 43, -1, -1, -1, -1, -1, 49, 50, -1,
- -1, -1, -1, -1, -1, -1, -1, 59, -1, -1,
- -1, 63, -1, -1, -1, 67, 68, -1, -1, -1,
- 72, 73, 11, 12, 13, 14, -1, 16, 17, -1,
- 19, -1, -1, -1, -1, 24, -1, 26, 27, 28,
- -1, -1, -1, 32, 33, -1, -1, -1, -1, 38,
- 39, 40, -1, -1, 43, -1, -1, -1, -1, -1,
- 49, 50, -1, -1, -1, -1, -1, -1, -1, -1,
- 59, -1, -1, -1, 63, -1, -1, -1, 67, 68,
- 11, 12, 13, 14, 73, 16, 17, -1, 19, -1,
- -1, -1, -1, 24, -1, 26, 27, -1, -1, -1,
- -1, 32, 33, -1, -1, -1, -1, 38, -1, 40,
- -1, -1, -1, -1, -1, -1, -1, -1, 49, 50,
- -1, 11, 12, 13, 14, -1, 16, 17, 59, 19,
- -1, -1, 63, -1, -1, -1, 67, 68, 11, 12,
- 13, 14, 73, 16, 17, -1, 19, -1, 38, -1,
- 40, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, 38, -1, 40, -1, 59,
- 29, -1, -1, 63, -1, -1, -1, 67, 68, -1,
- -1, -1, -1, 73, -1, -1, 59, -1, -1, -1,
- 63, -1, 51, 52, 67, 68, -1, 56, 57, 58,
- 73, 60, 61, 62, -1, 42, -1, -1, 67, 68,
- 69, 70, -1, -1, 51, 52, 75, 76, 77, 56,
- 57, 58, -1, 60, 61, 62, -1, -1, -1, 66,
- 67, 68, 69, 70, -1, -1, 51, 52, 75, 76,
- 77, 56, 57, 58, -1, 60, 61, 62, -1, 64,
- 65, -1, 67, 68, 69, 70, -1, -1, 51, 52,
- 75, 76, 77, 56, 57, 58, -1, 60, 61, 62,
- -1, -1, -1, -1, 67, 68, 69, 70, -1, -1,
- -1, 74, 75, 76, 77, 51, 52, -1, -1, -1,
- 56, 57, 58, -1, 60, 61, 62, -1, -1, -1,
- 66, 67, 68, 69, 70, -1, -1, 51, 52, 75,
- 76, 77, 56, 57, 58, -1, 60, 61, 62, -1,
- -1, -1, -1, 67, 68, 69, 70, -1, -1, 51,
- 52, 75, 76, 77, 56, 57, 58, -1, 60, 61,
- 62, -1, -1, -1, -1, -1, -1, 69, 70, -1,
- -1, 73, -1, 75, 76, 77, 51, 52, -1, -1,
- -1, 56, 57, 58, -1, 60, 61, 62, -1, -1,
- 17, -1, -1, -1, 69, 70, -1, -1, 25, -1,
- 75, 76, 77, 30, -1, -1, -1, 34, 35, 36,
- 37, -1, -1, -1, -1, 42
+ 0, 8, 31, 0, 0, 178, 4, 88, 42, 90,
+ 42, 177, 22, 23, 23, 76, 22, 74, 16, 80,
+ 11, 20, 17, 214, 22, 0, 24, 25, 26, 27,
+ 28, 29, 30, 0, 68, 226, 68, 46, 204, 205,
+ 46, 39, 208, 42, 210, 19, 17, 19, 211, 47,
+ 19, 74, 50, 51, 25, 221, 229, 80, 44, 45,
+ 53, 54, 225, 34, 74, 58, 59, 60, 19, 62,
+ 63, 64, 34, 71, 36, 19, 249, 74, 74, 19,
+ 42, 247, 12, 13, 77, 78, 79, 87, 75, 19,
+ 88, 89, 90, 75, 17, 93, 94, 95, 96, 97,
+ 98, 99, 100, 101, 102, 103, 104, 105, 106, 107,
+ 139, 68, 87, 17, 121, 80, 11, 12, 13, 14,
+ 87, 16, 17, 130, 19, 34, 124, 125, 19, 127,
+ 128, 129, 139, 131, 132, 216, 41, 80, 41, 19,
+ 17, 17, 140, 38, 17, 40, 34, 228, 19, 76,
+ 76, 19, 74, 182, 19, 42, 185, 23, 19, 157,
+ 80, 39, 22, 46, 17, 28, 61, 41, 166, 167,
+ 65, 23, 25, 23, 69, 70, 23, 30, 23, 41,
+ 75, 34, 35, 36, 37, 39, 28, 28, 39, 42,
+ 188, 87, 225, 200, 171, 62, 0, 1, 201, -1,
+ 198, -1, 194, 51, -1, -1, 213, 11, 12, 13,
+ 14, -1, 16, 17, -1, 19, -1, -1, 216, -1,
+ 24, -1, 26, 27, 28, -1, -1, 31, 32, 33,
+ 228, -1, -1, 240, 38, 39, 40, -1, -1, 43,
+ -1, -1, -1, 47, 48, 49, 50, 51, 52, -1,
+ -1, 251, -1, -1, -1, 186, -1, 61, 189, 190,
+ -1, 65, -1, -1, -1, 69, 70, -1, 199, -1,
+ 74, 75, -1, -1, -1, -1, 207, -1, -1, 53,
+ 54, -1, -1, 214, 58, 59, 60, -1, 62, 63,
+ 64, 222, -1, 224, 225, 69, 70, 71, 72, -1,
+ -1, -1, 233, 77, 78, 79, -1, -1, 239, -1,
+ 241, -1, -1, 11, 12, 13, 14, -1, 16, 17,
+ -1, 19, -1, -1, -1, 256, 24, 258, 26, 27,
+ 28, -1, -1, 31, 32, 33, -1, -1, -1, -1,
+ 38, 39, 40, -1, -1, 43, -1, -1, -1, 47,
+ 48, 49, 50, 51, 52, -1, -1, -1, -1, -1,
+ -1, -1, -1, 61, -1, -1, -1, 65, -1, -1,
+ -1, 69, 70, 11, 12, 13, 14, 75, 16, 17,
+ -1, 19, -1, -1, -1, -1, 24, -1, 26, 27,
+ 28, -1, -1, -1, 32, 33, -1, -1, -1, -1,
+ 38, 39, 40, -1, -1, 43, -1, -1, -1, -1,
+ -1, 49, 50, 51, 52, -1, -1, -1, -1, -1,
+ -1, -1, -1, 61, -1, -1, -1, 65, -1, -1,
+ -1, 69, 70, -1, -1, -1, 74, 75, 11, 12,
+ 13, 14, -1, 16, 17, -1, 19, -1, -1, -1,
+ -1, 24, -1, 26, 27, 28, -1, -1, -1, 32,
+ 33, -1, -1, -1, -1, 38, 39, 40, -1, -1,
+ 43, -1, -1, -1, -1, -1, 49, 50, 51, 52,
+ -1, -1, -1, -1, -1, -1, -1, -1, 61, -1,
+ -1, -1, 65, -1, -1, -1, 69, 70, 11, 12,
+ 13, 14, 75, 16, 17, -1, 19, -1, -1, -1,
+ -1, 24, -1, 26, 27, -1, -1, -1, -1, 32,
+ 33, -1, -1, -1, -1, 38, -1, 40, -1, -1,
+ -1, -1, -1, -1, -1, -1, 49, 50, 51, 52,
+ -1, 11, 12, 13, 14, -1, 16, 17, 61, 19,
+ -1, -1, 65, -1, -1, -1, 69, 70, -1, -1,
+ -1, -1, 75, -1, -1, -1, -1, -1, 38, -1,
+ 40, -1, -1, 29, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 61, -1, -1, -1, 65, -1, 53, 54, 69,
+ 70, -1, 58, 59, 60, 75, 62, 63, 64, -1,
+ -1, -1, -1, 69, 70, 71, 72, 42, -1, -1,
+ -1, 77, 78, 79, -1, -1, -1, -1, 53, 54,
+ -1, -1, -1, 58, 59, 60, -1, 62, 63, 64,
+ -1, -1, -1, 68, 69, 70, 71, 72, -1, -1,
+ 53, 54, 77, 78, 79, 58, 59, 60, -1, 62,
+ 63, 64, -1, 66, 67, -1, 69, 70, 71, 72,
+ -1, -1, 53, 54, 77, 78, 79, 58, 59, 60,
+ -1, 62, 63, 64, -1, -1, -1, 68, 69, 70,
+ 71, 72, -1, -1, -1, 76, 77, 78, 79, 53,
+ 54, -1, -1, -1, 58, 59, 60, -1, 62, 63,
+ 64, -1, -1, -1, -1, 69, 70, 71, 72, -1,
+ -1, -1, 76, 77, 78, 79, 53, 54, -1, -1,
+ -1, 58, 59, 60, -1, 62, 63, 64, -1, -1,
+ -1, 68, 69, 70, 71, 72, -1, -1, 53, 54,
+ 77, 78, 79, 58, 59, 60, -1, 62, 63, 64,
+ -1, -1, -1, -1, -1, -1, 71, 72, -1, -1,
+ 75, -1, 77, 78, 79, 53, 54, -1, -1, -1,
+ 58, 59, 60, -1, 62, 63, 64, -1, -1, -1,
+ -1, -1, -1, 71, 72, -1, -1, -1, -1, 77,
+ 78, 79
};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
@@ -964,30 +976,31 @@ static const yytype_uint8 yystos[] =
{
0, 1, 11, 12, 13, 14, 16, 17, 19, 24,
26, 27, 28, 31, 32, 33, 38, 39, 40, 43,
- 47, 48, 49, 50, 59, 63, 67, 68, 73, 80,
- 82, 83, 84, 85, 86, 93, 94, 95, 100, 101,
- 103, 106, 111, 72, 19, 38, 83, 100, 73, 97,
- 19, 102, 17, 25, 30, 34, 35, 36, 37, 42,
- 104, 105, 19, 17, 19, 100, 44, 45, 12, 13,
- 19, 19, 19, 19, 100, 11, 100, 100, 100, 100,
- 100, 0, 72, 81, 73, 66, 73, 92, 100, 51,
- 52, 56, 57, 58, 60, 61, 62, 67, 68, 69,
- 70, 75, 76, 77, 100, 100, 112, 112, 78, 17,
- 17, 34, 17, 25, 34, 42, 105, 107, 29, 19,
- 42, 66, 100, 42, 66, 41, 108, 64, 65, 74,
- 82, 92, 100, 92, 100, 41, 66, 100, 100, 100,
- 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
- 100, 100, 74, 78, 19, 17, 17, 17, 97, 19,
- 100, 100, 42, 66, 100, 100, 100, 97, 100, 100,
- 74, 98, 74, 81, 97, 100, 100, 19, 109, 100,
- 100, 109, 99, 20, 42, 99, 84, 101, 78, 81,
- 81, 81, 85, 98, 42, 100, 98, 98, 19, 78,
- 110, 110, 23, 100, 98, 23, 46, 97, 22, 46,
- 89, 90, 96, 19, 99, 99, 39, 98, 99, 28,
- 99, 88, 89, 91, 96, 97, 90, 98, 92, 99,
- 98, 98, 91, 98, 92, 84, 46, 87, 41, 98,
- 23, 23, 23, 41, 98, 97, 98, 97, 23, 39,
- 28, 28, 99, 84, 85, 39, 98, 98
+ 47, 48, 49, 50, 51, 52, 61, 65, 69, 70,
+ 75, 82, 84, 85, 86, 87, 88, 95, 96, 97,
+ 102, 103, 105, 108, 113, 74, 19, 38, 85, 102,
+ 75, 99, 19, 104, 17, 25, 30, 34, 35, 36,
+ 37, 42, 106, 107, 19, 17, 19, 102, 44, 45,
+ 12, 13, 19, 19, 19, 19, 102, 11, 102, 102,
+ 102, 102, 102, 102, 102, 0, 74, 83, 75, 68,
+ 75, 94, 102, 53, 54, 58, 59, 60, 62, 63,
+ 64, 69, 70, 71, 72, 77, 78, 79, 102, 102,
+ 114, 114, 80, 17, 17, 34, 17, 25, 34, 42,
+ 107, 109, 29, 19, 42, 68, 102, 42, 68, 41,
+ 110, 66, 67, 76, 84, 94, 102, 94, 102, 41,
+ 68, 102, 102, 102, 102, 102, 102, 102, 102, 102,
+ 102, 102, 102, 102, 102, 102, 76, 80, 19, 17,
+ 17, 17, 99, 19, 102, 102, 42, 68, 102, 102,
+ 102, 99, 102, 102, 76, 100, 76, 83, 99, 102,
+ 102, 19, 111, 102, 102, 111, 101, 20, 42, 101,
+ 86, 103, 80, 83, 83, 83, 87, 100, 42, 102,
+ 100, 100, 19, 80, 112, 112, 23, 102, 100, 23,
+ 46, 99, 22, 46, 91, 92, 98, 19, 101, 101,
+ 39, 100, 101, 28, 101, 90, 91, 93, 98, 99,
+ 92, 100, 94, 101, 100, 100, 93, 100, 94, 86,
+ 46, 89, 41, 100, 23, 23, 23, 41, 100, 99,
+ 100, 99, 23, 39, 28, 28, 101, 86, 87, 39,
+ 100, 100
};
#define yyerrok (yyerrstatus = 0)
@@ -2337,32 +2350,62 @@ yyreduce:
break;
case 93:
-#line 426 "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); ;}
+#line 424 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_closeResFile); ;}
break;
case 94:
-#line 427 "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); ;}
+#line 425 "engines/director/lingo/lingo-gr.y"
+ {
+ g_lingo->code1(g_lingo->c_constpush);
+ inst i = 0;
+ WRITE_UINT32(&i, 0);
+ g_lingo->code1(i);
+ g_lingo->code1(g_lingo->c_closeResFile); ;}
break;
case 95:
-#line 438 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gotoloop); ;}
+#line 431 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_closeXlib); ;}
break;
case 96:
-#line 439 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gotonext); ;}
+#line 432 "engines/director/lingo/lingo-gr.y"
+ {
+ g_lingo->code1(g_lingo->c_constpush);
+ inst i = 0;
+ WRITE_UINT32(&i, 0);
+ g_lingo->code1(i);
+ g_lingo->code1(g_lingo->c_closeXlib); ;}
break;
case 97:
#line 440 "engines/director/lingo/lingo-gr.y"
- { g_lingo->code1(g_lingo->c_gotoprevious); ;}
+ { g_lingo->code1(g_lingo->c_global); g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); delete (yyvsp[(1) - (1)].s); ;}
break;
case 98:
#line 441 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_global); g_lingo->codeString((yyvsp[(3) - (3)].s)->c_str()); delete (yyvsp[(3) - (3)].s); ;}
+ break;
+
+ case 99:
+#line 452 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_gotoloop); ;}
+ break;
+
+ case 100:
+#line 453 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_gotonext); ;}
+ break;
+
+ case 101:
+#line 454 "engines/director/lingo/lingo-gr.y"
+ { g_lingo->code1(g_lingo->c_gotoprevious); ;}
+ break;
+
+ case 102:
+#line 455 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_goto);
g_lingo->codeString((yyvsp[(2) - (2)].s)->c_str());
@@ -2370,8 +2413,8 @@ yyreduce:
delete (yyvsp[(2) - (2)].s); ;}
break;
- case 99:
-#line 446 "engines/director/lingo/lingo-gr.y"
+ case 103:
+#line 460 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_goto);
g_lingo->codeString((yyvsp[(2) - (3)].s)->c_str());
@@ -2380,8 +2423,8 @@ yyreduce:
delete (yyvsp[(3) - (3)].s); ;}
break;
- case 100:
-#line 452 "engines/director/lingo/lingo-gr.y"
+ case 104:
+#line 466 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_goto);
g_lingo->codeString("");
@@ -2389,48 +2432,48 @@ yyreduce:
delete (yyvsp[(2) - (2)].s); ;}
break;
- case 101:
-#line 459 "engines/director/lingo/lingo-gr.y"
+ case 105:
+#line 473 "engines/director/lingo/lingo-gr.y"
{ (yyval.s) = (yyvsp[(3) - (3)].s); ;}
break;
- case 102:
-#line 460 "engines/director/lingo/lingo-gr.y"
+ case 106:
+#line 474 "engines/director/lingo/lingo-gr.y"
{ (yyval.s) = (yyvsp[(2) - (2)].s); ;}
break;
- case 103:
-#line 461 "engines/director/lingo/lingo-gr.y"
+ case 107:
+#line 475 "engines/director/lingo/lingo-gr.y"
{ (yyval.s) = (yyvsp[(2) - (2)].s); ;}
break;
- case 104:
-#line 462 "engines/director/lingo/lingo-gr.y"
+ case 108:
+#line 476 "engines/director/lingo/lingo-gr.y"
{ (yyval.s) = (yyvsp[(1) - (1)].s); ;}
break;
- case 105:
-#line 465 "engines/director/lingo/lingo-gr.y"
+ case 109:
+#line 479 "engines/director/lingo/lingo-gr.y"
{ (yyval.s) = (yyvsp[(3) - (3)].s); ;}
break;
- case 106:
-#line 466 "engines/director/lingo/lingo-gr.y"
+ case 110:
+#line 480 "engines/director/lingo/lingo-gr.y"
{ (yyval.s) = (yyvsp[(2) - (2)].s); ;}
break;
- case 107:
-#line 467 "engines/director/lingo/lingo-gr.y"
+ case 111:
+#line 481 "engines/director/lingo/lingo-gr.y"
{ (yyval.s) = (yyvsp[(3) - (3)].s); ;}
break;
- case 108:
-#line 495 "engines/director/lingo/lingo-gr.y"
+ case 112:
+#line 509 "engines/director/lingo/lingo-gr.y"
{ g_lingo->_indef = true; g_lingo->_currentFactory.clear(); ;}
break;
- case 109:
-#line 496 "engines/director/lingo/lingo-gr.y"
+ case 113:
+#line 510 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code2(g_lingo->c_constpush, (inst)0); // Push fake value on stack
g_lingo->code1(g_lingo->c_procret);
@@ -2438,20 +2481,20 @@ yyreduce:
g_lingo->_indef = false; ;}
break;
- case 110:
-#line 501 "engines/director/lingo/lingo-gr.y"
+ case 114:
+#line 515 "engines/director/lingo/lingo-gr.y"
{
g_lingo->codeFactory(*(yyvsp[(2) - (2)].s));
;}
break;
- case 111:
-#line 504 "engines/director/lingo/lingo-gr.y"
+ case 115:
+#line 518 "engines/director/lingo/lingo-gr.y"
{ g_lingo->_indef = true; ;}
break;
- case 112:
-#line 505 "engines/director/lingo/lingo-gr.y"
+ case 116:
+#line 519 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code2(g_lingo->c_constpush, (inst)0); // Push fake value on stack
g_lingo->code1(g_lingo->c_procret);
@@ -2459,33 +2502,33 @@ yyreduce:
g_lingo->_indef = false; ;}
break;
- case 113:
-#line 510 "engines/director/lingo/lingo-gr.y"
+ case 117:
+#line 524 "engines/director/lingo/lingo-gr.y"
{ (yyval.narg) = 0; ;}
break;
- case 114:
-#line 511 "engines/director/lingo/lingo-gr.y"
+ case 118:
+#line 525 "engines/director/lingo/lingo-gr.y"
{ g_lingo->codeArg((yyvsp[(1) - (1)].s)); (yyval.narg) = 1; ;}
break;
- case 115:
-#line 512 "engines/director/lingo/lingo-gr.y"
+ case 119:
+#line 526 "engines/director/lingo/lingo-gr.y"
{ g_lingo->codeArg((yyvsp[(3) - (3)].s)); (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;}
break;
- case 116:
-#line 513 "engines/director/lingo/lingo-gr.y"
+ case 120:
+#line 527 "engines/director/lingo/lingo-gr.y"
{ g_lingo->codeArg((yyvsp[(4) - (4)].s)); (yyval.narg) = (yyvsp[(1) - (4)].narg) + 1; ;}
break;
- case 117:
-#line 515 "engines/director/lingo/lingo-gr.y"
+ case 121:
+#line 529 "engines/director/lingo/lingo-gr.y"
{ g_lingo->codeArgStore(); ;}
break;
- case 118:
-#line 519 "engines/director/lingo/lingo-gr.y"
+ case 122:
+#line 533 "engines/director/lingo/lingo-gr.y"
{
g_lingo->code1(g_lingo->c_call);
g_lingo->codeString((yyvsp[(1) - (3)].s)->c_str());
@@ -2494,24 +2537,24 @@ yyreduce:
g_lingo->code1(numpar); ;}
break;
- case 119:
-#line 527 "engines/director/lingo/lingo-gr.y"
+ case 123:
+#line 541 "engines/director/lingo/lingo-gr.y"
{ (yyval.narg) = 0; ;}
break;
- case 120:
-#line 528 "engines/director/lingo/lingo-gr.y"
+ case 124:
+#line 542 "engines/director/lingo/lingo-gr.y"
{ (yyval.narg) = 1; ;}
break;
- case 121:
-#line 529 "engines/director/lingo/lingo-gr.y"
+ case 125:
+#line 543 "engines/director/lingo/lingo-gr.y"
{ (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;}
break;
/* Line 1267 of yacc.c. */
-#line 2515 "engines/director/lingo/lingo-gr.cpp"
+#line 2558 "engines/director/lingo/lingo-gr.cpp"
default: break;
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
@@ -2725,6 +2768,6 @@ yyreturn:
}
-#line 532 "engines/director/lingo/lingo-gr.y"
+#line 546 "engines/director/lingo/lingo-gr.y"