From fe90e63d26c22d9279a24a29d3053293edad732f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 24 Dec 2019 15:37:21 +0100 Subject: DIRECTOR: LINGO: Restrict oneline statements with 'if' only to 'when' --- engines/director/lingo/lingo-gr.cpp | 1547 ++++++++++++++++++----------------- engines/director/lingo/lingo-gr.y | 7 +- 2 files changed, 790 insertions(+), 764 deletions(-) (limited to 'engines/director/lingo') diff --git a/engines/director/lingo/lingo-gr.cpp b/engines/director/lingo/lingo-gr.cpp index 4bae8c15e0..249314d4b1 100644 --- a/engines/director/lingo/lingo-gr.cpp +++ b/engines/director/lingo/lingo-gr.cpp @@ -542,18 +542,18 @@ union yyalloc #endif /* YYFINAL -- State number of the termination state. */ -#define YYFINAL 125 +#define YYFINAL 124 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 1520 +#define YYLAST 1612 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 106 /* YYNNTS -- Number of nonterminals. */ -#define YYNNTS 40 +#define YYNNTS 41 /* YYNRULES -- Number of rules. */ -#define YYNRULES 155 +#define YYNRULES 158 /* YYNRULES -- Number of states. */ -#define YYNSTATES 336 +#define YYNSTATES 339 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 @@ -609,84 +609,85 @@ static const yytype_uint16 yyprhs[] = { 0, 0, 3, 7, 9, 12, 13, 15, 17, 22, 27, 32, 37, 42, 47, 52, 57, 63, 69, 71, - 73, 75, 77, 79, 81, 88, 99, 111, 115, 122, - 127, 137, 150, 151, 154, 161, 173, 181, 184, 188, - 190, 192, 193, 194, 195, 198, 201, 205, 207, 209, - 211, 213, 215, 217, 219, 221, 223, 226, 229, 234, - 236, 239, 241, 245, 249, 253, 257, 261, 265, 269, - 273, 277, 281, 285, 289, 293, 296, 300, 304, 308, - 312, 315, 318, 322, 326, 331, 336, 341, 348, 353, - 360, 365, 372, 377, 384, 389, 396, 398, 401, 404, - 406, 408, 411, 413, 416, 419, 422, 424, 427, 430, - 432, 435, 440, 443, 447, 449, 453, 455, 459, 461, - 465, 468, 471, 474, 477, 481, 484, 488, 491, 494, - 497, 501, 504, 505, 509, 510, 519, 522, 523, 531, - 540, 547, 550, 551, 553, 557, 562, 563, 565, 569, - 570, 573, 574, 576, 580, 582 + 73, 75, 77, 79, 81, 83, 85, 87, 94, 105, + 117, 121, 128, 133, 143, 156, 157, 160, 167, 179, + 187, 190, 194, 196, 198, 199, 200, 201, 204, 207, + 211, 213, 215, 217, 219, 221, 223, 225, 227, 229, + 232, 235, 240, 242, 245, 247, 251, 255, 259, 263, + 267, 271, 275, 279, 283, 287, 291, 295, 299, 302, + 306, 310, 314, 318, 321, 324, 328, 332, 337, 342, + 347, 354, 359, 366, 371, 378, 383, 390, 395, 402, + 404, 407, 410, 412, 414, 417, 419, 422, 425, 428, + 430, 433, 436, 438, 441, 446, 449, 453, 455, 459, + 461, 465, 467, 471, 474, 477, 480, 483, 487, 490, + 494, 497, 500, 503, 507, 510, 511, 515, 516, 525, + 528, 529, 537, 546, 553, 556, 557, 559, 563, 568, + 569, 571, 575, 576, 579, 580, 582, 586, 588 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int16 yyrhs[] = { 107, 0, -1, 107, 100, 108, -1, 108, -1, 1, - 100, -1, -1, 136, -1, 111, -1, 51, 126, 44, - 30, -1, 51, 126, 44, 127, -1, 51, 126, 73, - 126, -1, 51, 126, 74, 126, -1, 53, 30, 67, - 126, -1, 53, 15, 67, 126, -1, 53, 30, 55, - 126, -1, 53, 15, 55, 126, -1, 53, 16, 126, - 55, 126, -1, 53, 16, 125, 67, 126, -1, 143, - -1, 126, -1, 128, -1, 115, -1, 110, -1, 112, - -1, 116, 126, 121, 122, 121, 90, -1, 117, 67, - 126, 121, 55, 126, 121, 122, 121, 90, -1, 117, - 67, 126, 121, 37, 55, 126, 121, 122, 121, 90, - -1, 123, 110, 121, -1, 124, 126, 100, 122, 121, - 91, -1, 124, 126, 55, 126, -1, 118, 126, 121, - 54, 122, 121, 113, 121, 89, -1, 118, 126, 121, - 54, 122, 121, 113, 38, 120, 122, 121, 89, -1, - -1, 114, 113, -1, 119, 126, 121, 54, 122, 121, - -1, 118, 126, 121, 54, 110, 121, 38, 120, 110, - 121, 89, -1, 118, 126, 121, 54, 110, 121, 89, - -1, 52, 58, -1, 52, 57, 30, -1, 43, -1, - 39, -1, -1, -1, -1, 122, 100, -1, 122, 111, - -1, 56, 30, 54, -1, 85, -1, 12, -1, 17, - -1, 33, -1, 31, -1, 30, -1, 125, -1, 127, - -1, 25, -1, 26, 126, -1, 27, 145, -1, 30, - 101, 144, 102, -1, 15, -1, 16, 126, -1, 109, - -1, 126, 95, 126, -1, 126, 96, 126, -1, 126, - 97, 126, -1, 126, 98, 126, -1, 126, 72, 126, - -1, 126, 93, 126, -1, 126, 92, 126, -1, 126, - 67, 126, -1, 126, 68, 126, -1, 126, 65, 126, - -1, 126, 66, 126, -1, 126, 69, 126, -1, 126, - 70, 126, -1, 71, 126, -1, 126, 94, 126, -1, - 126, 75, 126, -1, 126, 76, 126, -1, 126, 77, - 126, -1, 95, 126, -1, 96, 126, -1, 101, 126, - 102, -1, 103, 144, 104, -1, 82, 126, 83, 126, - -1, 82, 126, 84, 126, -1, 78, 126, 49, 126, - -1, 78, 126, 55, 126, 49, 126, -1, 79, 126, - 49, 126, -1, 79, 126, 55, 126, 49, 126, -1, - 80, 126, 49, 126, -1, 80, 126, 55, 126, 49, - 126, -1, 81, 126, 49, 126, -1, 81, 126, 55, - 126, 49, 126, -1, 88, 101, 30, 102, -1, 88, - 101, 30, 105, 144, 102, -1, 88, -1, 29, 125, - -1, 51, 126, -1, 132, -1, 134, -1, 40, 52, - -1, 40, -1, 41, 129, -1, 86, 130, -1, 64, - 131, -1, 19, -1, 21, 126, -1, 20, 126, -1, - 20, -1, 22, 145, -1, 61, 126, 57, 126, -1, - 61, 126, -1, 23, 30, 144, -1, 30, -1, 129, - 105, 30, -1, 30, -1, 130, 105, 30, -1, 30, - -1, 131, 105, 30, -1, 42, 45, -1, 42, 48, - -1, 42, 50, -1, 42, 126, -1, 42, 126, 133, - -1, 42, 133, -1, 49, 47, 126, -1, 47, 126, - -1, 62, 63, -1, 62, 126, -1, 62, 126, 133, - -1, 62, 133, -1, -1, 35, 135, 144, -1, -1, - 46, 30, 137, 120, 140, 100, 142, 122, -1, 60, - 30, -1, -1, 36, 138, 120, 140, 100, 142, 122, - -1, 139, 120, 140, 100, 142, 122, 34, 141, -1, - 139, 120, 140, 100, 142, 122, -1, 87, 30, -1, - -1, 30, -1, 140, 105, 30, -1, 140, 100, 105, - 30, -1, -1, 30, -1, 141, 105, 30, -1, -1, - 30, 145, -1, -1, 126, -1, 144, 105, 126, -1, - 126, -1, 145, 105, 126, -1 + 100, -1, -1, 137, -1, 112, -1, 51, 127, 44, + 30, -1, 51, 127, 44, 128, -1, 51, 127, 73, + 127, -1, 51, 127, 74, 127, -1, 53, 30, 67, + 127, -1, 53, 15, 67, 127, -1, 53, 30, 55, + 127, -1, 53, 15, 55, 127, -1, 53, 16, 127, + 55, 127, -1, 53, 16, 126, 67, 127, -1, 144, + -1, 127, -1, 129, -1, 144, -1, 127, -1, 129, + -1, 116, -1, 110, -1, 113, -1, 117, 127, 122, + 123, 122, 90, -1, 118, 67, 127, 122, 55, 127, + 122, 123, 122, 90, -1, 118, 67, 127, 122, 37, + 55, 127, 122, 123, 122, 90, -1, 124, 111, 122, + -1, 125, 127, 100, 123, 122, 91, -1, 125, 127, + 55, 127, -1, 119, 127, 122, 54, 123, 122, 114, + 122, 89, -1, 119, 127, 122, 54, 123, 122, 114, + 38, 121, 123, 122, 89, -1, -1, 115, 114, -1, + 120, 127, 122, 54, 123, 122, -1, 119, 127, 122, + 54, 110, 122, 38, 121, 110, 122, 89, -1, 119, + 127, 122, 54, 110, 122, 89, -1, 52, 58, -1, + 52, 57, 30, -1, 43, -1, 39, -1, -1, -1, + -1, 123, 100, -1, 123, 112, -1, 56, 30, 54, + -1, 85, -1, 12, -1, 17, -1, 33, -1, 31, + -1, 30, -1, 126, -1, 128, -1, 25, -1, 26, + 127, -1, 27, 146, -1, 30, 101, 145, 102, -1, + 15, -1, 16, 127, -1, 109, -1, 127, 95, 127, + -1, 127, 96, 127, -1, 127, 97, 127, -1, 127, + 98, 127, -1, 127, 72, 127, -1, 127, 93, 127, + -1, 127, 92, 127, -1, 127, 67, 127, -1, 127, + 68, 127, -1, 127, 65, 127, -1, 127, 66, 127, + -1, 127, 69, 127, -1, 127, 70, 127, -1, 71, + 127, -1, 127, 94, 127, -1, 127, 75, 127, -1, + 127, 76, 127, -1, 127, 77, 127, -1, 95, 127, + -1, 96, 127, -1, 101, 127, 102, -1, 103, 145, + 104, -1, 82, 127, 83, 127, -1, 82, 127, 84, + 127, -1, 78, 127, 49, 127, -1, 78, 127, 55, + 127, 49, 127, -1, 79, 127, 49, 127, -1, 79, + 127, 55, 127, 49, 127, -1, 80, 127, 49, 127, + -1, 80, 127, 55, 127, 49, 127, -1, 81, 127, + 49, 127, -1, 81, 127, 55, 127, 49, 127, -1, + 88, 101, 30, 102, -1, 88, 101, 30, 105, 145, + 102, -1, 88, -1, 29, 126, -1, 51, 127, -1, + 133, -1, 135, -1, 40, 52, -1, 40, -1, 41, + 130, -1, 86, 131, -1, 64, 132, -1, 19, -1, + 21, 127, -1, 20, 127, -1, 20, -1, 22, 146, + -1, 61, 127, 57, 127, -1, 61, 127, -1, 23, + 30, 145, -1, 30, -1, 130, 105, 30, -1, 30, + -1, 131, 105, 30, -1, 30, -1, 132, 105, 30, + -1, 42, 45, -1, 42, 48, -1, 42, 50, -1, + 42, 127, -1, 42, 127, 134, -1, 42, 134, -1, + 49, 47, 127, -1, 47, 127, -1, 62, 63, -1, + 62, 127, -1, 62, 127, 134, -1, 62, 134, -1, + -1, 35, 136, 145, -1, -1, 46, 30, 138, 121, + 141, 100, 143, 123, -1, 60, 30, -1, -1, 36, + 139, 121, 141, 100, 143, 123, -1, 140, 121, 141, + 100, 143, 123, 34, 142, -1, 140, 121, 141, 100, + 143, 123, -1, 87, 30, -1, -1, 30, -1, 141, + 105, 30, -1, 141, 100, 105, 30, -1, -1, 30, + -1, 142, 105, 30, -1, -1, 30, 146, -1, -1, + 127, -1, 145, 105, 127, -1, 127, -1, 146, 105, + 127, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ @@ -694,20 +695,20 @@ static const yytype_uint16 yyrline[] = { 0, 125, 125, 126, 127, 130, 131, 132, 135, 141, 144, 145, 146, 152, 159, 165, 172, 178, 186, 187, - 188, 189, 192, 193, 198, 209, 226, 238, 243, 245, - 250, 260, 272, 273, 276, 284, 294, 307, 310, 317, - 324, 332, 335, 338, 339, 340, 343, 349, 353, 356, - 359, 362, 365, 371, 372, 373, 376, 379, 380, 383, - 391, 397, 398, 399, 400, 401, 402, 403, 404, 405, - 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, - 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, - 426, 427, 428, 429, 430, 431, 432, 435, 440, 441, - 442, 443, 444, 445, 446, 447, 448, 451, 454, 457, - 461, 462, 463, 464, 467, 468, 471, 472, 475, 476, - 487, 488, 489, 490, 494, 498, 504, 505, 508, 509, - 513, 517, 521, 521, 551, 551, 557, 558, 558, 564, - 572, 579, 581, 582, 583, 584, 587, 588, 589, 592, - 595, 603, 604, 605, 608, 609 + 188, 191, 192, 193, 194, 197, 198, 203, 214, 231, + 243, 248, 250, 255, 265, 277, 278, 281, 289, 299, + 312, 315, 322, 329, 337, 340, 343, 344, 345, 348, + 354, 358, 361, 364, 367, 370, 376, 377, 378, 381, + 384, 385, 388, 396, 402, 403, 404, 405, 406, 407, + 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, + 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, + 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, + 440, 445, 446, 447, 448, 449, 450, 451, 452, 453, + 456, 459, 462, 466, 467, 468, 469, 472, 473, 476, + 477, 480, 481, 492, 493, 494, 495, 499, 503, 509, + 510, 513, 514, 518, 522, 526, 526, 556, 556, 562, + 563, 563, 569, 577, 584, 586, 587, 588, 589, 592, + 593, 594, 597, 600, 608, 609, 610, 613, 614 }; #endif @@ -732,13 +733,13 @@ static const char *const yytname[] = "tINTERSECTS", "tWITHIN", "tTELL", "tPROPERTY", "tON", "tME", "tENDIF", "tENDREPEAT", "tENDTELL", "'<'", "'>'", "'&'", "'+'", "'-'", "'*'", "'/'", "'%'", "'\\n'", "'('", "')'", "'['", "']'", "','", "$accept", - "program", "programline", "asgn", "stmtoneliner", "stmt", "ifstmt", - "elseifstmtlist", "elseifstmt", "ifoneliner", "repeatwhile", - "repeatwith", "if", "elseif", "begin", "end", "stmtlist", "when", "tell", - "simpleexpr", "expr", "reference", "proc", "globallist", "propertylist", - "instancelist", "gotofunc", "gotomovie", "playfunc", "@1", "defn", "@2", - "@3", "on", "argdef", "endargdef", "argstore", "macro", "arglist", - "nonemptyarglist", 0 + "program", "programline", "asgn", "stmtoneliner", "stmtonelinerwithif", + "stmt", "ifstmt", "elseifstmtlist", "elseifstmt", "ifoneliner", + "repeatwhile", "repeatwith", "if", "elseif", "begin", "end", "stmtlist", + "when", "tell", "simpleexpr", "expr", "reference", "proc", "globallist", + "propertylist", "instancelist", "gotofunc", "gotomovie", "playfunc", + "@1", "defn", "@2", "@3", "on", "argdef", "endargdef", "argstore", + "macro", "arglist", "nonemptyarglist", 0 }; #endif @@ -766,20 +767,20 @@ static const yytype_uint8 yyr1[] = { 0, 106, 107, 107, 107, 108, 108, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 110, 110, - 110, 110, 111, 111, 111, 111, 111, 111, 111, 111, - 112, 112, 113, 113, 114, 115, 115, 116, 117, 118, - 119, 120, 121, 122, 122, 122, 123, 124, 125, 125, - 125, 125, 125, 126, 126, 126, 126, 126, 126, 126, - 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, - 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, - 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, - 126, 126, 126, 126, 126, 126, 126, 127, 128, 128, - 128, 128, 128, 128, 128, 128, 128, 128, 128, 128, - 128, 128, 128, 128, 129, 129, 130, 130, 131, 131, - 132, 132, 132, 132, 132, 132, 133, 133, 134, 134, - 134, 134, 135, 134, 137, 136, 136, 138, 136, 136, - 136, 139, 140, 140, 140, 140, 141, 141, 141, 142, - 143, 144, 144, 144, 145, 145 + 110, 111, 111, 111, 111, 112, 112, 112, 112, 112, + 112, 112, 112, 113, 113, 114, 114, 115, 116, 116, + 117, 118, 119, 120, 121, 122, 123, 123, 123, 124, + 125, 126, 126, 126, 126, 126, 127, 127, 127, 127, + 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, + 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, + 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, + 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, + 128, 129, 129, 129, 129, 129, 129, 129, 129, 129, + 129, 129, 129, 129, 129, 129, 129, 130, 130, 131, + 131, 132, 132, 133, 133, 133, 133, 133, 133, 134, + 134, 135, 135, 135, 135, 136, 135, 138, 137, 137, + 139, 137, 137, 137, 140, 141, 141, 141, 141, 142, + 142, 142, 143, 144, 145, 145, 145, 146, 146 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ @@ -787,20 +788,20 @@ static const yytype_uint8 yyr2[] = { 0, 2, 3, 1, 2, 0, 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 1, 1, - 1, 1, 1, 1, 6, 10, 11, 3, 6, 4, - 9, 12, 0, 2, 6, 11, 7, 2, 3, 1, - 1, 0, 0, 0, 2, 2, 3, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 2, 2, 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, 4, 6, 1, 2, 2, 1, - 1, 2, 1, 2, 2, 2, 1, 2, 2, 1, - 2, 4, 2, 3, 1, 3, 1, 3, 1, 3, - 2, 2, 2, 2, 3, 2, 3, 2, 2, 2, - 3, 2, 0, 3, 0, 8, 2, 0, 7, 8, - 6, 2, 0, 1, 3, 4, 0, 1, 3, 0, - 2, 0, 1, 3, 1, 3 + 1, 1, 1, 1, 1, 1, 1, 6, 10, 11, + 3, 6, 4, 9, 12, 0, 2, 6, 11, 7, + 2, 3, 1, 1, 0, 0, 0, 2, 2, 3, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, + 2, 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, 4, 6, 1, + 2, 2, 1, 1, 2, 1, 2, 2, 2, 1, + 2, 2, 1, 2, 4, 2, 3, 1, 3, 1, + 3, 1, 3, 2, 2, 2, 2, 3, 2, 3, + 2, 2, 2, 3, 2, 0, 3, 0, 8, 2, + 0, 7, 8, 6, 2, 0, 1, 3, 4, 0, + 1, 3, 0, 2, 0, 1, 3, 1, 3 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state @@ -808,99 +809,101 @@ static const yytype_uint8 yyr2[] = means the default is an error. */ static const yytype_uint8 yydefact[] = { - 0, 0, 48, 59, 0, 49, 106, 109, 0, 0, - 0, 55, 0, 0, 0, 52, 51, 50, 132, 137, - 102, 0, 0, 39, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, - 0, 0, 96, 0, 0, 0, 151, 0, 3, 61, - 22, 7, 23, 21, 0, 0, 0, 0, 0, 53, - 19, 54, 20, 99, 100, 6, 41, 18, 4, 52, - 0, 60, 108, 107, 154, 110, 151, 56, 57, 52, - 97, 151, 150, 151, 41, 101, 114, 103, 120, 0, - 121, 0, 122, 123, 125, 134, 98, 0, 37, 0, - 0, 0, 0, 136, 112, 128, 129, 131, 118, 105, - 75, 0, 0, 0, 0, 0, 116, 104, 141, 0, - 80, 81, 0, 152, 0, 1, 5, 42, 0, 42, - 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 51, 62, 0, 52, 109, 112, 0, 0, + 0, 58, 0, 0, 0, 55, 54, 53, 135, 140, + 105, 0, 0, 42, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, + 0, 0, 99, 0, 0, 0, 154, 0, 3, 64, + 25, 7, 26, 0, 0, 0, 0, 0, 56, 19, + 57, 20, 102, 103, 6, 44, 18, 4, 55, 0, + 63, 111, 110, 157, 113, 154, 59, 60, 55, 100, + 154, 153, 154, 44, 104, 117, 106, 123, 0, 124, + 0, 125, 126, 128, 137, 101, 0, 40, 0, 0, + 0, 0, 139, 115, 131, 132, 134, 121, 108, 78, + 0, 0, 0, 0, 0, 119, 107, 144, 0, 83, + 84, 0, 155, 0, 1, 5, 45, 0, 45, 45, + 24, 0, 22, 23, 21, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 142, 151, 0, 0, 113, 152, 0, 133, 142, 0, - 127, 0, 124, 41, 0, 0, 0, 38, 0, 0, - 53, 0, 0, 0, 46, 0, 130, 0, 0, 0, + 0, 0, 0, 145, 154, 0, 0, 116, 155, 0, + 136, 145, 0, 130, 0, 127, 44, 0, 0, 0, + 41, 0, 0, 56, 0, 0, 0, 49, 0, 133, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 82, 83, 0, 2, 43, 42, 0, 27, 42, 0, - 43, 71, 72, 69, 70, 73, 74, 66, 77, 78, - 79, 68, 67, 76, 62, 63, 64, 65, 143, 0, - 155, 58, 0, 115, 126, 142, 8, 9, 10, 11, - 15, 13, 0, 0, 14, 12, 111, 119, 86, 0, - 88, 0, 90, 0, 92, 0, 84, 85, 117, 94, - 151, 153, 42, 0, 43, 0, 29, 42, 149, 0, - 149, 0, 17, 16, 0, 0, 0, 0, 0, 44, - 45, 0, 0, 0, 42, 42, 0, 0, 0, 43, - 144, 43, 149, 87, 89, 91, 93, 95, 24, 0, - 42, 0, 32, 28, 145, 140, 138, 43, 42, 43, - 41, 36, 40, 42, 32, 0, 146, 135, 43, 42, - 0, 41, 0, 33, 42, 147, 139, 42, 0, 42, - 43, 30, 0, 0, 0, 25, 0, 42, 43, 148, - 26, 35, 0, 42, 31, 34 + 0, 0, 0, 85, 86, 0, 2, 46, 45, 0, + 30, 45, 0, 46, 74, 75, 72, 73, 76, 77, + 69, 80, 81, 82, 71, 70, 79, 65, 66, 67, + 68, 146, 0, 158, 61, 0, 118, 129, 145, 8, + 9, 10, 11, 15, 13, 0, 0, 14, 12, 114, + 122, 89, 0, 91, 0, 93, 0, 95, 0, 87, + 88, 120, 97, 154, 156, 45, 0, 46, 0, 32, + 45, 152, 0, 152, 0, 17, 16, 0, 0, 0, + 0, 0, 47, 48, 0, 0, 0, 45, 0, 0, + 0, 46, 147, 46, 152, 90, 92, 94, 96, 98, + 27, 0, 45, 35, 45, 31, 148, 143, 141, 46, + 45, 46, 43, 45, 35, 0, 0, 149, 138, 46, + 45, 44, 0, 36, 45, 44, 39, 150, 142, 45, + 0, 46, 33, 0, 0, 0, 0, 28, 45, 46, + 45, 151, 29, 0, 45, 0, 34, 37, 38 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int16 yydefgoto[] = { - -1, 47, 48, 49, 50, 270, 52, 303, 304, 53, - 54, 55, 56, 305, 150, 194, 252, 57, 58, 59, - 60, 61, 62, 87, 117, 109, 63, 94, 64, 83, - 65, 163, 84, 66, 219, 316, 279, 67, 156, 75 + -1, 47, 48, 49, 50, 129, 273, 52, 303, 304, + 130, 53, 54, 55, 305, 153, 197, 255, 56, 57, + 58, 59, 60, 61, 86, 116, 108, 62, 93, 63, + 82, 64, 166, 83, 65, 222, 318, 281, 66, 159, + 74 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ -#define YYPACT_NINF -212 +#define YYPACT_NINF -265 static const yytype_int16 yypact[] = { - 297, -85, -212, -212, 859, -212, -212, 859, 859, 859, - -7, -212, 859, 859, 70, 892, -212, -212, -212, -212, - -24, 27, 739, -212, 35, 859, 48, 53, 40, 44, - 859, 799, 63, 859, 859, 859, 859, 859, 859, -212, - 65, 83, -84, 859, 859, 859, 859, 10, -212, -212, - -212, -212, -212, -212, 859, -12, 859, 657, 859, -212, - 1409, -212, -212, -212, -212, -212, -212, -212, -212, 13, - 859, 1409, 1409, 1409, 1409, 11, 859, 1409, 11, -212, - -212, 859, 11, 859, -212, -212, -212, 12, -212, 859, - -212, 68, -212, 945, -212, -212, 931, 88, -212, 9, - 859, 25, 66, -212, 1303, -212, 945, -212, -212, 14, - -212, 981, 1015, 1049, 1083, 1375, -212, 16, -212, 92, - -212, -212, 1337, 1409, 4, -212, 387, 1409, 859, 1409, - -212, 859, 1253, 859, 859, 859, 859, 859, 859, 859, - 859, 859, 859, 859, 859, 859, 859, 859, 859, 859, - 93, 859, 931, 859, 21, 1337, -8, 21, 93, 95, - 1409, 859, -212, -212, 82, 859, 859, -212, 859, 859, - 61, 1289, 859, 859, -212, 859, -212, 118, 859, 859, - 859, 859, 859, 859, 859, 859, 859, 859, 120, -3, - -212, -212, 859, -212, -212, 1409, 97, -212, 1409, 859, - -212, -50, -50, -50, -50, 1422, 1422, -212, -37, -50, - -50, -50, -50, -37, -35, -35, -212, -212, -212, -81, - 1409, -212, -27, -212, 1409, 93, -212, -212, 1409, 1409, - 1409, -50, 859, 859, 1409, -50, 1409, -212, 1409, 1117, - 1409, 1151, 1409, 1185, 1409, 1219, 1409, 1409, -212, -212, - 859, 1409, 567, 1, 657, 98, 1409, 567, 49, 123, - 49, -16, -50, 1409, 859, 859, 859, 859, 2, -212, - -212, 73, 100, 859, -212, 567, 657, 67, 130, -212, - -212, -212, 49, 1409, 1409, 1409, 1409, -212, -212, 859, - 1409, -22, 127, -212, -212, 477, 567, -212, 1409, -212, - -212, -212, -212, 129, 127, 859, 140, 567, -212, 567, - 657, -212, 84, -212, 1409, -212, 79, 567, 96, -212, - -212, -212, 131, 142, 99, -212, 101, 567, -212, -212, - -212, -212, 102, 567, -212, -212 + 312, -76, -265, -265, 964, -265, -265, 964, 964, 964, + 20, -265, 964, 964, 42, 997, -265, -265, -265, -265, + 4, 49, 844, -265, 53, 964, -38, 52, 60, 64, + 964, 904, 75, 964, 964, 964, 964, 964, 964, -265, + 77, 78, 9, 964, 964, 964, 964, 6, -265, -265, + -265, -265, -265, 964, 46, 964, 672, 964, -265, 1514, + -265, -265, -265, -265, -265, -265, -265, -265, 13, 964, + 1514, 1514, 1514, 1514, 10, 964, 1514, 10, -265, -265, + 964, 10, 964, -265, -265, -265, 11, -265, 964, -265, + 70, -265, 1050, -265, -265, 1036, 88, -265, 2, 964, + 3, 65, -265, 1408, -265, 1050, -265, -265, 17, -265, + 1086, 1120, 1154, 1188, 1480, -265, 19, -265, 95, -265, + -265, 1442, 1514, 7, -265, 402, 1514, 964, 1514, -265, + -265, 964, 1514, -265, -265, 1358, 964, 964, 964, 964, + 964, 964, 964, 964, 964, 964, 964, 964, 964, 964, + 964, 964, 964, 98, 964, 1036, 964, 24, 1442, -13, + 24, 98, 100, 1514, 964, -265, -265, 73, 964, 964, + -265, 964, 964, 82, 1394, 964, 964, -265, 964, -265, + 101, 964, 964, 964, 964, 964, 964, 964, 964, 964, + 964, 121, -6, -265, -265, 964, -265, -265, 1514, 99, + -265, 1514, 964, -265, -50, -50, -50, -50, 144, 144, + -265, -34, -50, -50, -50, -50, -34, -17, -17, -265, + -265, -265, -77, 1514, -265, -14, -265, 1514, 98, -265, + -265, 1514, 1514, 1514, -50, 964, 964, 1514, -50, 1514, + -265, 1514, 1222, 1514, 1256, 1514, 1290, 1514, 1324, 1514, + 1514, -265, -265, 964, 1514, 582, -20, -265, 102, 1514, + 582, 50, 124, 50, -12, -50, 1514, 964, 964, 964, + 964, -1, -265, -265, 67, 103, 964, 582, 762, 68, + 131, -265, -265, -265, 50, 1514, 1514, 1514, 1514, -265, + -265, 964, 1514, 123, -265, -265, -265, 492, 582, -265, + 1514, -265, -265, 128, 123, 964, -23, 139, 582, -265, + 582, -265, 81, -265, 1514, -265, -265, -265, 71, 582, + 83, -265, -265, 134, 762, 145, 104, -265, 582, -265, + -265, -265, -265, 106, 582, 107, -265, -265, -265 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int16 yypgoto[] = { - -212, -212, 71, -212, -56, 20, -212, -112, -212, -212, - -212, -212, -55, -212, -77, -39, -13, -212, -212, -2, - -4, 29, -212, -212, -212, -212, -212, -18, -212, -212, - -212, -212, -212, -212, -144, -212, -211, -212, -40, 38 + -265, -265, 72, -265, -264, -265, 1, -265, -112, -265, + -265, -265, -265, 143, -265, -81, -8, -94, -265, -265, + -2, -4, 33, 146, -265, -265, -265, -265, -18, -265, + -265, -265, -265, -265, -265, -151, -265, -247, 147, -39, + 85 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If @@ -910,316 +913,334 @@ static const yytype_int16 yypgoto[] = #define YYTABLE_NINF -6 static const yytype_int16 yytable[] = { - 71, 130, 131, 72, 73, 74, 124, 158, 77, 74, - 125, 74, 80, 107, 222, 68, 300, 119, 93, 258, - 51, 96, 139, 76, 259, 140, 104, 106, 85, 110, - 111, 112, 113, 114, 115, 139, 154, 139, 272, 120, - 121, 122, 123, 157, 145, 146, 147, 148, 149, 281, - 127, 78, 129, 82, 132, 128, 273, 86, 146, 147, - 148, 149, 148, 149, 168, 95, 152, 301, 99, 100, - 102, 297, 123, 260, 103, 162, 169, 155, 259, 123, - 172, 261, 2, 101, 282, 160, 225, 5, 176, 259, - 196, 197, 173, 108, 221, 116, 171, 192, 170, 249, - 79, 16, 250, 17, 287, 97, 98, 192, 191, 192, - 126, 14, 226, 118, 151, 161, 153, 159, 167, 177, - 174, 188, 189, 218, 195, 223, 192, 198, 232, 201, - 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, - 212, 213, 214, 215, 216, 217, 51, 123, 237, 220, - 248, 254, 276, 280, 278, 289, 253, 224, 293, 255, - 294, 228, 229, 288, 230, 231, 302, 311, 234, 235, - 315, 236, 329, 321, 238, 239, 240, 241, 242, 243, - 244, 245, 246, 247, 323, 328, 325, 257, 251, 330, - 331, 334, 313, 227, 0, 256, 0, 193, 274, 131, + 70, 51, 161, 71, 72, 73, 124, 123, 76, 73, + 225, 73, 79, 106, 294, 315, 283, 275, 92, 96, + 97, 95, 142, 261, 67, 143, 103, 105, 262, 109, + 110, 111, 112, 113, 114, 276, 157, 299, 142, 119, + 120, 121, 122, 160, 148, 149, 150, 151, 152, 126, + 75, 128, 132, 135, 2, 142, 84, 171, 175, 5, + 330, 149, 150, 151, 152, 155, 316, 98, 99, 172, + 176, 122, 78, 16, 165, 17, 158, 264, 122, 85, + 151, 152, 100, 94, 163, 228, 263, 179, 284, 224, + 101, 262, 195, 262, 102, 174, 252, 173, 77, 253, + 81, 289, 14, 229, 195, 107, 125, 115, 117, 260, + 118, 194, 195, 127, 154, 156, 162, 164, 170, 177, + 199, 200, 180, 198, 191, 192, 51, 201, 221, 195, + 226, 240, 204, 205, 206, 207, 208, 209, 210, 211, + 212, 213, 214, 215, 216, 217, 218, 219, 220, 235, + 122, 251, 223, 257, 282, 280, 278, 290, 291, 295, + 227, 296, 302, 277, 231, 232, 311, 233, 234, 317, + 322, 237, 238, 327, 239, 331, 325, 241, 242, 243, + 244, 245, 246, 247, 248, 249, 250, 297, 329, 298, + 256, 254, 313, 258, 332, 336, 338, 196, 259, 131, + 230, 0, 133, 134, 0, 308, 0, 310, 0, 136, + 137, 138, 139, 0, 271, 319, 142, 0, 0, 143, + 144, 145, 0, 0, 0, 0, 0, 328, 0, 0, + 321, 265, 266, 0, 324, 334, 146, 147, 148, 149, + 150, 151, 152, 0, 0, 0, 0, 274, 0, 122, + 0, 0, 279, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 285, 286, 287, 288, 0, 0, 293, + 0, 0, 292, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 301, 0, 306, 300, 0, 0, + 0, 0, 309, 0, 0, 312, 0, 0, 0, 0, + 0, 314, 320, 0, 0, 0, 323, 0, 0, 0, + 0, 326, -5, 1, 0, 0, 0, 0, 0, 0, + 333, 0, 335, 0, 2, 0, 337, 3, 4, 5, + 0, 6, 7, 8, 9, 10, 0, 11, 12, 13, + 0, 14, 15, 16, 0, 17, 0, 18, 19, 0, + 0, 0, 20, 21, 22, 23, 0, 0, 24, 0, + 0, 0, 0, 25, 26, 27, 0, 0, 28, 0, + 0, 0, 29, 30, 31, 0, 32, 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, 0, 0, 0, 0, 0, 43, 44, 0, + 0, 0, -5, 45, 2, 46, 0, 3, 4, 5, + 0, 6, 7, 8, 9, 10, 0, 11, 12, 13, + 0, 14, 15, 16, 0, 17, 0, 18, 19, 0, + 0, 0, 20, 21, 22, 23, 0, 0, 24, 0, + 0, 0, 0, 25, 26, 27, 0, 0, 28, 0, + 0, 0, 29, 30, 31, 0, 32, 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, 0, 0, 0, 0, 0, 43, 44, 0, + 0, 0, 0, 45, 2, 46, 0, 3, 4, 5, + 0, 6, 7, 8, 9, 10, 0, 11, 12, 13, + 0, 14, 15, 16, 0, 17, 307, 18, 0, 0, + 0, 0, 20, 21, 22, 23, 0, 0, 0, 0, + 0, 0, 0, 25, 26, 27, 0, 0, 28, 0, + 0, 0, 0, 30, 31, 0, 32, 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, 0, 0, 0, 0, 0, 43, 44, 0, + 0, 0, 272, 45, 2, 46, 0, 3, 4, 5, + 0, 6, 7, 8, 9, 10, 0, 11, 12, 13, + 0, 14, 15, 16, 0, 17, 0, 18, 0, 0, + 0, 0, 20, 21, 22, 23, 0, 0, 0, 0, + 0, 0, 0, 25, 26, 27, 0, 0, 28, 0, + 0, 0, 0, 30, 31, 0, 32, 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, 0, 0, 0, 0, 0, 43, 44, 0, + 0, 0, 272, 45, 2, 46, 0, 3, 4, 5, + 0, 6, 7, 8, 9, 10, 0, 11, 12, 13, + 0, 14, 15, 16, 0, 17, 0, 18, 0, 0, + 0, 0, 20, 21, 22, 23, 0, 0, 0, 0, + 0, 0, 0, 25, 0, 27, 0, 0, 0, 0, + 0, 0, 0, 30, 31, 0, 32, 0, 0, 0, + 0, 0, 0, 33, 0, 0, 0, 0, 0, 0, + 34, 35, 36, 37, 38, 0, 0, 0, 40, 0, + 42, 0, 0, 0, 0, 0, 0, 43, 44, 0, + 0, 0, 0, 45, 2, 46, 0, 3, 4, 5, + 0, 6, 7, 8, 9, 10, 0, 11, 12, 13, + 0, 14, 15, 16, 0, 17, 0, 18, 0, 0, + 0, 0, 20, 21, 22, 0, 0, 0, 0, 0, + 0, 0, 0, 25, 0, 27, 0, 0, 0, 0, + 0, 0, 0, 30, 31, 0, 32, 0, 0, 0, + 0, 0, 0, 33, 0, 0, 0, 0, 0, 0, + 34, 35, 36, 37, 38, 0, 0, 0, 40, 0, + 42, 0, 0, 0, 0, 0, 2, 43, 44, 3, + 4, 5, 0, 45, 0, 46, 0, 0, 0, 11, + 12, 13, 0, 14, 68, 16, 0, 17, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 87, + 0, 88, 89, 90, 91, 69, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 268, 0, 0, 271, 0, 0, 0, 0, 277, 0, - 274, 131, 0, 310, 0, 0, 0, 0, 262, 263, - 0, 0, 0, 0, 320, 291, 292, 0, 0, 0, - 0, 275, 0, 0, 0, 0, 123, 0, 0, 0, - 0, 299, 0, 0, 319, 131, 0, 0, 0, 308, - 283, 284, 285, 286, 312, 0, 295, 0, 296, 290, - 318, 0, 0, 0, 0, 322, 0, 0, 324, 0, - 326, 0, 0, 0, 307, 298, 309, 0, 332, 0, - 0, 0, 0, 0, 335, 317, 0, -5, 1, 0, - 0, 314, 0, 0, 0, 0, 0, 327, 0, 2, - 0, 0, 3, 4, 5, 333, 6, 7, 8, 9, - 10, 0, 11, 12, 13, 0, 14, 15, 16, 0, - 17, 0, 18, 19, 0, 0, 0, 20, 21, 22, - 23, 0, 0, 24, 0, 0, 0, 0, 25, 26, - 27, 0, 0, 28, 0, 0, 0, 29, 30, 31, - 0, 32, 0, 0, 0, 0, 0, 0, 33, 0, + 0, 0, 0, 0, 0, 33, 2, 0, 0, 3, + 4, 5, 34, 35, 36, 37, 38, 0, 0, 11, + 12, 13, 42, 14, 68, 16, 0, 17, 0, 43, + 44, 0, 0, 0, 0, 45, 0, 46, 0, 0, + 0, 88, 0, 90, 0, 69, 0, 27, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, + 0, 0, 0, 0, 0, 33, 2, 0, 0, 3, + 4, 5, 34, 35, 36, 37, 38, 0, 0, 11, + 12, 13, 42, 14, 68, 16, 0, 17, 0, 43, + 44, 0, 0, 0, 0, 45, 0, 46, 0, 2, + 0, 0, 3, 4, 5, 69, 0, 27, 0, 0, + 0, 0, 11, 12, 13, 0, 14, 68, 16, 0, + 17, 0, 0, 0, 0, 33, 0, 0, 0, 0, + 0, 0, 34, 35, 36, 37, 38, 0, 69, 0, + 27, 0, 42, 0, 0, 0, 0, 0, 0, 43, + 44, 0, 0, 0, 0, 45, 0, 46, 33, 0, 0, 0, 0, 0, 0, 34, 35, 36, 37, 38, - 0, 0, 39, 40, 41, 42, 0, 0, 0, 0, - 0, 0, 43, 44, 0, 0, 0, -5, 45, 2, - 46, 0, 3, 4, 5, 0, 6, 7, 8, 9, - 10, 0, 11, 12, 13, 0, 14, 15, 16, 0, - 17, 0, 18, 19, 0, 0, 0, 20, 21, 22, - 23, 0, 0, 24, 0, 0, 0, 0, 25, 26, - 27, 0, 0, 28, 0, 0, 0, 29, 30, 31, - 0, 32, 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, 0, 0, 0, - 0, 0, 43, 44, 0, 0, 0, 0, 45, 2, - 46, 0, 3, 4, 5, 0, 6, 7, 8, 9, - 10, 0, 11, 12, 13, 0, 14, 15, 16, 0, - 17, 306, 18, 0, 0, 0, 0, 20, 21, 22, - 23, 0, 0, 0, 0, 0, 0, 0, 25, 26, - 27, 0, 0, 28, 0, 0, 0, 0, 30, 31, - 0, 32, 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, 0, 0, 0, - 0, 0, 43, 44, 0, 0, 0, 269, 45, 2, - 46, 0, 3, 4, 5, 0, 6, 7, 8, 9, - 10, 0, 11, 12, 13, 0, 14, 15, 16, 0, - 17, 0, 18, 0, 0, 0, 0, 20, 21, 22, - 23, 0, 0, 0, 0, 0, 0, 0, 25, 26, - 27, 0, 0, 28, 0, 0, 0, 0, 30, 31, - 0, 32, 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, 0, 0, 0, - 0, 0, 43, 44, 0, 0, 0, 269, 45, 2, - 46, 0, 3, 4, 5, 0, 6, 7, 8, 9, - 10, 0, 11, 12, 13, 0, 14, 15, 16, 0, - 17, 0, 18, 0, 0, 0, 0, 20, 21, 22, - 23, 0, 0, 0, 0, 0, 0, 0, 25, 0, - 27, 0, 0, 0, 0, 0, 0, 0, 30, 31, - 0, 32, 0, 0, 0, 0, 0, 0, 33, 0, - 0, 0, 0, 0, 0, 34, 35, 36, 37, 38, - 0, 0, 0, 40, 0, 42, 0, 0, 0, 0, - 0, 2, 43, 44, 3, 4, 5, 0, 45, 0, - 46, 0, 0, 0, 11, 12, 13, 0, 14, 69, - 16, 0, 17, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 88, 0, 89, 90, 91, 92, - 70, 0, 27, 0, 0, 0, 0, 0, 0, 0, + 167, 0, 0, 0, 0, 42, 0, 0, 0, 0, + 0, 0, 43, 44, 0, 0, 0, 88, 80, 90, + 46, 136, 137, 138, 139, 140, 141, 0, 142, 168, + 169, 143, 144, 145, 0, 136, 137, 138, 139, 140, + 141, 0, 142, 0, 0, 143, 144, 145, 146, 147, + 148, 149, 150, 151, 152, 181, 0, 0, 0, 0, + 0, 182, 146, 147, 148, 149, 150, 151, 152, 0, + 0, 136, 137, 138, 139, 140, 141, 0, 142, 0, + 0, 143, 144, 145, 0, 0, 0, 0, 0, 183, + 0, 0, 0, 0, 0, 184, 0, 0, 146, 147, + 148, 149, 150, 151, 152, 136, 137, 138, 139, 140, + 141, 0, 142, 0, 0, 143, 144, 145, 0, 0, + 0, 0, 0, 185, 0, 0, 0, 0, 0, 186, + 0, 0, 146, 147, 148, 149, 150, 151, 152, 136, + 137, 138, 139, 140, 141, 0, 142, 0, 0, 143, + 144, 145, 0, 0, 0, 0, 0, 187, 0, 0, + 0, 0, 0, 188, 0, 0, 146, 147, 148, 149, + 150, 151, 152, 136, 137, 138, 139, 140, 141, 0, + 142, 0, 0, 143, 144, 145, 0, 0, 0, 0, + 0, 267, 0, 0, 0, 0, 0, 0, 0, 0, + 146, 147, 148, 149, 150, 151, 152, 136, 137, 138, + 139, 140, 141, 0, 142, 0, 0, 143, 144, 145, + 0, 0, 0, 0, 0, 268, 0, 0, 0, 0, + 0, 0, 0, 0, 146, 147, 148, 149, 150, 151, + 152, 136, 137, 138, 139, 140, 141, 0, 142, 0, + 0, 143, 144, 145, 0, 0, 0, 0, 0, 269, + 0, 0, 0, 0, 0, 0, 0, 0, 146, 147, + 148, 149, 150, 151, 152, 136, 137, 138, 139, 140, + 141, 0, 142, 0, 0, 143, 144, 145, 0, 0, + 0, 0, 0, 270, 0, 0, 0, 0, 0, 0, + 0, 0, 146, 147, 148, 149, 150, 151, 152, 136, + 137, 138, 139, 140, 141, 0, 142, 0, 0, 143, + 144, 145, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 202, 0, 0, 146, 147, 148, 149, + 150, 151, 152, 136, 137, 138, 139, 140, 141, 0, + 142, 0, 0, 143, 144, 145, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 236, + 146, 147, 148, 149, 150, 151, 152, 0, 203, 136, + 137, 138, 139, 140, 141, 178, 142, 0, 0, 143, + 144, 145, 0, 136, 137, 138, 139, 140, 141, 0, + 142, 0, 0, 143, 144, 145, 146, 147, 148, 149, + 150, 151, 152, 0, 0, 0, 0, 0, 0, 0, + 146, 147, 148, 149, 150, 151, 152, 136, 137, 138, + 139, 140, 141, 0, 142, 0, 0, 143, 144, 145, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 33, 2, 0, 0, 3, 4, 5, 34, 35, 36, - 37, 38, 0, 0, 11, 12, 13, 42, 14, 69, - 16, 0, 17, 0, 43, 44, 0, 0, 0, 0, - 45, 0, 46, 0, 0, 0, 89, 0, 91, 0, - 70, 0, 27, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 105, 0, 0, 0, 0, 0, 0, 0, - 33, 2, 0, 0, 3, 4, 5, 34, 35, 36, - 37, 38, 0, 0, 11, 12, 13, 42, 14, 69, - 16, 0, 17, 0, 43, 44, 0, 0, 0, 0, - 45, 0, 46, 0, 2, 0, 0, 3, 4, 5, - 70, 0, 27, 0, 0, 0, 0, 11, 12, 13, - 0, 14, 69, 16, 0, 17, 0, 0, 0, 0, - 33, 0, 0, 0, 0, 0, 0, 34, 35, 36, - 37, 38, 0, 70, 0, 27, 0, 42, 0, 0, - 0, 0, 0, 0, 43, 44, 0, 0, 0, 0, - 45, 0, 46, 33, 0, 0, 0, 0, 0, 0, - 34, 35, 36, 37, 38, 164, 0, 0, 0, 0, - 42, 0, 0, 0, 0, 0, 0, 43, 44, 0, - 0, 0, 89, 81, 91, 46, 133, 134, 135, 136, - 137, 138, 0, 139, 165, 166, 140, 141, 142, 0, - 133, 134, 135, 136, 137, 138, 0, 139, 0, 0, - 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, - 178, 0, 0, 0, 0, 0, 179, 143, 144, 145, - 146, 147, 148, 149, 0, 0, 133, 134, 135, 136, - 137, 138, 0, 139, 0, 0, 140, 141, 142, 0, - 0, 0, 0, 0, 180, 0, 0, 0, 0, 0, - 181, 0, 0, 143, 144, 145, 146, 147, 148, 149, - 133, 134, 135, 136, 137, 138, 0, 139, 0, 0, - 140, 141, 142, 0, 0, 0, 0, 0, 182, 0, - 0, 0, 0, 0, 183, 0, 0, 143, 144, 145, - 146, 147, 148, 149, 133, 134, 135, 136, 137, 138, - 0, 139, 0, 0, 140, 141, 142, 0, 0, 0, - 0, 0, 184, 0, 0, 0, 0, 0, 185, 0, - 0, 143, 144, 145, 146, 147, 148, 149, 133, 134, - 135, 136, 137, 138, 0, 139, 0, 0, 140, 141, - 142, 0, 0, 0, 0, 0, 264, 0, 0, 0, - 0, 0, 0, 0, 0, 143, 144, 145, 146, 147, - 148, 149, 133, 134, 135, 136, 137, 138, 0, 139, - 0, 0, 140, 141, 142, 0, 0, 0, 0, 0, - 265, 0, 0, 0, 0, 0, 0, 0, 0, 143, - 144, 145, 146, 147, 148, 149, 133, 134, 135, 136, - 137, 138, 0, 139, 0, 0, 140, 141, 142, 0, - 0, 0, 0, 0, 266, 0, 0, 0, 0, 0, - 0, 0, 0, 143, 144, 145, 146, 147, 148, 149, - 133, 134, 135, 136, 137, 138, 0, 139, 0, 0, - 140, 141, 142, 0, 0, 0, 0, 0, 267, 0, - 0, 0, 0, 0, 0, 0, 0, 143, 144, 145, - 146, 147, 148, 149, 133, 134, 135, 136, 137, 138, - 0, 139, 0, 0, 140, 141, 142, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, - 0, 143, 144, 145, 146, 147, 148, 149, 133, 134, - 135, 136, 137, 138, 0, 139, 0, 0, 140, 141, - 142, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 233, 143, 144, 145, 146, 147, - 148, 149, 0, 200, 133, 134, 135, 136, 137, 138, - 175, 139, 0, 0, 140, 141, 142, 0, 133, 134, - 135, 136, 137, 138, 0, 139, 0, 0, 140, 141, - 142, 143, 144, 145, 146, 147, 148, 149, 0, 0, - 0, 0, 0, 0, 0, 143, 144, 145, 146, 147, - 148, 149, 133, 134, 135, 136, 137, 138, 0, 139, - 0, 0, 140, 141, 142, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 143, - 144, 145, 146, 147, 148, 149, 0, 0, 0, 190, - 133, 134, 135, 136, 137, 138, 0, 139, 0, 0, - 140, 141, 142, 0, 0, 0, 0, 0, 186, 187, - 0, 0, 0, 0, 0, 0, 0, 143, 144, 145, - 146, 147, 148, 149, 133, 134, 135, 136, 137, 138, - 0, 139, 0, 0, 140, 141, 142, 133, 134, 135, - 136, 0, 0, 0, 139, 0, 0, 140, 141, 142, - 0, 143, 144, 145, 146, 147, 148, 149, 0, 0, - 0, 0, 0, 0, 143, 144, 145, 146, 147, 148, - 149 + 0, 0, 0, 0, 146, 147, 148, 149, 150, 151, + 152, 0, 0, 0, 193, 136, 137, 138, 139, 140, + 141, 0, 142, 0, 0, 143, 144, 145, 0, 0, + 0, 0, 0, 189, 190, 0, 0, 0, 0, 0, + 0, 0, 146, 147, 148, 149, 150, 151, 152, 136, + 137, 138, 139, 140, 141, 0, 142, 0, 0, 143, + 144, 145, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 146, 147, 148, 149, + 150, 151, 152 }; static const yytype_int16 yycheck[] = { - 4, 57, 57, 7, 8, 9, 46, 84, 12, 13, - 0, 15, 14, 31, 158, 100, 38, 101, 22, 100, - 0, 25, 72, 30, 105, 75, 30, 31, 52, 33, - 34, 35, 36, 37, 38, 72, 76, 72, 37, 43, - 44, 45, 46, 83, 94, 95, 96, 97, 98, 260, - 54, 13, 56, 15, 58, 67, 55, 30, 95, 96, - 97, 98, 97, 98, 55, 30, 70, 89, 15, 16, - 30, 282, 76, 100, 30, 93, 67, 81, 105, 83, - 55, 225, 12, 30, 100, 89, 163, 17, 106, 105, - 129, 130, 67, 30, 102, 30, 100, 105, 100, 102, - 30, 31, 105, 33, 102, 57, 58, 105, 104, 105, - 100, 29, 30, 30, 101, 47, 105, 105, 30, 105, - 54, 105, 30, 30, 128, 30, 105, 131, 67, 133, - 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, - 144, 145, 146, 147, 148, 149, 126, 151, 30, 153, - 30, 54, 54, 30, 105, 55, 195, 161, 91, 198, - 30, 165, 166, 90, 168, 169, 39, 38, 172, 173, - 30, 175, 30, 89, 178, 179, 180, 181, 182, 183, - 184, 185, 186, 187, 105, 54, 90, 200, 192, 90, - 89, 89, 304, 164, -1, 199, -1, 126, 254, 254, + 4, 0, 83, 7, 8, 9, 0, 46, 12, 13, + 161, 15, 14, 31, 278, 38, 263, 37, 22, 57, + 58, 25, 72, 100, 100, 75, 30, 31, 105, 33, + 34, 35, 36, 37, 38, 55, 75, 284, 72, 43, + 44, 45, 46, 82, 94, 95, 96, 97, 98, 53, + 30, 55, 56, 57, 12, 72, 52, 55, 55, 17, + 324, 95, 96, 97, 98, 69, 89, 15, 16, 67, + 67, 75, 30, 31, 92, 33, 80, 228, 82, 30, + 97, 98, 30, 30, 88, 166, 100, 105, 100, 102, + 30, 105, 105, 105, 30, 99, 102, 99, 13, 105, + 15, 102, 29, 30, 105, 30, 100, 30, 30, 203, + 101, 104, 105, 67, 101, 105, 105, 47, 30, 54, + 128, 129, 105, 127, 105, 30, 125, 131, 30, 105, + 30, 30, 136, 137, 138, 139, 140, 141, 142, 143, + 144, 145, 146, 147, 148, 149, 150, 151, 152, 67, + 154, 30, 156, 54, 30, 105, 54, 90, 55, 91, + 164, 30, 39, 257, 168, 169, 38, 171, 172, 30, + 89, 175, 176, 90, 178, 30, 105, 181, 182, 183, + 184, 185, 186, 187, 188, 189, 190, 281, 54, 283, + 198, 195, 304, 201, 90, 89, 89, 125, 202, 56, + 167, -1, 56, 56, -1, 299, -1, 301, -1, 65, + 66, 67, 68, -1, 253, 309, 72, -1, -1, 75, + 76, 77, -1, -1, -1, -1, -1, 321, -1, -1, + 311, 235, 236, -1, 315, 329, 92, 93, 94, 95, + 96, 97, 98, -1, -1, -1, -1, 255, -1, 253, + -1, -1, 260, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 267, 268, 269, 270, -1, -1, 277, + -1, -1, 276, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 292, -1, 294, 291, -1, -1, + -1, -1, 300, -1, -1, 303, -1, -1, -1, -1, + -1, 305, 310, -1, -1, -1, 314, -1, -1, -1, + -1, 319, 0, 1, -1, -1, -1, -1, -1, -1, + 328, -1, 330, -1, 12, -1, 334, 15, 16, 17, + -1, 19, 20, 21, 22, 23, -1, 25, 26, 27, + -1, 29, 30, 31, -1, 33, -1, 35, 36, -1, + -1, -1, 40, 41, 42, 43, -1, -1, 46, -1, + -1, -1, -1, 51, 52, 53, -1, -1, 56, -1, + -1, -1, 60, 61, 62, -1, 64, -1, -1, -1, + -1, -1, -1, 71, -1, -1, -1, -1, -1, -1, + 78, 79, 80, 81, 82, -1, -1, 85, 86, 87, + 88, -1, -1, -1, -1, -1, -1, 95, 96, -1, + -1, -1, 100, 101, 12, 103, -1, 15, 16, 17, + -1, 19, 20, 21, 22, 23, -1, 25, 26, 27, + -1, 29, 30, 31, -1, 33, -1, 35, 36, -1, + -1, -1, 40, 41, 42, 43, -1, -1, 46, -1, + -1, -1, -1, 51, 52, 53, -1, -1, 56, -1, + -1, -1, 60, 61, 62, -1, 64, -1, -1, -1, + -1, -1, -1, 71, -1, -1, -1, -1, -1, -1, + 78, 79, 80, 81, 82, -1, -1, 85, 86, 87, + 88, -1, -1, -1, -1, -1, -1, 95, 96, -1, + -1, -1, -1, 101, 12, 103, -1, 15, 16, 17, + -1, 19, 20, 21, 22, 23, -1, 25, 26, 27, + -1, 29, 30, 31, -1, 33, 34, 35, -1, -1, + -1, -1, 40, 41, 42, 43, -1, -1, -1, -1, + -1, -1, -1, 51, 52, 53, -1, -1, 56, -1, + -1, -1, -1, 61, 62, -1, 64, -1, -1, -1, + -1, -1, -1, 71, -1, -1, -1, -1, -1, -1, + 78, 79, 80, 81, 82, -1, -1, 85, 86, -1, + 88, -1, -1, -1, -1, -1, -1, 95, 96, -1, + -1, -1, 100, 101, 12, 103, -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, -1, 40, 41, 42, 43, -1, -1, -1, -1, + -1, -1, -1, 51, 52, 53, -1, -1, 56, -1, + -1, -1, -1, 61, 62, -1, 64, -1, -1, -1, + -1, -1, -1, 71, -1, -1, -1, -1, -1, -1, + 78, 79, 80, 81, 82, -1, -1, 85, 86, -1, + 88, -1, -1, -1, -1, -1, -1, 95, 96, -1, + -1, -1, 100, 101, 12, 103, -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, -1, 40, 41, 42, 43, -1, -1, -1, -1, + -1, -1, -1, 51, -1, 53, -1, -1, -1, -1, + -1, -1, -1, 61, 62, -1, 64, -1, -1, -1, + -1, -1, -1, 71, -1, -1, -1, -1, -1, -1, + 78, 79, 80, 81, 82, -1, -1, -1, 86, -1, + 88, -1, -1, -1, -1, -1, -1, 95, 96, -1, + -1, -1, -1, 101, 12, 103, -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, -1, 40, 41, 42, -1, -1, -1, -1, -1, + -1, -1, -1, 51, -1, 53, -1, -1, -1, -1, + -1, -1, -1, 61, 62, -1, 64, -1, -1, -1, + -1, -1, -1, 71, -1, -1, -1, -1, -1, -1, + 78, 79, 80, 81, 82, -1, -1, -1, 86, -1, + 88, -1, -1, -1, -1, -1, 12, 95, 96, 15, + 16, 17, -1, 101, -1, 103, -1, -1, -1, 25, + 26, 27, -1, 29, 30, 31, -1, 33, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 45, + -1, 47, 48, 49, 50, 51, -1, 53, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 250, -1, -1, 252, -1, -1, -1, -1, 257, -1, - 276, 276, -1, 300, -1, -1, -1, -1, 232, 233, - -1, -1, -1, -1, 311, 274, 275, -1, -1, -1, - -1, 254, -1, -1, -1, -1, 250, -1, -1, -1, - -1, 290, -1, -1, 310, 310, -1, -1, -1, 298, - 264, 265, 266, 267, 303, -1, 279, -1, 281, 273, - 309, -1, -1, -1, -1, 314, -1, -1, 317, -1, - 319, -1, -1, -1, 297, 289, 299, -1, 327, -1, - -1, -1, -1, -1, 333, 308, -1, 0, 1, -1, - -1, 305, -1, -1, -1, -1, -1, 320, -1, 12, - -1, -1, 15, 16, 17, 328, 19, 20, 21, 22, - 23, -1, 25, 26, 27, -1, 29, 30, 31, -1, - 33, -1, 35, 36, -1, -1, -1, 40, 41, 42, - 43, -1, -1, 46, -1, -1, -1, -1, 51, 52, - 53, -1, -1, 56, -1, -1, -1, 60, 61, 62, - -1, 64, -1, -1, -1, -1, -1, -1, 71, -1, + -1, -1, -1, -1, -1, 71, 12, -1, -1, 15, + 16, 17, 78, 79, 80, 81, 82, -1, -1, 25, + 26, 27, 88, 29, 30, 31, -1, 33, -1, 95, + 96, -1, -1, -1, -1, 101, -1, 103, -1, -1, + -1, 47, -1, 49, -1, 51, -1, 53, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 63, -1, -1, + -1, -1, -1, -1, -1, 71, 12, -1, -1, 15, + 16, 17, 78, 79, 80, 81, 82, -1, -1, 25, + 26, 27, 88, 29, 30, 31, -1, 33, -1, 95, + 96, -1, -1, -1, -1, 101, -1, 103, -1, 12, + -1, -1, 15, 16, 17, 51, -1, 53, -1, -1, + -1, -1, 25, 26, 27, -1, 29, 30, 31, -1, + 33, -1, -1, -1, -1, 71, -1, -1, -1, -1, + -1, -1, 78, 79, 80, 81, 82, -1, 51, -1, + 53, -1, 88, -1, -1, -1, -1, -1, -1, 95, + 96, -1, -1, -1, -1, 101, -1, 103, 71, -1, -1, -1, -1, -1, -1, 78, 79, 80, 81, 82, - -1, -1, 85, 86, 87, 88, -1, -1, -1, -1, - -1, -1, 95, 96, -1, -1, -1, 100, 101, 12, - 103, -1, 15, 16, 17, -1, 19, 20, 21, 22, - 23, -1, 25, 26, 27, -1, 29, 30, 31, -1, - 33, -1, 35, 36, -1, -1, -1, 40, 41, 42, - 43, -1, -1, 46, -1, -1, -1, -1, 51, 52, - 53, -1, -1, 56, -1, -1, -1, 60, 61, 62, - -1, 64, -1, -1, -1, -1, -1, -1, 71, -1, - -1, -1, -1, -1, -1, 78, 79, 80, 81, 82, - -1, -1, 85, 86, 87, 88, -1, -1, -1, -1, - -1, -1, 95, 96, -1, -1, -1, -1, 101, 12, - 103, -1, 15, 16, 17, -1, 19, 20, 21, 22, - 23, -1, 25, 26, 27, -1, 29, 30, 31, -1, - 33, 34, 35, -1, -1, -1, -1, 40, 41, 42, - 43, -1, -1, -1, -1, -1, -1, -1, 51, 52, - 53, -1, -1, 56, -1, -1, -1, -1, 61, 62, - -1, 64, -1, -1, -1, -1, -1, -1, 71, -1, - -1, -1, -1, -1, -1, 78, 79, 80, 81, 82, - -1, -1, 85, 86, -1, 88, -1, -1, -1, -1, - -1, -1, 95, 96, -1, -1, -1, 100, 101, 12, - 103, -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, -1, 40, 41, 42, - 43, -1, -1, -1, -1, -1, -1, -1, 51, 52, - 53, -1, -1, 56, -1, -1, -1, -1, 61, 62, - -1, 64, -1, -1, -1, -1, -1, -1, 71, -1, - -1, -1, -1, -1, -1, 78, 79, 80, 81, 82, - -1, -1, 85, 86, -1, 88, -1, -1, -1, -1, - -1, -1, 95, 96, -1, -1, -1, 100, 101, 12, - 103, -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, -1, 40, 41, 42, - 43, -1, -1, -1, -1, -1, -1, -1, 51, -1, - 53, -1, -1, -1, -1, -1, -1, -1, 61, 62, - -1, 64, -1, -1, -1, -1, -1, -1, 71, -1, - -1, -1, -1, -1, -1, 78, 79, 80, 81, 82, - -1, -1, -1, 86, -1, 88, -1, -1, -1, -1, - -1, 12, 95, 96, 15, 16, 17, -1, 101, -1, - 103, -1, -1, -1, 25, 26, 27, -1, 29, 30, - 31, -1, 33, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 45, -1, 47, 48, 49, 50, - 51, -1, 53, -1, -1, -1, -1, -1, -1, -1, + 44, -1, -1, -1, -1, 88, -1, -1, -1, -1, + -1, -1, 95, 96, -1, -1, -1, 47, 101, 49, + 103, 65, 66, 67, 68, 69, 70, -1, 72, 73, + 74, 75, 76, 77, -1, 65, 66, 67, 68, 69, + 70, -1, 72, -1, -1, 75, 76, 77, 92, 93, + 94, 95, 96, 97, 98, 49, -1, -1, -1, -1, + -1, 55, 92, 93, 94, 95, 96, 97, 98, -1, + -1, 65, 66, 67, 68, 69, 70, -1, 72, -1, + -1, 75, 76, 77, -1, -1, -1, -1, -1, 49, + -1, -1, -1, -1, -1, 55, -1, -1, 92, 93, + 94, 95, 96, 97, 98, 65, 66, 67, 68, 69, + 70, -1, 72, -1, -1, 75, 76, 77, -1, -1, + -1, -1, -1, 49, -1, -1, -1, -1, -1, 55, + -1, -1, 92, 93, 94, 95, 96, 97, 98, 65, + 66, 67, 68, 69, 70, -1, 72, -1, -1, 75, + 76, 77, -1, -1, -1, -1, -1, 49, -1, -1, + -1, -1, -1, 55, -1, -1, 92, 93, 94, 95, + 96, 97, 98, 65, 66, 67, 68, 69, 70, -1, + 72, -1, -1, 75, 76, 77, -1, -1, -1, -1, + -1, 49, -1, -1, -1, -1, -1, -1, -1, -1, + 92, 93, 94, 95, 96, 97, 98, 65, 66, 67, + 68, 69, 70, -1, 72, -1, -1, 75, 76, 77, + -1, -1, -1, -1, -1, 49, -1, -1, -1, -1, + -1, -1, -1, -1, 92, 93, 94, 95, 96, 97, + 98, 65, 66, 67, 68, 69, 70, -1, 72, -1, + -1, 75, 76, 77, -1, -1, -1, -1, -1, 49, + -1, -1, -1, -1, -1, -1, -1, -1, 92, 93, + 94, 95, 96, 97, 98, 65, 66, 67, 68, 69, + 70, -1, 72, -1, -1, 75, 76, 77, -1, -1, + -1, -1, -1, 49, -1, -1, -1, -1, -1, -1, + -1, -1, 92, 93, 94, 95, 96, 97, 98, 65, + 66, 67, 68, 69, 70, -1, 72, -1, -1, 75, + 76, 77, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 55, -1, -1, 92, 93, 94, 95, + 96, 97, 98, 65, 66, 67, 68, 69, 70, -1, + 72, -1, -1, 75, 76, 77, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 55, + 92, 93, 94, 95, 96, 97, 98, -1, 100, 65, + 66, 67, 68, 69, 70, 57, 72, -1, -1, 75, + 76, 77, -1, 65, 66, 67, 68, 69, 70, -1, + 72, -1, -1, 75, 76, 77, 92, 93, 94, 95, + 96, 97, 98, -1, -1, -1, -1, -1, -1, -1, + 92, 93, 94, 95, 96, 97, 98, 65, 66, 67, + 68, 69, 70, -1, 72, -1, -1, 75, 76, 77, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 71, 12, -1, -1, 15, 16, 17, 78, 79, 80, - 81, 82, -1, -1, 25, 26, 27, 88, 29, 30, - 31, -1, 33, -1, 95, 96, -1, -1, -1, -1, - 101, -1, 103, -1, -1, -1, 47, -1, 49, -1, - 51, -1, 53, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 63, -1, -1, -1, -1, -1, -1, -1, - 71, 12, -1, -1, 15, 16, 17, 78, 79, 80, - 81, 82, -1, -1, 25, 26, 27, 88, 29, 30, - 31, -1, 33, -1, 95, 96, -1, -1, -1, -1, - 101, -1, 103, -1, 12, -1, -1, 15, 16, 17, - 51, -1, 53, -1, -1, -1, -1, 25, 26, 27, - -1, 29, 30, 31, -1, 33, -1, -1, -1, -1, - 71, -1, -1, -1, -1, -1, -1, 78, 79, 80, - 81, 82, -1, 51, -1, 53, -1, 88, -1, -1, - -1, -1, -1, -1, 95, 96, -1, -1, -1, -1, - 101, -1, 103, 71, -1, -1, -1, -1, -1, -1, - 78, 79, 80, 81, 82, 44, -1, -1, -1, -1, - 88, -1, -1, -1, -1, -1, -1, 95, 96, -1, - -1, -1, 47, 101, 49, 103, 65, 66, 67, 68, - 69, 70, -1, 72, 73, 74, 75, 76, 77, -1, - 65, 66, 67, 68, 69, 70, -1, 72, -1, -1, - 75, 76, 77, 92, 93, 94, 95, 96, 97, 98, - 49, -1, -1, -1, -1, -1, 55, 92, 93, 94, - 95, 96, 97, 98, -1, -1, 65, 66, 67, 68, - 69, 70, -1, 72, -1, -1, 75, 76, 77, -1, - -1, -1, -1, -1, 49, -1, -1, -1, -1, -1, - 55, -1, -1, 92, 93, 94, 95, 96, 97, 98, - 65, 66, 67, 68, 69, 70, -1, 72, -1, -1, - 75, 76, 77, -1, -1, -1, -1, -1, 49, -1, - -1, -1, -1, -1, 55, -1, -1, 92, 93, 94, - 95, 96, 97, 98, 65, 66, 67, 68, 69, 70, - -1, 72, -1, -1, 75, 76, 77, -1, -1, -1, - -1, -1, 49, -1, -1, -1, -1, -1, 55, -1, - -1, 92, 93, 94, 95, 96, 97, 98, 65, 66, - 67, 68, 69, 70, -1, 72, -1, -1, 75, 76, - 77, -1, -1, -1, -1, -1, 49, -1, -1, -1, - -1, -1, -1, -1, -1, 92, 93, 94, 95, 96, - 97, 98, 65, 66, 67, 68, 69, 70, -1, 72, - -1, -1, 75, 76, 77, -1, -1, -1, -1, -1, - 49, -1, -1, -1, -1, -1, -1, -1, -1, 92, - 93, 94, 95, 96, 97, 98, 65, 66, 67, 68, - 69, 70, -1, 72, -1, -1, 75, 76, 77, -1, - -1, -1, -1, -1, 49, -1, -1, -1, -1, -1, - -1, -1, -1, 92, 93, 94, 95, 96, 97, 98, - 65, 66, 67, 68, 69, 70, -1, 72, -1, -1, - 75, 76, 77, -1, -1, -1, -1, -1, 49, -1, - -1, -1, -1, -1, -1, -1, -1, 92, 93, 94, - 95, 96, 97, 98, 65, 66, 67, 68, 69, 70, - -1, 72, -1, -1, 75, 76, 77, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 55, -1, - -1, 92, 93, 94, 95, 96, 97, 98, 65, 66, - 67, 68, 69, 70, -1, 72, -1, -1, 75, 76, - 77, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 55, 92, 93, 94, 95, 96, - 97, 98, -1, 100, 65, 66, 67, 68, 69, 70, - 57, 72, -1, -1, 75, 76, 77, -1, 65, 66, - 67, 68, 69, 70, -1, 72, -1, -1, 75, 76, - 77, 92, 93, 94, 95, 96, 97, 98, -1, -1, - -1, -1, -1, -1, -1, 92, 93, 94, 95, 96, - 97, 98, 65, 66, 67, 68, 69, 70, -1, 72, - -1, -1, 75, 76, 77, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 92, - 93, 94, 95, 96, 97, 98, -1, -1, -1, 102, - 65, 66, 67, 68, 69, 70, -1, 72, -1, -1, - 75, 76, 77, -1, -1, -1, -1, -1, 83, 84, - -1, -1, -1, -1, -1, -1, -1, 92, 93, 94, - 95, 96, 97, 98, 65, 66, 67, 68, 69, 70, - -1, 72, -1, -1, 75, 76, 77, 65, 66, 67, - 68, -1, -1, -1, 72, -1, -1, 75, 76, 77, - -1, 92, 93, 94, 95, 96, 97, 98, -1, -1, -1, -1, -1, -1, 92, 93, 94, 95, 96, 97, - 98 + 98, -1, -1, -1, 102, 65, 66, 67, 68, 69, + 70, -1, 72, -1, -1, 75, 76, 77, -1, -1, + -1, -1, -1, 83, 84, -1, -1, -1, -1, -1, + -1, -1, 92, 93, 94, 95, 96, 97, 98, 65, + 66, 67, 68, 69, 70, -1, 72, -1, -1, 75, + 76, 77, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 92, 93, 94, 95, + 96, 97, 98 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing @@ -1231,35 +1252,35 @@ static const yytype_uint8 yystos[] = 40, 41, 42, 43, 46, 51, 52, 53, 56, 60, 61, 62, 64, 71, 78, 79, 80, 81, 82, 85, 86, 87, 88, 95, 96, 101, 103, 107, 108, 109, - 110, 111, 112, 115, 116, 117, 118, 123, 124, 125, - 126, 127, 128, 132, 134, 136, 139, 143, 100, 30, - 51, 126, 126, 126, 126, 145, 30, 126, 145, 30, - 125, 101, 145, 135, 138, 52, 30, 129, 45, 47, - 48, 49, 50, 126, 133, 30, 126, 57, 58, 15, - 16, 30, 30, 30, 126, 63, 126, 133, 30, 131, - 126, 126, 126, 126, 126, 126, 30, 130, 30, 101, - 126, 126, 126, 126, 144, 0, 100, 126, 67, 126, - 110, 118, 126, 65, 66, 67, 68, 69, 70, 72, - 75, 76, 77, 92, 93, 94, 95, 96, 97, 98, - 120, 101, 126, 105, 144, 126, 144, 144, 120, 105, - 126, 47, 133, 137, 44, 73, 74, 30, 55, 67, - 125, 126, 55, 67, 54, 57, 133, 105, 49, 55, - 49, 55, 49, 55, 49, 55, 83, 84, 105, 30, - 102, 104, 105, 108, 121, 126, 121, 121, 126, 55, - 100, 126, 126, 126, 126, 126, 126, 126, 126, 126, - 126, 126, 126, 126, 126, 126, 126, 126, 30, 140, - 126, 102, 140, 30, 126, 120, 30, 127, 126, 126, - 126, 126, 67, 55, 126, 126, 126, 30, 126, 126, - 126, 126, 126, 126, 126, 126, 126, 126, 30, 102, - 105, 126, 122, 121, 54, 121, 126, 122, 100, 105, - 100, 140, 126, 126, 49, 49, 49, 49, 144, 100, - 111, 121, 37, 55, 110, 122, 54, 121, 105, 142, - 30, 142, 100, 126, 126, 126, 126, 102, 90, 55, - 126, 121, 121, 91, 30, 122, 122, 142, 126, 121, - 38, 89, 39, 113, 114, 119, 34, 122, 121, 122, - 120, 38, 121, 113, 126, 30, 141, 122, 121, 110, - 120, 89, 121, 105, 121, 90, 121, 122, 54, 30, - 90, 89, 121, 122, 89, 121 + 110, 112, 113, 117, 118, 119, 124, 125, 126, 127, + 128, 129, 133, 135, 137, 140, 144, 100, 30, 51, + 127, 127, 127, 127, 146, 30, 127, 146, 30, 126, + 101, 146, 136, 139, 52, 30, 130, 45, 47, 48, + 49, 50, 127, 134, 30, 127, 57, 58, 15, 16, + 30, 30, 30, 127, 63, 127, 134, 30, 132, 127, + 127, 127, 127, 127, 127, 30, 131, 30, 101, 127, + 127, 127, 127, 145, 0, 100, 127, 67, 127, 111, + 116, 119, 127, 129, 144, 127, 65, 66, 67, 68, + 69, 70, 72, 75, 76, 77, 92, 93, 94, 95, + 96, 97, 98, 121, 101, 127, 105, 145, 127, 145, + 145, 121, 105, 127, 47, 134, 138, 44, 73, 74, + 30, 55, 67, 126, 127, 55, 67, 54, 57, 134, + 105, 49, 55, 49, 55, 49, 55, 49, 55, 83, + 84, 105, 30, 102, 104, 105, 108, 122, 127, 122, + 122, 127, 55, 100, 127, 127, 127, 127, 127, 127, + 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, + 127, 30, 141, 127, 102, 141, 30, 127, 121, 30, + 128, 127, 127, 127, 127, 67, 55, 127, 127, 127, + 30, 127, 127, 127, 127, 127, 127, 127, 127, 127, + 127, 30, 102, 105, 127, 123, 122, 54, 122, 127, + 123, 100, 105, 100, 141, 127, 127, 49, 49, 49, + 49, 145, 100, 112, 122, 37, 55, 123, 54, 122, + 105, 143, 30, 143, 100, 127, 127, 127, 127, 102, + 90, 55, 127, 122, 110, 91, 30, 123, 123, 143, + 127, 122, 39, 114, 115, 120, 122, 34, 123, 122, + 123, 38, 122, 114, 127, 38, 89, 30, 142, 123, + 122, 121, 89, 122, 121, 105, 122, 90, 123, 54, + 110, 30, 90, 122, 123, 122, 89, 122, 89 }; #define yyerrok (yyerrstatus = 0) @@ -2167,8 +2188,8 @@ yyreduce: (yyval.code) = (yyvsp[(5) - (5)].code); ;} break; - case 24: -#line 198 "engines/director/lingo/lingo-gr.y" + case 27: +#line 203 "engines/director/lingo/lingo-gr.y" { inst body = 0, end = 0; WRITE_UINT32(&body, (yyvsp[(3) - (6)].code) - (yyvsp[(1) - (6)].code)); @@ -2177,8 +2198,8 @@ yyreduce: (*g_lingo->_currentScript)[(yyvsp[(1) - (6)].code) + 2] = end; ;} break; - case 25: -#line 209 "engines/director/lingo/lingo-gr.y" + case 28: +#line 214 "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)); @@ -2193,8 +2214,8 @@ yyreduce: (*g_lingo->_currentScript)[(yyvsp[(1) - (10)].code) + 5] = end; ;} break; - case 26: -#line 226 "engines/director/lingo/lingo-gr.y" + case 29: +#line 231 "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)); @@ -2209,8 +2230,8 @@ yyreduce: (*g_lingo->_currentScript)[(yyvsp[(1) - (11)].code) + 5] = end; ;} break; - case 27: -#line 238 "engines/director/lingo/lingo-gr.y" + case 30: +#line 243 "engines/director/lingo/lingo-gr.y" { inst end = 0; WRITE_UINT32(&end, (yyvsp[(3) - (3)].code) - (yyvsp[(1) - (3)].code)); @@ -2218,21 +2239,21 @@ yyreduce: (*g_lingo->_currentScript)[(yyvsp[(1) - (3)].code) + 1] = end; ;} break; - case 28: -#line 243 "engines/director/lingo/lingo-gr.y" + case 31: +#line 248 "engines/director/lingo/lingo-gr.y" { warning("STUB: TELL is not implemented"); ;} break; - case 29: -#line 245 "engines/director/lingo/lingo-gr.y" + case 32: +#line 250 "engines/director/lingo/lingo-gr.y" { warning("STUB: TELL is not implemented"); ;} break; - case 30: -#line 250 "engines/director/lingo/lingo-gr.y" + case 33: +#line 255 "engines/director/lingo/lingo-gr.y" { inst then = 0, else1 = 0, end = 0; WRITE_UINT32(&then, (yyvsp[(3) - (9)].code) - (yyvsp[(1) - (9)].code)); @@ -2245,8 +2266,8 @@ yyreduce: g_lingo->processIf((yyvsp[(1) - (9)].code), (yyvsp[(8) - (9)].code) - (yyvsp[(1) - (9)].code), 0); ;} break; - case 31: -#line 260 "engines/director/lingo/lingo-gr.y" + case 34: +#line 265 "engines/director/lingo/lingo-gr.y" { inst then = 0, else1 = 0, end = 0; WRITE_UINT32(&then, (yyvsp[(3) - (12)].code) - (yyvsp[(1) - (12)].code)); @@ -2259,8 +2280,8 @@ yyreduce: g_lingo->processIf((yyvsp[(1) - (12)].code), (yyvsp[(11) - (12)].code) - (yyvsp[(1) - (12)].code), (yyvsp[(9) - (12)].code) - (yyvsp[(1) - (12)].code)); ;} break; - case 34: -#line 276 "engines/director/lingo/lingo-gr.y" + case 37: +#line 281 "engines/director/lingo/lingo-gr.y" { inst then = 0; WRITE_UINT32(&then, (yyvsp[(3) - (6)].code) - (yyvsp[(1) - (6)].code)); @@ -2269,8 +2290,8 @@ yyreduce: g_lingo->codeLabel((yyvsp[(1) - (6)].code)); ;} break; - case 35: -#line 284 "engines/director/lingo/lingo-gr.y" + case 38: +#line 289 "engines/director/lingo/lingo-gr.y" { inst then = 0, else1 = 0, end = 0; WRITE_UINT32(&then, (yyvsp[(3) - (11)].code) - (yyvsp[(1) - (11)].code)); @@ -2283,8 +2304,8 @@ yyreduce: g_lingo->processIf((yyvsp[(1) - (11)].code), (yyvsp[(10) - (11)].code) - (yyvsp[(1) - (11)].code), (yyvsp[(8) - (11)].code) - (yyvsp[(1) - (11)].code)); ;} break; - case 36: -#line 294 "engines/director/lingo/lingo-gr.y" + case 39: +#line 299 "engines/director/lingo/lingo-gr.y" { inst then = 0, else1 = 0, end = 0; WRITE_UINT32(&then, (yyvsp[(3) - (7)].code) - (yyvsp[(1) - (7)].code)); @@ -2297,13 +2318,13 @@ yyreduce: g_lingo->processIf((yyvsp[(1) - (7)].code), (yyvsp[(6) - (7)].code) - (yyvsp[(1) - (7)].code), (yyvsp[(6) - (7)].code) - (yyvsp[(1) - (7)].code)); ;} break; - case 37: -#line 307 "engines/director/lingo/lingo-gr.y" + case 40: +#line 312 "engines/director/lingo/lingo-gr.y" { (yyval.code) = g_lingo->code3(g_lingo->c_repeatwhilecode, STOP, STOP); ;} break; - case 38: -#line 310 "engines/director/lingo/lingo-gr.y" + case 41: +#line 315 "engines/director/lingo/lingo-gr.y" { (yyval.code) = g_lingo->code3(g_lingo->c_repeatwithcode, STOP, STOP); g_lingo->code3(STOP, STOP, STOP); @@ -2311,8 +2332,8 @@ yyreduce: delete (yyvsp[(3) - (3)].s); ;} break; - case 39: -#line 317 "engines/director/lingo/lingo-gr.y" + case 42: +#line 322 "engines/director/lingo/lingo-gr.y" { (yyval.code) = g_lingo->code1(g_lingo->c_ifcode); g_lingo->code3(STOP, STOP, STOP); @@ -2320,8 +2341,8 @@ yyreduce: g_lingo->codeLabel(0); ;} break; - case 40: -#line 324 "engines/director/lingo/lingo-gr.y" + case 43: +#line 329 "engines/director/lingo/lingo-gr.y" { inst skipEnd; WRITE_UINT32(&skipEnd, 1); // We have to skip end to avoid multiple executions @@ -2330,23 +2351,23 @@ yyreduce: g_lingo->code1(skipEnd); ;} break; - case 41: -#line 332 "engines/director/lingo/lingo-gr.y" + case 44: +#line 337 "engines/director/lingo/lingo-gr.y" { (yyval.code) = g_lingo->_currentScript->size(); ;} break; - case 42: -#line 335 "engines/director/lingo/lingo-gr.y" + case 45: +#line 340 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(STOP); (yyval.code) = g_lingo->_currentScript->size(); ;} break; - case 43: -#line 338 "engines/director/lingo/lingo-gr.y" + case 46: +#line 343 "engines/director/lingo/lingo-gr.y" { (yyval.code) = g_lingo->_currentScript->size(); ;} break; - case 46: -#line 343 "engines/director/lingo/lingo-gr.y" + case 49: +#line 348 "engines/director/lingo/lingo-gr.y" { (yyval.code) = g_lingo->code1(g_lingo->c_whencode); g_lingo->code1(STOP); @@ -2354,82 +2375,82 @@ yyreduce: delete (yyvsp[(2) - (3)].s); ;} break; - case 47: -#line 349 "engines/director/lingo/lingo-gr.y" + case 50: +#line 354 "engines/director/lingo/lingo-gr.y" { (yyval.code) = g_lingo->code1(g_lingo->c_tellcode); g_lingo->code1(STOP); ;} break; - case 48: -#line 353 "engines/director/lingo/lingo-gr.y" + case 51: +#line 358 "engines/director/lingo/lingo-gr.y" { (yyval.code) = g_lingo->code1(g_lingo->c_intpush); g_lingo->codeInt((yyvsp[(1) - (1)].i)); ;} break; - case 49: -#line 356 "engines/director/lingo/lingo-gr.y" + case 52: +#line 361 "engines/director/lingo/lingo-gr.y" { (yyval.code) = g_lingo->code1(g_lingo->c_floatpush); g_lingo->codeFloat((yyvsp[(1) - (1)].f)); ;} break; - case 50: -#line 359 "engines/director/lingo/lingo-gr.y" + case 53: +#line 364 "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()); ;} break; - case 51: -#line 362 "engines/director/lingo/lingo-gr.y" + case 54: +#line 367 "engines/director/lingo/lingo-gr.y" { (yyval.code) = g_lingo->code1(g_lingo->c_stringpush); g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); ;} break; - case 52: -#line 365 "engines/director/lingo/lingo-gr.y" + case 55: +#line 370 "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); ;} break; - case 53: -#line 371 "engines/director/lingo/lingo-gr.y" + case 56: +#line 376 "engines/director/lingo/lingo-gr.y" { (yyval.code) = (yyvsp[(1) - (1)].code); ;} break; - case 55: -#line 373 "engines/director/lingo/lingo-gr.y" + case 58: +#line 378 "engines/director/lingo/lingo-gr.y" { g_lingo->codeFunc((yyvsp[(1) - (1)].s), 0); delete (yyvsp[(1) - (1)].s); ;} break; - case 56: -#line 376 "engines/director/lingo/lingo-gr.y" + case 59: +#line 381 "engines/director/lingo/lingo-gr.y" { g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1); delete (yyvsp[(1) - (2)].s); ;} break; - case 57: -#line 379 "engines/director/lingo/lingo-gr.y" + case 60: +#line 384 "engines/director/lingo/lingo-gr.y" { g_lingo->codeFunc((yyvsp[(1) - (2)].s), (yyvsp[(2) - (2)].narg)); ;} break; - case 58: -#line 380 "engines/director/lingo/lingo-gr.y" + case 61: +#line 385 "engines/director/lingo/lingo-gr.y" { (yyval.code) = g_lingo->codeFunc((yyvsp[(1) - (4)].s), (yyvsp[(3) - (4)].narg)); delete (yyvsp[(1) - (4)].s); ;} break; - case 59: -#line 383 "engines/director/lingo/lingo-gr.y" + case 62: +#line 388 "engines/director/lingo/lingo-gr.y" { (yyval.code) = g_lingo->code1(g_lingo->c_intpush); g_lingo->codeInt(0); // Put dummy id @@ -2440,8 +2461,8 @@ yyreduce: g_lingo->code2(e, f); ;} break; - case 60: -#line 391 "engines/director/lingo/lingo-gr.y" + case 63: +#line 396 "engines/director/lingo/lingo-gr.y" { (yyval.code) = g_lingo->code1(g_lingo->c_theentitypush); inst e = 0, f = 0; @@ -2450,369 +2471,369 @@ yyreduce: g_lingo->code2(e, f); ;} break; - case 62: -#line 398 "engines/director/lingo/lingo-gr.y" + case 65: +#line 403 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_add); ;} break; - case 63: -#line 399 "engines/director/lingo/lingo-gr.y" + case 66: +#line 404 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_sub); ;} break; - case 64: -#line 400 "engines/director/lingo/lingo-gr.y" + case 67: +#line 405 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_mul); ;} break; - case 65: -#line 401 "engines/director/lingo/lingo-gr.y" + case 68: +#line 406 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_div); ;} break; - case 66: -#line 402 "engines/director/lingo/lingo-gr.y" + case 69: +#line 407 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_mod); ;} break; - case 67: -#line 403 "engines/director/lingo/lingo-gr.y" + case 70: +#line 408 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_gt); ;} break; - case 68: -#line 404 "engines/director/lingo/lingo-gr.y" + case 71: +#line 409 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_lt); ;} break; - case 69: -#line 405 "engines/director/lingo/lingo-gr.y" + case 72: +#line 410 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_eq); ;} break; - case 70: -#line 406 "engines/director/lingo/lingo-gr.y" + case 73: +#line 411 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_neq); ;} break; - case 71: -#line 407 "engines/director/lingo/lingo-gr.y" + case 74: +#line 412 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_ge); ;} break; - case 72: -#line 408 "engines/director/lingo/lingo-gr.y" + case 75: +#line 413 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_le); ;} break; - case 73: -#line 409 "engines/director/lingo/lingo-gr.y" + case 76: +#line 414 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_and); ;} break; - case 74: -#line 410 "engines/director/lingo/lingo-gr.y" + case 77: +#line 415 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_or); ;} break; - case 75: -#line 411 "engines/director/lingo/lingo-gr.y" + case 78: +#line 416 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_not); ;} break; - case 76: -#line 412 "engines/director/lingo/lingo-gr.y" + case 79: +#line 417 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_ampersand); ;} break; - case 77: -#line 413 "engines/director/lingo/lingo-gr.y" + case 80: +#line 418 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_concat); ;} break; - case 78: -#line 414 "engines/director/lingo/lingo-gr.y" + case 81: +#line 419 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_contains); ;} break; - case 79: -#line 415 "engines/director/lingo/lingo-gr.y" + case 82: +#line 420 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_starts); ;} break; - case 80: -#line 416 "engines/director/lingo/lingo-gr.y" + case 83: +#line 421 "engines/director/lingo/lingo-gr.y" { (yyval.code) = (yyvsp[(2) - (2)].code); ;} break; - case 81: -#line 417 "engines/director/lingo/lingo-gr.y" + case 84: +#line 422 "engines/director/lingo/lingo-gr.y" { (yyval.code) = (yyvsp[(2) - (2)].code); g_lingo->code1(g_lingo->c_negate); ;} break; - case 82: -#line 418 "engines/director/lingo/lingo-gr.y" + case 85: +#line 423 "engines/director/lingo/lingo-gr.y" { (yyval.code) = (yyvsp[(2) - (3)].code); ;} break; - case 83: -#line 419 "engines/director/lingo/lingo-gr.y" + case 86: +#line 424 "engines/director/lingo/lingo-gr.y" { (yyval.code) = g_lingo->code1(g_lingo->c_arraypush); g_lingo->codeArray((yyvsp[(2) - (3)].narg)); ;} break; - case 84: -#line 420 "engines/director/lingo/lingo-gr.y" + case 87: +#line 425 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_intersects); ;} break; - case 85: -#line 421 "engines/director/lingo/lingo-gr.y" + case 88: +#line 426 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_within); ;} break; - case 86: -#line 422 "engines/director/lingo/lingo-gr.y" + case 89: +#line 427 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_charOf); ;} break; - case 87: -#line 423 "engines/director/lingo/lingo-gr.y" + case 90: +#line 428 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_charToOf); ;} break; - case 88: -#line 424 "engines/director/lingo/lingo-gr.y" + case 91: +#line 429 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_itemOf); ;} break; - case 89: -#line 425 "engines/director/lingo/lingo-gr.y" + case 92: +#line 430 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_itemToOf); ;} break; - case 90: -#line 426 "engines/director/lingo/lingo-gr.y" + case 93: +#line 431 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_lineOf); ;} break; - case 91: -#line 427 "engines/director/lingo/lingo-gr.y" + case 94: +#line 432 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_lineToOf); ;} break; - case 92: -#line 428 "engines/director/lingo/lingo-gr.y" + case 95: +#line 433 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_wordOf); ;} break; - case 93: -#line 429 "engines/director/lingo/lingo-gr.y" + case 96: +#line 434 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_wordToOf); ;} break; - case 94: -#line 430 "engines/director/lingo/lingo-gr.y" + case 97: +#line 435 "engines/director/lingo/lingo-gr.y" { g_lingo->codeMe((yyvsp[(3) - (4)].s), 0); ;} break; - case 95: -#line 431 "engines/director/lingo/lingo-gr.y" + case 98: +#line 436 "engines/director/lingo/lingo-gr.y" { g_lingo->codeMe((yyvsp[(3) - (6)].s), (yyvsp[(5) - (6)].narg)); ;} break; - case 96: -#line 432 "engines/director/lingo/lingo-gr.y" + case 99: +#line 437 "engines/director/lingo/lingo-gr.y" { g_lingo->codeMe(nullptr, 0); ;} break; - case 97: -#line 435 "engines/director/lingo/lingo-gr.y" + case 100: +#line 440 "engines/director/lingo/lingo-gr.y" { g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1); delete (yyvsp[(1) - (2)].s); ;} break; - case 98: -#line 440 "engines/director/lingo/lingo-gr.y" + case 101: +#line 445 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_printtop); ;} break; - case 101: -#line 443 "engines/director/lingo/lingo-gr.y" + case 104: +#line 448 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_exitRepeat); ;} break; - case 102: -#line 444 "engines/director/lingo/lingo-gr.y" + case 105: +#line 449 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_procret); ;} break; - case 106: -#line 448 "engines/director/lingo/lingo-gr.y" + case 109: +#line 453 "engines/director/lingo/lingo-gr.y" { g_lingo->codeFunc((yyvsp[(1) - (1)].s), 0); delete (yyvsp[(1) - (1)].s); ;} break; - case 107: -#line 451 "engines/director/lingo/lingo-gr.y" + case 110: +#line 456 "engines/director/lingo/lingo-gr.y" { g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1); delete (yyvsp[(1) - (2)].s); ;} break; - case 108: -#line 454 "engines/director/lingo/lingo-gr.y" + case 111: +#line 459 "engines/director/lingo/lingo-gr.y" { g_lingo->codeFunc((yyvsp[(1) - (2)].s), 1); delete (yyvsp[(1) - (2)].s); ;} break; - case 109: -#line 457 "engines/director/lingo/lingo-gr.y" + case 112: +#line 462 "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); ;} break; - case 110: -#line 461 "engines/director/lingo/lingo-gr.y" + case 113: +#line 466 "engines/director/lingo/lingo-gr.y" { g_lingo->codeFunc((yyvsp[(1) - (2)].s), (yyvsp[(2) - (2)].narg)); ;} break; - case 111: -#line 462 "engines/director/lingo/lingo-gr.y" + case 114: +#line 467 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_open); ;} break; - case 112: -#line 463 "engines/director/lingo/lingo-gr.y" + case 115: +#line 468 "engines/director/lingo/lingo-gr.y" { g_lingo->code2(g_lingo->c_voidpush, g_lingo->c_open); ;} break; - case 113: -#line 464 "engines/director/lingo/lingo-gr.y" + case 116: +#line 469 "engines/director/lingo/lingo-gr.y" { Common::String s(*(yyvsp[(1) - (3)].s)); s += '-'; s += *(yyvsp[(2) - (3)].s); g_lingo->codeFunc(&s, (yyvsp[(3) - (3)].narg)); ;} break; - case 114: -#line 467 "engines/director/lingo/lingo-gr.y" + case 117: +#line 472 "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 115: -#line 468 "engines/director/lingo/lingo-gr.y" + case 118: +#line 473 "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 116: -#line 471 "engines/director/lingo/lingo-gr.y" + case 119: +#line 476 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_property); g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); delete (yyvsp[(1) - (1)].s); ;} break; - case 117: -#line 472 "engines/director/lingo/lingo-gr.y" + case 120: +#line 477 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_property); g_lingo->codeString((yyvsp[(3) - (3)].s)->c_str()); delete (yyvsp[(3) - (3)].s); ;} break; - case 118: -#line 475 "engines/director/lingo/lingo-gr.y" + case 121: +#line 480 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_instance); g_lingo->codeString((yyvsp[(1) - (1)].s)->c_str()); delete (yyvsp[(1) - (1)].s); ;} break; - case 119: -#line 476 "engines/director/lingo/lingo-gr.y" + case 122: +#line 481 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_instance); g_lingo->codeString((yyvsp[(3) - (3)].s)->c_str()); delete (yyvsp[(3) - (3)].s); ;} break; - case 120: -#line 487 "engines/director/lingo/lingo-gr.y" + case 123: +#line 492 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_gotoloop); ;} break; - case 121: -#line 488 "engines/director/lingo/lingo-gr.y" + case 124: +#line 493 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_gotonext); ;} break; - case 122: -#line 489 "engines/director/lingo/lingo-gr.y" + case 125: +#line 494 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_gotoprevious); ;} break; - case 123: -#line 490 "engines/director/lingo/lingo-gr.y" + case 126: +#line 495 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_intpush); g_lingo->codeInt(1); g_lingo->code1(g_lingo->c_goto); ;} break; - case 124: -#line 494 "engines/director/lingo/lingo-gr.y" + case 127: +#line 499 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_intpush); g_lingo->codeInt(3); g_lingo->code1(g_lingo->c_goto); ;} break; - case 125: -#line 498 "engines/director/lingo/lingo-gr.y" + case 128: +#line 503 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_intpush); g_lingo->codeInt(2); g_lingo->code1(g_lingo->c_goto); ;} break; - case 128: -#line 508 "engines/director/lingo/lingo-gr.y" + case 131: +#line 513 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_playdone); ;} break; - case 129: -#line 509 "engines/director/lingo/lingo-gr.y" + case 132: +#line 514 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_intpush); g_lingo->codeInt(1); g_lingo->code1(g_lingo->c_play); ;} break; - case 130: -#line 513 "engines/director/lingo/lingo-gr.y" + case 133: +#line 518 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_intpush); g_lingo->codeInt(3); g_lingo->code1(g_lingo->c_play); ;} break; - case 131: -#line 517 "engines/director/lingo/lingo-gr.y" + case 134: +#line 522 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_intpush); g_lingo->codeInt(2); g_lingo->code1(g_lingo->c_play); ;} break; - case 132: -#line 521 "engines/director/lingo/lingo-gr.y" + case 135: +#line 526 "engines/director/lingo/lingo-gr.y" { g_lingo->codeSetImmediate(true); ;} break; - case 133: -#line 521 "engines/director/lingo/lingo-gr.y" + case 136: +#line 526 "engines/director/lingo/lingo-gr.y" { g_lingo->codeSetImmediate(false); g_lingo->codeFunc((yyvsp[(1) - (3)].s), (yyvsp[(3) - (3)].narg)); ;} break; - case 134: -#line 551 "engines/director/lingo/lingo-gr.y" + case 137: +#line 556 "engines/director/lingo/lingo-gr.y" { g_lingo->_indef = kStateInArgs; g_lingo->_currentFactory.clear(); ;} break; - case 135: -#line 552 "engines/director/lingo/lingo-gr.y" + case 138: +#line 557 "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)); @@ -2820,18 +2841,18 @@ yyreduce: g_lingo->_indef = kStateNone; ;} break; - case 136: -#line 557 "engines/director/lingo/lingo-gr.y" + case 139: +#line 562 "engines/director/lingo/lingo-gr.y" { g_lingo->codeFactory(*(yyvsp[(2) - (2)].s)); ;} break; - case 137: -#line 558 "engines/director/lingo/lingo-gr.y" + case 140: +#line 563 "engines/director/lingo/lingo-gr.y" { g_lingo->_indef = kStateInArgs; ;} break; - case 138: -#line 559 "engines/director/lingo/lingo-gr.y" + case 141: +#line 564 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_procret); g_lingo->define(*(yyvsp[(1) - (7)].s), (yyvsp[(3) - (7)].code), (yyvsp[(4) - (7)].narg) + 1, &g_lingo->_currentFactory); @@ -2839,8 +2860,8 @@ yyreduce: g_lingo->_indef = kStateNone; ;} break; - case 139: -#line 564 "engines/director/lingo/lingo-gr.y" + case 142: +#line 569 "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)); @@ -2851,8 +2872,8 @@ yyreduce: checkEnd((yyvsp[(7) - (8)].s), (yyvsp[(1) - (8)].s)->c_str(), false); ;} break; - case 140: -#line 572 "engines/director/lingo/lingo-gr.y" + case 143: +#line 577 "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)); @@ -2861,38 +2882,38 @@ yyreduce: g_lingo->_ignoreMe = false; ;} break; - case 141: -#line 579 "engines/director/lingo/lingo-gr.y" + case 144: +#line 584 "engines/director/lingo/lingo-gr.y" { (yyval.s) = (yyvsp[(2) - (2)].s); g_lingo->_indef = kStateInArgs; g_lingo->_currentFactory.clear(); g_lingo->_ignoreMe = true; ;} break; - case 142: -#line 581 "engines/director/lingo/lingo-gr.y" + case 145: +#line 586 "engines/director/lingo/lingo-gr.y" { (yyval.narg) = 0; ;} break; - case 143: -#line 582 "engines/director/lingo/lingo-gr.y" + case 146: +#line 587 "engines/director/lingo/lingo-gr.y" { g_lingo->codeArg((yyvsp[(1) - (1)].s)); (yyval.narg) = 1; ;} break; - case 144: -#line 583 "engines/director/lingo/lingo-gr.y" + case 147: +#line 588 "engines/director/lingo/lingo-gr.y" { g_lingo->codeArg((yyvsp[(3) - (3)].s)); (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;} break; - case 145: -#line 584 "engines/director/lingo/lingo-gr.y" + case 148: +#line 589 "engines/director/lingo/lingo-gr.y" { g_lingo->codeArg((yyvsp[(4) - (4)].s)); (yyval.narg) = (yyvsp[(1) - (4)].narg) + 1; ;} break; - case 149: -#line 592 "engines/director/lingo/lingo-gr.y" + case 152: +#line 597 "engines/director/lingo/lingo-gr.y" { g_lingo->codeArgStore(); g_lingo->_indef = kStateInDef; ;} break; - case 150: -#line 595 "engines/director/lingo/lingo-gr.y" + case 153: +#line 600 "engines/director/lingo/lingo-gr.y" { g_lingo->code1(g_lingo->c_call); g_lingo->codeString((yyvsp[(1) - (2)].s)->c_str()); @@ -2901,34 +2922,34 @@ yyreduce: g_lingo->code1(numpar); ;} break; - case 151: -#line 603 "engines/director/lingo/lingo-gr.y" + case 154: +#line 608 "engines/director/lingo/lingo-gr.y" { (yyval.narg) = 0; ;} break; - case 152: -#line 604 "engines/director/lingo/lingo-gr.y" + case 155: +#line 609 "engines/director/lingo/lingo-gr.y" { (yyval.narg) = 1; ;} break; - case 153: -#line 605 "engines/director/lingo/lingo-gr.y" + case 156: +#line 610 "engines/director/lingo/lingo-gr.y" { (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;} break; - case 154: -#line 608 "engines/director/lingo/lingo-gr.y" + case 157: +#line 613 "engines/director/lingo/lingo-gr.y" { (yyval.narg) = 1; ;} break; - case 155: -#line 609 "engines/director/lingo/lingo-gr.y" + case 158: +#line 614 "engines/director/lingo/lingo-gr.y" { (yyval.narg) = (yyvsp[(1) - (3)].narg) + 1; ;} break; /* Line 1267 of yacc.c. */ -#line 2932 "engines/director/lingo/lingo-gr.cpp" +#line 2953 "engines/director/lingo/lingo-gr.cpp" default: break; } YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); @@ -3142,6 +3163,6 @@ yyreturn: } -#line 612 "engines/director/lingo/lingo-gr.y" +#line 617 "engines/director/lingo/lingo-gr.y" diff --git a/engines/director/lingo/lingo-gr.y b/engines/director/lingo/lingo-gr.y index 9214a7e7b7..c97ee46cb1 100644 --- a/engines/director/lingo/lingo-gr.y +++ b/engines/director/lingo/lingo-gr.y @@ -184,6 +184,11 @@ asgn: tPUT expr tINTO ID { ; stmtoneliner: macro + | expr + | proc + ; + +stmtonelinerwithif: macro | expr | proc | ifoneliner @@ -235,7 +240,7 @@ stmt: stmtoneliner (*g_lingo->_currentScript)[$1 + 3] = body; /* body of loop */ (*g_lingo->_currentScript)[$1 + 4] = inc; /* increment */ (*g_lingo->_currentScript)[$1 + 5] = end; } /* end, if cond fails */ - | when stmtoneliner end { + | when stmtonelinerwithif end { inst end = 0; WRITE_UINT32(&end, $3 - $1); g_lingo->code1(STOP); -- cgit v1.2.3