diff options
Diffstat (limited to 'engines/director/lingo/lingo-lex.cpp')
-rw-r--r-- | engines/director/lingo/lingo-lex.cpp | 400 |
1 files changed, 214 insertions, 186 deletions
diff --git a/engines/director/lingo/lingo-lex.cpp b/engines/director/lingo/lingo-lex.cpp index 76a11bea56..0a0af1173c 100644 --- a/engines/director/lingo/lingo-lex.cpp +++ b/engines/director/lingo/lingo-lex.cpp @@ -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 40 -#define YY_END_OF_BUFFER 41 +#define YY_NUM_RULES 44 +#define YY_END_OF_BUFFER 45 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info @@ -373,23 +373,23 @@ struct yy_trans_info flex_int32_t yy_verify; flex_int32_t yy_nxt; }; -static yyconst flex_int16_t yy_accept[132] = +static yyconst flex_int16_t yy_accept[139] = { 0, - 0, 0, 41, 39, 3, 37, 37, 39, 39, 39, - 36, 36, 35, 36, 36, 33, 33, 33, 33, 33, - 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, - 2, 2, 3, 37, 0, 0, 37, 30, 0, 38, - 1, 34, 35, 32, 31, 33, 33, 33, 33, 33, - 33, 33, 13, 5, 33, 33, 33, 33, 33, 33, - 21, 33, 33, 33, 33, 33, 27, 33, 33, 2, - 2, 0, 1, 34, 33, 33, 9, 33, 33, 33, - 33, 33, 33, 17, 33, 33, 33, 23, 33, 25, - 33, 33, 33, 0, 4, 8, 10, 33, 33, 14, - - 15, 33, 33, 33, 20, 33, 33, 26, 33, 28, - 0, 11, 33, 16, 33, 19, 33, 33, 29, 7, - 12, 33, 33, 24, 0, 18, 33, 0, 22, 6, - 0 + 0, 0, 45, 43, 3, 41, 41, 43, 43, 40, + 40, 40, 39, 40, 40, 37, 37, 37, 37, 37, + 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, + 37, 2, 2, 3, 41, 0, 0, 41, 0, 42, + 36, 1, 38, 39, 35, 33, 34, 37, 37, 37, + 37, 37, 37, 37, 37, 14, 6, 37, 37, 37, + 37, 37, 37, 37, 23, 24, 37, 37, 37, 37, + 37, 30, 37, 37, 2, 2, 0, 1, 38, 4, + 37, 37, 10, 37, 37, 37, 37, 37, 37, 18, + 37, 37, 22, 37, 26, 37, 28, 37, 37, 37, + + 0, 5, 9, 11, 37, 37, 15, 16, 37, 37, + 37, 21, 37, 37, 29, 37, 31, 0, 12, 37, + 17, 37, 20, 37, 37, 32, 8, 13, 37, 37, + 27, 0, 19, 37, 0, 25, 7, 0 } ; static yyconst flex_int32_t yy_ec[256] = @@ -397,13 +397,13 @@ static yyconst flex_int32_t yy_ec[256] = 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 5, 6, 7, 1, 1, 8, 8, 1, 8, - 8, 8, 8, 8, 9, 10, 8, 11, 11, 11, - 11, 11, 11, 11, 11, 11, 11, 8, 1, 12, + 1, 5, 1, 6, 1, 1, 7, 8, 1, 7, + 7, 7, 7, 7, 9, 10, 7, 11, 11, 11, + 11, 11, 11, 11, 11, 11, 11, 7, 1, 12, 13, 14, 1, 1, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 24, 25, 26, 27, 28, 29, 24, 30, 31, 32, 33, 34, 35, 36, 24, 24, - 1, 1, 1, 8, 24, 1, 37, 38, 39, 40, + 1, 1, 1, 7, 24, 1, 37, 38, 39, 40, 41, 42, 43, 44, 45, 24, 24, 46, 47, 48, 49, 50, 24, 51, 52, 53, 54, 55, 56, 57, @@ -434,90 +434,95 @@ static yyconst flex_int32_t yy_meta[58] = 4, 4, 4, 4, 4, 4, 4 } ; -static yyconst flex_int16_t yy_base[135] = +static yyconst flex_int16_t yy_base[142] = { 0, - 0, 56, 212, 320, 60, 64, 68, 72, 175, 180, - 320, 174, 49, 169, 167, 0, 50, 54, 50, 57, - 66, 55, 79, 68, 68, 82, 72, 76, 97, 98, - 127, 135, 145, 94, 149, 153, 157, 320, 167, 320, - 0, 158, 112, 320, 320, 0, 49, 93, 116, 112, - 129, 135, 0, 0, 132, 137, 150, 145, 136, 135, - 0, 154, 143, 147, 145, 159, 0, 156, 149, 201, - 205, 168, 0, 116, 172, 192, 0, 181, 189, 200, - 190, 190, 191, 187, 200, 193, 192, 0, 208, 0, - 202, 205, 209, 204, 0, 0, 0, 213, 222, 0, - - 0, 213, 229, 229, 0, 229, 240, 0, 238, 0, - 239, 0, 235, 0, 238, 0, 235, 232, 0, 87, - 0, 233, 234, 0, 266, 0, 238, 252, 0, 320, - 320, 311, 122, 315 + 0, 56, 149, 335, 60, 64, 68, 72, 138, 335, + 131, 128, 49, 65, 121, 53, 0, 53, 57, 53, + 60, 69, 58, 82, 94, 78, 61, 97, 99, 102, + 103, 150, 154, 158, 124, 162, 131, 166, 126, 335, + 335, 0, 89, 131, 335, 335, 335, 0, 105, 138, + 143, 157, 153, 162, 151, 0, 0, 148, 153, 165, + 160, 151, 150, 155, 0, 0, 169, 158, 162, 160, + 174, 0, 173, 171, 217, 223, 184, 0, 84, 0, + 187, 197, 0, 191, 203, 201, 203, 203, 203, 199, + 213, 208, 0, 207, 0, 218, 0, 215, 218, 223, + + 216, 0, 0, 0, 229, 234, 0, 0, 223, 241, + 238, 0, 237, 250, 0, 247, 0, 250, 0, 248, + 0, 251, 0, 248, 245, 0, 85, 0, 248, 248, + 0, 281, 0, 253, 265, 0, 335, 335, 326, 88, + 330 } ; -static yyconst flex_int16_t yy_def[135] = +static yyconst flex_int16_t yy_def[142] = { 0, - 131, 1, 131, 131, 131, 131, 131, 131, 131, 132, - 131, 131, 131, 131, 131, 133, 133, 133, 133, 133, - 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, - 131, 131, 131, 131, 131, 131, 131, 131, 132, 131, - 134, 131, 131, 131, 131, 133, 133, 133, 133, 133, - 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, - 133, 133, 133, 133, 133, 133, 133, 133, 133, 131, - 131, 131, 134, 131, 133, 133, 133, 133, 133, 133, - 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, - 133, 133, 133, 131, 133, 133, 133, 133, 133, 133, - - 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, - 131, 133, 133, 133, 133, 133, 133, 133, 133, 131, - 133, 133, 133, 133, 131, 133, 133, 131, 133, 131, - 0, 131, 131, 131 + 138, 1, 138, 138, 138, 138, 138, 138, 139, 138, + 138, 138, 138, 138, 138, 140, 140, 140, 140, 140, + 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, + 140, 138, 138, 138, 138, 138, 138, 138, 139, 138, + 138, 141, 138, 138, 138, 138, 138, 140, 140, 140, + 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, + 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, + 140, 140, 140, 140, 138, 138, 138, 141, 138, 140, + 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, + 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, + + 138, 140, 140, 140, 140, 140, 140, 140, 140, 140, + 140, 140, 140, 140, 140, 140, 140, 138, 140, 140, + 140, 140, 140, 140, 140, 140, 138, 140, 140, 140, + 140, 138, 140, 140, 138, 140, 138, 0, 138, 138, + 138 } ; -static yyconst flex_int16_t yy_nxt[378] = +static yyconst flex_int16_t yy_nxt[393] = { 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, - 13, 14, 11, 15, 16, 16, 16, 17, 18, 19, - 20, 16, 21, 16, 22, 23, 24, 25, 26, 27, - 28, 29, 16, 16, 30, 16, 16, 16, 16, 17, - 18, 19, 20, 16, 21, 22, 23, 24, 25, 26, - 27, 28, 29, 16, 16, 30, 16, 31, 42, 43, - 32, 33, 34, 34, 35, 36, 37, 37, 36, 36, - 37, 37, 36, 35, 34, 34, 35, 47, 48, 51, - 49, 52, 56, 75, 53, 54, 60, 61, 125, 50, - 64, 125, 55, 57, 65, 58, 34, 34, 47, 48, - - 51, 49, 52, 56, 75, 53, 59, 54, 60, 61, - 50, 62, 64, 55, 63, 57, 65, 58, 66, 68, - 69, 42, 43, 76, 67, 46, 74, 59, 70, 34, - 34, 71, 62, 77, 78, 63, 71, 34, 34, 71, - 66, 68, 69, 79, 76, 67, 33, 34, 34, 35, - 35, 34, 34, 35, 36, 77, 78, 36, 36, 37, - 37, 36, 80, 81, 82, 79, 83, 84, 74, 85, - 86, 72, 87, 40, 88, 89, 90, 91, 92, 45, - 93, 44, 41, 80, 81, 82, 40, 38, 83, 84, - 85, 86, 94, 72, 87, 88, 89, 90, 95, 91, - - 92, 93, 70, 34, 34, 71, 71, 34, 34, 71, - 96, 131, 97, 94, 98, 99, 131, 100, 101, 95, - 102, 103, 104, 131, 105, 106, 107, 131, 108, 109, - 110, 112, 96, 97, 111, 98, 113, 99, 100, 101, - 114, 102, 103, 115, 104, 105, 106, 116, 107, 108, - 109, 117, 110, 112, 118, 111, 119, 120, 113, 121, - 122, 114, 123, 124, 126, 115, 127, 125, 129, 116, - 125, 130, 131, 117, 131, 131, 118, 131, 119, 120, - 121, 131, 122, 123, 124, 126, 131, 127, 128, 129, - 131, 131, 131, 130, 131, 131, 131, 131, 131, 131, - - 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, - 128, 39, 131, 39, 39, 73, 131, 131, 73, 3, - 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, - 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, - 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, - 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, - 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, - 131, 131, 131, 131, 131, 131, 131 + 13, 14, 10, 15, 16, 17, 17, 18, 19, 20, + 21, 17, 22, 17, 23, 24, 25, 26, 27, 28, + 29, 30, 17, 17, 31, 17, 16, 17, 17, 18, + 19, 20, 21, 17, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 17, 17, 31, 17, 32, 43, 44, + 33, 34, 35, 35, 36, 37, 38, 38, 37, 37, + 38, 38, 37, 36, 35, 35, 36, 45, 46, 49, + 50, 51, 54, 52, 55, 59, 132, 56, 57, 132, + 67, 48, 53, 68, 79, 58, 60, 65, 61, 79, + + 49, 50, 51, 54, 52, 55, 59, 66, 56, 62, + 57, 67, 63, 53, 68, 69, 58, 70, 60, 65, + 61, 64, 80, 71, 73, 74, 35, 35, 66, 72, + 62, 40, 37, 47, 63, 37, 42, 69, 41, 70, + 43, 44, 64, 40, 80, 71, 73, 74, 138, 77, + 72, 75, 35, 35, 76, 76, 35, 35, 76, 34, + 35, 35, 36, 36, 35, 35, 36, 37, 38, 38, + 37, 77, 81, 82, 83, 84, 85, 138, 86, 87, + 88, 89, 90, 138, 91, 92, 93, 94, 138, 95, + 96, 97, 98, 81, 82, 99, 83, 84, 85, 86, + + 87, 88, 100, 89, 90, 91, 92, 93, 101, 94, + 95, 96, 97, 102, 98, 103, 106, 99, 75, 35, + 35, 76, 104, 100, 76, 35, 35, 76, 105, 101, + 107, 108, 109, 110, 102, 111, 114, 103, 106, 112, + 113, 115, 116, 104, 117, 138, 118, 119, 120, 105, + 121, 107, 108, 109, 110, 122, 123, 111, 114, 124, + 112, 113, 115, 116, 125, 126, 117, 118, 127, 119, + 120, 121, 128, 129, 138, 130, 131, 122, 123, 133, + 134, 124, 132, 136, 137, 132, 125, 126, 138, 138, + 127, 138, 138, 128, 138, 129, 130, 131, 138, 138, + + 133, 134, 138, 135, 136, 138, 137, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 135, 39, 138, 39, 39, + 78, 138, 138, 78, 3, 138, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138 + } ; -static yyconst flex_int16_t yy_chk[378] = +static yyconst flex_int16_t yy_chk[393] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -526,40 +531,43 @@ static yyconst flex_int16_t yy_chk[378] = 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 13, 13, 2, 5, 5, 5, 5, 6, 6, 6, 6, 7, - 7, 7, 7, 8, 8, 8, 8, 17, 18, 19, - 18, 20, 22, 47, 20, 21, 24, 25, 120, 18, - 27, 120, 21, 23, 28, 23, 34, 34, 17, 18, - - 19, 18, 20, 22, 47, 20, 23, 21, 24, 25, - 18, 26, 27, 21, 26, 23, 28, 23, 29, 30, - 30, 43, 43, 48, 29, 133, 74, 23, 31, 31, - 31, 31, 26, 49, 50, 26, 32, 32, 32, 32, - 29, 30, 30, 51, 48, 29, 33, 33, 33, 33, - 35, 35, 35, 35, 36, 49, 50, 36, 37, 37, - 37, 37, 52, 55, 56, 51, 57, 58, 42, 59, - 60, 36, 62, 39, 63, 64, 65, 66, 68, 15, - 69, 14, 12, 52, 55, 56, 10, 9, 57, 58, - 59, 60, 72, 36, 62, 63, 64, 65, 75, 66, - - 68, 69, 70, 70, 70, 70, 71, 71, 71, 71, - 76, 3, 78, 72, 79, 80, 0, 81, 82, 75, - 83, 84, 85, 0, 86, 87, 89, 0, 91, 92, - 93, 98, 76, 78, 94, 79, 99, 80, 81, 82, - 102, 83, 84, 103, 85, 86, 87, 104, 89, 91, - 92, 106, 93, 98, 107, 94, 109, 111, 99, 113, - 115, 102, 117, 118, 122, 103, 123, 125, 127, 104, - 125, 128, 0, 106, 0, 0, 107, 0, 109, 111, - 113, 0, 115, 117, 118, 122, 0, 123, 125, 127, - 0, 0, 0, 128, 0, 0, 0, 0, 0, 0, - + 7, 7, 7, 8, 8, 8, 8, 14, 14, 16, + 18, 19, 20, 19, 21, 23, 127, 21, 22, 127, + 27, 140, 19, 27, 79, 22, 24, 26, 24, 43, + + 16, 18, 19, 20, 19, 21, 23, 26, 21, 24, + 22, 27, 25, 19, 27, 28, 22, 29, 24, 26, + 24, 25, 49, 30, 31, 31, 35, 35, 26, 30, + 24, 39, 37, 15, 25, 37, 12, 28, 11, 29, + 44, 44, 25, 9, 49, 30, 31, 31, 3, 37, + 30, 32, 32, 32, 32, 33, 33, 33, 33, 34, + 34, 34, 34, 36, 36, 36, 36, 38, 38, 38, + 38, 37, 50, 51, 52, 53, 54, 0, 55, 58, + 59, 60, 61, 0, 62, 63, 64, 67, 0, 68, + 69, 70, 71, 50, 51, 73, 52, 53, 54, 55, + + 58, 59, 74, 60, 61, 62, 63, 64, 77, 67, + 68, 69, 70, 81, 71, 82, 86, 73, 75, 75, + 75, 75, 84, 74, 76, 76, 76, 76, 85, 77, + 87, 88, 89, 90, 81, 91, 96, 82, 86, 92, + 94, 98, 99, 84, 100, 0, 101, 105, 106, 85, + 109, 87, 88, 89, 90, 110, 111, 91, 96, 113, + 92, 94, 98, 99, 114, 116, 100, 101, 118, 105, + 106, 109, 120, 122, 0, 124, 125, 110, 111, 129, + 130, 113, 132, 134, 135, 132, 114, 116, 0, 0, + 118, 0, 0, 120, 0, 122, 124, 125, 0, 0, + + 129, 130, 0, 132, 134, 0, 135, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 125, 132, 0, 132, 132, 134, 0, 0, 134, 131, - 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, - 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, - 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, - 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, - 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, - 131, 131, 131, 131, 131, 131, 131 + 0, 0, 0, 0, 0, 132, 139, 0, 139, 139, + 141, 0, 0, 141, 138, 138, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138, 138, 138, 138, 138, 138, 138, 138, 138, + 138, 138 + } ; static yy_state_type yy_last_accepting_state; @@ -622,7 +630,7 @@ static void countnl() { Director::g_lingo->_colnumber = strlen(p); } -#line 626 "engines/director/lingo/lingo-lex.cpp" +#line 634 "engines/director/lingo/lingo-lex.cpp" #define INITIAL 0 @@ -810,7 +818,7 @@ YY_DECL #line 58 "engines/director/lingo/lingo-lex.l" -#line 814 "engines/director/lingo/lingo-lex.cpp" +#line 822 "engines/director/lingo/lingo-lex.cpp" if ( !(yy_init) ) { @@ -864,13 +872,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 >= 132 ) + if ( yy_current_state >= 139 ) 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] != 320 ); + while ( yy_base[yy_current_state] != 335 ); yy_find_action: yy_act = yy_accept[yy_current_state]; @@ -912,153 +920,173 @@ YY_RULE_SETUP case 4: YY_RULE_SETUP #line 64 "engines/director/lingo/lingo-lex.l" -{ count(); return tDOWN; } +{ count(); return tAND; } YY_BREAK case 5: YY_RULE_SETUP #line 65 "engines/director/lingo/lingo-lex.l" -{ count(); return tIF; } +{ count(); return tDOWN; } YY_BREAK case 6: -/* rule 6 can match eol */ YY_RULE_SETUP #line 66 "engines/director/lingo/lingo-lex.l" -{ countnl(); return tNLELSIF; } +{ count(); return tIF; } YY_BREAK case 7: /* rule 7 can match eol */ YY_RULE_SETUP #line 67 "engines/director/lingo/lingo-lex.l" -{ countnl(); return tNLELSE; } +{ countnl(); return tNLELSIF; } YY_BREAK case 8: +/* rule 8 can match eol */ YY_RULE_SETUP #line 68 "engines/director/lingo/lingo-lex.l" -{ count(); return tELSE; } +{ countnl(); return tNLELSE; } YY_BREAK case 9: YY_RULE_SETUP #line 69 "engines/director/lingo/lingo-lex.l" -{ count(); return tEND; } +{ count(); return tELSE; } YY_BREAK case 10: YY_RULE_SETUP #line 70 "engines/director/lingo/lingo-lex.l" -{ count(); return tEXIT; } +{ count(); return tEND; } YY_BREAK case 11: YY_RULE_SETUP #line 71 "engines/director/lingo/lingo-lex.l" -{ count(); return tFRAME; } +{ count(); return tEXIT; } YY_BREAK case 12: YY_RULE_SETUP #line 72 "engines/director/lingo/lingo-lex.l" -{ count(); return tGLOBAL; } +{ count(); return tFRAME; } YY_BREAK case 13: YY_RULE_SETUP #line 73 "engines/director/lingo/lingo-lex.l" -{ count(); return tGO; } +{ count(); return tGLOBAL; } YY_BREAK case 14: YY_RULE_SETUP #line 74 "engines/director/lingo/lingo-lex.l" -{ count(); return tINTO; } +{ count(); return tGO; } YY_BREAK case 15: YY_RULE_SETUP #line 75 "engines/director/lingo/lingo-lex.l" -{ count(); return tLOOP; } +{ count(); return tINTO; } YY_BREAK case 16: YY_RULE_SETUP #line 76 "engines/director/lingo/lingo-lex.l" -{ count(); return tMACRO; } +{ count(); return tLOOP; } YY_BREAK case 17: YY_RULE_SETUP #line 77 "engines/director/lingo/lingo-lex.l" -{ count(); return tMCI; } +{ count(); return tMACRO; } YY_BREAK case 18: YY_RULE_SETUP #line 78 "engines/director/lingo/lingo-lex.l" -{ count(); return tMCIWAIT; } +{ count(); return tMCI; } YY_BREAK case 19: YY_RULE_SETUP #line 79 "engines/director/lingo/lingo-lex.l" -{ count(); return tMOVIE; } +{ count(); return tMCIWAIT; } YY_BREAK case 20: YY_RULE_SETUP #line 80 "engines/director/lingo/lingo-lex.l" -{ count(); return tNEXT; } +{ count(); return tMOVIE; } YY_BREAK case 21: YY_RULE_SETUP #line 81 "engines/director/lingo/lingo-lex.l" -{ count(); return tOF; } +{ count(); return tNEXT; } YY_BREAK case 22: YY_RULE_SETUP #line 82 "engines/director/lingo/lingo-lex.l" -{ count(); return tPREVIOUS; } +{ count(); return tNOT; } YY_BREAK case 23: YY_RULE_SETUP #line 83 "engines/director/lingo/lingo-lex.l" -{ count(); return tPUT; } +{ count(); return tOF; } YY_BREAK case 24: YY_RULE_SETUP #line 84 "engines/director/lingo/lingo-lex.l" -{ count(); return tREPEAT; } +{ count(); return tOR; } YY_BREAK case 25: YY_RULE_SETUP #line 85 "engines/director/lingo/lingo-lex.l" -{ count(); return tSET; } +{ count(); return tPREVIOUS; } YY_BREAK case 26: YY_RULE_SETUP #line 86 "engines/director/lingo/lingo-lex.l" -{ count(); return tTHEN; } +{ count(); return tPUT; } YY_BREAK case 27: YY_RULE_SETUP #line 87 "engines/director/lingo/lingo-lex.l" -{ count(); return tTO; } +{ count(); return tREPEAT; } YY_BREAK case 28: YY_RULE_SETUP #line 88 "engines/director/lingo/lingo-lex.l" -{ count(); return tWITH; } +{ count(); return tSET; } YY_BREAK case 29: YY_RULE_SETUP #line 89 "engines/director/lingo/lingo-lex.l" -{ count(); return tWHILE; } +{ count(); return tTHEN; } YY_BREAK case 30: YY_RULE_SETUP -#line 91 "engines/director/lingo/lingo-lex.l" -{ count(); return tNEQ; } +#line 90 "engines/director/lingo/lingo-lex.l" +{ count(); return tTO; } YY_BREAK case 31: YY_RULE_SETUP -#line 92 "engines/director/lingo/lingo-lex.l" -{ count(); return tGE; } +#line 91 "engines/director/lingo/lingo-lex.l" +{ count(); return tWITH; } YY_BREAK case 32: YY_RULE_SETUP -#line 93 "engines/director/lingo/lingo-lex.l" -{ count(); return tLE; } +#line 92 "engines/director/lingo/lingo-lex.l" +{ count(); return tWHILE; } YY_BREAK case 33: YY_RULE_SETUP +#line 94 "engines/director/lingo/lingo-lex.l" +{ count(); return tNEQ; } + YY_BREAK +case 34: +YY_RULE_SETUP #line 95 "engines/director/lingo/lingo-lex.l" +{ count(); return tGE; } + YY_BREAK +case 35: +YY_RULE_SETUP +#line 96 "engines/director/lingo/lingo-lex.l" +{ count(); return tLE; } + YY_BREAK +case 36: +YY_RULE_SETUP +#line 97 "engines/director/lingo/lingo-lex.l" +{ count(); return tCONCAT; } + YY_BREAK +case 37: +YY_RULE_SETUP +#line 99 "engines/director/lingo/lingo-lex.l" { count(); yylval.s = new Common::String(yytext); @@ -1069,43 +1097,43 @@ YY_RULE_SETUP return ID; } YY_BREAK -case 34: +case 38: YY_RULE_SETUP -#line 104 "engines/director/lingo/lingo-lex.l" +#line 108 "engines/director/lingo/lingo-lex.l" { count(); yylval.f = atof(yytext); return FLOAT; } YY_BREAK -case 35: +case 39: YY_RULE_SETUP -#line 105 "engines/director/lingo/lingo-lex.l" +#line 109 "engines/director/lingo/lingo-lex.l" { count(); yylval.i = strtol(yytext, NULL, 10); return INT; } YY_BREAK -case 36: +case 40: YY_RULE_SETUP -#line 106 "engines/director/lingo/lingo-lex.l" +#line 110 "engines/director/lingo/lingo-lex.l" { count(); return *yytext; } YY_BREAK -case 37: -/* rule 37 can match eol */ +case 41: +/* rule 41 can match eol */ YY_RULE_SETUP -#line 107 "engines/director/lingo/lingo-lex.l" +#line 111 "engines/director/lingo/lingo-lex.l" { return '\n'; } YY_BREAK -case 38: +case 42: YY_RULE_SETUP -#line 108 "engines/director/lingo/lingo-lex.l" +#line 112 "engines/director/lingo/lingo-lex.l" { count(); yylval.s = new Common::String(&yytext[1]); yylval.s->deleteLastChar(); return STRING; } YY_BREAK -case 39: +case 43: YY_RULE_SETUP -#line 109 "engines/director/lingo/lingo-lex.l" +#line 113 "engines/director/lingo/lingo-lex.l" YY_BREAK -case 40: +case 44: YY_RULE_SETUP -#line 111 "engines/director/lingo/lingo-lex.l" +#line 115 "engines/director/lingo/lingo-lex.l" ECHO; YY_BREAK -#line 1109 "engines/director/lingo/lingo-lex.cpp" +#line 1137 "engines/director/lingo/lingo-lex.cpp" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -1398,7 +1426,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 >= 132 ) + if ( yy_current_state >= 139 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; @@ -1426,11 +1454,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 >= 132 ) + if ( yy_current_state >= 139 ) 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 == 131); + yy_is_jam = (yy_current_state == 138); return yy_is_jam ? 0 : yy_current_state; } @@ -2105,7 +2133,7 @@ void yyfree (void * ptr ) #define YYTABLES_NAME "yytables" -#line 111 "engines/director/lingo/lingo-lex.l" +#line 115 "engines/director/lingo/lingo-lex.l" |