version 1.8 | | version 1.9 |
---|
| | |
/* A lexical scanner generated by flex */ | | /* A lexical scanner generated by flex */ |
| | |
/* Scanner skeleton version: | | /* Scanner skeleton version: |
* $Header: /cvsroot/crossfire/crossfire/random_maps/reader.c,v 1.8 2004/12/29 01:08:49 mwedel Exp $ | | * $Header: /cvsroot/crossfire/crossfire/random_maps/reader.c,v 1.9 2005/04/14 06:57:02 mwedel Exp $ |
*/ | | */ |
| | |
#define FLEX_SCANNER | | #define FLEX_SCANNER |
| | |
*yy_cp = '\0'; \ | | *yy_cp = '\0'; \ |
yy_c_buf_p = yy_cp; | | yy_c_buf_p = yy_cp; |
| | |
#define YY_NUM_RULES 31 | | #define YY_NUM_RULES 32 |
#define YY_END_OF_BUFFER 32 | | #define YY_END_OF_BUFFER 33 |
static yyconst short int yy_accept[309] = | | static yyconst short int yy_accept[321] = |
{ 0, | | { 0, |
30, 30, 0, 0, 32, 30, 28, 30, 30, 30, | | 31, 31, 0, 0, 33, 31, 29, 31, 31, 31, |
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, |
30, 31, 31, 30, 30, 29, 30, 28, 30, 30, | | 31, 32, 32, 31, 31, 30, 31, 29, 31, 31, |
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, |
30, 30, 30, 30, 0, 28, 30, 30, 30, 30, | | 31, 31, 31, 31, 0, 29, 31, 31, 31, 31, |
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, |
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, |
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, |
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, |
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, |
| | |
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, |
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, |
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, |
30, 30, 30, 30, 30, 30, 30, 30, 30, 8, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 8, |
8, 9, 9, 30, 30, 30, 30, 30, 30, 30, | | 8, 9, 9, 31, 31, 31, 31, 31, 31, 31, |
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, |
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, |
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, |
30, 30, 30, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, |
30, 30, 30, 30, 30, 10, 10, 30, 30, 30, | | 31, 31, 31, 31, 31, 10, 10, 31, 31, 31, |
| | |
30, 30, 30, 30, 22, 22, 23, 23, 30, 14, | | 31, 31, 31, 31, 23, 23, 24, 24, 31, 14, |
14, 30, 30, 30, 30, 30, 30, 6, 6, 30, | | 14, 31, 31, 31, 31, 31, 31, 31, 6, 6, |
30, 30, 17, 17, 20, 20, 30, 30, 30, 30, | | 31, 31, 31, 18, 18, 21, 21, 31, 31, 31, |
30, 30, 30, 30, 30, 1, 1, 30, 7, 7, | | 31, 31, 31, 31, 31, 31, 1, 1, 31, 7, |
15, 15, 30, 30, 30, 2, 2, 30, 30, 30, | | 7, 15, 15, 31, 31, 31, 31, 2, 2, 31, |
30, 24, 24, 30, 30, 30, 30, 30, 30, 30, | | 31, 31, 31, 25, 25, 31, 31, 31, 31, 31, |
30, 5, 5, 30, 21, 21, 25, 25, 30, 30, | | 31, 31, 31, 31, 5, 5, 31, 22, 22, 26, |
16, 16, 30, 30, 30, 30, 30, 30, 3, 3, | | 26, 31, 31, 17, 17, 31, 31, 31, 31, 31, |
30, 30, 19, 19, 18, 18, 30, 30, 30, 30, | | 31, 31, 3, 3, 31, 31, 31, 20, 20, 19, |
30, 4, 4, 30, 11, 11, 12, 12, 13, 13, | | 19, 31, 31, 31, 31, 31, 4, 4, 31, 31, |
| | |
30, 30, 26, 26, 30, 27, 27, 0 | | 11, 11, 12, 12, 13, 13, 31, 31, 31, 27, |
| | 27, 31, 31, 31, 28, 28, 31, 16, 16, 0 |
} ; | | } ; |
| | |
static yyconst int yy_ec[256] = | | static yyconst int yy_ec[256] = |
| | |
1, 1 | | 1, 1 |
} ; | | } ; |
| | |
static yyconst short int yy_base[340] = | | static yyconst short int yy_base[353] = |
{ 0, | | { 0, |
0, 7, 3, 4, 344, 0, 345, 340, 0, 1, | | 0, 7, 3, 4, 357, 0, 358, 353, 0, 1, |
312, 6, 330, 318, 315, 327, 306, 312, 324, 309, | | 325, 6, 343, 331, 328, 340, 319, 325, 337, 322, |
308, 345, 12, 0, 329, 345, 37, 0, 319, 315, | | 321, 358, 12, 0, 342, 358, 37, 0, 332, 328, |
307, 307, 12, 306, 304, 294, 303, 305, 301, 301, | | 320, 320, 12, 319, 317, 307, 316, 318, 314, 314, |
306, 300, 300, 299, 38, 345, 294, 300, 290, 297, | | 319, 313, 313, 312, 38, 358, 307, 313, 303, 310, |
286, 300, 299, 287, 286, 282, 30, 293, 285, 293, | | 299, 313, 312, 300, 299, 295, 30, 306, 298, 306, |
284, 270, 269, 276, 281, 273, 283, 24, 275, 276, | | 297, 283, 282, 289, 294, 286, 296, 24, 288, 289, |
270, 266, 266, 270, 272, 267, 274, 262, 261, 271, | | 283, 279, 279, 283, 285, 280, 287, 275, 274, 284, |
270, 23, 271, 256, 259, 258, 253, 265, 267, 251, | | 283, 23, 284, 269, 272, 271, 266, 278, 280, 264, |
249, 260, 247, 251, 251, 244, 242, 242, 265, 264, | | 262, 273, 260, 264, 264, 257, 255, 255, 278, 277, |
| | |
242, 238, 236, 231, 240, 239, 228, 251, 237, 230, | | 255, 251, 249, 244, 253, 252, 241, 264, 250, 243, |
25, 231, 243, 243, 242, 227, 226, 218, 246, 245, | | 25, 244, 256, 256, 255, 240, 239, 231, 259, 258, |
220, 214, 225, 224, 232, 231, 221, 209, 227, 206, | | 233, 227, 238, 237, 245, 244, 234, 222, 240, 219, |
213, 209, 209, 207, 21, 207, 200, 216, 210, 0, | | 226, 222, 222, 220, 21, 220, 213, 229, 223, 0, |
226, 0, 225, 208, 206, 198, 209, 40, 207, 207, | | 239, 0, 238, 221, 219, 211, 222, 40, 220, 220, |
218, 196, 199, 191, 185, 189, 196, 202, 210, 209, | | 231, 209, 212, 204, 198, 202, 209, 215, 223, 222, |
196, 207, 32, 194, 185, 192, 174, 202, 189, 188, | | 209, 220, 32, 207, 198, 205, 187, 215, 202, 201, |
183, 198, 197, 196, 183, 178, 176, 163, 171, 169, | | 196, 211, 210, 209, 196, 191, 189, 176, 184, 182, |
189, 188, 175, 186, 164, 160, 183, 163, 181, 180, | | 202, 201, 188, 199, 177, 173, 196, 176, 194, 53, |
179, 157, 151, 157, 175, 0, 174, 173, 172, 151, | | 193, 171, 165, 171, 189, 0, 188, 187, 186, 165, |
| | |
158, 152, 149, 167, 0, 166, 0, 165, 153, 0, | | 172, 166, 163, 181, 0, 180, 0, 179, 167, 0, |
163, 138, 132, 160, 136, 158, 157, 0, 156, 131, | | 177, 152, 146, 174, 150, 172, 171, 154, 0, 169, |
142, 144, 0, 152, 0, 151, 150, 130, 148, 135, | | 144, 155, 157, 0, 165, 0, 164, 163, 143, 161, |
146, 145, 144, 127, 125, 0, 141, 140, 0, 139, | | 148, 159, 158, 157, 140, 138, 0, 154, 153, 0, |
0, 138, 122, 119, 118, 0, 134, 110, 132, 131, | | 152, 0, 151, 131, 134, 131, 130, 0, 146, 122, |
130, 0, 129, 128, 107, 114, 125, 124, 123, 114, | | 144, 143, 142, 0, 141, 140, 119, 126, 137, 126, |
54, 0, 121, 120, 0, 119, 0, 118, 98, 116, | | 135, 134, 125, 54, 0, 132, 131, 0, 130, 0, |
0, 115, 114, 113, 94, 111, 110, 109, 0, 108, | | 129, 109, 127, 0, 126, 103, 124, 123, 104, 121, |
84, 106, 0, 105, 0, 104, 94, 102, 101, 100, | | 120, 119, 0, 118, 94, 116, 103, 0, 114, 0, |
99, 0, 98, 76, 0, 96, 0, 95, 0, 94, | | 113, 103, 111, 110, 109, 108, 0, 107, 97, 84, |
| | |
93, 92, 0, 91, 90, 0, 89, 345, 62, 64, | | 0, 104, 0, 103, 0, 102, 101, 77, 99, 0, |
89, 66, 88, 87, 86, 85, 84, 83, 82, 81, | | 98, 85, 96, 95, 0, 94, 93, 0, 92, 358, |
80, 79, 78, 77, 76, 75, 74, 73, 72, 71, | | 63, 65, 92, 67, 91, 90, 89, 88, 87, 86, |
70, 69, 68, 57, 55, 54, 17, 7, 0 | | 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, |
| | 75, 74, 73, 72, 71, 70, 69, 57, 55, 17, |
| | 7, 0 |
} ; | | } ; |
| | |
static yyconst short int yy_def[340] = | | static yyconst short int yy_def[353] = |
{ 0, | | { 0, |
309, 309, 310, 310, 308, 311, 308, 312, 311, 311, | | 321, 321, 322, 322, 320, 323, 320, 324, 323, 323, |
311, 311, 311, 311, 311, 311, 311, 311, 311, 311, | | 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, |
311, 308, 308, 311, 312, 308, 311, 311, 311, 311, | | 323, 320, 320, 323, 324, 320, 323, 323, 323, 323, |
311, 311, 311, 311, 311, 311, 311, 311, 311, 311, | | 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, |
311, 311, 311, 311, 308, 308, 311, 311, 311, 311, | | 323, 323, 323, 323, 320, 320, 323, 323, 323, 323, |
311, 311, 311, 311, 311, 311, 311, 311, 311, 311, | | 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, |
311, 311, 311, 311, 311, 311, 311, 311, 311, 311, | | 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, |
311, 311, 311, 311, 311, 311, 311, 311, 311, 311, | | 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, |
311, 311, 311, 311, 311, 311, 311, 311, 311, 311, | | 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, |
311, 311, 311, 311, 311, 311, 311, 311, 311, 311, | | 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, |
| | |
311, 311, 311, 311, 311, 311, 311, 311, 311, 311, | | 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, |
311, 311, 311, 311, 311, 311, 311, 311, 313, 314, | | 323, 323, 323, 323, 323, 323, 323, 323, 325, 326, |
311, 311, 311, 311, 311, 311, 311, 311, 311, 311, | | 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, |
311, 311, 311, 311, 311, 311, 311, 311, 311, 313, | | 323, 323, 323, 323, 323, 323, 323, 323, 323, 325, |
313, 314, 314, 311, 311, 311, 311, 311, 311, 311, | | 325, 326, 326, 323, 323, 323, 323, 323, 323, 323, |
311, 311, 311, 311, 311, 311, 311, 311, 311, 311, | | 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, |
311, 311, 311, 311, 311, 311, 311, 311, 311, 311, | | 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, |
311, 311, 315, 311, 311, 311, 311, 311, 311, 311, | | 323, 323, 327, 323, 323, 323, 323, 323, 323, 323, |
316, 317, 311, 318, 311, 311, 311, 311, 311, 311, | | 328, 329, 323, 330, 323, 323, 323, 323, 323, 323, |
319, 311, 311, 311, 320, 315, 315, 321, 311, 311, | | 331, 323, 323, 323, 332, 327, 327, 333, 323, 323, |
| | |
311, 311, 311, 311, 316, 316, 317, 317, 311, 318, | | 323, 323, 323, 323, 328, 328, 329, 329, 323, 330, |
318, 311, 311, 322, 311, 323, 324, 319, 319, 311, | | 330, 323, 323, 334, 323, 335, 336, 323, 331, 331, |
311, 311, 320, 320, 321, 321, 325, 311, 311, 311, | | 323, 323, 323, 332, 332, 333, 333, 337, 323, 323, |
311, 326, 311, 311, 311, 322, 322, 311, 323, 323, | | 323, 323, 338, 323, 323, 323, 334, 334, 323, 335, |
324, 324, 311, 311, 311, 325, 325, 311, 327, 311, | | 335, 336, 336, 323, 323, 323, 323, 337, 337, 323, |
328, 326, 326, 329, 311, 311, 330, 311, 311, 311, | | 339, 323, 340, 338, 338, 341, 323, 323, 342, 323, |
311, 327, 327, 331, 328, 328, 329, 329, 311, 311, | | 323, 323, 323, 323, 339, 339, 343, 340, 340, 341, |
330, 330, 332, 333, 311, 311, 311, 311, 331, 331, | | 341, 323, 323, 342, 342, 323, 344, 345, 323, 323, |
311, 334, 332, 332, 333, 333, 311, 335, 336, 337, | | 323, 323, 343, 343, 323, 346, 323, 344, 344, 345, |
311, 334, 334, 311, 335, 335, 336, 336, 337, 337, | | 345, 323, 347, 348, 349, 323, 346, 346, 323, 323, |
| | |
338, 311, 338, 338, 339, 339, 339, 0, 308, 308, | | 347, 347, 348, 348, 349, 349, 350, 323, 323, 350, |
308, 308, 308, 308, 308, 308, 308, 308, 308, 308, | | 350, 323, 351, 323, 351, 351, 352, 352, 352, 0, |
308, 308, 308, 308, 308, 308, 308, 308, 308, 308, | | 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, |
308, 308, 308, 308, 308, 308, 308, 308, 308 | | 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, |
| | 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, |
| | 320, 320 |
} ; | | } ; |
| | |
static yyconst short int yy_nxt[378] = | | static yyconst short int yy_nxt[391] = |
{ 0, | | { 0, |
306, 27, 7, 8, 28, 7, 7, 303, 9, 7, | | 318, 27, 7, 8, 28, 7, 7, 315, 9, 7, |
8, 23, 23, 45, 29, 9, 46, 299, 30, 10, | | 8, 23, 23, 45, 29, 9, 46, 310, 30, 10, |
11, 12, 31, 34, 35, 13, 14, 32, 15, 51, | | 11, 12, 31, 34, 35, 13, 14, 32, 15, 51, |
16, 17, 18, 86, 52, 19, 20, 21, 27, 45, | | 16, 17, 18, 86, 52, 19, 20, 21, 27, 45, |
158, 28, 46, 74, 101, 75, 131, 102, 87, 132, | | 158, 28, 46, 74, 101, 75, 131, 102, 87, 132, |
159, 160, 169, 185, 297, 295, 186, 292, 170, 276, | | 159, 160, 169, 185, 217, 305, 186, 303, 170, 280, |
277, 278, 6, 6, 22, 22, 25, 25, 285, 283, | | 281, 282, 218, 6, 6, 22, 22, 25, 25, 301, |
279, 271, 267, 265, 262, 252, 246, 241, 239, 236, | | 297, 290, 288, 283, 274, 270, 268, 265, 254, 248, |
225, 223, 218, 210, 207, 205, 196, 142, 140, 24, | | 242, 240, 237, 226, 224, 219, 210, 207, 205, 196, |
307, 307, 304, 305, 304, 300, 298, 296, 302, 293, | | 142, 140, 24, 319, 319, 316, 317, 316, 314, 311, |
| | |
301, 300, 298, 296, 294, 286, 284, 293, 291, 280, | | 313, 312, 311, 306, 304, 302, 309, 308, 298, 307, |
290, 289, 288, 287, 286, 284, 272, 282, 281, 268, | | 306, 304, 302, 300, 291, 289, 299, 298, 296, 284, |
266, 280, 263, 275, 274, 273, 272, 270, 269, 268, | | 295, 294, 293, 292, 291, 289, 287, 275, 286, 285, |
253, 266, 264, 263, 261, 247, 260, 259, 258, 242, | | 271, 269, 284, 266, 279, 278, 277, 276, 275, 273, |
240, 257, 237, 256, 255, 254, 253, 251, 250, 249, | | 272, 271, 255, 269, 267, 266, 264, 249, 263, 262, |
248, 247, 226, 224, 245, 244, 243, 219, 242, 240, | | 261, 260, 243, 241, 259, 238, 258, 257, 256, 255, |
238, 237, 235, 234, 211, 233, 208, 206, 232, 231, | | 253, 252, 251, 250, 249, 227, 225, 247, 246, 245, |
230, 229, 228, 227, 226, 197, 224, 222, 221, 220, | | 220, 244, 243, 241, 239, 238, 236, 235, 211, 234, |
219, 217, 216, 215, 214, 213, 212, 211, 209, 208, | | 208, 206, 233, 232, 231, 230, 229, 228, 227, 197, |
206, 204, 203, 202, 201, 200, 199, 198, 197, 195, | | 225, 223, 222, 221, 220, 216, 215, 214, 213, 212, |
| | |
194, 193, 192, 191, 190, 189, 188, 187, 184, 183, | | 211, 209, 208, 206, 204, 203, 202, 201, 200, 199, |
182, 181, 180, 179, 178, 177, 176, 175, 174, 173, | | 198, 197, 195, 194, 193, 192, 191, 190, 189, 188, |
172, 171, 168, 167, 166, 165, 143, 141, 164, 163, | | 187, 184, 183, 182, 181, 180, 179, 178, 177, 176, |
162, 161, 157, 156, 155, 154, 153, 152, 151, 150, | | 175, 174, 173, 172, 171, 168, 167, 166, 165, 143, |
149, 148, 147, 146, 145, 144, 143, 141, 139, 138, | | 141, 164, 163, 162, 161, 157, 156, 155, 154, 153, |
137, 136, 135, 134, 133, 130, 129, 128, 127, 126, | | 152, 151, 150, 149, 148, 147, 146, 145, 144, 143, |
125, 124, 123, 122, 121, 120, 119, 118, 117, 116, | | 141, 139, 138, 137, 136, 135, 134, 133, 130, 129, |
115, 114, 113, 112, 111, 110, 109, 108, 107, 106, | | 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, |
105, 104, 103, 100, 99, 98, 97, 96, 95, 94, | | 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, |
93, 92, 91, 90, 89, 88, 85, 84, 83, 82, | | 108, 107, 106, 105, 104, 103, 100, 99, 98, 97, |
| | |
81, 80, 79, 78, 77, 76, 73, 72, 71, 70, | | 96, 95, 94, 93, 92, 91, 90, 89, 88, 85, |
69, 68, 67, 66, 65, 64, 63, 62, 61, 60, | | 84, 83, 82, 81, 80, 79, 78, 77, 76, 73, |
59, 58, 57, 56, 55, 54, 53, 50, 49, 48, | | 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, |
47, 26, 44, 43, 42, 41, 40, 39, 38, 37, | | 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, |
36, 33, 26, 308, 5, 308, 308, 308, 308, 308, | | 50, 49, 48, 47, 26, 44, 43, 42, 41, 40, |
308, 308, 308, 308, 308, 308, 308, 308, 308, 308, | | 39, 38, 37, 36, 33, 26, 320, 5, 320, 320, |
308, 308, 308, 308, 308, 308, 308, 308, 308, 308, | | 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, |
308, 308, 308, 308, 308, 308, 308 | | 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, |
| | 320, 320, 320, 320, 320, 320, 320, 320, 320, 320 |
} ; | | } ; |
| | |
static yyconst short int yy_chk[378] = | | static yyconst short int yy_chk[391] = |
{ 0, | | { 0, |
339, 9, 1, 1, 9, 3, 4, 338, 1, 2, | | 352, 9, 1, 1, 9, 3, 4, 351, 1, 2, |
2, 3, 4, 23, 10, 2, 23, 337, 10, 2, | | 2, 3, 4, 23, 10, 2, 23, 350, 10, 2, |
2, 2, 10, 12, 12, 2, 2, 10, 2, 33, | | 2, 2, 10, 12, 12, 2, 2, 10, 2, 33, |
2, 2, 2, 68, 33, 2, 2, 2, 27, 45, | | 2, 2, 2, 68, 33, 2, 2, 2, 27, 45, |
135, 27, 45, 57, 82, 57, 111, 82, 68, 111, | | 135, 27, 45, 57, 82, 57, 111, 82, 68, 111, |
135, 135, 148, 163, 336, 335, 163, 334, 148, 261, | | 135, 135, 148, 163, 190, 349, 163, 348, 148, 264, |
261, 261, 309, 309, 310, 310, 312, 312, 333, 332, | | 264, 264, 190, 321, 321, 322, 322, 324, 324, 347, |
331, 330, 329, 328, 327, 326, 325, 324, 323, 322, | | 346, 345, 344, 343, 342, 341, 340, 339, 338, 337, |
321, 320, 319, 318, 317, 316, 315, 314, 313, 311, | | 336, 335, 334, 333, 332, 331, 330, 329, 328, 327, |
307, 305, 304, 302, 301, 300, 298, 296, 294, 293, | | 326, 325, 323, 319, 317, 316, 314, 313, 312, 311, |
| | |
291, 290, 289, 288, 287, 286, 284, 282, 281, 280, | | 309, 308, 307, 306, 304, 302, 300, 299, 298, 296, |
278, 277, 276, 275, 274, 273, 272, 270, 269, 268, | | 295, 294, 293, 292, 291, 289, 287, 286, 285, 284, |
266, 264, 263, 260, 259, 258, 257, 256, 255, 254, | | 282, 281, 280, 279, 278, 277, 276, 275, 273, 272, |
253, 251, 250, 249, 248, 247, 245, 244, 243, 242, | | 271, 269, 267, 266, 263, 262, 261, 260, 259, 258, |
240, 238, 237, 235, 234, 233, 232, 231, 230, 229, | | 257, 256, 255, 253, 252, 251, 250, 249, 247, 246, |
228, 227, 226, 224, 222, 221, 220, 219, 217, 216, | | 245, 244, 243, 241, 239, 238, 236, 235, 234, 233, |
215, 214, 213, 212, 211, 209, 208, 206, 204, 203, | | 232, 231, 230, 229, 228, 227, 225, 223, 222, 221, |
202, 201, 200, 199, 198, 197, 195, 194, 193, 192, | | 220, 218, 217, 216, 215, 214, 213, 212, 211, 209, |
191, 190, 189, 188, 187, 186, 185, 184, 183, 182, | | 208, 206, 204, 203, 202, 201, 200, 199, 198, 197, |
181, 180, 179, 178, 177, 176, 175, 174, 173, 172, | | 195, 194, 193, 192, 191, 189, 188, 187, 186, 185, |
| | |
171, 170, 169, 168, 167, 166, 165, 164, 162, 161, | | 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, |
160, 159, 158, 157, 156, 155, 154, 153, 152, 151, | | 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, |
150, 149, 147, 146, 145, 144, 143, 141, 139, 138, | | 164, 162, 161, 160, 159, 158, 157, 156, 155, 154, |
137, 136, 134, 133, 132, 131, 130, 129, 128, 127, | | 153, 152, 151, 150, 149, 147, 146, 145, 144, 143, |
126, 125, 124, 123, 122, 121, 120, 119, 118, 117, | | 141, 139, 138, 137, 136, 134, 133, 132, 131, 130, |
116, 115, 114, 113, 112, 110, 109, 108, 107, 106, | | 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, |
105, 104, 103, 102, 101, 100, 99, 98, 97, 96, | | 119, 118, 117, 116, 115, 114, 113, 112, 110, 109, |
95, 94, 93, 92, 91, 90, 89, 88, 87, 86, | | 108, 107, 106, 105, 104, 103, 102, 101, 100, 99, |
85, 84, 83, 81, 80, 79, 78, 77, 76, 75, | | 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, |
74, 73, 72, 71, 70, 69, 67, 66, 65, 64, | | 88, 87, 86, 85, 84, 83, 81, 80, 79, 78, |
| | |
63, 62, 61, 60, 59, 58, 56, 55, 54, 53, | | 77, 76, 75, 74, 73, 72, 71, 70, 69, 67, |
52, 51, 50, 49, 48, 47, 44, 43, 42, 41, | | 66, 65, 64, 63, 62, 61, 60, 59, 58, 56, |
40, 39, 38, 37, 36, 35, 34, 32, 31, 30, | | 55, 54, 53, 52, 51, 50, 49, 48, 47, 44, |
29, 25, 21, 20, 19, 18, 17, 16, 15, 14, | | 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, |
13, 11, 8, 5, 308, 308, 308, 308, 308, 308, | | 32, 31, 30, 29, 25, 21, 20, 19, 18, 17, |
308, 308, 308, 308, 308, 308, 308, 308, 308, 308, | | 16, 15, 14, 13, 11, 8, 5, 320, 320, 320, |
308, 308, 308, 308, 308, 308, 308, 308, 308, 308, | | 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, |
308, 308, 308, 308, 308, 308, 308 | | 320, 320, 320, 320, 320, 320, 320, 320, 320, 320, |
| | 320, 320, 320, 320, 320, 320, 320, 320, 320, 320 |
} ; | | } ; |
| | |
static yy_state_type yy_last_accepting_state; | | static yy_state_type yy_last_accepting_state; |
| | |
#line 2 "reader.l" | | #line 2 "reader.l" |
/* | | /* |
* static char *reader_l = | | * static char *reader_l = |
* "$Id: reader.c,v 1.8 2004/12/29 01:08:49 mwedel Exp $"; | | * "$Id: reader.c,v 1.9 2005/04/14 06:57:02 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* Don't have to link with -lfl with this */ | | /* Don't have to link with -lfl with this */ |
/* need yy_push_state, yy_pop_state */ | | /* need yy_push_state, yy_pop_state */ |
#define YY_STACK_USED 1 | | #define YY_STACK_USED 1 |
#line 623 "reader.c" | | #line 630 "reader.c" |
| | |
/* Macros after this point can all be overridden by user definitions in | | /* Macros after this point can all be overridden by user definitions in |
* section 1. | | * section 1. |
| | |
| | |
| | |
| | |
#line 790 "reader.c" | | #line 797 "reader.c" |
| | |
if ( yy_init ) | | if ( yy_init ) |
{ | | { |
| | |
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
{ | | { |
yy_current_state = (int) yy_def[yy_current_state]; | | yy_current_state = (int) yy_def[yy_current_state]; |
if ( yy_current_state >= 309 ) | | if ( yy_current_state >= 321 ) |
yy_c = yy_meta[(unsigned int) yy_c]; | | yy_c = yy_meta[(unsigned int) yy_c]; |
} | | } |
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
++yy_cp; | | ++yy_cp; |
} | | } |
while ( yy_base[yy_current_state] != 345 ); | | while ( yy_base[yy_current_state] != 358 ); |
| | |
yy_find_action: | | yy_find_action: |
yy_act = yy_accept[yy_current_state]; | | yy_act = yy_accept[yy_current_state]; |
| | |
case 16: | | case 16: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 90 "reader.l" | | #line 90 "reader.l" |
RP->decoroptions = IVAL; | | RP->difficulty_increase = FVAL; |
YY_BREAK | | YY_BREAK |
case 17: | | case 17: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 91 "reader.l" | | #line 91 "reader.l" |
strcpy(RP->exitstyle,rmap_yval()); | | RP->decoroptions = IVAL; |
YY_BREAK | | YY_BREAK |
case 18: | | case 18: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 92 "reader.l" | | #line 92 "reader.l" |
RP->dungeon_level = IVAL; | | strcpy(RP->exitstyle,rmap_yval()); |
YY_BREAK | | YY_BREAK |
case 19: | | case 19: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 93 "reader.l" | | #line 93 "reader.l" |
RP->dungeon_depth = IVAL; | | RP->dungeon_level = IVAL; |
YY_BREAK | | YY_BREAK |
case 20: | | case 20: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 94 "reader.l" | | #line 94 "reader.l" |
strcpy(RP->final_map,rmap_yval()); | | RP->dungeon_depth = IVAL; |
YY_BREAK | | YY_BREAK |
case 21: | | case 21: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 95 "reader.l" | | #line 95 "reader.l" |
RP-> orientation = IVAL; | | strcpy(RP->final_map,rmap_yval()); |
YY_BREAK | | YY_BREAK |
case 22: | | case 22: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 96 "reader.l" | | #line 96 "reader.l" |
RP->origin_x = IVAL; | | RP-> orientation = IVAL; |
YY_BREAK | | YY_BREAK |
case 23: | | case 23: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 97 "reader.l" | | #line 97 "reader.l" |
RP-> origin_y = IVAL; | | RP->origin_x = IVAL; |
YY_BREAK | | YY_BREAK |
case 24: | | case 24: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 98 "reader.l" | | #line 98 "reader.l" |
strcpy(RP->origin_map,rmap_yval()); | | RP-> origin_y = IVAL; |
YY_BREAK | | YY_BREAK |
case 25: | | case 25: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 99 "reader.l" | | #line 99 "reader.l" |
RP->random_seed = IVAL; | | strcpy(RP->origin_map,rmap_yval()); |
YY_BREAK | | YY_BREAK |
case 26: | | case 26: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 100 "reader.l" | | #line 100 "reader.l" |
RP->treasureoptions = IVAL; | | RP->random_seed = IVAL; |
YY_BREAK | | YY_BREAK |
case 27: | | case 27: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 101 "reader.l" | | #line 101 "reader.l" |
strcpy(RP->exit_on_final_map,rmap_yval()); | | RP->treasureoptions = IVAL; |
YY_BREAK | | YY_BREAK |
case 28: | | case 28: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 103 "reader.l" | | #line 102 "reader.l" |
{/* ignore empty lines, newlines we don't do above */} | | strcpy(RP->exit_on_final_map,rmap_yval()); |
YY_BREAK | | YY_BREAK |
case 29: | | case 29: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 104 "reader.l" | | #line 104 "reader.l" |
| | {/* ignore empty lines, newlines we don't do above */} |
| | YY_BREAK |
| | case 30: |
| | YY_RULE_SETUP |
| | #line 105 "reader.l" |
{} | | {} |
YY_BREAK | | YY_BREAK |
case YY_STATE_EOF(INITIAL): | | case YY_STATE_EOF(INITIAL): |
case YY_STATE_EOF(MESSAGE): | | case YY_STATE_EOF(MESSAGE): |
#line 106 "reader.l" | | #line 107 "reader.l" |
{/* If we got an error, return the error. Otherwise, return that we got EOF */ | | {/* If we got an error, return the error. Otherwise, return that we got EOF */ |
if (rmap_lex_error!=0) return rmap_lex_error; else return LL_EOF;} | | if (rmap_lex_error!=0) return rmap_lex_error; else return LL_EOF;} |
YY_BREAK | | YY_BREAK |
case 30: | | case 31: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 108 "reader.l" | | #line 109 "reader.l" |
{ yyerror( "Unrecognized string"); rmap_lex_error= -1; } | | { yyerror( "Unrecognized string"); rmap_lex_error= -1; } |
YY_BREAK | | YY_BREAK |
case 31: | | case 32: |
YY_RULE_SETUP | | YY_RULE_SETUP |
#line 109 "reader.l" | | #line 110 "reader.l" |
ECHO; | | ECHO; |
YY_BREAK | | YY_BREAK |
#line 1035 "reader.c" | | #line 1047 "reader.c" |
| | |
case YY_END_OF_BUFFER: | | case YY_END_OF_BUFFER: |
{ | | { |
| | |
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
{ | | { |
yy_current_state = (int) yy_def[yy_current_state]; | | yy_current_state = (int) yy_def[yy_current_state]; |
if ( yy_current_state >= 309 ) | | if ( yy_current_state >= 321 ) |
yy_c = yy_meta[(unsigned int) yy_c]; | | yy_c = yy_meta[(unsigned int) yy_c]; |
} | | } |
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
| | |
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) | | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) |
{ | | { |
yy_current_state = (int) yy_def[yy_current_state]; | | yy_current_state = (int) yy_def[yy_current_state]; |
if ( yy_current_state >= 309 ) | | if ( yy_current_state >= 321 ) |
yy_c = yy_meta[(unsigned int) yy_c]; | | yy_c = yy_meta[(unsigned int) yy_c]; |
} | | } |
yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; | | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; |
yy_is_jam = (yy_current_state == 308); | | yy_is_jam = (yy_current_state == 320); |
| | |
return yy_is_jam ? 0 : yy_current_state; | | return yy_is_jam ? 0 : yy_current_state; |
} | | } |
| | |
return 0; | | return 0; |
} | | } |
#endif | | #endif |
#line 109 "reader.l" | | #line 110 "reader.l" |
| | |
| | |
/*int yyerror(char *s) | | /*int yyerror(char *s) |