diff options
author | Eugene Sandulenko | 2016-08-04 22:26:04 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-08-04 23:00:55 +0200 |
commit | 7ec2e7bc31bbc6a916586c5aa0eecae98559eee4 (patch) | |
tree | 1b620f288776a22b8fabc97bb582d36b668e9c64 /engines/director/lingo/lingo-lex.cpp | |
parent | 12d1af66ef6d579141320017866ed7737b2b4c2e (diff) | |
download | scummvm-rg350-7ec2e7bc31bbc6a916586c5aa0eecae98559eee4.tar.gz scummvm-rg350-7ec2e7bc31bbc6a916586c5aa0eecae98559eee4.tar.bz2 scummvm-rg350-7ec2e7bc31bbc6a916586c5aa0eecae98559eee4.zip |
DIRECTOR: Lingo: Added 'alert' and 'beep' function stubs
Diffstat (limited to 'engines/director/lingo/lingo-lex.cpp')
-rw-r--r-- | engines/director/lingo/lingo-lex.cpp | 514 |
1 files changed, 266 insertions, 248 deletions
diff --git a/engines/director/lingo/lingo-lex.cpp b/engines/director/lingo/lingo-lex.cpp index 1fd200d0d0..d4f2a01ea2 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 54 -#define YY_END_OF_BUFFER 55 +#define YY_NUM_RULES 56 +#define YY_END_OF_BUFFER 57 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info @@ -373,28 +373,30 @@ struct yy_trans_info flex_int32_t yy_verify; flex_int32_t yy_nxt; }; -static yyconst flex_int16_t yy_accept[186] = +static yyconst flex_int16_t yy_accept[194] = { 0, - 0, 0, 55, 53, 3, 51, 51, 53, 53, 50, - 50, 50, 49, 50, 50, 47, 47, 47, 47, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, - 47, 47, 2, 2, 3, 51, 0, 0, 51, 0, - 0, 52, 46, 1, 48, 49, 45, 43, 44, 47, - 47, 47, 47, 47, 47, 47, 47, 47, 47, 16, - 7, 47, 47, 47, 47, 47, 47, 47, 47, 27, - 28, 47, 47, 47, 47, 47, 47, 47, 37, 47, - 47, 2, 2, 0, 1, 48, 4, 47, 47, 47, - 11, 47, 47, 47, 47, 47, 47, 47, 21, 47, - - 47, 47, 26, 47, 30, 47, 32, 47, 47, 47, - 47, 47, 47, 0, 47, 6, 10, 13, 47, 47, - 47, 47, 18, 19, 47, 47, 47, 47, 25, 47, - 47, 47, 47, 0, 36, 41, 47, 39, 9, 47, - 47, 14, 47, 47, 20, 47, 47, 24, 47, 47, - 47, 47, 35, 42, 47, 0, 47, 47, 15, 47, - 47, 23, 47, 31, 38, 33, 0, 40, 0, 47, - 12, 47, 22, 47, 0, 8, 5, 47, 29, 0, - 47, 0, 17, 34, 0 + 0, 0, 57, 55, 3, 53, 53, 55, 55, 52, + 52, 52, 51, 52, 52, 49, 49, 49, 49, 49, + 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, + 49, 49, 49, 2, 2, 3, 53, 0, 0, 53, + 0, 0, 54, 48, 1, 50, 51, 47, 45, 46, + 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, + 49, 49, 18, 9, 49, 49, 49, 49, 49, 49, + 49, 49, 29, 30, 49, 49, 49, 49, 49, 49, + 49, 39, 49, 49, 2, 2, 0, 1, 50, 49, + 5, 49, 49, 49, 49, 13, 49, 49, 49, 49, + + 49, 49, 49, 23, 49, 49, 49, 28, 49, 32, + 49, 34, 49, 49, 49, 49, 49, 49, 0, 49, + 6, 49, 8, 12, 15, 49, 49, 49, 49, 20, + 21, 49, 49, 49, 49, 27, 49, 49, 49, 49, + 0, 38, 43, 49, 41, 11, 4, 49, 49, 16, + 49, 49, 22, 49, 49, 26, 49, 49, 49, 49, + 37, 44, 49, 0, 49, 49, 17, 49, 49, 25, + 49, 33, 40, 35, 0, 42, 0, 49, 14, 49, + 24, 49, 0, 10, 7, 49, 31, 0, 49, 0, + 19, 36, 0 + } ; static yyconst flex_int32_t yy_ec[256] = @@ -439,115 +441,120 @@ static yyconst flex_int32_t yy_meta[61] = 6, 6, 6, 6, 6, 6, 6, 6, 6, 6 } ; -static yyconst flex_int16_t yy_base[191] = +static yyconst flex_int16_t yy_base[199] = { 0, - 0, 59, 210, 446, 63, 67, 71, 75, 192, 446, - 150, 148, 52, 68, 137, 56, 0, 56, 57, 67, - 72, 68, 68, 69, 112, 70, 79, 103, 81, 109, - 120, 121, 170, 174, 178, 101, 182, 186, 190, 97, - 143, 446, 446, 0, 90, 124, 446, 446, 446, 0, - 112, 110, 104, 115, 147, 167, 179, 182, 119, 0, - 0, 167, 172, 184, 179, 172, 173, 172, 179, 0, - 0, 193, 183, 187, 185, 188, 198, 200, 0, 205, - 200, 242, 254, 211, 0, 80, 0, 217, 223, 232, - 0, 221, 222, 234, 245, 243, 235, 236, 232, 246, - - 246, 242, 0, 244, 0, 260, 0, 257, 252, 279, - 261, 266, 273, 277, 283, 0, 0, 0, 272, 283, - 292, 279, 0, 0, 282, 297, 287, 294, 0, 293, - 302, 289, 292, 201, 0, 0, 299, 302, 325, 305, - 304, 0, 310, 308, 0, 320, 327, 0, 320, 318, - 327, 320, 351, 0, 327, 358, 328, 322, 0, 342, - 332, 0, 332, 0, 0, 0, 370, 0, 346, 337, - 0, 359, 0, 348, 360, 446, 0, 351, 0, 384, - 353, 390, 0, 391, 446, 421, 423, 429, 434, 439 + 0, 59, 205, 459, 63, 67, 71, 75, 167, 459, + 164, 149, 52, 68, 134, 58, 68, 56, 61, 67, + 83, 68, 0, 77, 67, 113, 106, 109, 90, 81, + 116, 109, 128, 174, 178, 182, 98, 186, 190, 194, + 113, 136, 459, 459, 0, 94, 155, 459, 459, 459, + 0, 90, 151, 151, 113, 109, 169, 183, 179, 186, + 189, 178, 0, 0, 175, 180, 193, 188, 183, 182, + 181, 186, 0, 0, 193, 187, 191, 189, 192, 209, + 213, 0, 227, 217, 249, 255, 224, 0, 88, 231, + 0, 233, 231, 237, 228, 0, 233, 234, 241, 252, + + 254, 246, 246, 242, 247, 256, 249, 0, 249, 0, + 272, 0, 271, 266, 305, 274, 277, 287, 292, 276, + 0, 297, 0, 0, 0, 286, 297, 302, 290, 0, + 0, 293, 307, 298, 304, 0, 304, 313, 298, 302, + 86, 0, 0, 319, 316, 340, 0, 325, 320, 0, + 329, 325, 0, 335, 341, 0, 333, 332, 346, 336, + 364, 0, 341, 369, 343, 338, 0, 357, 346, 0, + 347, 0, 0, 0, 383, 0, 361, 355, 0, 377, + 0, 365, 377, 459, 0, 367, 0, 402, 371, 408, + 0, 410, 459, 434, 436, 442, 447, 452 + } ; -static yyconst flex_int16_t yy_def[191] = +static yyconst flex_int16_t yy_def[199] = { 0, - 185, 1, 185, 185, 185, 185, 185, 185, 186, 185, - 185, 185, 185, 185, 185, 187, 187, 187, 187, 187, - 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, - 187, 187, 185, 185, 185, 185, 185, 185, 185, 185, - 186, 185, 185, 188, 185, 185, 185, 185, 185, 187, - 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, - 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, - 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, - 187, 185, 185, 185, 188, 185, 187, 187, 187, 187, - 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, - - 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, - 187, 187, 187, 185, 187, 187, 187, 187, 187, 187, - 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, - 187, 187, 187, 189, 187, 187, 187, 187, 185, 187, - 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, - 187, 187, 189, 187, 187, 185, 187, 187, 187, 187, - 187, 187, 187, 187, 187, 187, 185, 187, 185, 187, - 187, 187, 187, 187, 185, 185, 187, 187, 187, 185, - 187, 190, 187, 190, 0, 185, 185, 185, 185, 185 + 193, 1, 193, 193, 193, 193, 193, 193, 194, 193, + 193, 193, 193, 193, 193, 195, 195, 195, 195, 195, + 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, + 195, 195, 195, 193, 193, 193, 193, 193, 193, 193, + 193, 194, 193, 193, 196, 193, 193, 193, 193, 193, + 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, + 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, + 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, + 195, 195, 195, 195, 193, 193, 193, 196, 193, 195, + 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, + + 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, + 195, 195, 195, 195, 195, 195, 195, 195, 193, 195, + 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, + 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, + 197, 195, 195, 195, 195, 193, 195, 195, 195, 195, + 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, + 197, 195, 195, 193, 195, 195, 195, 195, 195, 195, + 195, 195, 195, 195, 193, 195, 193, 195, 195, 195, + 195, 195, 193, 193, 195, 195, 195, 193, 195, 198, + 195, 198, 0, 193, 193, 193, 193, 193 + } ; -static yyconst flex_int16_t yy_nxt[507] = +static yyconst flex_int16_t yy_nxt[520] = { 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 4, 13, 14, 10, 15, 16, 17, 18, 19, 20, 21, - 22, 17, 23, 17, 24, 25, 26, 27, 28, 29, - 30, 31, 17, 17, 32, 17, 17, 17, 16, 17, - 18, 19, 20, 21, 22, 17, 23, 24, 25, 26, - 27, 28, 29, 30, 31, 17, 17, 32, 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, 68, 40, - 86, 54, 59, 55, 62, 60, 63, 69, 70, 74, - - 86, 58, 56, 36, 36, 51, 52, 53, 71, 40, - 57, 61, 68, 40, 54, 59, 55, 62, 60, 63, - 69, 84, 70, 74, 58, 56, 64, 75, 65, 87, - 66, 71, 72, 45, 46, 73, 88, 76, 89, 67, - 77, 78, 80, 81, 84, 90, 95, 79, 42, 49, - 64, 75, 65, 87, 66, 72, 44, 43, 73, 88, - 76, 89, 67, 77, 91, 78, 80, 81, 90, 95, - 79, 82, 36, 36, 83, 83, 36, 36, 83, 35, - 36, 36, 37, 37, 36, 36, 37, 38, 91, 92, - 38, 38, 39, 39, 38, 93, 94, 42, 96, 97, - - 98, 99, 134, 100, 40, 134, 101, 102, 40, 185, - 103, 104, 109, 92, 105, 106, 107, 108, 110, 93, - 94, 96, 97, 111, 98, 99, 100, 112, 40, 101, - 102, 113, 40, 103, 185, 104, 109, 105, 106, 107, - 108, 114, 110, 82, 36, 36, 83, 111, 115, 116, - 117, 112, 118, 119, 113, 83, 36, 36, 83, 120, - 121, 122, 185, 124, 114, 125, 126, 127, 128, 185, - 123, 115, 116, 129, 117, 118, 119, 130, 131, 132, - 134, 133, 120, 134, 121, 122, 124, 136, 125, 126, - 137, 127, 128, 123, 138, 139, 129, 140, 185, 141, - - 130, 142, 131, 132, 133, 135, 143, 185, 144, 145, - 136, 146, 148, 137, 147, 149, 150, 154, 138, 139, - 151, 140, 141, 152, 155, 142, 156, 157, 135, 156, - 143, 144, 145, 158, 159, 146, 148, 147, 160, 149, - 150, 154, 161, 151, 162, 165, 152, 163, 155, 164, - 166, 157, 167, 168, 170, 167, 158, 159, 171, 156, - 172, 160, 156, 173, 174, 176, 161, 177, 162, 165, - 163, 167, 164, 166, 167, 178, 168, 170, 179, 180, - 169, 171, 181, 183, 172, 182, 173, 174, 182, 176, - 177, 182, 185, 185, 182, 185, 185, 175, 185, 178, - - 185, 179, 185, 180, 169, 181, 183, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 175, 41, 41, 185, 41, 41, 41, 50, 50, 85, - 85, 185, 185, 85, 85, 153, 185, 185, 185, 153, - 184, 185, 185, 185, 184, 3, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - - 185, 185, 185, 185, 185, 185 + 22, 23, 24, 23, 25, 26, 27, 28, 29, 30, + 31, 32, 23, 23, 33, 23, 23, 23, 16, 17, + 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, + 28, 29, 30, 31, 32, 23, 23, 33, 23, 23, + 34, 46, 47, 35, 36, 37, 37, 38, 39, 40, + 40, 39, 39, 40, 40, 39, 38, 37, 37, 38, + 48, 49, 52, 55, 53, 41, 54, 141, 56, 41, + 141, 57, 62, 58, 66, 63, 64, 60, 89, 77, + + 37, 37, 59, 65, 89, 52, 55, 53, 90, 41, + 54, 56, 61, 41, 57, 62, 58, 66, 63, 75, + 64, 60, 76, 77, 71, 59, 65, 67, 73, 68, + 81, 69, 90, 72, 78, 61, 82, 87, 74, 93, + 70, 43, 75, 94, 79, 76, 50, 80, 71, 83, + 84, 67, 73, 68, 81, 69, 72, 45, 78, 82, + 87, 74, 93, 70, 46, 47, 94, 79, 91, 92, + 80, 44, 43, 83, 84, 85, 37, 37, 86, 86, + 37, 37, 86, 36, 37, 37, 38, 38, 37, 37, + 38, 39, 91, 92, 39, 39, 40, 40, 39, 95, + + 96, 97, 98, 99, 193, 100, 101, 102, 41, 103, + 104, 109, 41, 193, 105, 106, 107, 108, 110, 111, + 112, 113, 95, 114, 96, 97, 98, 99, 100, 101, + 102, 115, 41, 103, 104, 109, 41, 105, 106, 107, + 108, 110, 111, 112, 113, 116, 124, 114, 118, 117, + 85, 37, 37, 86, 119, 115, 86, 37, 37, 86, + 120, 121, 122, 123, 125, 126, 127, 128, 134, 116, + 124, 118, 129, 117, 131, 132, 133, 119, 135, 193, + 136, 130, 137, 120, 121, 122, 123, 125, 126, 127, + 138, 128, 134, 139, 193, 140, 129, 131, 132, 133, + + 143, 144, 135, 136, 130, 137, 141, 147, 145, 141, + 146, 148, 193, 149, 138, 150, 151, 139, 140, 152, + 153, 154, 156, 143, 144, 155, 157, 158, 193, 159, + 147, 142, 145, 160, 146, 148, 149, 162, 163, 150, + 151, 164, 152, 153, 164, 154, 156, 165, 155, 166, + 157, 158, 159, 167, 142, 168, 160, 169, 170, 193, + 171, 162, 163, 172, 173, 175, 174, 176, 175, 178, + 164, 165, 166, 164, 179, 180, 167, 181, 168, 182, + 184, 169, 170, 171, 175, 185, 172, 175, 173, 174, + 176, 177, 178, 186, 193, 187, 188, 179, 189, 180, + + 181, 191, 182, 190, 184, 193, 190, 193, 185, 190, + 183, 193, 190, 193, 193, 177, 193, 186, 187, 193, + 188, 189, 193, 193, 191, 193, 193, 193, 193, 193, + 193, 193, 193, 183, 42, 42, 193, 42, 42, 42, + 51, 51, 88, 88, 193, 193, 88, 88, 161, 193, + 193, 193, 161, 192, 193, 193, 193, 192, 3, 193, + 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, + 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, + 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, + 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, + + 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, + 193, 193, 193, 193, 193, 193, 193, 193, 193 } ; -static yyconst flex_int16_t yy_chk[507] = +static yyconst flex_int16_t yy_chk[520] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -557,54 +564,55 @@ static yyconst flex_int16_t yy_chk[507] = 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, - 14, 14, 16, 18, 19, 6, 21, 23, 26, 7, - 86, 20, 22, 20, 23, 22, 24, 26, 27, 29, - - 45, 21, 20, 36, 36, 16, 18, 19, 27, 6, - 21, 23, 26, 7, 20, 22, 20, 23, 22, 24, - 26, 40, 27, 29, 21, 20, 25, 30, 25, 51, - 25, 27, 28, 46, 46, 28, 52, 30, 53, 25, - 30, 31, 32, 32, 40, 54, 59, 31, 41, 15, - 25, 30, 25, 51, 25, 28, 12, 11, 28, 52, - 30, 53, 25, 30, 55, 31, 32, 32, 54, 59, - 31, 33, 33, 33, 33, 34, 34, 34, 34, 35, - 35, 35, 35, 37, 37, 37, 37, 38, 55, 56, - 38, 39, 39, 39, 39, 57, 58, 9, 62, 63, - - 64, 65, 134, 66, 38, 134, 67, 68, 39, 3, - 69, 72, 77, 56, 73, 74, 75, 76, 78, 57, - 58, 62, 63, 80, 64, 65, 66, 80, 38, 67, - 68, 81, 39, 69, 0, 72, 77, 73, 74, 75, - 76, 84, 78, 82, 82, 82, 82, 80, 88, 89, - 90, 80, 92, 93, 81, 83, 83, 83, 83, 94, - 95, 96, 0, 97, 84, 98, 99, 100, 101, 0, - 96, 88, 89, 102, 90, 92, 93, 104, 106, 108, - 110, 109, 94, 110, 95, 96, 97, 111, 98, 99, - 112, 100, 101, 96, 113, 114, 102, 115, 0, 119, - - 104, 120, 106, 108, 109, 110, 121, 0, 122, 125, - 111, 126, 128, 112, 127, 130, 131, 137, 113, 114, - 132, 115, 119, 133, 138, 120, 139, 140, 110, 139, - 121, 122, 125, 141, 143, 126, 128, 127, 144, 130, - 131, 137, 146, 132, 147, 151, 133, 149, 138, 150, - 152, 140, 153, 155, 157, 153, 141, 143, 158, 156, - 160, 144, 156, 161, 163, 169, 146, 170, 147, 151, - 149, 167, 150, 152, 167, 172, 155, 157, 174, 175, - 156, 158, 178, 181, 160, 180, 161, 163, 180, 169, - 170, 182, 184, 0, 182, 184, 0, 167, 0, 172, - - 0, 174, 0, 175, 156, 178, 181, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 167, 186, 186, 0, 186, 186, 186, 187, 187, 188, - 188, 0, 0, 188, 188, 189, 0, 0, 0, 189, - 190, 0, 0, 0, 190, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, - - 185, 185, 185, 185, 185, 185 + 14, 14, 16, 18, 16, 6, 17, 141, 19, 7, + 141, 20, 22, 20, 25, 22, 24, 21, 89, 30, + + 37, 37, 20, 24, 46, 16, 18, 16, 52, 6, + 17, 19, 21, 7, 20, 22, 20, 25, 22, 29, + 24, 21, 29, 30, 27, 20, 24, 26, 28, 26, + 32, 26, 52, 27, 31, 21, 32, 41, 28, 55, + 26, 42, 29, 56, 31, 29, 15, 31, 27, 33, + 33, 26, 28, 26, 32, 26, 27, 12, 31, 32, + 41, 28, 55, 26, 47, 47, 56, 31, 53, 54, + 31, 11, 9, 33, 33, 34, 34, 34, 34, 35, + 35, 35, 35, 36, 36, 36, 36, 38, 38, 38, + 38, 39, 53, 54, 39, 40, 40, 40, 40, 57, + + 58, 59, 60, 61, 3, 62, 65, 66, 39, 67, + 68, 75, 40, 0, 69, 70, 71, 72, 76, 77, + 78, 79, 57, 80, 58, 59, 60, 61, 62, 65, + 66, 81, 39, 67, 68, 75, 40, 69, 70, 71, + 72, 76, 77, 78, 79, 83, 95, 80, 84, 83, + 85, 85, 85, 85, 87, 81, 86, 86, 86, 86, + 90, 92, 93, 94, 97, 98, 99, 100, 105, 83, + 95, 84, 101, 83, 102, 103, 104, 87, 106, 0, + 107, 101, 109, 90, 92, 93, 94, 97, 98, 99, + 111, 100, 105, 113, 0, 114, 101, 102, 103, 104, + + 116, 117, 106, 107, 101, 109, 115, 120, 118, 115, + 119, 122, 0, 126, 111, 127, 128, 113, 114, 129, + 132, 133, 135, 116, 117, 134, 137, 138, 0, 139, + 120, 115, 118, 140, 119, 122, 126, 144, 145, 127, + 128, 146, 129, 132, 146, 133, 135, 148, 134, 149, + 137, 138, 139, 151, 115, 152, 140, 154, 155, 0, + 157, 144, 145, 158, 159, 161, 160, 163, 161, 165, + 164, 148, 149, 164, 166, 168, 151, 169, 152, 171, + 177, 154, 155, 157, 175, 178, 158, 175, 159, 160, + 163, 164, 165, 180, 0, 182, 183, 166, 186, 168, + + 169, 189, 171, 188, 177, 0, 188, 0, 178, 190, + 175, 192, 190, 0, 192, 164, 0, 180, 182, 0, + 183, 186, 0, 0, 189, 0, 0, 0, 0, 0, + 0, 0, 0, 175, 194, 194, 0, 194, 194, 194, + 195, 195, 196, 196, 0, 0, 196, 196, 197, 0, + 0, 0, 197, 198, 0, 0, 0, 198, 193, 193, + 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, + 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, + 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, + 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, + + 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, + 193, 193, 193, 193, 193, 193, 193, 193, 193 } ; static yy_state_type yy_last_accepting_state; @@ -674,7 +682,7 @@ static void countnl() { g_lingo->_colnumber = strlen(p); } -#line 678 "engines/director/lingo/lingo-lex.cpp" +#line 686 "engines/director/lingo/lingo-lex.cpp" #define INITIAL 0 @@ -862,7 +870,7 @@ YY_DECL #line 65 "engines/director/lingo/lingo-lex.l" -#line 866 "engines/director/lingo/lingo-lex.cpp" +#line 874 "engines/director/lingo/lingo-lex.cpp" if ( !(yy_init) ) { @@ -916,13 +924,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 >= 186 ) + if ( yy_current_state >= 194 ) 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] != 446 ); + while ( yy_base[yy_current_state] != 459 ); yy_find_action: yy_act = yy_accept[yy_current_state]; @@ -964,158 +972,168 @@ YY_RULE_SETUP case 4: YY_RULE_SETUP #line 71 "engines/director/lingo/lingo-lex.l" -{ count(); return tAND; } +{ count(); return tALERT; } YY_BREAK case 5: YY_RULE_SETUP #line 72 "engines/director/lingo/lingo-lex.l" -{ count(); return tCONTAINS; } +{ count(); return tAND; } YY_BREAK case 6: YY_RULE_SETUP #line 73 "engines/director/lingo/lingo-lex.l" -{ count(); return tDOWN; } +{ count(); return tBEEP; } YY_BREAK case 7: YY_RULE_SETUP #line 74 "engines/director/lingo/lingo-lex.l" -{ count(); return tIF; } +{ count(); return tCONTAINS; } YY_BREAK case 8: -/* rule 8 can match eol */ YY_RULE_SETUP #line 75 "engines/director/lingo/lingo-lex.l" -{ countnl(); return tNLELSIF; } +{ count(); return tDOWN; } YY_BREAK case 9: -/* rule 9 can match eol */ YY_RULE_SETUP #line 76 "engines/director/lingo/lingo-lex.l" -{ countnl(); return tNLELSE; } +{ count(); return tIF; } YY_BREAK case 10: +/* rule 10 can match eol */ YY_RULE_SETUP #line 77 "engines/director/lingo/lingo-lex.l" -{ count(); return tELSE; } +{ countnl(); return tNLELSIF; } YY_BREAK case 11: +/* rule 11 can match eol */ YY_RULE_SETUP #line 78 "engines/director/lingo/lingo-lex.l" -{ count(); return tEND; } +{ countnl(); return tNLELSE; } YY_BREAK case 12: YY_RULE_SETUP #line 79 "engines/director/lingo/lingo-lex.l" -{ count(); return tFACTORY; } +{ count(); return tELSE; } YY_BREAK case 13: YY_RULE_SETUP #line 80 "engines/director/lingo/lingo-lex.l" -{ count(); return tEXIT; } +{ count(); return tEND; } YY_BREAK case 14: YY_RULE_SETUP #line 81 "engines/director/lingo/lingo-lex.l" -{ count(); return tFRAME; } +{ count(); return tFACTORY; } YY_BREAK case 15: YY_RULE_SETUP #line 82 "engines/director/lingo/lingo-lex.l" -{ count(); return tGLOBAL; } +{ count(); return tEXIT; } YY_BREAK case 16: YY_RULE_SETUP #line 83 "engines/director/lingo/lingo-lex.l" -{ count(); return tGO; } +{ count(); return tFRAME; } YY_BREAK case 17: YY_RULE_SETUP #line 84 "engines/director/lingo/lingo-lex.l" -{ count(); return tINTERSECTS; } +{ count(); return tGLOBAL; } YY_BREAK case 18: YY_RULE_SETUP #line 85 "engines/director/lingo/lingo-lex.l" -{ count(); return tINTO; } +{ count(); return tGO; } YY_BREAK case 19: YY_RULE_SETUP #line 86 "engines/director/lingo/lingo-lex.l" -{ count(); return tLOOP; } +{ count(); return tINTERSECTS; } YY_BREAK case 20: YY_RULE_SETUP #line 87 "engines/director/lingo/lingo-lex.l" -{ count(); return tMACRO; } +{ count(); return tINTO; } YY_BREAK case 21: YY_RULE_SETUP #line 88 "engines/director/lingo/lingo-lex.l" -{ count(); return tMCI; } +{ count(); return tLOOP; } YY_BREAK case 22: YY_RULE_SETUP #line 89 "engines/director/lingo/lingo-lex.l" -{ count(); return tMCIWAIT; } +{ count(); return tMACRO; } YY_BREAK case 23: YY_RULE_SETUP #line 90 "engines/director/lingo/lingo-lex.l" -{ count(); return tMETHOD; } +{ count(); return tMCI; } YY_BREAK case 24: YY_RULE_SETUP #line 91 "engines/director/lingo/lingo-lex.l" -{ count(); return tMOVIE; } +{ count(); return tMCIWAIT; } YY_BREAK case 25: YY_RULE_SETUP #line 92 "engines/director/lingo/lingo-lex.l" -{ count(); return tNEXT; } +{ count(); return tMETHOD; } YY_BREAK case 26: YY_RULE_SETUP #line 93 "engines/director/lingo/lingo-lex.l" -{ count(); return tNOT; } +{ count(); return tMOVIE; } YY_BREAK case 27: YY_RULE_SETUP #line 94 "engines/director/lingo/lingo-lex.l" -{ count(); return tOF; } +{ count(); return tNEXT; } YY_BREAK case 28: YY_RULE_SETUP #line 95 "engines/director/lingo/lingo-lex.l" -{ count(); return tOR; } +{ count(); return tNOT; } YY_BREAK case 29: YY_RULE_SETUP #line 96 "engines/director/lingo/lingo-lex.l" -{ count(); return tPREVIOUS; } +{ count(); return tOF; } YY_BREAK case 30: YY_RULE_SETUP #line 97 "engines/director/lingo/lingo-lex.l" -{ count(); return tPUT; } +{ count(); return tOR; } YY_BREAK case 31: YY_RULE_SETUP #line 98 "engines/director/lingo/lingo-lex.l" -{ count(); return tREPEAT; } +{ count(); return tPREVIOUS; } YY_BREAK case 32: YY_RULE_SETUP #line 99 "engines/director/lingo/lingo-lex.l" -{ count(); return tSET; } +{ count(); return tPUT; } YY_BREAK case 33: YY_RULE_SETUP #line 100 "engines/director/lingo/lingo-lex.l" -{ count(); return tSTARTS; } +{ count(); return tREPEAT; } YY_BREAK case 34: YY_RULE_SETUP #line 101 "engines/director/lingo/lingo-lex.l" +{ count(); return tSET; } + YY_BREAK +case 35: +YY_RULE_SETUP +#line 102 "engines/director/lingo/lingo-lex.l" +{ count(); return tSTARTS; } + YY_BREAK +case 36: +YY_RULE_SETUP +#line 103 "engines/director/lingo/lingo-lex.l" { count(); @@ -1157,9 +1175,9 @@ YY_RULE_SETUP warning("Unhandled the entity %s", ptr); } YY_BREAK -case 35: +case 37: YY_RULE_SETUP -#line 141 "engines/director/lingo/lingo-lex.l" +#line 143 "engines/director/lingo/lingo-lex.l" { count(); @@ -1180,64 +1198,64 @@ YY_RULE_SETUP warning("Unhandled the entity %s", ptr); } YY_BREAK -case 36: -YY_RULE_SETUP -#line 160 "engines/director/lingo/lingo-lex.l" -{ count(); return tTHEN; } - YY_BREAK -case 37: -YY_RULE_SETUP -#line 161 "engines/director/lingo/lingo-lex.l" -{ count(); return tTO; } - YY_BREAK case 38: YY_RULE_SETUP #line 162 "engines/director/lingo/lingo-lex.l" -{ count(); return tSPRITE; } +{ count(); return tTHEN; } YY_BREAK case 39: YY_RULE_SETUP #line 163 "engines/director/lingo/lingo-lex.l" -{ count(); return tWITH; } +{ count(); return tTO; } YY_BREAK case 40: YY_RULE_SETUP #line 164 "engines/director/lingo/lingo-lex.l" -{ count(); return tWITHIN; } +{ count(); return tSPRITE; } YY_BREAK case 41: YY_RULE_SETUP #line 165 "engines/director/lingo/lingo-lex.l" -{ count(); return tWHEN; } +{ count(); return tWITH; } YY_BREAK case 42: YY_RULE_SETUP #line 166 "engines/director/lingo/lingo-lex.l" -{ count(); return tWHILE; } +{ count(); return tWITHIN; } YY_BREAK case 43: YY_RULE_SETUP -#line 168 "engines/director/lingo/lingo-lex.l" -{ count(); return tNEQ; } +#line 167 "engines/director/lingo/lingo-lex.l" +{ count(); return tWHEN; } YY_BREAK case 44: YY_RULE_SETUP -#line 169 "engines/director/lingo/lingo-lex.l" -{ count(); return tGE; } +#line 168 "engines/director/lingo/lingo-lex.l" +{ count(); return tWHILE; } YY_BREAK case 45: YY_RULE_SETUP #line 170 "engines/director/lingo/lingo-lex.l" -{ count(); return tLE; } +{ count(); return tNEQ; } YY_BREAK case 46: YY_RULE_SETUP #line 171 "engines/director/lingo/lingo-lex.l" -{ count(); return tCONCAT; } +{ count(); return tGE; } YY_BREAK case 47: YY_RULE_SETUP +#line 172 "engines/director/lingo/lingo-lex.l" +{ count(); return tLE; } + YY_BREAK +case 48: +YY_RULE_SETUP #line 173 "engines/director/lingo/lingo-lex.l" +{ count(); return tCONCAT; } + YY_BREAK +case 49: +YY_RULE_SETUP +#line 175 "engines/director/lingo/lingo-lex.l" { count(); yylval.s = new Common::String(yytext); @@ -1250,43 +1268,43 @@ YY_RULE_SETUP return ID; } YY_BREAK -case 48: -YY_RULE_SETUP -#line 184 "engines/director/lingo/lingo-lex.l" -{ count(); yylval.f = atof(yytext); return vFLOAT; } - YY_BREAK -case 49: -YY_RULE_SETUP -#line 185 "engines/director/lingo/lingo-lex.l" -{ count(); yylval.i = strtol(yytext, NULL, 10); return vINT; } - YY_BREAK case 50: YY_RULE_SETUP #line 186 "engines/director/lingo/lingo-lex.l" -{ count(); return *yytext; } +{ count(); yylval.f = atof(yytext); return vFLOAT; } YY_BREAK case 51: -/* rule 51 can match eol */ YY_RULE_SETUP #line 187 "engines/director/lingo/lingo-lex.l" -{ return '\n'; } +{ count(); yylval.i = strtol(yytext, NULL, 10); return vINT; } YY_BREAK case 52: YY_RULE_SETUP #line 188 "engines/director/lingo/lingo-lex.l" -{ count(); yylval.s = new Common::String(&yytext[1]); yylval.s->deleteLastChar(); return vSTRING; } +{ count(); return *yytext; } YY_BREAK case 53: +/* rule 53 can match eol */ YY_RULE_SETUP #line 189 "engines/director/lingo/lingo-lex.l" - +{ return '\n'; } YY_BREAK case 54: YY_RULE_SETUP +#line 190 "engines/director/lingo/lingo-lex.l" +{ count(); yylval.s = new Common::String(&yytext[1]); yylval.s->deleteLastChar(); return vSTRING; } + YY_BREAK +case 55: +YY_RULE_SETUP #line 191 "engines/director/lingo/lingo-lex.l" + + YY_BREAK +case 56: +YY_RULE_SETUP +#line 193 "engines/director/lingo/lingo-lex.l" ECHO; YY_BREAK -#line 1290 "engines/director/lingo/lingo-lex.cpp" +#line 1308 "engines/director/lingo/lingo-lex.cpp" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -1579,7 +1597,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 >= 186 ) + if ( yy_current_state >= 194 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; @@ -1607,11 +1625,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 >= 186 ) + if ( yy_current_state >= 194 ) 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 == 185); + yy_is_jam = (yy_current_state == 193); return yy_is_jam ? 0 : yy_current_state; } @@ -2286,7 +2304,7 @@ void yyfree (void * ptr ) #define YYTABLES_NAME "yytables" -#line 191 "engines/director/lingo/lingo-lex.l" +#line 193 "engines/director/lingo/lingo-lex.l" |