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