diff options
Diffstat (limited to 'src/map/magic-interpreter-lexer.c')
-rw-r--r-- | src/map/magic-interpreter-lexer.c | 387 |
1 files changed, 198 insertions, 189 deletions
diff --git a/src/map/magic-interpreter-lexer.c b/src/map/magic-interpreter-lexer.c index 6cf5d73..50b6865 100644 --- a/src/map/magic-interpreter-lexer.c +++ b/src/map/magic-interpreter-lexer.c @@ -396,8 +396,8 @@ static void yy_fatal_error (yyconst char msg[] ); *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; -#define YY_NUM_RULES 85 -#define YY_END_OF_BUFFER 86 +#define YY_NUM_RULES 86 +#define YY_END_OF_BUFFER 87 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info @@ -405,34 +405,34 @@ struct yy_trans_info flex_int32_t yy_verify; flex_int32_t yy_nxt; }; -static yyconst flex_int16_t yy_accept[238] = +static yyconst flex_int16_t yy_accept[240] = { 0, - 0, 0, 86, 84, 83, 83, 84, 84, 84, 23, - 33, 17, 18, 21, 19, 28, 20, 35, 22, 78, - 78, 27, 26, 14, 9, 13, 29, 80, 80, 80, - 80, 7, 80, 80, 80, 80, 80, 5, 80, 80, - 80, 1, 80, 3, 31, 32, 34, 84, 30, 12, - 0, 77, 0, 0, 81, 24, 78, 0, 0, 36, - 16, 11, 10, 51, 15, 37, 80, 80, 80, 80, - 80, 80, 74, 80, 80, 80, 80, 69, 49, 80, - 80, 80, 80, 6, 80, 4, 40, 65, 80, 80, - 8, 80, 80, 80, 80, 2, 80, 80, 80, 41, - - 80, 0, 0, 76, 25, 0, 77, 0, 0, 82, - 79, 80, 80, 80, 80, 80, 80, 80, 80, 80, - 80, 80, 50, 80, 73, 48, 80, 80, 66, 80, - 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, - 80, 0, 0, 76, 80, 80, 80, 80, 39, 80, - 80, 80, 80, 80, 71, 80, 80, 80, 56, 80, - 80, 80, 80, 58, 80, 80, 80, 80, 70, 80, - 75, 59, 62, 80, 60, 80, 80, 80, 64, 80, - 80, 80, 45, 80, 80, 80, 80, 47, 80, 80, - 80, 80, 80, 80, 80, 80, 61, 67, 80, 80, - - 80, 80, 44, 52, 68, 80, 80, 80, 80, 80, - 80, 72, 80, 80, 53, 80, 42, 80, 57, 80, - 80, 46, 80, 80, 63, 54, 80, 38, 80, 55, - 80, 80, 80, 80, 80, 43, 0 + 0, 0, 87, 85, 84, 84, 85, 85, 85, 23, + 33, 17, 18, 21, 19, 28, 20, 35, 22, 79, + 79, 27, 26, 14, 9, 13, 29, 81, 81, 81, + 81, 7, 81, 81, 81, 81, 81, 5, 81, 81, + 81, 1, 81, 3, 31, 32, 34, 85, 30, 12, + 0, 78, 0, 0, 82, 24, 79, 0, 0, 36, + 16, 11, 10, 51, 15, 37, 81, 81, 81, 81, + 81, 81, 75, 81, 81, 81, 81, 70, 49, 81, + 81, 81, 81, 6, 81, 81, 4, 40, 65, 81, + 81, 8, 81, 81, 81, 81, 2, 81, 81, 81, + + 41, 81, 0, 0, 77, 25, 0, 78, 0, 0, + 83, 80, 81, 81, 81, 81, 81, 81, 81, 81, + 81, 81, 81, 50, 81, 74, 48, 81, 81, 67, + 81, 66, 81, 81, 81, 81, 81, 81, 81, 81, + 81, 81, 81, 0, 0, 77, 81, 81, 81, 81, + 39, 81, 81, 81, 81, 81, 72, 81, 81, 81, + 56, 81, 81, 81, 81, 58, 81, 81, 81, 81, + 71, 81, 76, 59, 62, 81, 60, 81, 81, 81, + 64, 81, 81, 81, 45, 81, 81, 81, 81, 47, + 81, 81, 81, 81, 81, 81, 81, 81, 61, 68, + + 81, 81, 81, 81, 44, 52, 69, 81, 81, 81, + 81, 81, 81, 73, 81, 81, 53, 81, 42, 81, + 57, 81, 81, 46, 81, 81, 63, 54, 81, 38, + 81, 55, 81, 81, 81, 81, 81, 43, 0 } ; static yyconst flex_int32_t yy_ec[256] = @@ -477,69 +477,69 @@ static yyconst flex_int32_t yy_meta[58] = 1, 1, 3, 2, 1, 1, 1 } ; -static yyconst flex_int16_t yy_base[246] = +static yyconst flex_int16_t yy_base[248] = { 0, - 0, 0, 287, 288, 288, 288, 264, 53, 282, 288, - 276, 288, 288, 288, 288, 288, 42, 288, 267, 44, - 46, 288, 288, 44, 46, 48, 288, 45, 239, 47, - 241, 43, 240, 0, 44, 46, 51, 48, 236, 51, - 248, 63, 76, 251, 288, 288, 288, 35, 220, 288, - 76, 288, 102, 272, 288, 288, 83, 271, 0, 288, - 288, 288, 288, 288, 288, 288, 0, 233, 66, 242, - 75, 75, 0, 240, 226, 86, 226, 0, 0, 223, - 239, 227, 238, 0, 225, 0, 0, 0, 223, 220, - 0, 224, 226, 229, 215, 0, 214, 219, 225, 207, - - 219, 67, 86, 288, 288, 79, 113, 118, 249, 288, - 0, 208, 211, 206, 222, 210, 201, 219, 203, 199, - 212, 211, 0, 206, 209, 0, 212, 211, 0, 198, - 207, 188, 203, 191, 194, 196, 197, 198, 188, 200, - 180, 75, 119, 77, 179, 194, 188, 185, 0, 175, - 182, 178, 172, 188, 0, 170, 188, 176, 0, 186, - 181, 176, 170, 0, 171, 168, 176, 164, 0, 161, - 0, 0, 0, 171, 0, 168, 153, 161, 0, 154, - 150, 169, 0, 143, 145, 130, 127, 0, 139, 125, - 127, 137, 133, 126, 118, 131, 0, 0, 127, 125, - - 112, 127, 0, 0, 0, 113, 111, 124, 123, 106, - 111, 0, 121, 105, 0, 102, 0, 103, 0, 101, - 99, 0, 112, 127, 0, 0, 96, 0, 113, 0, - 99, 109, 102, 93, 87, 0, 288, 176, 179, 181, - 184, 187, 190, 125, 193 + 0, 0, 289, 290, 290, 290, 266, 53, 284, 290, + 278, 290, 290, 290, 290, 290, 42, 290, 269, 44, + 46, 290, 290, 44, 46, 48, 290, 45, 241, 47, + 243, 43, 242, 0, 44, 46, 51, 48, 238, 51, + 250, 63, 76, 253, 290, 290, 290, 35, 222, 290, + 76, 290, 102, 274, 290, 290, 83, 273, 0, 290, + 290, 290, 290, 290, 290, 290, 0, 235, 66, 244, + 75, 75, 0, 242, 228, 86, 228, 0, 0, 225, + 241, 229, 240, 0, 227, 237, 0, 0, 0, 224, + 221, 0, 225, 227, 230, 216, 0, 215, 220, 226, + + 208, 220, 67, 115, 290, 290, 79, 116, 120, 250, + 290, 0, 209, 212, 207, 223, 211, 202, 220, 204, + 200, 213, 212, 0, 207, 210, 0, 213, 212, 0, + 199, 0, 208, 189, 204, 192, 195, 197, 198, 199, + 189, 201, 181, 77, 119, 78, 180, 195, 189, 186, + 0, 176, 183, 179, 173, 189, 0, 171, 189, 177, + 0, 187, 182, 177, 171, 0, 172, 169, 177, 165, + 0, 162, 0, 0, 0, 172, 0, 169, 154, 162, + 0, 155, 151, 170, 0, 165, 146, 131, 128, 0, + 139, 123, 127, 135, 131, 124, 117, 130, 0, 0, + + 126, 124, 111, 126, 0, 0, 0, 112, 110, 123, + 121, 105, 110, 0, 120, 104, 0, 101, 0, 102, + 0, 100, 98, 0, 112, 127, 0, 0, 96, 0, + 113, 0, 99, 109, 103, 93, 89, 0, 290, 176, + 179, 181, 184, 187, 190, 127, 193 } ; -static yyconst flex_int16_t yy_def[246] = +static yyconst flex_int16_t yy_def[248] = { 0, - 237, 1, 237, 237, 237, 237, 237, 238, 239, 237, - 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, - 237, 237, 237, 237, 237, 237, 237, 240, 240, 240, - 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - 240, 240, 240, 240, 237, 237, 237, 241, 237, 237, - 238, 237, 242, 239, 237, 237, 237, 243, 244, 237, - 237, 237, 237, 237, 237, 237, 240, 240, 240, 240, - 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - - 240, 241, 245, 237, 237, 238, 238, 242, 243, 237, - 244, 240, 240, 240, 240, 240, 240, 240, 240, 240, - 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - 240, 241, 245, 241, 240, 240, 240, 240, 240, 240, - 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - - 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, - 240, 240, 240, 240, 240, 240, 0, 237, 237, 237, - 237, 237, 237, 237, 237 + 239, 1, 239, 239, 239, 239, 239, 240, 241, 239, + 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, + 239, 239, 239, 239, 239, 239, 239, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + 242, 242, 242, 242, 239, 239, 239, 243, 239, 239, + 240, 239, 244, 241, 239, 239, 239, 245, 246, 239, + 239, 239, 239, 239, 239, 239, 242, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + + 242, 242, 243, 247, 239, 239, 240, 240, 244, 245, + 239, 246, 242, 242, 242, 242, 242, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + 242, 242, 242, 243, 247, 243, 242, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 242, 242, + 242, 242, 242, 242, 242, 242, 242, 242, 0, 239, + 239, 239, 239, 239, 239, 239, 239 } ; -static yyconst flex_int16_t yy_nxt[346] = +static yyconst flex_int16_t yy_nxt[348] = { 0, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, @@ -548,40 +548,40 @@ static yyconst flex_int16_t yy_nxt[346] = 40, 34, 41, 42, 43, 34, 44, 34, 45, 4, 46, 47, 34, 34, 48, 49, 4, 52, 57, 57, 57, 57, 57, 57, 60, 61, 62, 63, 64, 65, - 66, 68, 71, 74, 78, 80, 82, 84, 88, 75, - 52, 76, 79, 52, 103, 81, 72, 85, 102, 69, - 83, 104, 91, 89, 86, 113, 92, 59, 93, 57, - - 57, 97, 53, 94, 51, 98, 107, 95, 99, 96, - 114, 116, 119, 120, 123, 100, 103, 52, 117, 118, - 51, 102, 107, 104, 103, 53, 103, 111, 53, 236, - 124, 104, 235, 104, 234, 143, 233, 232, 231, 230, - 229, 228, 144, 227, 226, 225, 224, 223, 222, 221, - 220, 108, 219, 218, 217, 216, 215, 214, 213, 212, - 211, 210, 53, 209, 208, 207, 206, 108, 143, 205, - 204, 203, 202, 201, 200, 144, 51, 51, 51, 54, - 54, 54, 67, 67, 102, 102, 102, 106, 106, 106, - 109, 109, 109, 142, 142, 142, 199, 198, 197, 196, - - 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, - 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, - 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, - 165, 164, 163, 162, 161, 160, 159, 158, 157, 156, - 155, 154, 153, 152, 151, 150, 149, 148, 147, 146, - 145, 110, 141, 140, 139, 138, 137, 136, 135, 134, - 133, 132, 131, 130, 129, 128, 127, 126, 125, 122, - 121, 115, 112, 110, 55, 105, 101, 90, 87, 77, - 73, 70, 58, 56, 55, 50, 237, 3, 237, 237, - 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, - - 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, - 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, - 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, - 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, - 237, 237, 237, 237, 237 + 66, 68, 71, 74, 78, 80, 82, 84, 89, 75, + 52, 76, 79, 52, 104, 81, 72, 85, 86, 69, + 83, 105, 92, 90, 87, 114, 93, 59, 94, 57, + + 57, 98, 53, 95, 51, 99, 108, 96, 100, 97, + 115, 117, 120, 121, 124, 101, 104, 103, 118, 119, + 52, 103, 51, 105, 108, 53, 104, 104, 53, 112, + 125, 238, 237, 105, 105, 236, 235, 234, 233, 232, + 231, 230, 229, 228, 227, 226, 225, 224, 223, 222, + 221, 109, 220, 219, 218, 217, 216, 215, 214, 213, + 212, 211, 210, 209, 145, 53, 208, 207, 145, 109, + 206, 146, 205, 204, 203, 146, 51, 51, 51, 54, + 54, 54, 67, 67, 103, 103, 103, 107, 107, 107, + 110, 110, 110, 144, 144, 144, 202, 201, 200, 199, + + 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, + 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, + 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, + 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, + 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, + 148, 147, 111, 143, 142, 141, 140, 139, 138, 137, + 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, + 126, 123, 122, 116, 113, 111, 55, 106, 102, 91, + 88, 77, 73, 70, 58, 56, 55, 50, 239, 3, + 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, + + 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, + 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, + 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, + 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, + 239, 239, 239, 239, 239, 239, 239 } ; -static yyconst flex_int16_t yy_chk[346] = +static yyconst flex_int16_t yy_chk[348] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -591,46 +591,46 @@ static yyconst flex_int16_t yy_chk[346] = 1, 1, 1, 1, 1, 1, 1, 8, 17, 17, 20, 20, 21, 21, 24, 24, 24, 25, 25, 26, 26, 28, 30, 32, 35, 36, 37, 38, 40, 32, - 51, 32, 35, 106, 48, 36, 30, 38, 103, 28, + 51, 32, 35, 107, 48, 36, 30, 38, 38, 28, 37, 48, 42, 40, 38, 69, 42, 20, 42, 57, 57, 43, 8, 42, 53, 43, 53, 42, 43, 42, - 69, 71, 72, 72, 76, 43, 102, 107, 71, 71, - 108, 143, 108, 102, 142, 51, 144, 244, 106, 235, - 76, 142, 234, 144, 233, 103, 232, 231, 229, 227, - 224, 223, 103, 221, 220, 218, 216, 214, 213, 211, - 210, 53, 209, 208, 207, 206, 202, 201, 200, 199, - 196, 195, 107, 194, 193, 192, 191, 108, 143, 190, - 189, 187, 186, 185, 184, 143, 238, 238, 238, 239, - 239, 239, 240, 240, 241, 241, 241, 242, 242, 242, - 243, 243, 243, 245, 245, 245, 182, 181, 180, 178, - - 177, 176, 174, 170, 168, 167, 166, 165, 163, 162, - 161, 160, 158, 157, 156, 154, 153, 152, 151, 150, - 148, 147, 146, 145, 141, 140, 139, 138, 137, 136, - 135, 134, 133, 132, 131, 130, 128, 127, 125, 124, - 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, - 112, 109, 101, 100, 99, 98, 97, 95, 94, 93, - 92, 90, 89, 85, 83, 82, 81, 80, 77, 75, - 74, 70, 68, 58, 54, 49, 44, 41, 39, 33, - 31, 29, 19, 11, 9, 7, 3, 237, 237, 237, - 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, - - 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, - 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, - 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, - 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, - 237, 237, 237, 237, 237 + 69, 71, 72, 72, 76, 43, 103, 104, 71, 71, + 108, 145, 109, 103, 109, 51, 144, 146, 107, 246, + 76, 237, 236, 144, 146, 235, 234, 233, 231, 229, + 226, 225, 223, 222, 220, 218, 216, 215, 213, 212, + 211, 53, 210, 209, 208, 204, 203, 202, 201, 198, + 197, 196, 195, 194, 104, 108, 193, 192, 145, 109, + 191, 104, 189, 188, 187, 145, 240, 240, 240, 241, + 241, 241, 242, 242, 243, 243, 243, 244, 244, 244, + 245, 245, 245, 247, 247, 247, 186, 184, 183, 182, + + 180, 179, 178, 176, 172, 170, 169, 168, 167, 165, + 164, 163, 162, 160, 159, 158, 156, 155, 154, 153, + 152, 150, 149, 148, 147, 143, 142, 141, 140, 139, + 138, 137, 136, 135, 134, 133, 131, 129, 128, 126, + 125, 123, 122, 121, 120, 119, 118, 117, 116, 115, + 114, 113, 110, 102, 101, 100, 99, 98, 96, 95, + 94, 93, 91, 90, 86, 85, 83, 82, 81, 80, + 77, 75, 74, 70, 68, 58, 54, 49, 44, 41, + 39, 33, 31, 29, 19, 11, 9, 7, 3, 239, + 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, + + 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, + 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, + 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, + 239, 239, 239, 239, 239, 239, 239, 239, 239, 239, + 239, 239, 239, 239, 239, 239, 239 } ; /* Table of booleans, true if rule could match eol. */ -static yyconst flex_int32_t yy_rule_can_match_eol[86] = +static yyconst flex_int32_t yy_rule_can_match_eol[87] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, - 0, 0, 0, 1, 0, 0, }; + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, + 0, 0, 0, 0, 1, 0, 0, }; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; @@ -747,8 +747,12 @@ static int input (void ); /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE +#ifdef __ia64__ /* On IA-64, the buffer size is 16k, not 8k */ #define YY_READ_BUF_SIZE 16384 +#else +#define YY_READ_BUF_SIZE 8192 +#endif /* __ia64__ */ #endif /* Copy whatever the last rule matched to the standard output. */ @@ -756,7 +760,7 @@ static int input (void ); /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ -#define ECHO fwrite( magic_frontend_text, magic_frontend_leng, 1, magic_frontend_out ) +#define ECHO do { if (fwrite( magic_frontend_text, magic_frontend_leng, 1, magic_frontend_out )) {} } while (0) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, @@ -858,7 +862,7 @@ YY_DECL #line 22 "magic-interpreter.l" -#line 862 "magic-interpreter-lexer.c" +#line 866 "magic-interpreter-lexer.c" yylval = yylval_param; @@ -915,13 +919,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 >= 238 ) + if ( yy_current_state >= 240 ) 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] != 288 ); + while ( yy_base[yy_current_state] != 290 ); yy_find_action: yy_act = yy_accept[yy_current_state]; @@ -1283,67 +1287,72 @@ YY_RULE_SETUP case 66: YY_RULE_SETUP #line 89 "magic-interpreter.l" -{FIXLOC; return MOB_F;} +{FIXLOC; return NPC_F;} YY_BREAK case 67: YY_RULE_SETUP #line 90 "magic-interpreter.l" -{FIXLOC; return ENTITY_F;} +{FIXLOC; return MOB_F;} YY_BREAK case 68: YY_RULE_SETUP #line 91 "magic-interpreter.l" -{FIXLOC; return TARGET_F;} +{FIXLOC; return ENTITY_F;} YY_BREAK case 69: YY_RULE_SETUP #line 92 "magic-interpreter.l" -{FIXLOC; return IF;} +{FIXLOC; return TARGET_F;} YY_BREAK case 70: YY_RULE_SETUP #line 93 "magic-interpreter.l" -{FIXLOC; return THEN;} +{FIXLOC; return IF;} YY_BREAK case 71: YY_RULE_SETUP #line 94 "magic-interpreter.l" -{FIXLOC; return ELSE;} +{FIXLOC; return THEN;} YY_BREAK case 72: YY_RULE_SETUP #line 95 "magic-interpreter.l" -{FIXLOC; return FOREACH;} +{FIXLOC; return ELSE;} YY_BREAK case 73: YY_RULE_SETUP #line 96 "magic-interpreter.l" -{FIXLOC; return FOR;} +{FIXLOC; return FOREACH;} YY_BREAK case 74: YY_RULE_SETUP #line 97 "magic-interpreter.l" -{FIXLOC; return DO;} +{FIXLOC; return FOR;} YY_BREAK case 75: YY_RULE_SETUP #line 98 "magic-interpreter.l" -{FIXLOC; return SLEEP;} +{FIXLOC; return DO;} YY_BREAK case 76: -/* rule 76 can match eol */ YY_RULE_SETUP -#line 100 "magic-interpreter.l" +#line 99 "magic-interpreter.l" +{FIXLOC; return SLEEP;} + YY_BREAK +case 77: +/* rule 77 can match eol */ +YY_RULE_SETUP +#line 101 "magic-interpreter.l" { char *string = strdup(magic_frontend_text); magic_frontend_lval.s = string; FIXLOC; return SCRIPT_DATA; } YY_BREAK -case 77: -/* rule 77 can match eol */ +case 78: +/* rule 78 can match eol */ YY_RULE_SETUP -#line 106 "magic-interpreter.l" +#line 107 "magic-interpreter.l" { char *string = strdup(magic_frontend_text + 1); char *src = string; char *dst = string; @@ -1359,60 +1368,60 @@ YY_RULE_SETUP return STRING; } YY_BREAK -case 78: +case 79: YY_RULE_SETUP -#line 121 "magic-interpreter.l" +#line 122 "magic-interpreter.l" { magic_frontend_lval.i = atoi(magic_frontend_text); FIXLOC; return INT; } YY_BREAK -case 79: +case 80: YY_RULE_SETUP -#line 125 "magic-interpreter.l" +#line 126 "magic-interpreter.l" { magic_frontend_lval.i = strtol(magic_frontend_text + 2, NULL, 16); FIXLOC; return INT; } YY_BREAK -case 80: +case 81: YY_RULE_SETUP -#line 129 "magic-interpreter.l" +#line 130 "magic-interpreter.l" { magic_frontend_lval.s = strdup(magic_frontend_text); FIXLOC; return ID; } YY_BREAK -case 81: +case 82: *yy_cp = (yy_hold_char); /* undo effects of setting up magic_frontend_text */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up magic_frontend_text again */ YY_RULE_SETUP -#line 133 "magic-interpreter.l" +#line 134 "magic-interpreter.l" /* Ignore comments */ YY_BREAK -case 82: +case 83: *yy_cp = (yy_hold_char); /* undo effects of setting up magic_frontend_text */ (yy_c_buf_p) = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up magic_frontend_text again */ YY_RULE_SETUP -#line 134 "magic-interpreter.l" +#line 135 "magic-interpreter.l" /* Ignore comments */ YY_BREAK -case 83: -/* rule 83 can match eol */ +case 84: +/* rule 84 can match eol */ YY_RULE_SETUP -#line 135 "magic-interpreter.l" +#line 136 "magic-interpreter.l" /* ignore whitespace */ YY_BREAK -case 84: +case 85: YY_RULE_SETUP -#line 136 "magic-interpreter.l" +#line 137 "magic-interpreter.l" fprintf(stderr, "%s: Unexpected character in line %d\n", MAGIC_CONFIG_FILE, magic_frontend_lineno); YY_BREAK -case 85: +case 86: YY_RULE_SETUP -#line 139 "magic-interpreter.l" +#line 140 "magic-interpreter.l" ECHO; YY_BREAK -#line 1416 "magic-interpreter-lexer.c" +#line 1425 "magic-interpreter-lexer.c" case YY_STATE_EOF(INITIAL): yyterminate(); @@ -1704,7 +1713,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 >= 238 ) + if ( yy_current_state >= 240 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; @@ -1732,11 +1741,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 >= 238 ) + if ( yy_current_state >= 240 ) 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 == 237); + yy_is_jam = (yy_current_state == 239); return yy_is_jam ? 0 : yy_current_state; } @@ -2381,7 +2390,7 @@ void magic_frontend_free (void * ptr ) #define YYTABLES_NAME "yytables" -#line 139 "magic-interpreter.l" +#line 140 "magic-interpreter.l" |