diff options
Diffstat (limited to 'engines/director/lingo/lingo-lex.cpp')
-rw-r--r-- | engines/director/lingo/lingo-lex.cpp | 600 |
1 files changed, 306 insertions, 294 deletions
diff --git a/engines/director/lingo/lingo-lex.cpp b/engines/director/lingo/lingo-lex.cpp index 5c0eeedf7e..2bc31335f3 100644 --- a/engines/director/lingo/lingo-lex.cpp +++ b/engines/director/lingo/lingo-lex.cpp @@ -34,7 +34,7 @@ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, - * if you want the limit (max/min) macros for int types. + * if you want the limit (max/min) macros for int types. */ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 @@ -52,7 +52,7 @@ typedef uint64_t flex_uint64_t; typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; -typedef unsigned char flex_uint8_t; +typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; #endif /* ! C99 */ @@ -168,7 +168,7 @@ extern FILE *yyin, *yyout; #define EOB_ACT_LAST_MATCH 2 #define YY_LESS_LINENO(n) - + /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ @@ -225,7 +225,7 @@ struct yy_buffer_state int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ - + /* Whether to try to fill the input buffer when we reach the * end of it. */ @@ -364,8 +364,8 @@ static void yy_fatal_error (yyconst char msg[] ); *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; -#define YY_NUM_RULES 59 -#define YY_END_OF_BUFFER 60 +#define YY_NUM_RULES 61 +#define YY_END_OF_BUFFER 62 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info @@ -373,31 +373,31 @@ struct yy_trans_info flex_int32_t yy_verify; flex_int32_t yy_nxt; }; -static yyconst flex_int16_t yy_accept[206] = +static yyconst flex_int16_t yy_accept[207] = { 0, - 0, 0, 60, 58, 3, 56, 56, 58, 58, 55, - 55, 55, 54, 55, 55, 52, 52, 52, 52, 52, - 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, - 52, 52, 2, 2, 3, 56, 0, 0, 0, 0, - 0, 57, 51, 1, 53, 54, 50, 48, 49, 52, - 52, 52, 52, 52, 52, 52, 52, 52, 52, 18, - 8, 52, 52, 52, 52, 52, 52, 52, 29, 52, - 31, 52, 52, 52, 52, 52, 52, 52, 52, 42, - 52, 52, 2, 2, 0, 1, 53, 4, 52, 52, - 52, 52, 12, 52, 52, 52, 52, 0, 52, 52, - - 52, 52, 52, 25, 52, 52, 28, 52, 52, 52, - 34, 52, 36, 52, 52, 52, 52, 52, 52, 0, - 52, 6, 7, 11, 14, 52, 52, 52, 0, 52, - 52, 21, 22, 52, 52, 52, 27, 30, 32, 52, - 52, 52, 52, 0, 41, 46, 52, 44, 10, 52, - 52, 15, 52, 17, 52, 52, 23, 52, 26, 52, - 52, 52, 52, 40, 40, 47, 52, 0, 52, 52, - 16, 52, 52, 24, 52, 35, 43, 37, 0, 40, - 45, 0, 52, 13, 52, 52, 52, 0, 40, 9, - 5, 19, 52, 33, 0, 40, 52, 0, 0, 20, - - 39, 0, 0, 38, 0 + 0, 0, 62, 60, 3, 58, 58, 60, 60, 57, + 57, 57, 56, 57, 57, 54, 54, 54, 54, 54, + 54, 54, 54, 54, 54, 54, 54, 54, 54, 54, + 54, 54, 2, 2, 3, 58, 0, 0, 0, 0, + 0, 59, 53, 1, 55, 56, 52, 50, 51, 54, + 54, 54, 54, 54, 54, 54, 54, 54, 54, 18, + 8, 54, 54, 54, 24, 54, 54, 54, 30, 31, + 54, 33, 54, 54, 54, 54, 54, 54, 54, 54, + 44, 54, 54, 2, 2, 0, 1, 55, 4, 54, + 54, 54, 54, 12, 54, 54, 54, 54, 0, 54, + + 54, 54, 54, 54, 26, 54, 54, 29, 54, 54, + 54, 36, 54, 38, 54, 54, 54, 54, 54, 54, + 0, 54, 6, 7, 11, 14, 54, 54, 54, 0, + 54, 54, 21, 22, 54, 54, 54, 28, 32, 34, + 54, 54, 54, 54, 0, 43, 48, 54, 46, 10, + 54, 54, 15, 54, 17, 54, 54, 23, 54, 27, + 54, 54, 54, 54, 42, 42, 49, 54, 0, 54, + 54, 16, 54, 54, 25, 54, 37, 45, 39, 0, + 42, 47, 0, 54, 13, 54, 54, 54, 0, 42, + 9, 5, 19, 54, 35, 0, 42, 54, 0, 0, + + 20, 41, 0, 0, 40, 0 } ; static yyconst flex_int32_t yy_ec[256] = @@ -443,61 +443,63 @@ static yyconst flex_int32_t yy_meta[63] = 5, 5 } ; -static yyconst flex_int16_t yy_base[211] = +static yyconst flex_int16_t yy_base[212] = { 0, - 0, 61, 156, 521, 65, 69, 73, 77, 148, 521, - 104, 99, 54, 70, 91, 58, 0, 58, 59, 69, - 74, 70, 70, 71, 88, 105, 105, 110, 82, 118, - 117, 130, 177, 181, 185, 521, 189, 193, 197, 106, - 94, 521, 521, 0, 82, 132, 521, 521, 521, 0, - 84, 119, 169, 116, 120, 174, 186, 191, 180, 171, - 0, 177, 183, 196, 182, 201, 181, 188, 0, 204, - 0, 209, 206, 194, 201, 207, 212, 231, 228, 0, - 233, 222, 271, 280, 230, 0, 80, 0, 230, 234, - 238, 247, 0, 235, 236, 244, 264, 293, 255, 271, - - 267, 266, 278, 0, 279, 271, 0, 279, 269, 273, - 0, 290, 0, 287, 282, 309, 289, 292, 296, 300, - 307, 0, 0, 0, 0, 296, 310, 318, 310, 324, - 311, 0, 0, 317, 318, 330, 0, 0, 0, 328, - 337, 322, 323, 363, 0, 0, 334, 334, 202, 336, - 330, 0, 338, 521, 340, 340, 0, 355, 0, 347, - 348, 364, 354, 212, 387, 0, 361, 388, 367, 359, - 0, 383, 382, 0, 369, 0, 0, 0, 402, 404, - 0, 393, 383, 0, 401, 405, 384, 403, 427, 521, - 0, 0, 395, 0, 256, 429, 401, 441, 448, 0, - - 453, 404, 459, 460, 521, 500, 502, 507, 511, 515 + 0, 61, 155, 520, 65, 69, 73, 77, 148, 520, + 140, 130, 54, 70, 99, 58, 0, 58, 59, 69, + 74, 70, 70, 71, 88, 105, 107, 110, 81, 134, + 109, 123, 170, 177, 181, 520, 190, 145, 194, 77, + 102, 520, 520, 0, 82, 132, 520, 520, 520, 0, + 133, 139, 173, 145, 184, 180, 187, 190, 160, 99, + 0, 175, 182, 194, 182, 200, 179, 184, 0, 0, + 200, 0, 205, 202, 190, 196, 193, 206, 227, 229, + 0, 232, 220, 260, 266, 222, 0, 80, 0, 224, + 239, 233, 247, 0, 239, 241, 249, 263, 280, 253, + + 273, 258, 257, 267, 0, 267, 261, 0, 268, 259, + 265, 0, 283, 0, 280, 274, 304, 281, 291, 298, + 303, 308, 0, 0, 0, 0, 298, 314, 319, 302, + 320, 307, 0, 0, 311, 313, 317, 0, 0, 0, + 319, 328, 313, 316, 351, 0, 0, 325, 328, 369, + 329, 326, 0, 339, 520, 339, 340, 0, 357, 0, + 350, 346, 361, 350, 382, 384, 0, 358, 389, 365, + 355, 0, 378, 378, 0, 365, 0, 0, 0, 396, + 408, 0, 384, 376, 0, 392, 398, 386, 399, 423, + 520, 0, 0, 388, 0, 425, 429, 394, 441, 447, + + 0, 449, 413, 455, 457, 520, 499, 501, 506, 510, + 514 } ; -static yyconst flex_int16_t yy_def[211] = +static yyconst flex_int16_t yy_def[212] = { 0, - 205, 1, 205, 205, 205, 205, 205, 205, 206, 205, - 205, 205, 205, 205, 205, 207, 207, 207, 207, 207, - 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, - 207, 207, 205, 205, 205, 205, 205, 205, 205, 205, - 206, 205, 205, 208, 205, 205, 205, 205, 205, 207, - 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, - 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, - 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, - 207, 207, 205, 205, 205, 208, 205, 207, 207, 207, - 207, 207, 207, 207, 207, 207, 207, 205, 207, 207, - - 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, - 207, 207, 207, 207, 207, 207, 207, 207, 207, 205, - 207, 207, 207, 207, 207, 207, 207, 207, 205, 207, - 207, 207, 207, 207, 207, 207, 207, 207, 207, 207, - 207, 207, 207, 209, 207, 207, 207, 207, 205, 207, - 207, 207, 207, 205, 207, 207, 207, 207, 207, 207, - 207, 207, 207, 209, 209, 207, 207, 205, 207, 207, - 207, 207, 207, 207, 207, 207, 207, 207, 205, 209, - 207, 205, 207, 207, 207, 207, 207, 205, 209, 205, - 207, 207, 207, 207, 205, 209, 207, 210, 205, 207, - - 210, 205, 205, 210, 0, 205, 205, 205, 205, 205 + 206, 1, 206, 206, 206, 206, 206, 206, 207, 206, + 206, 206, 206, 206, 206, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 208, 208, 206, 206, 206, 206, 206, 206, 206, 206, + 207, 206, 206, 209, 206, 206, 206, 206, 206, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 208, 208, 208, 206, 206, 206, 209, 206, 208, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 206, 208, + + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 206, 208, 208, 208, 208, 208, 208, 208, 208, 206, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 210, 208, 208, 208, 208, 206, + 208, 208, 208, 208, 206, 208, 208, 208, 208, 208, + 208, 208, 208, 208, 210, 210, 208, 208, 206, 208, + 208, 208, 208, 208, 208, 208, 208, 208, 208, 206, + 210, 208, 206, 208, 208, 208, 208, 208, 206, 210, + 206, 208, 208, 208, 208, 206, 210, 208, 211, 206, + + 208, 211, 206, 206, 211, 0, 206, 206, 206, 206, + 206 } ; -static yyconst flex_int16_t yy_nxt[584] = +static yyconst flex_int16_t yy_nxt[583] = { 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 13, 14, 10, 15, 16, 17, 18, 19, 20, 21, @@ -508,64 +510,64 @@ static yyconst flex_int16_t yy_nxt[584] = 17, 17, 33, 45, 46, 34, 35, 36, 36, 37, 38, 39, 39, 38, 38, 39, 39, 38, 37, 36, 36, 37, 47, 48, 51, 52, 53, 40, 57, 61, - 87, 40, 87, 54, 59, 55, 62, 60, 63, 42, - - 75, 88, 64, 49, 58, 56, 65, 44, 51, 52, - 53, 43, 40, 57, 61, 66, 40, 54, 59, 55, - 62, 60, 63, 67, 69, 75, 88, 64, 58, 56, - 85, 65, 68, 70, 72, 71, 76, 93, 79, 66, - 73, 45, 46, 74, 80, 89, 77, 92, 67, 69, - 78, 81, 82, 42, 85, 205, 68, 70, 72, 71, - 205, 76, 93, 79, 73, 205, 205, 74, 80, 89, - 77, 92, 98, 205, 78, 98, 81, 82, 83, 36, - 36, 84, 84, 36, 36, 84, 35, 36, 36, 37, - 37, 36, 36, 37, 38, 90, 94, 38, 38, 39, - - 39, 38, 95, 168, 91, 96, 168, 97, 99, 100, - 101, 40, 102, 179, 103, 40, 179, 106, 104, 90, - 107, 94, 108, 109, 110, 205, 111, 95, 91, 112, - 96, 97, 99, 100, 101, 105, 40, 102, 103, 113, - 40, 106, 114, 104, 107, 115, 116, 108, 109, 110, - 111, 117, 122, 112, 119, 118, 205, 198, 205, 105, - 198, 120, 121, 113, 123, 124, 114, 125, 126, 127, - 115, 116, 83, 36, 36, 84, 117, 122, 119, 128, - 118, 84, 36, 36, 84, 120, 121, 130, 123, 131, - 124, 125, 126, 127, 98, 133, 134, 98, 132, 135, - - 205, 136, 205, 137, 128, 138, 139, 140, 141, 142, - 144, 130, 143, 144, 131, 146, 147, 148, 149, 133, - 134, 150, 132, 151, 135, 129, 136, 137, 152, 138, - 139, 140, 153, 141, 142, 145, 143, 154, 155, 146, - 147, 156, 148, 149, 157, 158, 150, 151, 159, 129, - 160, 161, 166, 152, 162, 163, 167, 153, 169, 145, - 170, 154, 171, 155, 144, 156, 172, 144, 157, 158, - 205, 173, 174, 159, 175, 160, 161, 166, 162, 163, - 176, 167, 177, 169, 170, 178, 171, 181, 179, 168, - 172, 179, 168, 183, 165, 173, 184, 174, 175, 185, - - 186, 205, 187, 179, 176, 179, 179, 177, 179, 178, - 182, 181, 190, 205, 191, 194, 180, 183, 165, 192, - 184, 193, 195, 203, 185, 186, 187, 197, 179, 188, - 199, 179, 200, 199, 189, 182, 205, 190, 191, 194, - 180, 205, 198, 205, 192, 198, 193, 195, 203, 199, - 205, 197, 199, 188, 205, 205, 200, 205, 189, 196, - 204, 204, 205, 204, 204, 205, 205, 205, 205, 205, - 205, 205, 205, 205, 205, 202, 205, 205, 205, 205, - 205, 205, 205, 196, 205, 205, 205, 205, 205, 205, - 205, 205, 205, 205, 205, 205, 205, 205, 205, 202, - - 41, 41, 205, 41, 41, 50, 50, 86, 86, 205, - 86, 86, 164, 205, 205, 164, 201, 205, 205, 201, - 3, 205, 205, 205, 205, 205, 205, 205, 205, 205, - 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, - 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, - 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, - 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, - 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, - 205, 205, 205 + 88, 40, 88, 54, 59, 55, 62, 60, 63, 76, + + 99, 86, 64, 99, 58, 56, 65, 42, 51, 52, + 53, 49, 40, 57, 61, 66, 40, 54, 59, 55, + 62, 60, 63, 67, 76, 86, 69, 64, 58, 56, + 80, 65, 68, 70, 73, 71, 81, 72, 44, 66, + 74, 45, 46, 75, 82, 83, 38, 43, 67, 38, + 89, 69, 77, 42, 206, 80, 68, 70, 73, 71, + 81, 72, 78, 40, 74, 90, 79, 75, 206, 82, + 83, 84, 36, 36, 85, 89, 93, 77, 85, 36, + 36, 85, 35, 36, 36, 37, 78, 98, 40, 90, + 79, 37, 36, 36, 37, 38, 39, 39, 38, 91, + + 93, 94, 95, 96, 97, 206, 100, 101, 92, 102, + 103, 98, 40, 206, 104, 107, 108, 105, 109, 110, + 111, 206, 112, 91, 113, 114, 94, 95, 96, 97, + 100, 101, 92, 102, 106, 103, 115, 40, 104, 107, + 108, 116, 105, 109, 110, 111, 112, 117, 113, 114, + 118, 206, 120, 121, 119, 206, 122, 123, 106, 124, + 115, 84, 36, 36, 85, 125, 116, 85, 36, 36, + 85, 126, 117, 127, 128, 118, 120, 121, 129, 119, + 122, 99, 123, 124, 99, 131, 134, 135, 136, 137, + 125, 132, 206, 138, 139, 126, 140, 127, 128, 141, + + 133, 142, 143, 129, 144, 145, 206, 147, 145, 131, + 134, 135, 130, 136, 137, 148, 132, 138, 139, 149, + 140, 150, 151, 141, 133, 152, 142, 143, 144, 155, + 146, 147, 153, 154, 156, 160, 130, 157, 158, 148, + 159, 161, 162, 167, 149, 163, 150, 151, 164, 152, + 168, 170, 145, 155, 146, 145, 171, 153, 154, 156, + 160, 157, 158, 172, 159, 173, 161, 162, 167, 163, + 169, 174, 164, 169, 175, 168, 170, 176, 177, 178, + 171, 179, 166, 180, 182, 180, 180, 172, 180, 173, + 169, 184, 185, 169, 186, 174, 187, 180, 188, 175, + + 180, 176, 177, 191, 178, 179, 166, 192, 182, 180, + 193, 183, 180, 181, 194, 184, 185, 195, 196, 186, + 198, 187, 188, 189, 180, 201, 199, 180, 191, 199, + 200, 192, 204, 200, 206, 193, 183, 181, 190, 194, + 206, 195, 199, 196, 198, 199, 206, 189, 200, 201, + 206, 200, 206, 206, 206, 197, 205, 204, 205, 205, + 206, 205, 190, 206, 206, 206, 206, 206, 206, 206, + 206, 206, 206, 206, 203, 206, 206, 206, 206, 197, + 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, + 206, 206, 206, 206, 206, 206, 206, 206, 203, 41, + + 41, 206, 41, 41, 50, 50, 87, 87, 206, 87, + 87, 165, 206, 206, 165, 202, 206, 206, 202, 3, + 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, + 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, + 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, + 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, + 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, + 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, + 206, 206 } ; -static yyconst flex_int16_t yy_chk[584] = +static yyconst flex_int16_t yy_chk[583] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -576,61 +578,61 @@ static yyconst flex_int16_t yy_chk[584] = 1, 1, 2, 13, 13, 2, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 14, 14, 16, 18, 19, 6, 21, 23, - 87, 7, 45, 20, 22, 20, 23, 22, 24, 41, - - 29, 51, 25, 15, 21, 20, 25, 12, 16, 18, - 19, 11, 6, 21, 23, 25, 7, 20, 22, 20, - 23, 22, 24, 26, 27, 29, 51, 25, 21, 20, - 40, 25, 26, 27, 28, 27, 30, 55, 31, 25, - 28, 46, 46, 28, 31, 52, 30, 54, 26, 27, - 30, 32, 32, 9, 40, 3, 26, 27, 28, 27, - 0, 30, 55, 31, 28, 0, 0, 28, 31, 52, - 30, 54, 60, 0, 30, 60, 32, 32, 33, 33, - 33, 33, 34, 34, 34, 34, 35, 35, 35, 35, - 37, 37, 37, 37, 38, 53, 56, 38, 39, 39, - - 39, 39, 57, 149, 53, 58, 149, 59, 62, 62, - 63, 38, 64, 164, 65, 39, 164, 67, 66, 53, - 68, 56, 70, 72, 73, 0, 74, 57, 53, 75, - 58, 59, 62, 62, 63, 66, 38, 64, 65, 76, - 39, 67, 77, 66, 68, 78, 79, 70, 72, 73, - 74, 81, 90, 75, 82, 81, 0, 195, 0, 66, - 195, 85, 89, 76, 91, 92, 77, 94, 95, 96, - 78, 79, 83, 83, 83, 83, 81, 90, 82, 97, - 81, 84, 84, 84, 84, 85, 89, 99, 91, 100, - 92, 94, 95, 96, 98, 101, 102, 98, 100, 103, - - 0, 105, 0, 106, 97, 108, 109, 110, 112, 114, - 116, 99, 115, 116, 100, 117, 118, 119, 120, 101, - 102, 121, 100, 126, 103, 98, 105, 106, 127, 108, - 109, 110, 128, 112, 114, 116, 115, 129, 130, 117, - 118, 131, 119, 120, 134, 135, 121, 126, 136, 98, - 140, 141, 147, 127, 142, 143, 148, 128, 150, 116, - 151, 129, 153, 130, 144, 131, 155, 144, 134, 135, - 0, 156, 158, 136, 160, 140, 141, 147, 142, 143, - 161, 148, 162, 150, 151, 163, 153, 167, 165, 168, - 155, 165, 168, 169, 144, 156, 170, 158, 160, 172, - - 173, 0, 175, 179, 161, 180, 179, 162, 180, 163, - 168, 167, 182, 0, 183, 187, 165, 169, 144, 185, - 170, 186, 188, 202, 172, 173, 175, 193, 189, 179, - 196, 189, 197, 196, 180, 168, 0, 182, 183, 187, - 165, 0, 198, 0, 185, 198, 186, 188, 202, 199, - 0, 193, 199, 179, 201, 0, 197, 201, 180, 189, - 203, 204, 0, 203, 204, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 199, 0, 0, 0, 0, - 0, 0, 0, 189, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, - - 206, 206, 0, 206, 206, 207, 207, 208, 208, 0, - 208, 208, 209, 0, 0, 209, 210, 0, 0, 210, - 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, - 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, - 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, - 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, - 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, - 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, - 205, 205, 205 + 88, 7, 45, 20, 22, 20, 23, 22, 24, 29, + + 60, 40, 25, 60, 21, 20, 25, 41, 16, 18, + 19, 15, 6, 21, 23, 25, 7, 20, 22, 20, + 23, 22, 24, 26, 29, 40, 27, 25, 21, 20, + 31, 25, 26, 27, 28, 27, 31, 27, 12, 25, + 28, 46, 46, 28, 32, 32, 38, 11, 26, 38, + 51, 27, 30, 9, 3, 31, 26, 27, 28, 27, + 31, 27, 30, 38, 28, 52, 30, 28, 0, 32, + 32, 33, 33, 33, 33, 51, 54, 30, 34, 34, + 34, 34, 35, 35, 35, 35, 30, 59, 38, 52, + 30, 37, 37, 37, 37, 39, 39, 39, 39, 53, + + 54, 55, 56, 57, 58, 0, 62, 62, 53, 63, + 64, 59, 39, 0, 65, 67, 68, 66, 71, 73, + 74, 0, 75, 53, 76, 77, 55, 56, 57, 58, + 62, 62, 53, 63, 66, 64, 78, 39, 65, 67, + 68, 79, 66, 71, 73, 74, 75, 80, 76, 77, + 82, 0, 83, 86, 82, 0, 90, 91, 66, 92, + 78, 84, 84, 84, 84, 93, 79, 85, 85, 85, + 85, 95, 80, 96, 97, 82, 83, 86, 98, 82, + 90, 99, 91, 92, 99, 100, 102, 103, 104, 106, + 93, 101, 0, 107, 109, 95, 110, 96, 97, 111, + + 101, 113, 115, 98, 116, 117, 0, 118, 117, 100, + 102, 103, 99, 104, 106, 119, 101, 107, 109, 120, + 110, 121, 122, 111, 101, 127, 113, 115, 116, 130, + 117, 118, 128, 129, 131, 137, 99, 132, 135, 119, + 136, 141, 142, 148, 120, 143, 121, 122, 144, 127, + 149, 151, 145, 130, 117, 145, 152, 128, 129, 131, + 137, 132, 135, 154, 136, 156, 141, 142, 148, 143, + 150, 157, 144, 150, 159, 149, 151, 161, 162, 163, + 152, 164, 145, 165, 168, 166, 165, 154, 166, 156, + 169, 170, 171, 169, 173, 157, 174, 180, 176, 159, + + 180, 161, 162, 183, 163, 164, 145, 184, 168, 181, + 186, 169, 181, 166, 187, 170, 171, 188, 189, 173, + 194, 174, 176, 180, 190, 198, 196, 190, 183, 196, + 197, 184, 203, 197, 0, 186, 169, 166, 181, 187, + 0, 188, 199, 189, 194, 199, 0, 180, 200, 198, + 202, 200, 0, 202, 0, 190, 204, 203, 205, 204, + 0, 205, 181, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 200, 0, 0, 0, 0, 190, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 200, 207, + + 207, 0, 207, 207, 208, 208, 209, 209, 0, 209, + 209, 210, 0, 0, 210, 211, 0, 0, 211, 206, + 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, + 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, + 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, + 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, + 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, + 206, 206, 206, 206, 206, 206, 206, 206, 206, 206, + 206, 206 } ; static yy_state_type yy_last_accepting_state; @@ -685,12 +687,12 @@ static void count() { g_lingo->_colnumber += strlen(yytext); } -#if defined(__PLAYSTATION2__) || defined(_MSC_VER) || defined(__DC__) +#if defined(__PLAYSTATION2__) || defined(_MSC_VER) // Stub for missing function int isatty(int fileno) { return 0; } #endif -#if defined(_MSC_VER) || defined(__DC__) +#ifdef _MSC_VER #define YY_NO_UNISTD_H #endif @@ -704,7 +706,7 @@ static void countnl() { g_lingo->_colnumber = strlen(p); } -#line 708 "engines/director/lingo/lingo-lex.cpp" +#line 710 "engines/director/lingo/lingo-lex.cpp" #define INITIAL 0 @@ -764,7 +766,7 @@ extern int yywrap (void ); #endif static void yyunput (int c,char *buf_ptr ); - + #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); #endif @@ -888,11 +890,11 @@ YY_DECL register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; - + #line 69 "engines/director/lingo/lingo-lex.l" -#line 896 "engines/director/lingo/lingo-lex.cpp" +#line 898 "engines/director/lingo/lingo-lex.cpp" if ( !(yy_init) ) { @@ -946,13 +948,13 @@ yy_match: while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 206 ) + if ( yy_current_state >= 207 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } - while ( yy_base[yy_current_state] != 521 ); + while ( yy_base[yy_current_state] != 520 ); yy_find_action: yy_act = yy_accept[yy_current_state]; @@ -1096,76 +1098,86 @@ YY_RULE_SETUP case 24: YY_RULE_SETUP #line 95 "engines/director/lingo/lingo-lex.l" -{ count(); return tMETHOD; } +{ count(); return tME; } YY_BREAK case 25: YY_RULE_SETUP #line 96 "engines/director/lingo/lingo-lex.l" -{ count(); return tMOD; } +{ count(); return tMETHOD; } YY_BREAK case 26: YY_RULE_SETUP #line 97 "engines/director/lingo/lingo-lex.l" -{ count(); return tMOVIE; } +{ count(); return tMOD; } YY_BREAK case 27: YY_RULE_SETUP #line 98 "engines/director/lingo/lingo-lex.l" -{ count(); return tNEXT; } +{ count(); return tMOVIE; } YY_BREAK case 28: YY_RULE_SETUP #line 99 "engines/director/lingo/lingo-lex.l" -{ count(); return tNOT; } +{ count(); return tNEXT; } YY_BREAK case 29: YY_RULE_SETUP #line 100 "engines/director/lingo/lingo-lex.l" -{ count(); return tOF; } +{ count(); return tNOT; } YY_BREAK case 30: YY_RULE_SETUP #line 101 "engines/director/lingo/lingo-lex.l" -{ count(); return tOPEN; } +{ count(); return tOF; } YY_BREAK case 31: YY_RULE_SETUP #line 102 "engines/director/lingo/lingo-lex.l" -{ count(); return tOR; } +{ count(); return tON; } YY_BREAK case 32: YY_RULE_SETUP #line 103 "engines/director/lingo/lingo-lex.l" -{ count(); return tPLAY; } +{ count(); return tOPEN; } YY_BREAK case 33: YY_RULE_SETUP #line 104 "engines/director/lingo/lingo-lex.l" -{ count(); return tPREVIOUS; } +{ count(); return tOR; } YY_BREAK case 34: YY_RULE_SETUP #line 105 "engines/director/lingo/lingo-lex.l" -{ count(); return tPUT; } +{ count(); return tPLAY; } YY_BREAK case 35: YY_RULE_SETUP #line 106 "engines/director/lingo/lingo-lex.l" -{ count(); return tREPEAT; } +{ count(); return tPREVIOUS; } YY_BREAK case 36: YY_RULE_SETUP #line 107 "engines/director/lingo/lingo-lex.l" -{ count(); return tSET; } +{ count(); return tPUT; } YY_BREAK case 37: YY_RULE_SETUP #line 108 "engines/director/lingo/lingo-lex.l" -{ count(); return tSTARTS; } +{ count(); return tREPEAT; } YY_BREAK case 38: YY_RULE_SETUP #line 109 "engines/director/lingo/lingo-lex.l" +{ count(); return tSET; } + YY_BREAK +case 39: +YY_RULE_SETUP +#line 110 "engines/director/lingo/lingo-lex.l" +{ count(); return tSTARTS; } + YY_BREAK +case 40: +YY_RULE_SETUP +#line 111 "engines/director/lingo/lingo-lex.l" { count(); @@ -1175,9 +1187,9 @@ YY_RULE_SETUP return THEENTITYWITHID; } YY_BREAK -case 39: +case 41: YY_RULE_SETUP -#line 117 "engines/director/lingo/lingo-lex.l" +#line 119 "engines/director/lingo/lingo-lex.l" { count(); @@ -1219,9 +1231,9 @@ YY_RULE_SETUP warning("Unhandled the entity %s", ptr); } YY_BREAK -case 40: +case 42: YY_RULE_SETUP -#line 157 "engines/director/lingo/lingo-lex.l" +#line 159 "engines/director/lingo/lingo-lex.l" { count(); @@ -1242,64 +1254,64 @@ YY_RULE_SETUP warning("Unhandled the entity %s", ptr); } YY_BREAK -case 41: -YY_RULE_SETUP -#line 176 "engines/director/lingo/lingo-lex.l" -{ count(); return tTHEN; } - YY_BREAK -case 42: -YY_RULE_SETUP -#line 177 "engines/director/lingo/lingo-lex.l" -{ count(); return tTO; } - YY_BREAK case 43: YY_RULE_SETUP #line 178 "engines/director/lingo/lingo-lex.l" -{ count(); return tSPRITE; } +{ count(); return tTHEN; } YY_BREAK case 44: YY_RULE_SETUP #line 179 "engines/director/lingo/lingo-lex.l" -{ count(); return tWITH; } +{ count(); return tTO; } YY_BREAK case 45: YY_RULE_SETUP #line 180 "engines/director/lingo/lingo-lex.l" -{ count(); return tWITHIN; } +{ count(); return tSPRITE; } YY_BREAK case 46: YY_RULE_SETUP #line 181 "engines/director/lingo/lingo-lex.l" -{ count(); return tWHEN; } +{ count(); return tWITH; } YY_BREAK case 47: YY_RULE_SETUP #line 182 "engines/director/lingo/lingo-lex.l" -{ count(); return tWHILE; } +{ count(); return tWITHIN; } YY_BREAK case 48: YY_RULE_SETUP -#line 184 "engines/director/lingo/lingo-lex.l" -{ count(); return tNEQ; } +#line 183 "engines/director/lingo/lingo-lex.l" +{ count(); return tWHEN; } YY_BREAK case 49: YY_RULE_SETUP -#line 185 "engines/director/lingo/lingo-lex.l" -{ count(); return tGE; } +#line 184 "engines/director/lingo/lingo-lex.l" +{ count(); return tWHILE; } YY_BREAK case 50: YY_RULE_SETUP #line 186 "engines/director/lingo/lingo-lex.l" -{ count(); return tLE; } +{ count(); return tNEQ; } YY_BREAK case 51: YY_RULE_SETUP #line 187 "engines/director/lingo/lingo-lex.l" -{ count(); return tCONCAT; } +{ count(); return tGE; } YY_BREAK case 52: YY_RULE_SETUP +#line 188 "engines/director/lingo/lingo-lex.l" +{ count(); return tLE; } + YY_BREAK +case 53: +YY_RULE_SETUP #line 189 "engines/director/lingo/lingo-lex.l" +{ count(); return tCONCAT; } + YY_BREAK +case 54: +YY_RULE_SETUP +#line 191 "engines/director/lingo/lingo-lex.l" { count(); yylval.s = new Common::String(yytext); @@ -1327,43 +1339,43 @@ YY_RULE_SETUP return ID; } YY_BREAK -case 53: -YY_RULE_SETUP -#line 215 "engines/director/lingo/lingo-lex.l" -{ count(); yylval.f = atof(yytext); return FLOAT; } - YY_BREAK -case 54: -YY_RULE_SETUP -#line 216 "engines/director/lingo/lingo-lex.l" -{ count(); yylval.i = strtol(yytext, NULL, 10); return INT; } - YY_BREAK case 55: YY_RULE_SETUP #line 217 "engines/director/lingo/lingo-lex.l" -{ count(); return *yytext; } +{ count(); yylval.f = atof(yytext); return FLOAT; } YY_BREAK case 56: -/* rule 56 can match eol */ YY_RULE_SETUP #line 218 "engines/director/lingo/lingo-lex.l" -{ return '\n'; } +{ count(); yylval.i = strtol(yytext, NULL, 10); return INT; } YY_BREAK case 57: YY_RULE_SETUP #line 219 "engines/director/lingo/lingo-lex.l" -{ count(); yylval.s = new Common::String(&yytext[1]); yylval.s->deleteLastChar(); return STRING; } +{ count(); return *yytext; } YY_BREAK case 58: +/* rule 58 can match eol */ YY_RULE_SETUP #line 220 "engines/director/lingo/lingo-lex.l" - +{ return '\n'; } YY_BREAK case 59: YY_RULE_SETUP +#line 221 "engines/director/lingo/lingo-lex.l" +{ count(); yylval.s = new Common::String(&yytext[1]); yylval.s->deleteLastChar(); return STRING; } + YY_BREAK +case 60: +YY_RULE_SETUP #line 222 "engines/director/lingo/lingo-lex.l" + + YY_BREAK +case 61: +YY_RULE_SETUP +#line 224 "engines/director/lingo/lingo-lex.l" ECHO; YY_BREAK -#line 1367 "engines/director/lingo/lingo-lex.cpp" +#line 1379 "engines/director/lingo/lingo-lex.cpp" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -1641,7 +1653,7 @@ static int yy_get_next_buffer (void) { register yy_state_type yy_current_state; register char *yy_cp; - + yy_current_state = (yy_start); yy_current_state += YY_AT_BOL(); @@ -1656,7 +1668,7 @@ static int yy_get_next_buffer (void) while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 206 ) + if ( yy_current_state >= 207 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; @@ -1684,11 +1696,11 @@ static int yy_get_next_buffer (void) while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; - if ( yy_current_state >= 206 ) + if ( yy_current_state >= 207 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; - yy_is_jam = (yy_current_state == 205); + yy_is_jam = (yy_current_state == 206); return yy_is_jam ? 0 : yy_current_state; } @@ -1696,7 +1708,7 @@ static int yy_get_next_buffer (void) static void yyunput (int c, register char * yy_bp ) { register char *yy_cp; - + yy_cp = (yy_c_buf_p); /* undo effects of setting up yytext */ @@ -1739,7 +1751,7 @@ static int yy_get_next_buffer (void) { int c; - + *(yy_c_buf_p) = (yy_hold_char); if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) @@ -1808,12 +1820,12 @@ static int yy_get_next_buffer (void) /** Immediately switch to a different input stream. * @param input_file A readable stream. - * + * * @note This function does not reset the start condition to @c INITIAL . */ void yyrestart (FILE * input_file ) { - + if ( ! YY_CURRENT_BUFFER ){ yyensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = @@ -1826,11 +1838,11 @@ static int yy_get_next_buffer (void) /** Switch to a different input buffer. * @param new_buffer The new input buffer. - * + * */ void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) { - + /* TODO. We should be able to replace this entire function body * with * yypop_buffer_state(); @@ -1870,13 +1882,13 @@ static void yy_load_buffer_state (void) /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. - * + * * @return the allocated buffer state. */ YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; - + b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); @@ -1899,11 +1911,11 @@ static void yy_load_buffer_state (void) /** Destroy the buffer. * @param b a buffer created with yy_create_buffer() - * + * */ void yy_delete_buffer (YY_BUFFER_STATE b ) { - + if ( ! b ) return; @@ -1919,7 +1931,7 @@ static void yy_load_buffer_state (void) #ifndef __cplusplus extern int isatty (int ); #endif /* __cplusplus */ - + /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a yyrestart() or at EOF. @@ -1928,7 +1940,7 @@ extern int isatty (int ); { int oerrno = errno; - + yy_flush_buffer(b ); b->yy_input_file = file; @@ -1944,13 +1956,13 @@ extern int isatty (int ); } b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; - + errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. - * + * */ void yy_flush_buffer (YY_BUFFER_STATE b ) { @@ -1979,7 +1991,7 @@ extern int isatty (int ); * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. - * + * */ void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) { @@ -2009,7 +2021,7 @@ void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. - * + * */ void yypop_buffer_state (void) { @@ -2033,7 +2045,7 @@ void yypop_buffer_state (void) static void yyensure_buffer_stack (void) { yy_size_t num_to_alloc; - + if (!(yy_buffer_stack)) { /* First allocation is just for 2 elements, since we don't know if this @@ -2046,9 +2058,9 @@ static void yyensure_buffer_stack (void) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" ); - + memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); - + (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; @@ -2076,13 +2088,13 @@ static void yyensure_buffer_stack (void) /** Setup the input buffer state to scan directly from a user-specified character buffer. * @param base the character buffer * @param size the size in bytes of the character buffer - * - * @return the newly allocated buffer state object. + * + * @return the newly allocated buffer state object. */ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; - + if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) @@ -2111,14 +2123,14 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) /** Setup the input buffer state to scan a string. The next call to yylex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan - * + * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * yy_scan_bytes() instead. */ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) { - + return yy_scan_bytes(yystr,strlen(yystr) ); } @@ -2126,7 +2138,7 @@ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) * scan from a @e copy of @a bytes. * @param bytes the byte buffer to scan * @param len the number of bytes in the buffer pointed to by @a bytes. - * + * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len ) @@ -2134,7 +2146,7 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len YY_BUFFER_STATE b; char *buf; yy_size_t n, i; - + /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; buf = (char *) yyalloc(n ); @@ -2188,16 +2200,16 @@ static void yy_fatal_error (yyconst char* msg ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. - * + * */ int yyget_lineno (void) { - + return yylineno; } /** Get the input stream. - * + * */ FILE *yyget_in (void) { @@ -2205,7 +2217,7 @@ FILE *yyget_in (void) } /** Get the output stream. - * + * */ FILE *yyget_out (void) { @@ -2213,7 +2225,7 @@ FILE *yyget_out (void) } /** Get the length of the current token. - * + * */ yy_size_t yyget_leng (void) { @@ -2221,7 +2233,7 @@ yy_size_t yyget_leng (void) } /** Get the current token. - * + * */ char *yyget_text (void) @@ -2231,18 +2243,18 @@ char *yyget_text (void) /** Set the current line number. * @param line_number - * + * */ void yyset_lineno (int line_number ) { - + yylineno = line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. - * + * * @see yy_switch_to_buffer */ void yyset_in (FILE * in_str ) @@ -2296,7 +2308,7 @@ static int yy_init_globals (void) /* yylex_destroy is for both reentrant and non-reentrant scanners. */ int yylex_destroy (void) { - + /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ yy_delete_buffer(YY_CURRENT_BUFFER ); @@ -2363,7 +2375,7 @@ void yyfree (void * ptr ) #define YYTABLES_NAME "yytables" -#line 222 "engines/director/lingo/lingo-lex.l" +#line 224 "engines/director/lingo/lingo-lex.l" |