diff options
Diffstat (limited to 'engines/director/lingo/lingo-gr.cpp')
-rw-r--r-- | engines/director/lingo/lingo-gr.cpp | 836 |
1 files changed, 432 insertions, 404 deletions
diff --git a/engines/director/lingo/lingo-gr.cpp b/engines/director/lingo/lingo-gr.cpp index e309dc118a..87b231193a 100644 --- a/engines/director/lingo/lingo-gr.cpp +++ b/engines/director/lingo/lingo-gr.cpp @@ -114,21 +114,22 @@ tNLELSE = 303, tFACTORY = 304, tMETHOD = 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 + tOPEN = 306, + tGE = 307, + tLE = 308, + tGT = 309, + tLT = 310, + tEQ = 311, + tNEQ = 312, + tAND = 313, + tOR = 314, + tNOT = 315, + tCONCAT = 316, + tCONTAINS = 317, + tSTARTS = 318, + tSPRITE = 319, + tINTERSECTS = 320, + tWITHIN = 321 }; #endif /* Tokens. */ @@ -180,21 +181,22 @@ #define tNLELSE 303 #define tFACTORY 304 #define tMETHOD 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 tOPEN 306 +#define tGE 307 +#define tLE 308 +#define tGT 309 +#define tLT 310 +#define tEQ 311 +#define tNEQ 312 +#define tAND 313 +#define tOR 314 +#define tNOT 315 +#define tCONCAT 316 +#define tCONTAINS 317 +#define tSTARTS 318 +#define tSPRITE 319 +#define tINTERSECTS 320 +#define tWITHIN 321 @@ -252,7 +254,7 @@ typedef union YYSTYPE Common::Array<double> *arr; } /* Line 193 of yacc.c. */ -#line 256 "engines/director/lingo/lingo-gr.cpp" +#line 258 "engines/director/lingo/lingo-gr.cpp" YYSTYPE; # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 @@ -265,7 +267,7 @@ typedef union YYSTYPE /* Line 216 of yacc.c. */ -#line 269 "engines/director/lingo/lingo-gr.cpp" +#line 271 "engines/director/lingo/lingo-gr.cpp" #ifdef short # undef short @@ -478,22 +480,22 @@ union yyalloc #endif /* YYFINAL -- State number of the termination state. */ -#define YYFINAL 81 +#define YYFINAL 83 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 742 +#define YYLAST 800 /* YYNTOKENS -- Number of terminals. */ -#define YYNTOKENS 79 +#define YYNTOKENS 80 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 34 /* YYNRULES -- Number of rules. */ -#define YYNRULES 121 +#define YYNRULES 123 /* 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 321 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) @@ -502,12 +504,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, + 73, 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, 72, 78, 2, + 74, 75, 70, 68, 79, 69, 2, 71, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 76, 66, 75, 2, 2, 2, 2, 2, 2, 2, + 77, 67, 76, 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 +535,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 }; #if YYDEBUG @@ -550,61 +552,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, 365, 368, 370, 374, 377, 380, + 383, 386, 390, 393, 397, 400, 403, 405, 409, 412, + 416, 417, 426, 429, 430, 439, 440, 442, 446, 451, + 452, 456, 457, 459 }; /* 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, 40, 100, 31, 19, -1, - 42, 19, 66, 100, -1, 42, 12, 66, 100, -1, - 42, 13, 100, 66, 100, -1, 42, 19, 44, 100, - -1, 42, 12, 44, 100, -1, 42, 13, 100, 44, - 100, -1, 100, -1, 101, -1, 84, -1, 86, -1, - 93, 73, 92, 74, 99, 98, 25, 41, -1, 94, - 66, 100, 98, 44, 100, 98, 99, 98, 25, 41, - -1, 94, 66, 100, 98, 22, 44, 100, 98, 99, - 98, 25, 41, -1, 45, 19, 43, 100, -1, 95, - 92, 43, 81, 99, 98, 25, 30, -1, 95, 92, - 43, 81, 99, 98, 48, 99, 98, 25, 30, -1, - 95, 92, 43, 81, 99, 98, 97, 88, 98, 25, - 30, -1, 95, 92, 43, 97, 84, 98, -1, 95, - 92, 43, 97, 84, 98, 48, 97, 84, 98, -1, - 95, 92, 43, 97, 84, 98, 89, 98, 87, 98, - -1, -1, 48, 97, 84, -1, 88, 91, -1, 91, - -1, 89, 90, -1, 90, -1, 96, 92, 43, 97, - 85, 98, -1, 89, -1, 96, 92, 43, 99, 98, - -1, 100, -1, 100, 66, 100, -1, 73, 92, 74, + 81, 0, -1, 81, 82, 83, -1, 83, -1, 1, + 73, -1, 73, -1, -1, 107, -1, 102, -1, 112, + -1, 84, -1, 86, -1, 40, 101, 31, 19, -1, + 42, 19, 67, 101, -1, 42, 12, 67, 101, -1, + 42, 13, 101, 67, 101, -1, 42, 19, 44, 101, + -1, 42, 12, 44, 101, -1, 42, 13, 101, 44, + 101, -1, 101, -1, 102, -1, 85, -1, 87, -1, + 94, 74, 93, 75, 100, 99, 25, 41, -1, 95, + 67, 101, 99, 44, 101, 99, 100, 99, 25, 41, + -1, 95, 67, 101, 99, 22, 44, 101, 99, 100, + 99, 25, 41, -1, 45, 19, 43, 101, -1, 96, + 93, 43, 82, 100, 99, 25, 30, -1, 96, 93, + 43, 82, 100, 99, 48, 100, 99, 25, 30, -1, + 96, 93, 43, 82, 100, 99, 98, 89, 99, 25, + 30, -1, 96, 93, 43, 98, 85, 99, -1, 96, + 93, 43, 98, 85, 99, 48, 98, 85, 99, -1, + 96, 93, 43, 98, 85, 99, 90, 99, 88, 99, + -1, -1, 48, 98, 85, -1, 89, 92, -1, 92, + -1, 90, 91, -1, 91, -1, 97, 93, 43, 98, + 86, 99, -1, 90, -1, 97, 93, 43, 100, 99, + -1, 101, -1, 101, 67, 101, -1, 74, 93, 75, -1, 41, 47, -1, 41, 46, 19, -1, 30, -1, - 24, -1, -1, -1, -1, 99, 81, -1, 99, 85, + 24, -1, -1, -1, -1, 100, 82, -1, 100, 86, -1, 11, -1, 14, -1, 20, -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, 34, 20, -1, 35, - 19, -1, 40, 100, -1, 103, -1, 26, -1, 28, - 102, -1, 18, 100, -1, 17, 100, -1, 17, -1, - 19, -1, 102, 78, 19, -1, 29, 32, -1, 29, - 37, -1, 29, 39, -1, 29, 104, -1, 29, 104, - 105, -1, 29, 105, -1, 44, 27, 20, -1, 27, - 20, -1, 44, 20, -1, 20, -1, 38, 36, 20, - -1, 36, 20, -1, 44, 36, 20, -1, -1, 33, - 19, 107, 97, 109, 81, 110, 99, -1, 49, 19, - -1, -1, 50, 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 + 74, 113, 75, -1, 19, -1, 12, -1, 13, 101, + -1, 84, -1, 101, 68, 101, -1, 101, 69, 101, + -1, 101, 70, 101, -1, 101, 71, 101, -1, 101, + 76, 101, -1, 101, 77, 101, -1, 101, 57, 101, + -1, 101, 52, 101, -1, 101, 53, 101, -1, 101, + 58, 101, -1, 101, 59, 101, -1, 60, 101, -1, + 101, 78, 101, -1, 101, 61, 101, -1, 101, 62, + 101, -1, 101, 63, 101, -1, 68, 101, -1, 69, + 101, -1, 74, 101, 75, -1, 64, 101, 65, 101, + -1, 64, 101, 66, 101, -1, 34, 20, -1, 35, + 19, -1, 40, 101, -1, 104, -1, 26, -1, 28, + 103, -1, 18, 101, -1, 17, 101, -1, 17, -1, + 51, 101, 46, 101, -1, 51, 101, -1, 19, -1, + 103, 79, 19, -1, 29, 32, -1, 29, 37, -1, + 29, 39, -1, 29, 105, -1, 29, 105, 106, -1, + 29, 106, -1, 44, 27, 20, -1, 27, 20, -1, + 44, 20, -1, 20, -1, 38, 36, 20, -1, 36, + 20, -1, 44, 36, 20, -1, -1, 33, 19, 108, + 98, 110, 82, 111, 100, -1, 49, 19, -1, -1, + 50, 19, 109, 98, 110, 82, 111, 100, -1, -1, + 19, -1, 110, 79, 19, -1, 110, 82, 79, 19, + -1, -1, 19, 98, 113, -1, -1, 101, -1, 113, + 79, 101, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ @@ -619,10 +622,10 @@ static const yytype_uint16 yyrline[] = 362, 369, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 399, 400, 401, 402, 403, 405, - 406, 409, 412, 417, 418, 429, 430, 431, 432, 437, - 443, 450, 451, 452, 453, 456, 457, 458, 486, 486, - 492, 495, 495, 501, 502, 503, 504, 506, 510, 518, - 519, 520 + 406, 409, 412, 415, 416, 419, 420, 431, 432, 433, + 434, 439, 445, 452, 453, 454, 455, 458, 459, 460, + 488, 488, 494, 497, 497, 503, 504, 505, 506, 508, + 512, 520, 521, 522 }; #endif @@ -638,8 +641,8 @@ static const char *const yytname[] = "tEND", "tEXIT", "tFRAME", "tGLOBAL", "tGO", "tIF", "tINTO", "tLOOP", "tMACRO", "tMCI", "tMCIWAIT", "tMOVIE", "tNEXT", "tOF", "tPREVIOUS", "tPUT", "tREPEAT", "tSET", "tTHEN", "tTO", "tWHEN", "tWITH", "tWHILE", - "tNLELSE", "tFACTORY", "tMETHOD", "tGE", "tLE", "tGT", "tLT", "tEQ", - "tNEQ", "tAND", "tOR", "tNOT", "tCONCAT", "tCONTAINS", "tSTARTS", + "tNLELSE", "tFACTORY", "tMETHOD", "tOPEN", "tGE", "tLE", "tGT", "tLT", + "tEQ", "tNEQ", "tAND", "tOR", "tNOT", "tCONCAT", "tCONTAINS", "tSTARTS", "tSPRITE", "tINTERSECTS", "tWITHIN", "'='", "'+'", "'-'", "'*'", "'/'", "'%'", "'\\n'", "'('", "')'", "'>'", "'<'", "'&'", "','", "$accept", "program", "nl", "programline", "asgn", "stmtoneliner", "stmt", "ifstmt", @@ -662,27 +665,27 @@ 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, 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, 80, 81, 81, 81, 82, 83, 83, 83, 83, + 83, 83, 84, 84, 84, 84, 84, 84, 84, 85, + 85, 86, 86, 86, 86, 86, 86, 87, 87, 87, + 87, 87, 87, 88, 88, 89, 89, 90, 90, 91, + 92, 92, 93, 93, 93, 94, 95, 96, 97, 98, + 99, 100, 100, 100, 101, 101, 101, 101, 101, 101, + 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, + 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, + 101, 101, 101, 101, 102, 102, 102, 102, 102, 102, + 102, 102, 102, 102, 102, 103, 103, 104, 104, 104, + 104, 104, 104, 105, 105, 105, 105, 106, 106, 106, + 108, 107, 107, 109, 107, 110, 110, 110, 110, 111, + 112, 113, 113, 113 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ @@ -697,10 +700,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, 4, 2, 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 @@ -711,38 +714,39 @@ static const yytype_uint8 yydefact[] = 0, 0, 54, 60, 0, 55, 57, 92, 0, 49, 56, 88, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 3, 62, 21, 11, 22, 0, 0, 0, 19, 8, - 87, 7, 9, 4, 59, 0, 62, 61, 91, 90, - 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, 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, 3, 62, 21, 11, 22, 0, 0, 0, 19, + 8, 87, 7, 9, 4, 59, 0, 62, 61, 91, + 90, 121, 121, 95, 89, 106, 0, 97, 0, 98, + 0, 99, 0, 100, 102, 110, 84, 85, 86, 0, + 45, 0, 0, 0, 0, 112, 113, 94, 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, 122, 0, 120, + 0, 104, 108, 0, 105, 0, 0, 0, 101, 49, + 0, 46, 0, 0, 0, 0, 0, 0, 49, 0, + 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, 96, 107, 103, + 109, 115, 12, 17, 14, 0, 0, 16, 13, 26, + 115, 93, 82, 83, 51, 0, 44, 51, 0, 43, + 123, 116, 0, 18, 15, 0, 50, 0, 0, 50, + 50, 20, 0, 119, 119, 52, 53, 0, 0, 50, + 49, 30, 117, 0, 51, 51, 0, 50, 51, 0, + 51, 0, 48, 49, 50, 38, 0, 118, 111, 114, + 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, 53, 40, 62, 63, 41, 117, 126, - 178, 200, 42, 106 + -1, 30, 195, 31, 47, 33, 196, 35, 241, 225, + 226, 215, 227, 89, 36, 37, 38, 216, 251, 175, + 186, 39, 191, 54, 41, 63, 64, 42, 119, 128, + 182, 204, 43, 108 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing @@ -750,41 +754,42 @@ static const yytype_int16 yydefgoto[] = #define YYPACT_NINF -180 static const yytype_int16 yypact[] = { - 203, -51, -180, -180, 428, -180, -180, 428, 428, 638, - -180, -180, 4, 219, -180, 15, 12, 35, 428, 13, - 36, 38, 46, 49, 428, 428, 428, 428, 428, 2, - -180, 3, -180, -180, -180, -32, 5, 460, 616, -180, - -180, -180, -180, -180, 8, 428, -180, 616, 616, 616, - 428, 428, -180, -5, -180, 50, -180, 56, -180, 41, - -180, -3, 9, -180, -180, -180, -180, 474, 60, -180, - -29, 428, -26, 39, -180, -180, 270, 518, 270, 270, - 567, -180, -180, 266, 460, 428, 460, 45, 594, 428, - 428, 428, 428, 428, 428, 428, 428, 428, 428, 428, - 428, 428, 428, 428, 474, 616, -12, 29, 65, -180, - -180, 88, -180, 91, 92, 77, -180, -180, 95, -180, - 428, 428, 496, 428, 428, 428, -180, 428, 428, -180, - -180, 42, 616, 43, 540, 47, 428, 616, 616, 616, - 616, 616, 616, 616, 616, 665, 665, 270, 270, 616, - 616, 616, -180, 428, -180, -180, -180, -180, 96, -180, - 616, 616, 428, 428, 616, 616, 616, 96, 616, 616, - -180, -2, -180, -180, 396, 616, 616, -180, -22, 616, - 616, -22, 324, 76, 428, 324, -180, -180, 104, 52, - 52, -180, -180, 106, 428, 616, -9, -13, -180, 113, - -180, -180, 93, 616, -180, 103, -180, 111, -180, -180, - 111, -180, 460, -180, 324, 324, -180, -180, 324, -180, - 324, 111, 111, -180, 460, 396, -180, 97, 98, 324, - 115, 119, -180, 121, 105, -180, -180, -180, -180, 122, - 108, 125, 127, -11, -180, 396, -180, 360, 110, -180, - -180, -180, 324, -180, -180, -180, -180, -180 + 208, -57, -180, -180, 479, -180, -180, 479, 479, 695, + -180, -180, 30, 31, -180, 33, 27, 38, 479, -11, + 131, 41, 46, 52, 479, 479, 479, 479, 479, 479, + 3, -180, 4, -180, -180, -180, 6, 15, 490, 673, + -180, -180, -180, -180, -180, 9, 479, -180, 673, 673, + 673, 479, 479, -180, -6, -180, 66, -180, 67, -180, + 55, -180, -2, 28, -180, -180, -180, -180, 504, 73, + -180, -30, 479, -22, 71, -180, -180, 553, 60, 575, + 60, 60, 624, -180, -180, 272, 490, 479, 490, 72, + 651, 479, 479, 479, 479, 479, 479, 479, 479, 479, + 479, 479, 479, 479, 479, 479, 504, 673, -60, 37, + 107, -180, -180, 114, -180, 119, 120, 112, -180, -180, + 130, -180, 479, 479, 526, 479, 479, 479, -180, 479, + 479, 479, -180, -180, 76, 673, 77, 597, 80, 479, + 673, 673, 673, 673, 673, 673, 673, 673, 722, 722, + 60, 60, 673, 673, 673, -180, 479, -180, -180, -180, + -180, 137, -180, 673, 673, 479, 479, 673, 673, 673, + 137, 673, 673, 673, -180, -1, -180, -180, 454, 673, + 673, -180, 5, 673, 673, 5, 331, 115, 479, 331, + -180, -180, 141, 82, 82, -180, -180, 139, 479, 673, + 8, -7, -180, 143, -180, -180, 124, 673, -180, 136, + -180, 145, -180, -180, 145, -180, 490, -180, 331, 331, + -180, -180, 331, -180, 331, 145, 145, -180, 490, 454, + -180, 123, 129, 331, 148, 149, -180, 150, 133, -180, + -180, -180, -180, 152, 138, 153, 154, -12, -180, 454, + -180, 395, 144, -180, -180, -180, 331, -180, -180, -180, + -180, -180 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int16 yypgoto[] = { - -180, -180, -25, 53, 6, -167, 0, -180, -180, -180, - -39, -179, -62, -74, -180, -180, -180, -177, -8, -43, - -137, 1, 22, -180, -180, -180, 99, -180, -180, -180, - -1, -28, -180, 114 + -180, -180, -28, 97, 23, -170, 0, -180, -180, -180, + -15, -164, -38, -81, -180, -180, -180, -179, -8, -44, + -166, 2, 24, -180, -180, -180, 125, -180, -180, -180, + 21, 7, -180, 142 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If @@ -794,160 +799,172 @@ static const yytype_int16 yypgoto[] = #define YYTABLE_NINF -60 static const yytype_int16 yytable[] = { - 33, 51, 81, -10, 83, 47, 31, 186, 48, 49, - 131, 208, 133, -51, -51, 120, 205, 112, 123, 67, - 183, 43, 39, 52, 113, 76, 77, 78, 79, 80, - 224, 226, 65, 114, 64, 209, 185, 121, 88, 206, - 124, 84, 184, 226, 224, 57, 104, 59, 70, 71, - 82, 105, 105, 115, 66, 72, 188, 73, 235, 68, - 69, -51, 152, 214, 215, 74, 153, 218, 75, 220, - 109, 85, 122, 108, 82, -10, 110, 111, 253, 119, - 229, 50, 125, 33, 154, 88, 132, 134, 135, 31, - 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, - 147, 148, 149, 150, 151, 39, 252, 153, 155, 158, - 173, 156, 157, 114, 159, 177, 170, 172, 167, 82, - 194, 160, 161, 198, 164, 165, 166, 174, 168, 169, - 199, 202, 213, 219, 216, 208, 130, 175, 228, 193, - 240, 238, 196, 197, 241, 236, 242, 248, 243, 249, - 234, 255, 204, 189, 176, 250, 190, 251, 210, 232, - 217, 116, 201, 179, 180, 107, 181, 227, 0, 0, - 0, 0, 0, 0, 0, 230, 0, 231, 233, 0, - 0, 0, 0, 0, 0, 195, 239, 0, 207, 0, - 0, 0, 244, 0, 246, 203, 0, 0, 0, 0, - 0, 225, 0, -6, 1, 0, 0, 0, 0, 256, - 0, 257, 0, 88, 2, 3, 4, 5, 0, 6, - 7, 8, 9, 10, 0, 88, 0, 0, 245, 11, - 0, 12, 13, 14, 0, 0, 15, 16, 17, 54, - 0, 0, 0, 18, 19, 20, 55, 254, 21, 0, - 0, 56, 22, 23, 0, 57, 58, 59, 60, 0, - 0, 0, 24, 61, 0, 0, 25, 0, 0, 0, - 26, 27, 0, 0, 0, -6, 28, 2, 3, 4, - 5, 0, 6, 7, 8, 9, 10, 0, 0, 0, - 0, 0, 11, 0, 12, 13, 14, 0, 0, 15, - 16, 17, 0, 0, 0, 0, 18, 19, 20, 0, - 0, 21, 0, 0, 0, 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, 8, 44, 10, 101, 102, 103, 0, 0, - 11, 0, 12, 13, 14, 0, 0, 0, 16, 17, - 0, 0, 0, 0, 18, 19, 20, 0, 0, 21, - 0, 2, 3, 4, 5, 0, 6, 7, 8, 44, - 10, 0, 0, 24, 0, 0, 11, 25, 12, 13, - 14, 26, 27, 0, 16, 17, 82, 28, 0, 0, - 18, 19, 20, 0, 0, 21, 0, 2, 3, 4, - 5, 0, 6, 7, 8, 44, 10, 0, 0, 24, - 0, 0, 11, 25, 12, 13, 0, 26, 27, 0, - 16, 17, 0, 28, 0, 0, 18, 0, 20, 2, - 3, 4, 5, 0, 6, 0, 0, 44, 10, 0, - 0, 0, 0, 0, 0, 24, 0, 0, 0, 25, - 0, 0, 0, 26, 27, 0, 0, 0, 45, 28, - 20, 2, 3, 4, 5, 0, 6, 0, 0, 44, - 10, 0, 0, 0, 0, 0, 0, 24, 0, 0, - 0, 25, 0, 0, 0, 26, 27, 0, 0, 0, - 45, 28, 20, 0, 0, 118, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, - 0, 0, 0, 25, 0, 89, 90, 26, 27, 0, - 91, 92, 93, 86, 94, 95, 96, 0, 0, 0, - 162, 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, 136, 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, 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, 50, 0, -59, -59, -59, 89, 90, 0, 0, - 0, 91, 92, 93, 0, 94, 95, 96, 0, 0, - 0, 0, 0, 0, 99, 100, 0, 0, 0, 0, - 101, 102, 103 + 34, 52, 85, 83, -10, 134, 48, 136, 190, 49, + 50, 189, -51, -51, 122, 155, 44, 212, 114, 156, + 68, 187, 125, 32, 40, 115, 77, 78, 79, 80, + 81, 82, 228, 209, 116, 69, 70, 123, 218, 219, + 90, 213, 222, 188, 224, 126, 228, 66, 106, 53, + 230, 55, 65, 107, 107, 233, 210, 67, 56, 239, + 74, -51, 230, 57, 58, 75, 60, 58, 59, 60, + 61, 76, 117, 110, 124, 62, 84, -10, 84, 257, + 86, 256, 87, 51, 192, 34, 111, 112, 90, 135, + 137, 113, 121, 140, 141, 142, 143, 144, 145, 146, + 147, 148, 149, 150, 151, 152, 153, 154, 32, 40, + 177, 161, 91, 92, 127, 138, 156, 93, 94, 95, + 170, 96, 97, 98, 163, 164, 157, 167, 168, 169, + 178, 171, 172, 173, 158, 232, 103, 104, 105, 159, + 160, 179, 197, 71, 72, 200, 201, 238, 116, 162, + 73, 174, 176, 84, 193, 208, 181, 194, 180, 198, + 202, 203, 217, 221, 206, 220, 223, 183, 184, 212, + 231, 240, 242, 244, 245, 246, 247, 252, 234, 253, + 235, 237, 133, 254, 255, 259, 214, 236, 118, 243, + 199, 185, 211, 0, 109, 248, 0, 250, 0, 0, + 207, 205, 0, 0, 0, 229, 0, 0, -6, 1, + 0, 0, 260, 0, 261, 0, 0, 0, 90, 2, + 3, 4, 5, 0, 6, 7, 8, 9, 10, 0, + 90, 0, 249, 0, 11, 0, 12, 13, 14, 0, + 0, 15, 16, 17, 0, 0, 0, 0, 18, 19, + 20, 258, 0, 21, 0, 0, 0, 22, 23, 24, + 0, 0, 0, 0, 0, 0, 0, 0, 25, 0, + 0, 0, 26, 0, 0, 0, 27, 28, 0, 0, + 0, -6, 29, 2, 3, 4, 5, 0, 6, 7, + 8, 9, 10, 0, 0, 0, 0, 0, 11, 0, + 12, 13, 14, 0, 0, 15, 16, 17, 0, 0, + 0, 0, 18, 19, 20, 0, 0, 21, 0, 0, + 0, 22, 23, 24, 0, 0, 0, 0, 0, 0, + 0, 0, 25, 0, 0, 0, 26, 0, 0, 0, + 27, 28, 2, 3, 4, 5, 29, 6, 7, 8, + 45, 10, 0, 0, 0, 0, 0, 11, 0, 12, + 13, 14, 0, 0, 0, 16, 17, 0, 0, 0, + 0, 18, 19, 20, 0, 0, 21, 0, 0, 0, + 0, 0, 24, 0, 0, 0, 0, 0, 0, 0, + 0, 25, 0, 0, 0, 26, 0, 0, 0, 27, + 28, 0, 0, 0, 84, 29, 2, 3, 4, 5, + 0, 6, 7, 8, 45, 10, 0, 0, 0, 0, + 0, 11, 0, 12, 13, 14, 0, 0, 0, 16, + 17, 0, 0, 0, 0, 18, 19, 20, 0, 0, + 21, 0, 0, 0, 0, 0, 24, 0, 0, 0, + 0, 0, 0, 0, 0, 25, 0, 0, 0, 26, + 0, 0, 0, 27, 28, 2, 3, 4, 5, 29, + 6, 7, 8, 45, 10, 0, 0, 0, 0, 0, + 11, 0, 12, 13, 0, 0, 0, 0, 16, 17, + 2, 3, 4, 5, 18, 6, 20, 0, 45, 10, + 0, 2, 3, 4, 5, 24, 6, 0, 0, 45, + 10, 0, 0, 0, 25, 0, 0, 0, 26, 46, + 0, 20, 27, 28, 0, 0, 0, 0, 29, 0, + 46, 0, 20, 0, 0, 120, 0, 0, 0, 25, + 0, 0, 0, 26, 0, 0, 0, 27, 28, 0, + 25, 0, 0, 29, 26, 0, 91, 92, 27, 28, + 0, 93, 94, 95, 88, 96, 97, 98, 0, 0, + 165, 0, 99, 100, 101, 102, 0, 0, 91, 92, + 103, 104, 105, 93, 94, 95, 0, 96, 97, 98, + 0, 0, 0, 166, 99, 100, 101, 102, 0, 129, + 0, 0, 103, 104, 105, 91, 92, 0, 0, 0, + 93, 94, 95, 0, 96, 97, 98, 0, 0, 0, + 0, 99, 100, 101, 102, 0, 0, 91, 92, 103, + 104, 105, 93, 94, 95, 0, 96, 97, 98, 0, + 130, 131, 0, 99, 100, 101, 102, 0, 0, 91, + 92, 103, 104, 105, 93, 94, 95, 0, 96, 97, + 98, 0, 0, 0, 139, 99, 100, 101, 102, 0, + 0, 0, 132, 103, 104, 105, 91, 92, 0, 0, + 0, 93, 94, 95, 0, 96, 97, 98, 0, 0, + 0, 0, 99, 100, 101, 102, 0, 0, 0, 132, + 103, 104, 105, 91, 92, 0, 0, 0, 93, 94, + 95, 0, 96, 97, 98, 0, 0, 0, 139, 99, + 100, 101, 102, 0, 0, 91, 92, 103, 104, 105, + 93, 94, 95, 0, 96, 97, 98, 0, 0, 0, + 0, 99, 100, 101, 102, 0, 0, -59, -59, 103, + 104, 105, -59, -59, -59, 0, -59, -59, -59, 0, + 0, 0, 0, 0, 0, -59, -59, 0, 0, 51, + 0, -59, -59, -59, 91, 92, 0, 0, 0, 93, + 94, 95, 0, 96, 97, 98, 0, 0, 0, 0, + 0, 0, 101, 102, 0, 0, 0, 0, 103, 104, + 105 }; static const yytype_int16 yycheck[] = { - 0, 9, 0, 0, 29, 4, 0, 174, 7, 8, - 84, 24, 86, 24, 25, 44, 25, 20, 44, 18, - 22, 72, 0, 19, 27, 24, 25, 26, 27, 28, - 207, 210, 20, 36, 19, 48, 173, 66, 37, 48, - 66, 73, 44, 222, 221, 36, 45, 38, 12, 13, - 72, 50, 51, 44, 19, 19, 78, 19, 225, 46, - 47, 72, 74, 200, 201, 19, 78, 204, 19, 206, - 20, 66, 71, 78, 72, 72, 20, 36, 245, 19, - 217, 73, 43, 83, 19, 84, 85, 86, 43, 83, - 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - 99, 100, 101, 102, 103, 83, 243, 78, 20, 117, - 135, 20, 20, 36, 19, 19, 74, 74, 126, 72, - 44, 120, 121, 19, 123, 124, 125, 135, 127, 128, - 78, 25, 19, 30, 41, 24, 83, 136, 212, 182, - 25, 43, 185, 186, 25, 48, 25, 25, 43, 41, - 224, 41, 195, 178, 153, 30, 181, 30, 197, 221, - 203, 62, 190, 162, 163, 51, 167, 210, -1, -1, - -1, -1, -1, -1, -1, 218, -1, 220, 221, -1, - -1, -1, -1, -1, -1, 184, 229, -1, 196, -1, - -1, -1, 235, -1, 237, 194, -1, -1, -1, -1, - -1, 209, -1, 0, 1, -1, -1, -1, -1, 252, - -1, 254, -1, 212, 11, 12, 13, 14, -1, 16, - 17, 18, 19, 20, -1, 224, -1, -1, 236, 26, - -1, 28, 29, 30, -1, -1, 33, 34, 35, 20, - -1, -1, -1, 40, 41, 42, 27, 247, 45, -1, - -1, 32, 49, 50, -1, 36, 37, 38, 39, -1, - -1, -1, 59, 44, -1, -1, 63, -1, -1, -1, - 67, 68, -1, -1, -1, 72, 73, 11, 12, 13, - 14, -1, 16, 17, 18, 19, 20, -1, -1, -1, - -1, -1, 26, -1, 28, 29, 30, -1, -1, 33, - 34, 35, -1, -1, -1, -1, 40, 41, 42, -1, - -1, 45, -1, -1, -1, 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, 18, 19, 20, 75, 76, 77, -1, -1, - 26, -1, 28, 29, 30, -1, -1, -1, 34, 35, - -1, -1, -1, -1, 40, 41, 42, -1, -1, 45, - -1, 11, 12, 13, 14, -1, 16, 17, 18, 19, - 20, -1, -1, 59, -1, -1, 26, 63, 28, 29, - 30, 67, 68, -1, 34, 35, 72, 73, -1, -1, - 40, 41, 42, -1, -1, 45, -1, 11, 12, 13, - 14, -1, 16, 17, 18, 19, 20, -1, -1, 59, - -1, -1, 26, 63, 28, 29, -1, 67, 68, -1, - 34, 35, -1, 73, -1, -1, 40, -1, 42, 11, - 12, 13, 14, -1, 16, -1, -1, 19, 20, -1, - -1, -1, -1, -1, -1, 59, -1, -1, -1, 63, - -1, -1, -1, 67, 68, -1, -1, -1, 40, 73, - 42, 11, 12, 13, 14, -1, 16, -1, -1, 19, - 20, -1, -1, -1, -1, -1, -1, 59, -1, -1, - -1, 63, -1, -1, -1, 67, 68, -1, -1, -1, - 40, 73, 42, -1, -1, 31, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 59, - -1, -1, -1, 63, -1, 51, 52, 67, 68, -1, - 56, 57, 58, 73, 60, 61, 62, -1, -1, -1, - 44, 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, 66, 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, -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, - -1, -1, -1, -1, 69, 70, -1, -1, -1, -1, - 75, 76, 77 + 0, 9, 30, 0, 0, 86, 4, 88, 178, 7, + 8, 177, 24, 25, 44, 75, 73, 24, 20, 79, + 18, 22, 44, 0, 0, 27, 24, 25, 26, 27, + 28, 29, 211, 25, 36, 46, 47, 67, 204, 205, + 38, 48, 208, 44, 210, 67, 225, 20, 46, 19, + 214, 20, 19, 51, 52, 221, 48, 19, 27, 229, + 19, 73, 226, 32, 36, 19, 38, 36, 37, 38, + 39, 19, 44, 79, 72, 44, 73, 73, 73, 249, + 74, 247, 67, 74, 79, 85, 20, 20, 86, 87, + 88, 36, 19, 91, 92, 93, 94, 95, 96, 97, + 98, 99, 100, 101, 102, 103, 104, 105, 85, 85, + 138, 119, 52, 53, 43, 43, 79, 57, 58, 59, + 128, 61, 62, 63, 122, 123, 19, 125, 126, 127, + 138, 129, 130, 131, 20, 216, 76, 77, 78, 20, + 20, 139, 186, 12, 13, 189, 190, 228, 36, 19, + 19, 75, 75, 73, 182, 199, 19, 185, 156, 44, + 19, 79, 19, 207, 25, 41, 30, 165, 166, 24, + 214, 48, 43, 25, 25, 25, 43, 25, 222, 41, + 224, 225, 85, 30, 30, 41, 201, 225, 63, 233, + 188, 170, 200, -1, 52, 239, -1, 241, -1, -1, + 198, 194, -1, -1, -1, 213, -1, -1, 0, 1, + -1, -1, 256, -1, 258, -1, -1, -1, 216, 11, + 12, 13, 14, -1, 16, 17, 18, 19, 20, -1, + 228, -1, 240, -1, 26, -1, 28, 29, 30, -1, + -1, 33, 34, 35, -1, -1, -1, -1, 40, 41, + 42, 251, -1, 45, -1, -1, -1, 49, 50, 51, + -1, -1, -1, -1, -1, -1, -1, -1, 60, -1, + -1, -1, 64, -1, -1, -1, 68, 69, -1, -1, + -1, 73, 74, 11, 12, 13, 14, -1, 16, 17, + 18, 19, 20, -1, -1, -1, -1, -1, 26, -1, + 28, 29, 30, -1, -1, 33, 34, 35, -1, -1, + -1, -1, 40, 41, 42, -1, -1, 45, -1, -1, + -1, 49, 50, 51, -1, -1, -1, -1, -1, -1, + -1, -1, 60, -1, -1, -1, 64, -1, -1, -1, + 68, 69, 11, 12, 13, 14, 74, 16, 17, 18, + 19, 20, -1, -1, -1, -1, -1, 26, -1, 28, + 29, 30, -1, -1, -1, 34, 35, -1, -1, -1, + -1, 40, 41, 42, -1, -1, 45, -1, -1, -1, + -1, -1, 51, -1, -1, -1, -1, -1, -1, -1, + -1, 60, -1, -1, -1, 64, -1, -1, -1, 68, + 69, -1, -1, -1, 73, 74, 11, 12, 13, 14, + -1, 16, 17, 18, 19, 20, -1, -1, -1, -1, + -1, 26, -1, 28, 29, 30, -1, -1, -1, 34, + 35, -1, -1, -1, -1, 40, 41, 42, -1, -1, + 45, -1, -1, -1, -1, -1, 51, -1, -1, -1, + -1, -1, -1, -1, -1, 60, -1, -1, -1, 64, + -1, -1, -1, 68, 69, 11, 12, 13, 14, 74, + 16, 17, 18, 19, 20, -1, -1, -1, -1, -1, + 26, -1, 28, 29, -1, -1, -1, -1, 34, 35, + 11, 12, 13, 14, 40, 16, 42, -1, 19, 20, + -1, 11, 12, 13, 14, 51, 16, -1, -1, 19, + 20, -1, -1, -1, 60, -1, -1, -1, 64, 40, + -1, 42, 68, 69, -1, -1, -1, -1, 74, -1, + 40, -1, 42, -1, -1, 31, -1, -1, -1, 60, + -1, -1, -1, 64, -1, -1, -1, 68, 69, -1, + 60, -1, -1, 74, 64, -1, 52, 53, 68, 69, + -1, 57, 58, 59, 74, 61, 62, 63, -1, -1, + 44, -1, 68, 69, 70, 71, -1, -1, 52, 53, + 76, 77, 78, 57, 58, 59, -1, 61, 62, 63, + -1, -1, -1, 67, 68, 69, 70, 71, -1, 46, + -1, -1, 76, 77, 78, 52, 53, -1, -1, -1, + 57, 58, 59, -1, 61, 62, 63, -1, -1, -1, + -1, 68, 69, 70, 71, -1, -1, 52, 53, 76, + 77, 78, 57, 58, 59, -1, 61, 62, 63, -1, + 65, 66, -1, 68, 69, 70, 71, -1, -1, 52, + 53, 76, 77, 78, 57, 58, 59, -1, 61, 62, + 63, -1, -1, -1, 67, 68, 69, 70, 71, -1, + -1, -1, 75, 76, 77, 78, 52, 53, -1, -1, + -1, 57, 58, 59, -1, 61, 62, 63, -1, -1, + -1, -1, 68, 69, 70, 71, -1, -1, -1, 75, + 76, 77, 78, 52, 53, -1, -1, -1, 57, 58, + 59, -1, 61, 62, 63, -1, -1, -1, 67, 68, + 69, 70, 71, -1, -1, 52, 53, 76, 77, 78, + 57, 58, 59, -1, 61, 62, 63, -1, -1, -1, + -1, 68, 69, 70, 71, -1, -1, 52, 53, 76, + 77, 78, 57, 58, 59, -1, 61, 62, 63, -1, + -1, -1, -1, -1, -1, 70, 71, -1, -1, 74, + -1, 76, 77, 78, 52, 53, -1, -1, -1, 57, + 58, 59, -1, 61, 62, 63, -1, -1, -1, -1, + -1, -1, 70, 71, -1, -1, -1, -1, 76, 77, + 78 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing @@ -956,30 +973,31 @@ static const yytype_uint8 yystos[] = { 0, 1, 11, 12, 13, 14, 16, 17, 18, 19, 20, 26, 28, 29, 30, 33, 34, 35, 40, 41, - 42, 45, 49, 50, 59, 63, 67, 68, 73, 80, - 82, 83, 84, 85, 86, 93, 94, 95, 100, 101, - 103, 106, 111, 72, 19, 40, 83, 100, 100, 100, - 73, 97, 19, 102, 20, 27, 32, 36, 37, 38, - 39, 44, 104, 105, 19, 20, 19, 100, 46, 47, - 12, 13, 19, 19, 19, 19, 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, 20, - 20, 36, 20, 27, 36, 44, 105, 107, 31, 19, - 44, 66, 100, 44, 66, 43, 108, 64, 65, 74, - 82, 92, 100, 92, 100, 43, 66, 100, 100, 100, - 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, - 100, 100, 74, 78, 19, 20, 20, 20, 97, 19, - 100, 100, 44, 66, 100, 100, 100, 97, 100, 100, - 74, 98, 74, 81, 97, 100, 100, 19, 109, 100, - 100, 109, 99, 22, 44, 99, 84, 101, 78, 81, - 81, 81, 85, 98, 44, 100, 98, 98, 19, 78, - 110, 110, 25, 100, 98, 25, 48, 97, 24, 48, - 89, 90, 96, 19, 99, 99, 41, 98, 99, 30, - 99, 88, 89, 91, 96, 97, 90, 98, 92, 99, - 98, 98, 91, 98, 92, 84, 48, 87, 43, 98, - 25, 25, 25, 43, 98, 97, 98, 97, 25, 41, - 30, 30, 99, 84, 85, 41, 98, 98 + 42, 45, 49, 50, 51, 60, 64, 68, 69, 74, + 81, 83, 84, 85, 86, 87, 94, 95, 96, 101, + 102, 104, 107, 112, 73, 19, 40, 84, 101, 101, + 101, 74, 98, 19, 103, 20, 27, 32, 36, 37, + 38, 39, 44, 105, 106, 19, 20, 19, 101, 46, + 47, 12, 13, 19, 19, 19, 19, 101, 101, 101, + 101, 101, 101, 0, 73, 82, 74, 67, 74, 93, + 101, 52, 53, 57, 58, 59, 61, 62, 63, 68, + 69, 70, 71, 76, 77, 78, 101, 101, 113, 113, + 79, 20, 20, 36, 20, 27, 36, 44, 106, 108, + 31, 19, 44, 67, 101, 44, 67, 43, 109, 46, + 65, 66, 75, 83, 93, 101, 93, 101, 43, 67, + 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, + 101, 101, 101, 101, 101, 75, 79, 19, 20, 20, + 20, 98, 19, 101, 101, 44, 67, 101, 101, 101, + 98, 101, 101, 101, 75, 99, 75, 82, 98, 101, + 101, 19, 110, 101, 101, 110, 100, 22, 44, 100, + 85, 102, 79, 82, 82, 82, 86, 99, 44, 101, + 99, 99, 19, 79, 111, 111, 25, 101, 99, 25, + 48, 98, 24, 48, 90, 91, 97, 19, 100, 100, + 41, 99, 100, 30, 100, 89, 90, 92, 97, 98, + 91, 99, 93, 100, 99, 99, 92, 99, 93, 85, + 48, 88, 43, 99, 25, 25, 25, 43, 99, 98, + 99, 98, 25, 41, 30, 30, 100, 85, 86, 41, + 99, 99 }; #define yyerrok (yyerrstatus = 0) @@ -2321,32 +2339,42 @@ yyreduce: break; case 93: -#line 417 "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 415 "engines/director/lingo/lingo-gr.y" + { g_lingo->code1(g_lingo->c_open); ;} break; case 94: -#line 418 "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 416 "engines/director/lingo/lingo-gr.y" + { g_lingo->code2(g_lingo->c_voidpush, g_lingo->c_open); ;} break; case 95: -#line 429 "engines/director/lingo/lingo-gr.y" - { g_lingo->code1(g_lingo->c_gotoloop); ;} +#line 419 "engines/director/lingo/lingo-gr.y" + { g_lingo->code1(g_lingo->c_global); g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); delete (yyvsp[(1) - (1)].s); ;} break; case 96: -#line 430 "engines/director/lingo/lingo-gr.y" - { g_lingo->code1(g_lingo->c_gotonext); ;} +#line 420 "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 97: #line 431 "engines/director/lingo/lingo-gr.y" - { g_lingo->code1(g_lingo->c_gotoprevious); ;} + { g_lingo->code1(g_lingo->c_gotoloop); ;} break; case 98: #line 432 "engines/director/lingo/lingo-gr.y" + { g_lingo->code1(g_lingo->c_gotonext); ;} + break; + + case 99: +#line 433 "engines/director/lingo/lingo-gr.y" + { g_lingo->code1(g_lingo->c_gotoprevious); ;} + break; + + case 100: +#line 434 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_goto); g_lingo->codeString((yyvsp[(2) - (2)].s)->c_str()); @@ -2354,8 +2382,8 @@ yyreduce: delete (yyvsp[(2) - (2)].s); ;} break; - case 99: -#line 437 "engines/director/lingo/lingo-gr.y" + case 101: +#line 439 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_goto); g_lingo->codeString((yyvsp[(2) - (3)].s)->c_str()); @@ -2364,8 +2392,8 @@ yyreduce: delete (yyvsp[(3) - (3)].s); ;} break; - case 100: -#line 443 "engines/director/lingo/lingo-gr.y" + case 102: +#line 445 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_goto); g_lingo->codeString(""); @@ -2373,48 +2401,48 @@ yyreduce: delete (yyvsp[(2) - (2)].s); ;} break; - case 101: -#line 450 "engines/director/lingo/lingo-gr.y" + case 103: +#line 452 "engines/director/lingo/lingo-gr.y" { (yyval.s) = (yyvsp[(3) - (3)].s); ;} break; - case 102: -#line 451 "engines/director/lingo/lingo-gr.y" + case 104: +#line 453 "engines/director/lingo/lingo-gr.y" { (yyval.s) = (yyvsp[(2) - (2)].s); ;} break; - case 103: -#line 452 "engines/director/lingo/lingo-gr.y" + case 105: +#line 454 "engines/director/lingo/lingo-gr.y" { (yyval.s) = (yyvsp[(2) - (2)].s); ;} break; - case 104: -#line 453 "engines/director/lingo/lingo-gr.y" + case 106: +#line 455 "engines/director/lingo/lingo-gr.y" { (yyval.s) = (yyvsp[(1) - (1)].s); ;} break; - case 105: -#line 456 "engines/director/lingo/lingo-gr.y" + case 107: +#line 458 "engines/director/lingo/lingo-gr.y" { (yyval.s) = (yyvsp[(3) - (3)].s); ;} break; - case 106: -#line 457 "engines/director/lingo/lingo-gr.y" + case 108: +#line 459 "engines/director/lingo/lingo-gr.y" { (yyval.s) = (yyvsp[(2) - (2)].s); ;} break; - case 107: -#line 458 "engines/director/lingo/lingo-gr.y" + case 109: +#line 460 "engines/director/lingo/lingo-gr.y" { (yyval.s) = (yyvsp[(3) - (3)].s); ;} break; - case 108: -#line 486 "engines/director/lingo/lingo-gr.y" + case 110: +#line 488 "engines/director/lingo/lingo-gr.y" { g_lingo->_indef = true; g_lingo->_currentFactory.clear(); ;} break; - case 109: -#line 487 "engines/director/lingo/lingo-gr.y" + case 111: +#line 489 "engines/director/lingo/lingo-gr.y" { g_lingo->codeConst(0); // Push fake value on stack g_lingo->code1(g_lingo->c_procret); @@ -2422,20 +2450,20 @@ yyreduce: g_lingo->_indef = false; ;} break; - case 110: -#line 492 "engines/director/lingo/lingo-gr.y" + case 112: +#line 494 "engines/director/lingo/lingo-gr.y" { g_lingo->codeFactory(*(yyvsp[(2) - (2)].s)); ;} break; - case 111: -#line 495 "engines/director/lingo/lingo-gr.y" + case 113: +#line 497 "engines/director/lingo/lingo-gr.y" { g_lingo->_indef = true; ;} break; - case 112: -#line 496 "engines/director/lingo/lingo-gr.y" + case 114: +#line 498 "engines/director/lingo/lingo-gr.y" { g_lingo->codeConst(0); // Push fake value on stack g_lingo->code1(g_lingo->c_procret); @@ -2443,33 +2471,33 @@ yyreduce: g_lingo->_indef = false; ;} break; - case 113: -#line 501 "engines/director/lingo/lingo-gr.y" + case 115: +#line 503 "engines/director/lingo/lingo-gr.y" { (yyval.narg) = 0; ;} break; - case 114: -#line 502 "engines/director/lingo/lingo-gr.y" + case 116: +#line 504 "engines/director/lingo/lingo-gr.y" { g_lingo->codeArg((yyvsp[(1) - (1)].s)); (yyval.narg) = 1; ;} break; - case 115: -#line 503 "engines/director/lingo/lingo-gr.y" + case 117: +#line 505 "engines/director/lingo/lingo-gr.y" { g_lingo->codeArg((yyvsp[(3) - (3)].s)); (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;} break; - case 116: -#line 504 "engines/director/lingo/lingo-gr.y" + case 118: +#line 506 "engines/director/lingo/lingo-gr.y" { g_lingo->codeArg((yyvsp[(4) - (4)].s)); (yyval.narg) = (yyvsp[(1) - (4)].narg) + 1; ;} break; - case 117: -#line 506 "engines/director/lingo/lingo-gr.y" + case 119: +#line 508 "engines/director/lingo/lingo-gr.y" { g_lingo->codeArgStore(); ;} break; - case 118: -#line 510 "engines/director/lingo/lingo-gr.y" + case 120: +#line 512 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_call); g_lingo->codeString((yyvsp[(1) - (3)].s)->c_str()); @@ -2478,24 +2506,24 @@ yyreduce: g_lingo->code1(numpar); ;} break; - case 119: -#line 518 "engines/director/lingo/lingo-gr.y" + case 121: +#line 520 "engines/director/lingo/lingo-gr.y" { (yyval.narg) = 0; ;} break; - case 120: -#line 519 "engines/director/lingo/lingo-gr.y" + case 122: +#line 521 "engines/director/lingo/lingo-gr.y" { (yyval.narg) = 1; ;} break; - case 121: -#line 520 "engines/director/lingo/lingo-gr.y" + case 123: +#line 522 "engines/director/lingo/lingo-gr.y" { (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;} break; /* Line 1267 of yacc.c. */ -#line 2499 "engines/director/lingo/lingo-gr.cpp" +#line 2527 "engines/director/lingo/lingo-gr.cpp" default: break; } YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); @@ -2709,6 +2737,6 @@ yyreturn: } -#line 523 "engines/director/lingo/lingo-gr.y" +#line 525 "engines/director/lingo/lingo-gr.y" |