/* A lexical scanner generated by flex */ /* Scanner skeleton version: * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #include /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ #ifdef c_plusplus #ifndef __cplusplus #define __cplusplus #endif #endif #ifdef __cplusplus #include #include /* Use prototypes in function declarations. */ #define YY_USE_PROTOS /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ #if __STDC__ #define YY_USE_PROTOS #define YY_USE_CONST #endif /* __STDC__ */ #endif /* ! __cplusplus */ #ifdef __TURBOC__ #pragma warn -rch #pragma warn -use #include #include #define YY_USE_CONST #define YY_USE_PROTOS #endif #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif #ifdef YY_USE_PROTOS #define YY_PROTO(proto) proto #else #define YY_PROTO(proto) () #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN yy_start = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START ((yy_start - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE yyrestart( yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #define YY_BUF_SIZE 16384 typedef struct yy_buffer_state *YY_BUFFER_STATE; extern int yyleng; extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 /* The funky do-while in the following #define is used to turn the definition * int a single C statement (which needs a semi-colon terminator). This * avoids problems with code like: * * if ( condition_holds ) * yyless( 5 ); * else * do_something_else(); * * Prior to using the do-while the compiler would get upset at the * "else" because it interpreted the "if" statement as being all * done when it reached the ';' after the yyless() call. */ /* Return all but the first 'n' matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ *yy_cp = yy_hold_char; \ YY_RESTORE_YY_MORE_OFFSET \ yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, yytext_ptr ) /* The following is because we cannot portably get our hands on size_t * (without autoconf's help, which isn't available because we want * flex-generated scanners to compile on their own). */ typedef unsigned int yy_size_t; struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via yyrestart()), so that the user can continue scanning by * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; static YY_BUFFER_STATE yy_current_buffer = 0; /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". */ #define YY_CURRENT_BUFFER yy_current_buffer /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ int yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 1; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void yyrestart YY_PROTO(( FILE *input_file )); void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); void yy_load_buffer_state YY_PROTO(( void )); YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); static void *yy_flex_alloc YY_PROTO(( yy_size_t )); static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); static void yy_flex_free YY_PROTO(( void * )); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (yy_current_buffer->yy_at_bol) typedef unsigned char YY_CHAR; FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern char *yytext; #define yytext_ptr yytext static yy_state_type yy_get_previous_state YY_PROTO(( void )); static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); static int yy_get_next_buffer YY_PROTO(( void )); static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ yytext_ptr = yy_bp; \ yyleng = (int) (yy_cp - yy_bp); \ yy_hold_char = *yy_cp; \ *yy_cp = '\0'; \ yy_c_buf_p = yy_cp; #define YY_NUM_RULES 199 #define YY_END_OF_BUFFER 200 static yyconst short int yy_accept[1046] = { 0, 0, 0, 0, 0, 200, 198, 194, 193, 198, 198, 198, 198, 198, 198, 197, 183, 191, 198, 192, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 198, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 194, 198, 197, 2, 198, 194, 198, 198, 197, 183, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 194, 198, 194, 193, 187, 0, 184, 185, 0, 0, 181, 197, 180, 182, 183, 197, 189, 188, 186, 190, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 39, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 55, 197, 197, 0, 0, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 154, 197, 197, 194, 0, 0, 3, 197, 2, 2, 0, 194, 0, 181, 197, 180, 183, 197, 197, 197, 197, 39, 197, 197, 197, 197, 197, 197, 194, 0, 2, 0, 0, 196, 0, 196, 178, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 54, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 0, 197, 104, 197, 83, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 79, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 81, 197, 197, 197, 197, 139, 197, 197, 197, 197, 128, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 16, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 126, 197, 197, 197, 197, 197, 197, 197, 197, 80, 197, 197, 197, 197, 197, 197, 197, 197, 195, 197, 197, 197, 58, 197, 197, 197, 22, 197, 40, 197, 41, 197, 197, 197, 197, 49, 197, 197, 197, 197, 56, 6, 197, 197, 197, 53, 197, 197, 197, 36, 197, 197, 197, 197, 42, 197, 35, 197, 197, 197, 197, 197, 21, 197, 0, 179, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 160, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 155, 158, 114, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 69, 197, 197, 197, 197, 197, 197, 197, 197, 121, 197, 197, 67, 197, 197, 197, 197, 161, 197, 197, 197, 197, 197, 197, 197, 197, 197, 119, 197, 197, 197, 197, 107, 197, 197, 197, 197, 197, 197, 197, 65, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 157, 197, 197, 197, 197, 197, 116, 15, 0, 197, 197, 197, 197, 197, 28, 197, 59, 197, 197, 197, 197, 197, 13, 197, 197, 197, 50, 197, 197, 7, 197, 197, 197, 197, 5, 197, 197, 197, 197, 197, 197, 197, 197, 197, 30, 197, 197, 197, 197, 197, 120, 153, 197, 197, 197, 147, 197, 197, 162, 197, 197, 197, 197, 197, 141, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 156, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 11, 197, 197, 197, 197, 197, 197, 197, 113, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 125, 197, 12, 197, 197, 197, 197, 197, 197, 197, 82, 115, 197, 197, 197, 197, 197, 197, 197, 197, 129, 197, 197, 197, 197, 33, 197, 197, 197, 197, 197, 197, 197, 197, 197, 29, 197, 197, 197, 197, 197, 197, 17, 31, 197, 27, 197, 197, 197, 197, 57, 197, 197, 197, 197, 146, 97, 197, 197, 127, 111, 86, 197, 123, 72, 108, 197, 197, 197, 197, 165, 197, 197, 87, 197, 94, 130, 197, 74, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 135, 197, 197, 109, 197, 197, 197, 197, 197, 197, 197, 197, 197, 110, 168, 197, 197, 197, 16, 197, 197, 197, 197, 77, 197, 117, 197, 197, 197, 197, 197, 112, 197, 197, 197, 152, 173, 197, 197, 78, 197, 197, 197, 197, 197, 197, 197, 197, 1, 57, 197, 197, 197, 60, 197, 197, 197, 197, 197, 197, 197, 4, 197, 19, 197, 197, 197, 197, 197, 62, 43, 197, 46, 26, 197, 163, 99, 197, 197, 197, 197, 197, 73, 159, 197, 197, 98, 197, 197, 197, 93, 197, 197, 197, 197, 145, 197, 197, 197, 197, 136, 197, 197, 197, 197, 197, 20, 63, 140, 138, 197, 197, 197, 197, 197, 197, 197, 197, 118, 197, 132, 96, 197, 151, 197, 197, 197, 197, 197, 101, 47, 89, 197, 197, 197, 197, 197, 197, 45, 197, 197, 34, 61, 14, 8, 25, 197, 197, 197, 197, 197, 23, 197, 169, 197, 197, 197, 102, 177, 197, 66, 197, 75, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 197, 150, 9, 197, 197, 197, 197, 197, 144, 197, 85, 68, 197, 71, 197, 197, 197, 197, 176, 164, 131, 134, 197, 106, 18, 197, 51, 197, 197, 197, 197, 197, 197, 95, 142, 197, 197, 70, 174, 122, 197, 167, 197, 175, 92, 133, 84, 148, 149, 171, 197, 197, 197, 100, 172, 91, 197, 64, 197, 10, 137, 24, 52, 197, 197, 197, 197, 197, 76, 88, 124, 105, 197, 197, 166, 103, 197, 197, 197, 197, 197, 197, 197, 90, 197, 37, 38, 197, 197, 197, 143, 170, 197, 197, 197, 197, 197, 197, 197, 48, 32, 44, 0 } ; static yyconst int yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 6, 7, 8, 9, 10, 1, 11, 1, 1, 1, 12, 1, 13, 14, 1, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 1, 1, 16, 17, 18, 1, 1, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 1, 48, 1, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 14, 14, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst int yy_meta[75] = { 0, 1, 2, 3, 2, 2, 1, 1, 2, 1, 1, 1, 2, 4, 2, 4, 1, 1, 1, 5, 5, 5, 6, 6, 5, 6, 5, 5, 6, 5, 5, 6, 6, 6, 5, 6, 6, 5, 5, 6, 6, 5, 6, 6, 6, 1, 2, 1, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 5, 6, 6 } ; static yyconst short int yy_base[1053] = { 0, 0, 73, 102, 77, 1243, 1244, 75, 1244, 1239, 1224, 1233, 0, 1193, 1223, 1222, 78, 66, 1219, 1218, 1204, 1197, 57, 63, 59, 64, 101, 0, 63, 79, 119, 94, 1212, 1198, 122, 123, 121, 1211, 104, 105, 100, 124, 90, 129, 137, 1163, 84, 117, 1165, 139, 150, 151, 151, 156, 1158, 163, 168, 166, 56, 1173, 1172, 232, 1221, 216, 1244, 1220, 242, 248, 251, 264, 196, 155, 167, 208, 228, 241, 1207, 249, 242, 195, 277, 284, 223, 319, 334, 257, 1244, 1244, 1214, 1244, 0, 1209, 1208, 1203, 0, 1202, 1244, 298, 1201, 1244, 1244, 1244, 1244, 1177, 263, 1177, 264, 1189, 1179, 1192, 1173, 1184, 1181, 1188, 270, 1174, 1172, 1174, 1184, 0, 1175, 1179, 1160, 1166, 1154, 1160, 1164, 1163, 1163, 280, 1165, 292, 1160, 301, 1158, 1151, 1157, 1169, 1167, 1159, 259, 0, 1166, 1154, 203, 304, 272, 1110, 1132, 1121, 1127, 1130, 288, 1110, 1114, 1110, 1113, 1112, 1124, 1106, 1108, 308, 1104, 1098, 1095, 1100, 1099, 1105, 1109, 1100, 1102, 1100, 1100, 234, 281, 296, 299, 1106, 1088, 1091, 1099, 1084, 81, 315, 1103, 324, 26, 1091, 1090, 1090, 1081, 330, 1091, 1095, 1081, 1097, 1092, 1095, 281, 333, 1088, 1090, 1086, 1078, 342, 323, 321, 1070, 1069, 1071, 1072, 345, 350, 0, 1069, 332, 407, 1131, 1130, 1244, 363, 1244, 1244, 1129, 411, 415, 416, 1116, 0, 412, 390, 396, 404, 415, 1115, 337, 410, 420, 417, 423, 424, 0, 0, 1244, 1126, 0, 1244, 1117, 1116, 1111, 1106, 1092, 1104, 1099, 1083, 1084, 1100, 1082, 1076, 1093, 1079, 1076, 1088, 0, 1080, 1090, 1079, 1087, 1068, 1069, 1084, 1082, 1070, 1080, 1065, 1078, 1063, 1076, 1079, 1049, 1073, 1065, 1056, 1071, 1065, 1061, 1059, 1065, 1059, 1060, 1050, 1047, 1061, 1047, 1048, 1051, 326, 1025, 0, 1030, 0, 1015, 1024, 1014, 1016, 1007, 1011, 1009, 1003, 1011, 380, 1018, 1000, 1004, 1015, 998, 1004, 999, 1008, 995, 993, 997, 0, 990, 989, 999, 989, 1002, 986, 1003, 380, 998, 987, 389, 1000, 977, 993, 994, 988, 976, 0, 991, 985, 988, 978, 0, 971, 972, 980, 983, 0, 976, 981, 970, 982, 972, 977, 976, 376, 975, 959, 966, 962, 963, 394, 955, 398, 969, 959, 971, 968, 957, 955, 959, 963, 397, 945, 956, 956, 960, 941, 958, 942, 945, 953, 939, 398, 947, 935, 953, 939, 934, 0, 935, 945, 928, 939, 932, 937, 925, 924, 0, 453, 443, 445, 960, 448, 451, 452, 454, 1244, 954, 968, 959, 0, 968, 959, 946, 0, 964, 0, 964, 0, 945, 943, 942, 956, 0, 955, 929, 953, 945, 0, 933, 954, 936, 933, 0, 936, 448, 948, 0, 949, 934, 933, 946, 942, 939, 0, 926, 928, 939, 925, 939, 0, 930, 466, 1244, 894, 889, 888, 900, 897, 898, 883, 897, 896, 884, 893, 892, 0, 891, 890, 875, 881, 887, 882, 878, 868, 875, 882, 0, 0, 0, 870, 884, 879, 878, 870, 419, 876, 871, 875, 869, 872, 857, 0, 910, 868, 847, 863, 855, 851, 862, 863, 0, 862, 846, 0, 860, 863, 849, 852, 0, 419, 842, 840, 834, 840, 848, 841, 854, 839, 0, 845, 832, 839, 847, 0, 837, 843, 846, 826, 844, 417, 843, 0, 831, 820, 821, 825, 834, 818, 832, 836, 832, 814, 819, 811, 827, 822, 811, 814, 826, 810, 0, 807, 812, 814, 415, 813, 0, 1244, 866, 460, 849, 466, 471, 472, 0, 841, 0, 839, 843, 834, 827, 822, 0, 842, 833, 821, 0, 827, 821, 0, 837, 830, 835, 830, 0, 825, 832, 812, 819, 817, 815, 825, 812, 814, 0, 810, 816, 808, 813, 815, 0, 0, 785, 773, 783, 0, 782, 781, 0, 772, 770, 779, 770, 763, 0, 775, 775, 771, 772, 757, 774, 770, 754, 750, 436, 0, 766, 766, 764, 750, 753, 760, 760, 739, 758, 429, 750, 746, 748, 744, 749, 736, 752, 748, 749, 749, 732, 732, 745, 731, 743, 0, 742, 730, 744, 737, 725, 726, 740, 0, 722, 734, 718, 712, 730, 719, 725, 721, 723, 718, 712, 728, 723, 0, 712, 0, 705, 705, 704, 703, 703, 716, 716, 437, 0, 714, 713, 708, 711, 696, 702, 699, 703, 0, 708, 724, 478, 482, 0, 725, 723, 717, 727, 726, 725, 718, 714, 730, 0, 718, 724, 713, 688, 86, 121, 0, 0, 182, 0, 240, 465, 478, 472, 0, 469, 475, 465, 460, 0, 0, 458, 459, 0, 0, 0, 452, 0, 0, 0, 452, 454, 463, 443, 0, 465, 466, 0, 454, 0, 0, 470, 0, 467, 466, 462, 476, 474, 474, 471, 466, 468, 478, 469, 483, 474, 0, 478, 484, 0, 468, 470, 488, 483, 471, 476, 490, 484, 483, 0, 0, 486, 498, 484, 0, 475, 481, 487, 484, 0, 491, 509, 500, 490, 505, 492, 498, 0, 494, 504, 505, 0, 0, 506, 510, 0, 513, 504, 515, 515, 516, 517, 503, 523, 0, 558, 559, 552, 540, 0, 555, 546, 547, 548, 538, 548, 554, 0, 557, 0, 560, 549, 566, 540, 553, 0, 0, 552, 0, 0, 531, 0, 0, 539, 540, 541, 543, 543, 0, 0, 534, 530, 0, 539, 532, 535, 0, 549, 549, 542, 538, 0, 547, 548, 560, 547, 0, 545, 559, 545, 562, 562, 0, 0, 0, 0, 559, 553, 555, 566, 560, 568, 549, 570, 1244, 571, 0, 0, 573, 0, 577, 564, 573, 569, 557, 0, 0, 0, 579, 580, 581, 581, 575, 600, 0, 612, 613, 0, 0, 0, 0, 0, 595, 621, 600, 609, 605, 0, 596, 0, 593, 594, 585, 0, 0, 585, 0, 589, 0, 598, 583, 596, 587, 605, 588, 603, 591, 596, 606, 594, 0, 0, 601, 607, 599, 598, 613, 0, 614, 0, 0, 615, 0, 604, 607, 614, 611, 0, 0, 0, 0, 620, 0, 0, 650, 0, 651, 655, 657, 641, 655, 643, 0, 0, 612, 627, 0, 0, 0, 614, 0, 623, 0, 0, 0, 0, 0, 0, 0, 622, 632, 618, 0, 0, 0, 620, 0, 620, 0, 0, 0, 0, 659, 660, 655, 656, 670, 0, 0, 0, 0, 641, 643, 0, 0, 643, 674, 668, 672, 664, 676, 650, 0, 651, 0, 0, 682, 686, 679, 0, 0, 674, 681, 676, 674, 679, 680, 676, 0, 0, 0, 1244, 713, 715, 721, 724, 730, 735, 740 } ; static yyconst short int yy_def[1053] = { 0, 1045, 1, 1, 3, 1045, 1045, 1045, 1045, 1045, 1045, 1046, 1047, 1048, 1045, 1049, 1049, 1045, 1045, 1045, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1045, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1045, 1050, 1049, 1045, 1045, 1051, 1051, 1051, 1049, 69, 69, 69, 69, 1049, 69, 69, 69, 69, 69, 69, 69, 69, 1051, 1050, 1045, 1045, 1045, 1046, 1045, 1047, 1045, 1052, 1045, 1049, 1049, 1045, 1049, 1049, 1045, 1045, 1045, 1045, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1045, 1045, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1045, 1050, 1050, 1045, 1049, 1045, 1045, 1045, 83, 83, 83, 69, 69, 69, 69, 69, 1049, 69, 69, 69, 69, 69, 69, 69, 69, 83, 84, 1045, 1050, 84, 1045, 1045, 1045, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1045, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 69, 69, 1049, 69, 69, 69, 69, 1045, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1045, 1045, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1045, 1045, 69, 1049, 69, 69, 69, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 69, 69, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 69, 69, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1045, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 1049, 0, 1045, 1045, 1045, 1045, 1045, 1045, 1045 } ; static yyconst short int yy_nxt[1319] = { 0, 6, 7, 8, 9, 7, 10, 11, 6, 12, 6, 13, 14, 15, 6, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 27, 27, 29, 30, 31, 32, 33, 27, 34, 35, 36, 27, 27, 37, 27, 27, 27, 38, 6, 6, 27, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 27, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 27, 27, 27, 61, 105, 85, 61, 61, 85, 62, 83, 99, 100, 84, 107, 119, 96, 110, 106, 111, 355, 97, 113, 120, 108, 114, 121, 109, 356, 112, 122, 115, 63, 64, 65, 66, 63, 144, 67, 834, 123, 128, 68, 69, 67, 70, 212, 145, 213, 71, 72, 73, 116, 74, 75, 129, 76, 77, 98, 76, 78, 175, 117, 346, 79, 118, 124, 80, 81, 132, 125, 82, 140, 133, 126, 176, 67, 135, 136, 347, 127, 163, 141, 134, 164, 142, 835, 165, 152, 137, 138, 153, 139, 146, 154, 147, 177, 155, 227, 148, 149, 156, 76, 150, 151, 157, 166, 178, 158, 159, 227, 179, 160, 230, 170, 161, 181, 167, 171, 168, 182, 162, 172, 169, 183, 173, 185, 186, 189, 192, 184, 104, 190, 194, 96, 187, 144, 195, 227, 229, 198, 188, 191, 193, 199, 203, 145, 209, 200, 204, 196, 227, 205, 201, 202, 231, 131, 210, 836, 206, 211, 207, 216, 220, 208, 216, 227, 125, 217, 106, 240, 126, 85, 222, 223, 224, 98, 127, 1045, 222, 223, 1045, 222, 223, 227, 227, 110, 85, 232, 235, 85, 837, 227, 122, 226, 222, 223, 225, 112, 233, 225, 234, 114, 123, 225, 227, 225, 228, 115, 120, 251, 227, 227, 227, 252, 331, 227, 292, 227, 227, 227, 227, 227, 293, 254, 332, 227, 227, 255, 227, 227, 236, 237, 227, 263, 140, 96, 264, 225, 278, 279, 97, 296, 238, 138, 141, 239, 145, 142, 216, 222, 223, 241, 281, 284, 242, 282, 297, 333, 456, 298, 373, 334, 285, 227, 243, 244, 245, 299, 305, 245, 374, 335, 306, 245, 245, 245, 245, 98, 307, 227, 245, 245, 245, 336, 316, 245, 270, 245, 245, 337, 245, 245, 338, 339, 340, 245, 317, 318, 245, 245, 457, 319, 245, 348, 349, 352, 361, 245, 387, 362, 350, 375, 353, 385, 354, 376, 386, 388, 363, 364, 382, 393, 383, 365, 402, 366, 400, 401, 395, 384, 377, 396, 227, 245, 273, 397, 216, 398, 227, 216, 85, 394, 217, 224, 1045, 1045, 225, 225, 225, 96, 225, 225, 227, 405, 229, 403, 260, 227, 226, 227, 404, 406, 227, 407, 469, 227, 227, 489, 493, 470, 516, 517, 522, 525, 523, 490, 287, 408, 526, 288, 535, 409, 547, 562, 563, 227, 494, 227, 548, 564, 227, 98, 536, 227, 227, 414, 227, 590, 456, 632, 423, 654, 227, 697, 673, 566, 655, 674, 227, 591, 698, 568, 633, 227, 227, 751, 762, 567, 807, 701, 227, 808, 763, 569, 227, 838, 702, 752, 839, 599, 840, 819, 841, 820, 842, 843, 844, 845, 846, 847, 457, 848, 849, 850, 851, 852, 853, 854, 855, 856, 857, 858, 859, 860, 861, 862, 863, 864, 865, 866, 867, 868, 869, 870, 871, 872, 873, 874, 875, 876, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 894, 895, 896, 897, 898, 899, 900, 901, 902, 903, 904, 905, 906, 227, 227, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 924, 925, 926, 927, 928, 929, 930, 931, 932, 933, 843, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 88, 88, 88, 88, 88, 88, 90, 90, 91, 91, 833, 91, 91, 91, 94, 94, 94, 218, 218, 218, 218, 218, 218, 225, 225, 225, 225, 247, 247, 832, 247, 247, 247, 831, 830, 829, 828, 827, 826, 825, 824, 823, 822, 821, 818, 817, 816, 815, 814, 813, 812, 811, 810, 809, 806, 805, 804, 803, 802, 801, 800, 799, 798, 797, 796, 795, 794, 793, 792, 791, 790, 789, 788, 787, 786, 785, 784, 783, 782, 781, 780, 779, 778, 777, 776, 775, 774, 773, 772, 771, 770, 769, 768, 767, 766, 765, 764, 761, 760, 759, 758, 757, 756, 755, 754, 753, 750, 749, 748, 747, 746, 745, 744, 743, 742, 741, 740, 739, 738, 737, 736, 735, 734, 733, 732, 731, 730, 729, 728, 727, 726, 725, 724, 723, 722, 721, 720, 719, 718, 717, 716, 715, 714, 713, 712, 711, 710, 709, 708, 707, 706, 705, 704, 703, 700, 562, 699, 696, 695, 694, 693, 692, 691, 690, 689, 688, 687, 686, 685, 684, 683, 682, 681, 680, 679, 678, 677, 676, 675, 672, 671, 670, 669, 668, 667, 666, 665, 664, 663, 662, 661, 660, 659, 658, 657, 656, 653, 652, 651, 650, 649, 648, 647, 646, 645, 644, 643, 642, 641, 640, 639, 638, 637, 636, 635, 634, 631, 630, 629, 628, 627, 626, 625, 624, 623, 622, 621, 620, 619, 618, 617, 616, 615, 614, 613, 612, 611, 610, 609, 608, 607, 606, 605, 604, 603, 602, 601, 600, 599, 598, 597, 596, 595, 594, 593, 592, 589, 588, 587, 586, 585, 584, 583, 582, 581, 580, 579, 578, 577, 576, 575, 574, 573, 572, 571, 570, 569, 565, 561, 560, 559, 558, 557, 556, 555, 554, 553, 552, 551, 550, 549, 546, 545, 544, 543, 542, 541, 540, 539, 538, 537, 534, 533, 532, 531, 530, 529, 528, 527, 524, 521, 520, 519, 518, 437, 515, 514, 513, 512, 511, 510, 509, 508, 507, 506, 505, 504, 503, 502, 501, 500, 499, 498, 497, 496, 495, 492, 491, 488, 487, 486, 485, 484, 483, 482, 481, 480, 479, 478, 477, 476, 475, 474, 473, 472, 471, 468, 467, 466, 465, 464, 463, 462, 461, 460, 459, 458, 455, 454, 453, 452, 451, 450, 449, 448, 447, 446, 445, 444, 443, 442, 441, 440, 439, 438, 437, 436, 435, 434, 433, 432, 431, 430, 429, 428, 427, 426, 425, 424, 423, 422, 421, 420, 419, 418, 417, 416, 415, 414, 413, 412, 411, 249, 410, 410, 243, 227, 227, 222, 219, 219, 399, 392, 391, 390, 389, 381, 380, 379, 378, 372, 371, 370, 369, 368, 367, 360, 359, 358, 357, 351, 345, 344, 343, 342, 341, 330, 329, 328, 327, 326, 325, 324, 323, 322, 321, 320, 315, 314, 313, 312, 311, 310, 309, 308, 304, 303, 302, 301, 300, 295, 294, 291, 290, 289, 288, 287, 286, 283, 280, 277, 276, 275, 274, 273, 272, 271, 270, 269, 268, 267, 266, 265, 262, 261, 260, 259, 258, 257, 256, 253, 250, 249, 95, 93, 248, 246, 89, 227, 221, 219, 215, 214, 197, 180, 174, 143, 131, 130, 104, 103, 102, 101, 95, 93, 92, 89, 87, 86, 1045, 5, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045 } ; static yyconst short int yy_chk[1319] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 22, 7, 2, 4, 7, 2, 4, 17, 17, 4, 23, 28, 16, 24, 22, 24, 186, 16, 25, 28, 23, 25, 29, 23, 186, 24, 29, 25, 2, 3, 3, 3, 4, 38, 3, 718, 29, 31, 3, 3, 3, 3, 58, 38, 58, 3, 3, 3, 26, 3, 3, 31, 3, 3, 16, 3, 3, 46, 26, 182, 3, 26, 30, 3, 3, 34, 30, 3, 36, 34, 30, 46, 3, 35, 35, 182, 30, 42, 36, 34, 42, 36, 719, 42, 40, 35, 35, 40, 35, 39, 40, 39, 47, 40, 71, 39, 39, 41, 3, 39, 39, 41, 43, 47, 41, 41, 72, 47, 41, 71, 44, 41, 49, 43, 44, 43, 49, 41, 44, 43, 49, 44, 50, 50, 51, 52, 49, 72, 51, 53, 70, 50, 144, 53, 79, 70, 55, 50, 51, 52, 55, 56, 144, 57, 55, 56, 53, 73, 56, 55, 55, 73, 79, 57, 722, 56, 57, 56, 61, 63, 56, 61, 82, 63, 61, 73, 82, 63, 66, 66, 66, 66, 70, 63, 67, 67, 67, 68, 68, 68, 75, 78, 74, 85, 74, 78, 85, 724, 77, 78, 68, 69, 69, 69, 74, 75, 69, 77, 75, 78, 69, 69, 69, 69, 75, 77, 104, 69, 69, 69, 104, 173, 69, 140, 69, 69, 80, 69, 69, 140, 106, 173, 69, 81, 106, 69, 69, 80, 80, 69, 114, 81, 97, 114, 69, 129, 129, 97, 145, 80, 80, 81, 80, 145, 81, 83, 83, 83, 83, 131, 133, 83, 131, 146, 174, 296, 146, 198, 174, 133, 69, 84, 84, 84, 146, 152, 84, 198, 174, 152, 84, 84, 84, 84, 97, 152, 235, 84, 84, 84, 175, 161, 84, 235, 84, 84, 175, 84, 84, 176, 176, 176, 84, 161, 161, 84, 84, 296, 161, 84, 183, 183, 185, 191, 84, 206, 191, 183, 199, 185, 205, 185, 199, 205, 206, 191, 191, 204, 211, 204, 191, 220, 191, 215, 215, 212, 204, 199, 212, 230, 84, 220, 212, 216, 212, 231, 216, 224, 211, 216, 224, 225, 226, 224, 225, 226, 229, 225, 226, 236, 232, 229, 230, 232, 233, 226, 238, 231, 233, 237, 238, 310, 239, 240, 330, 333, 310, 358, 358, 364, 366, 364, 330, 236, 239, 366, 237, 375, 240, 386, 402, 402, 403, 333, 404, 386, 403, 406, 229, 375, 407, 408, 404, 409, 439, 456, 489, 406, 514, 564, 559, 534, 407, 514, 534, 566, 439, 559, 409, 489, 567, 568, 629, 640, 408, 688, 567, 701, 688, 640, 564, 702, 725, 568, 629, 726, 566, 727, 701, 729, 702, 730, 731, 732, 735, 736, 740, 456, 744, 745, 746, 747, 749, 750, 752, 755, 757, 758, 759, 760, 761, 762, 763, 764, 765, 766, 767, 768, 769, 771, 772, 774, 775, 776, 777, 778, 779, 780, 781, 782, 785, 786, 787, 789, 790, 791, 792, 794, 795, 796, 797, 798, 799, 800, 802, 803, 804, 807, 808, 810, 811, 812, 813, 814, 815, 816, 817, 819, 820, 821, 822, 824, 825, 826, 827, 828, 829, 830, 832, 834, 835, 836, 837, 838, 841, 844, 847, 848, 849, 850, 851, 854, 855, 857, 858, 859, 820, 861, 862, 863, 864, 866, 867, 868, 869, 871, 872, 873, 874, 875, 880, 881, 882, 883, 884, 885, 886, 887, 889, 892, 894, 895, 896, 897, 898, 902, 903, 904, 905, 906, 907, 909, 910, 916, 917, 918, 919, 920, 922, 924, 925, 926, 929, 931, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 946, 947, 948, 949, 950, 952, 955, 957, 958, 959, 960, 965, 968, 970, 971, 972, 973, 974, 975, 978, 979, 983, 985, 993, 994, 995, 999, 1001, 1006, 1007, 1008, 1009, 1010, 1015, 1016, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1027, 1030, 1031, 1032, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1046, 1046, 1046, 1046, 1046, 1046, 1047, 1047, 1048, 1048, 717, 1048, 1048, 1048, 1049, 1049, 1049, 1050, 1050, 1050, 1050, 1050, 1050, 1051, 1051, 1051, 1051, 1052, 1052, 716, 1052, 1052, 1052, 715, 714, 712, 711, 710, 709, 708, 707, 706, 705, 704, 700, 699, 697, 696, 695, 694, 693, 692, 691, 690, 687, 686, 685, 684, 683, 682, 681, 679, 677, 676, 675, 674, 673, 672, 671, 670, 669, 668, 667, 666, 665, 663, 662, 661, 660, 659, 658, 657, 655, 654, 653, 652, 651, 650, 649, 648, 647, 646, 645, 644, 643, 642, 641, 639, 638, 637, 636, 635, 634, 633, 632, 631, 628, 627, 626, 625, 624, 623, 622, 621, 620, 618, 617, 616, 615, 614, 612, 611, 609, 608, 607, 604, 603, 602, 601, 600, 598, 597, 596, 595, 594, 593, 592, 591, 590, 588, 587, 586, 585, 583, 582, 580, 579, 578, 576, 575, 574, 573, 572, 570, 565, 563, 560, 558, 557, 556, 554, 553, 552, 551, 550, 549, 548, 547, 546, 545, 544, 543, 542, 541, 540, 539, 538, 537, 535, 533, 532, 531, 530, 529, 527, 526, 525, 524, 522, 521, 520, 519, 518, 517, 516, 515, 512, 511, 510, 509, 507, 506, 504, 503, 502, 501, 500, 499, 498, 497, 495, 494, 493, 492, 491, 490, 488, 487, 486, 485, 484, 480, 479, 478, 477, 476, 475, 474, 473, 472, 471, 469, 468, 467, 466, 465, 464, 463, 462, 461, 460, 459, 458, 455, 453, 452, 451, 450, 449, 447, 446, 445, 444, 443, 442, 440, 438, 436, 435, 434, 433, 431, 430, 429, 428, 426, 425, 424, 423, 421, 419, 417, 416, 415, 413, 412, 411, 405, 400, 399, 398, 397, 396, 395, 394, 393, 391, 390, 389, 388, 387, 385, 384, 383, 382, 381, 380, 379, 378, 377, 376, 374, 373, 372, 371, 370, 369, 368, 367, 365, 363, 362, 361, 360, 359, 357, 356, 355, 354, 353, 352, 351, 349, 348, 347, 346, 344, 343, 342, 341, 339, 338, 337, 336, 335, 334, 332, 331, 329, 328, 327, 326, 325, 324, 323, 321, 320, 319, 318, 317, 316, 315, 314, 313, 312, 311, 309, 308, 307, 306, 305, 304, 303, 302, 301, 299, 297, 295, 294, 293, 292, 291, 290, 289, 288, 287, 286, 285, 284, 283, 282, 281, 280, 279, 278, 277, 276, 275, 274, 273, 272, 271, 270, 269, 268, 267, 266, 265, 264, 262, 261, 260, 259, 258, 257, 256, 255, 254, 253, 252, 251, 250, 249, 248, 247, 244, 234, 227, 223, 218, 217, 214, 210, 209, 208, 207, 203, 202, 201, 200, 197, 196, 195, 194, 193, 192, 190, 189, 188, 187, 184, 181, 180, 179, 178, 177, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 160, 159, 158, 157, 156, 155, 154, 153, 151, 150, 149, 148, 147, 143, 142, 139, 138, 137, 136, 135, 134, 132, 130, 128, 127, 126, 125, 124, 123, 122, 121, 120, 118, 117, 116, 115, 113, 112, 111, 110, 109, 108, 107, 105, 103, 98, 95, 93, 92, 91, 88, 76, 65, 62, 60, 59, 54, 48, 45, 37, 33, 32, 21, 20, 19, 18, 15, 14, 13, 11, 10, 9, 5, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045, 1045 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; #line 1 "lev_comp.l" #define INITIAL 0 #line 2 "lev_comp.l" /* NetHack 3.6 lev_comp.l $NHDT-Date: 1432512785 2015/05/25 00:13:05 $ $NHDT-Branch: master $:$NHDT-Revision: 1.19 $ */ /* Copyright (c) 1989 by Jean-Christophe Collet */ /* NetHack may be freely redistributed. See license for details. */ #define LEV_LEX_C #include "hack.h" #include "lev_comp.h" #include "sp_lev.h" /* Most of these don't exist in flex, yywrap is macro and * yyunput is properly declared in flex.skel. */ #if !defined(FLEX_SCANNER) && !defined(FLEXHACK_SCANNER) int FDECL(yyback, (int *,int)); int NDECL(yylook); int NDECL(yyinput); int NDECL(yywrap); int NDECL(yylex); /* Traditional lexes let yyunput() and yyoutput() default to int; * newer ones may declare them as void since they don't return * values. For even more fun, the lex supplied as part of the * newer unbundled compiler for SunOS 4.x adds the void declarations * (under __STDC__ or _cplusplus ifdefs -- otherwise they remain * int) while the bundled lex and the one with the older unbundled * compiler do not. To detect this, we need help from outside -- * sys/unix/Makefile.utl. * * Digital UNIX is difficult and still has int in spite of all * other signs. */ # if defined(NeXT) || defined(SVR4) || defined(_AIX32) # define VOIDYYPUT # endif # if !defined(VOIDYYPUT) && defined(POSIX_TYPES) # if !defined(BOS) && !defined(HISX) && !defined(_M_UNIX) && !defined(VMS) # define VOIDYYPUT # endif # endif # if !defined(VOIDYYPUT) && defined(WEIRD_LEX) # if defined(SUNOS4) && defined(__STDC__) && (WEIRD_LEX > 1) # define VOIDYYPUT # endif # endif # if defined(VOIDYYPUT) && defined(__osf__) # undef VOIDYYPUT # endif # ifdef VOIDYYPUT void FDECL(yyunput, (int)); void FDECL(yyoutput, (int)); # else int FDECL(yyunput, (int)); int FDECL(yyoutput, (int)); # endif #endif /* !FLEX_SCANNER && !FLEXHACK_SCANNER */ #ifdef FLEX_SCANNER #define YY_MALLOC_DECL \ genericptr_t FDECL(malloc, (size_t)); \ genericptr_t FDECL(realloc, (genericptr_t,size_t)); #endif void FDECL(init_yyin, (FILE *)); void FDECL(init_yyout, (FILE *)); long NDECL(handle_varstring_check); long FDECL(corefunc_str_check, (char *, long)); extern void VDECL(lc_error, (const char *, ...)); extern struct lc_vardefs *FDECL(vardef_defined,(struct lc_vardefs *,char *, int)); extern struct lc_vardefs *variable_definitions; extern long FDECL(method_defined, (char *, long, long *)); void FDECL(savetoken, (char *)); void NDECL(newline); void FDECL(advancepos, (char *)); /* * This doesn't always get put in lev_comp.h * (esp. when using older versions of bison). */ extern YYSTYPE yylval; int nh_line_number = 1; int token_start_pos = 0; char curr_token[512]; static char map[4096]; static int map_cnt = 0; FILE *orig_yyin = NULL; #define ST_RET(x) do { savetoken(yytext); return x; } while (0); #define ST_RETF(y, x) do { savetoken(yytext); y; return x; } while (0); #define MAPC 1 #line 1101 "lex.yy.c" /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int yywrap YY_PROTO(( void )); #else extern int yywrap YY_PROTO(( void )); #endif #endif #ifndef YY_NO_UNPUT static void yyunput YY_PROTO(( int c, char *buf_ptr )); #endif #ifndef yytext_ptr static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen YY_PROTO(( yyconst char * )); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput YY_PROTO(( void )); #else static int input YY_PROTO(( void )); #endif #endif #if YY_STACK_USED static int yy_start_stack_ptr = 0; static int yy_start_stack_depth = 0; static int *yy_start_stack = 0; #ifndef YY_NO_PUSH_STATE static void yy_push_state YY_PROTO(( int new_state )); #endif #ifndef YY_NO_POP_STATE static void yy_pop_state YY_PROTO(( void )); #endif #ifndef YY_NO_TOP_STATE static int yy_top_state YY_PROTO(( void )); #endif #else #define YY_NO_PUSH_STATE 1 #define YY_NO_POP_STATE 1 #define YY_NO_TOP_STATE 1 #endif #ifdef YY_MALLOC_DECL YY_MALLOC_DECL #else #if __STDC__ #ifndef __cplusplus #include #endif #else /* Just try to get by without declaring the routines. This will fail * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) * or sizeof(void*) != sizeof(int). */ #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #define YY_READ_BUF_SIZE 8192 #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( yy_current_buffer->yy_is_interactive ) \ { \ int c = '*', n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL int yylex YY_PROTO(( void )) #endif /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ if ( yyleng > 0 ) \ yy_current_buffer->yy_at_bol = \ (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION YY_DECL { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; #line 103 "lev_comp.l" #line 1257 "lex.yy.c" if ( yy_init ) { yy_init = 0; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! yy_start ) yy_start = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! yy_current_buffer ) yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); yy_load_buffer_state(); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = yy_c_buf_p; /* Support of yytext. */ *yy_cp = yy_hold_char; /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = yy_start; yy_current_state += YY_AT_BOL(); yy_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; if ( yy_accept[yy_current_state] ) { yy_last_accepting_state = yy_current_state; yy_last_accepting_cpos = yy_cp; } 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 >= 1046 ) 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] != 1244 ); yy_find_action: yy_act = yy_accept[yy_current_state]; if ( yy_act == 0 ) { /* have to back up */ yy_cp = yy_last_accepting_cpos; yy_current_state = yy_last_accepting_state; yy_act = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = yy_hold_char; yy_cp = yy_last_accepting_cpos; yy_current_state = yy_last_accepting_state; goto yy_find_action; case 1: YY_RULE_SETUP #line 104 "lev_comp.l" { savetoken(yytext); BEGIN(INITIAL); yylval.map = (char *) alloc(map_cnt + 1); (void) strncpy(yylval.map, map, map_cnt); yylval.map[map_cnt] = 0; map_cnt = 0; return MAP_ID; } YY_BREAK case 2: YY_RULE_SETUP #line 113 "lev_comp.l" { int len = yyleng; savetoken(yytext); /* convert \r\n to \n */ if (len >= 2 && yytext[len - 2] == '\r') len -= 1; (void) strncpy(map + map_cnt, yytext, len); map_cnt += len; map[map_cnt - 1] = '\n'; map[map_cnt] = '\0'; newline(); } YY_BREAK case 3: YY_RULE_SETUP #line 124 "lev_comp.l" { savetoken(yytext); newline(); } YY_BREAK case 4: YY_RULE_SETUP #line 125 "lev_comp.l" ST_RET(MESSAGE_ID); YY_BREAK case 5: YY_RULE_SETUP #line 126 "lev_comp.l" ST_RET(NOMAP_ID); YY_BREAK case 6: YY_RULE_SETUP #line 127 "lev_comp.l" ST_RET(MAZE_ID); YY_BREAK case 7: YY_RULE_SETUP #line 128 "lev_comp.l" ST_RET(LEVEL_ID); YY_BREAK case 8: YY_RULE_SETUP #line 129 "lev_comp.l" ST_RET(LEV_INIT_ID); YY_BREAK case 9: YY_RULE_SETUP #line 130 "lev_comp.l" ST_RET(MAZE_GRID_ID); YY_BREAK case 10: YY_RULE_SETUP #line 131 "lev_comp.l" ST_RET(SOLID_FILL_ID); YY_BREAK case 11: YY_RULE_SETUP #line 132 "lev_comp.l" ST_RET(MINES_ID); YY_BREAK case 12: YY_RULE_SETUP #line 133 "lev_comp.l" ST_RET(ROGUELEV_ID); YY_BREAK case 13: YY_RULE_SETUP #line 134 "lev_comp.l" ST_RET(FLAGS_ID); YY_BREAK case 14: YY_RULE_SETUP #line 135 "lev_comp.l" ST_RET(GEOMETRY_ID); YY_BREAK case 15: YY_RULE_SETUP #line 136 "lev_comp.l" { savetoken(yytext); BEGIN(MAPC); newline(); } YY_BREAK case 16: YY_RULE_SETUP #line 137 "lev_comp.l" ST_RET(object_ID); YY_BREAK case 17: YY_RULE_SETUP #line 138 "lev_comp.l" ST_RET(OBJECT_ID); YY_BREAK case 18: YY_RULE_SETUP #line 139 "lev_comp.l" ST_RET(COBJECT_ID); YY_BREAK case 19: YY_RULE_SETUP #line 140 "lev_comp.l" ST_RET(MONSTER_ID); YY_BREAK case 20: YY_RULE_SETUP #line 141 "lev_comp.l" ST_RET(monster_ID); YY_BREAK case 21: YY_RULE_SETUP #line 142 "lev_comp.l" ST_RET(TRAP_ID); YY_BREAK case 22: YY_RULE_SETUP #line 143 "lev_comp.l" ST_RET(DOOR_ID); YY_BREAK case 23: YY_RULE_SETUP #line 144 "lev_comp.l" ST_RET(ROOMDOOR_ID); YY_BREAK case 24: YY_RULE_SETUP #line 145 "lev_comp.l" ST_RET(DRAWBRIDGE_ID); YY_BREAK case 25: YY_RULE_SETUP #line 146 "lev_comp.l" ST_RET(MAZEWALK_ID); YY_BREAK case 26: YY_RULE_SETUP #line 147 "lev_comp.l" ST_RET(WALLIFY_ID); YY_BREAK case 27: YY_RULE_SETUP #line 148 "lev_comp.l" ST_RET(REGION_ID); YY_BREAK case 28: YY_RULE_SETUP #line 149 "lev_comp.l" ST_RET(ALTAR_ID); YY_BREAK case 29: YY_RULE_SETUP #line 150 "lev_comp.l" ST_RET(LADDER_ID); YY_BREAK case 30: YY_RULE_SETUP #line 151 "lev_comp.l" ST_RET(STAIR_ID); YY_BREAK case 31: YY_RULE_SETUP #line 152 "lev_comp.l" ST_RET(PORTAL_ID); YY_BREAK case 32: YY_RULE_SETUP #line 153 "lev_comp.l" ST_RET(TELEPRT_ID); YY_BREAK case 33: YY_RULE_SETUP #line 154 "lev_comp.l" ST_RET(BRANCH_ID); YY_BREAK case 34: YY_RULE_SETUP #line 155 "lev_comp.l" ST_RET(FOUNTAIN_ID); YY_BREAK case 35: YY_RULE_SETUP #line 156 "lev_comp.l" ST_RET(SINK_ID); YY_BREAK case 36: YY_RULE_SETUP #line 157 "lev_comp.l" ST_RET(POOL_ID); YY_BREAK case 37: YY_RULE_SETUP #line 158 "lev_comp.l" ST_RET(NON_DIGGABLE_ID); YY_BREAK case 38: YY_RULE_SETUP #line 159 "lev_comp.l" ST_RET(NON_PASSWALL_ID); YY_BREAK case 39: YY_RULE_SETUP #line 160 "lev_comp.l" ST_RET(IF_ID); YY_BREAK case 40: YY_RULE_SETUP #line 161 "lev_comp.l" ST_RET(ELSE_ID); YY_BREAK case 41: YY_RULE_SETUP #line 162 "lev_comp.l" ST_RET(EXIT_ID); YY_BREAK case 42: YY_RULE_SETUP #line 163 "lev_comp.l" ST_RET(ROOM_ID); YY_BREAK case 43: YY_RULE_SETUP #line 164 "lev_comp.l" ST_RET(SUBROOM_ID); YY_BREAK case 44: YY_RULE_SETUP #line 165 "lev_comp.l" ST_RET(RAND_CORRIDOR_ID); YY_BREAK case 45: YY_RULE_SETUP #line 166 "lev_comp.l" ST_RET(CORRIDOR_ID); YY_BREAK case 46: YY_RULE_SETUP #line 167 "lev_comp.l" ST_RET(TERRAIN_ID); YY_BREAK case 47: YY_RULE_SETUP #line 168 "lev_comp.l" ST_RET(terrain_ID); YY_BREAK case 48: YY_RULE_SETUP #line 169 "lev_comp.l" ST_RET(REPLACE_TERRAIN_ID); YY_BREAK case 49: YY_RULE_SETUP #line 170 "lev_comp.l" ST_RET(GOLD_ID); YY_BREAK case 50: YY_RULE_SETUP #line 171 "lev_comp.l" ST_RET(GRAVE_ID); YY_BREAK case 51: YY_RULE_SETUP #line 172 "lev_comp.l" ST_RET(ENGRAVING_ID); YY_BREAK case 52: YY_RULE_SETUP #line 173 "lev_comp.l" ST_RET(MINERALIZE_ID); YY_BREAK case 53: YY_RULE_SETUP #line 174 "lev_comp.l" ST_RET(NAME_ID); YY_BREAK case 54: YY_RULE_SETUP #line 175 "lev_comp.l" ST_RET(FOR_ID); YY_BREAK case 55: YY_RULE_SETUP #line 176 "lev_comp.l" ST_RET(TO_ID); YY_BREAK case 56: YY_RULE_SETUP #line 177 "lev_comp.l" ST_RET(LOOP_ID); YY_BREAK case 57: YY_RULE_SETUP #line 178 "lev_comp.l" ST_RET(SWITCH_ID); YY_BREAK case 58: YY_RULE_SETUP #line 179 "lev_comp.l" ST_RET(CASE_ID); YY_BREAK case 59: YY_RULE_SETUP #line 180 "lev_comp.l" ST_RET(BREAK_ID); YY_BREAK case 60: YY_RULE_SETUP #line 181 "lev_comp.l" ST_RET(DEFAULT_ID); YY_BREAK case 61: YY_RULE_SETUP #line 182 "lev_comp.l" ST_RET(FUNCTION_ID); YY_BREAK case 62: YY_RULE_SETUP #line 183 "lev_comp.l" ST_RET(SHUFFLE_ID); YY_BREAK case 63: YY_RULE_SETUP #line 184 "lev_comp.l" ST_RET(MONTYPE_ID); YY_BREAK case 64: YY_RULE_SETUP #line 185 "lev_comp.l" ST_RET(selection_ID); YY_BREAK case 65: YY_RULE_SETUP #line 186 "lev_comp.l" ST_RET(rect_ID); YY_BREAK case 66: YY_RULE_SETUP #line 187 "lev_comp.l" ST_RET(fillrect_ID); YY_BREAK case 67: YY_RULE_SETUP #line 188 "lev_comp.l" ST_RET(line_ID); YY_BREAK case 68: YY_RULE_SETUP #line 189 "lev_comp.l" ST_RET(randline_ID); YY_BREAK case 69: YY_RULE_SETUP #line 190 "lev_comp.l" ST_RET(grow_ID); YY_BREAK case 70: YY_RULE_SETUP #line 191 "lev_comp.l" ST_RET(flood_ID); YY_BREAK case 71: YY_RULE_SETUP #line 192 "lev_comp.l" ST_RET(rndcoord_ID); YY_BREAK case 72: YY_RULE_SETUP #line 193 "lev_comp.l" ST_RET(circle_ID); YY_BREAK case 73: YY_RULE_SETUP #line 194 "lev_comp.l" ST_RET(ellipse_ID); YY_BREAK case 74: YY_RULE_SETUP #line 195 "lev_comp.l" ST_RET(filter_ID); YY_BREAK case 75: YY_RULE_SETUP #line 196 "lev_comp.l" ST_RET(gradient_ID); YY_BREAK case 76: YY_RULE_SETUP #line 197 "lev_comp.l" ST_RET(complement_ID); YY_BREAK case 77: YY_RULE_SETUP #line 198 "lev_comp.l" { savetoken(yytext); yylval.i=SEL_GRADIENT_RADIAL; return GRADIENT_TYPE; } YY_BREAK case 78: YY_RULE_SETUP #line 199 "lev_comp.l" { savetoken(yytext); yylval.i=SEL_GRADIENT_SQUARE; return GRADIENT_TYPE; } YY_BREAK case 79: YY_RULE_SETUP #line 200 "lev_comp.l" { savetoken(yytext); yylval.i=DRY; return HUMIDITY_TYPE; } YY_BREAK case 80: YY_RULE_SETUP #line 201 "lev_comp.l" { savetoken(yytext); yylval.i=WET; return HUMIDITY_TYPE; } YY_BREAK case 81: YY_RULE_SETUP #line 202 "lev_comp.l" { savetoken(yytext); yylval.i=HOT; return HUMIDITY_TYPE; } YY_BREAK case 82: YY_RULE_SETUP #line 203 "lev_comp.l" { savetoken(yytext); yylval.i=SOLID; return HUMIDITY_TYPE; } YY_BREAK case 83: YY_RULE_SETUP #line 204 "lev_comp.l" { savetoken(yytext); yylval.i=ANY_LOC; return HUMIDITY_TYPE; } YY_BREAK case 84: YY_RULE_SETUP #line 205 "lev_comp.l" ST_RET(LEV); YY_BREAK case 85: YY_RULE_SETUP #line 206 "lev_comp.l" ST_RET(QUANTITY_ID); YY_BREAK case 86: YY_RULE_SETUP #line 207 "lev_comp.l" ST_RET(BURIED_ID); YY_BREAK case 87: YY_RULE_SETUP #line 208 "lev_comp.l" ST_RET(ERODED_ID); YY_BREAK case 88: YY_RULE_SETUP #line 209 "lev_comp.l" ST_RET(ERODEPROOF_ID); YY_BREAK case 89: YY_RULE_SETUP #line 210 "lev_comp.l" { savetoken(yytext); yylval.i=1; return TRAPPED_STATE; } YY_BREAK case 90: YY_RULE_SETUP #line 211 "lev_comp.l" { savetoken(yytext); yylval.i=0; return TRAPPED_STATE; } YY_BREAK case 91: YY_RULE_SETUP #line 212 "lev_comp.l" ST_RET(RECHARGED_ID); YY_BREAK case 92: YY_RULE_SETUP #line 213 "lev_comp.l" ST_RET(INVIS_ID); YY_BREAK case 93: YY_RULE_SETUP #line 214 "lev_comp.l" ST_RET(GREASED_ID); YY_BREAK case 94: YY_RULE_SETUP #line 215 "lev_comp.l" ST_RET(FEMALE_ID); YY_BREAK case 95: YY_RULE_SETUP #line 216 "lev_comp.l" ST_RET(CANCELLED_ID); YY_BREAK case 96: YY_RULE_SETUP #line 217 "lev_comp.l" ST_RET(REVIVED_ID); YY_BREAK case 97: YY_RULE_SETUP #line 218 "lev_comp.l" ST_RET(AVENGE_ID); YY_BREAK case 98: YY_RULE_SETUP #line 219 "lev_comp.l" ST_RET(FLEEING_ID); YY_BREAK case 99: YY_RULE_SETUP #line 220 "lev_comp.l" ST_RET(BLINDED_ID); YY_BREAK case 100: YY_RULE_SETUP #line 221 "lev_comp.l" ST_RET(PARALYZED_ID); YY_BREAK case 101: YY_RULE_SETUP #line 222 "lev_comp.l" ST_RET(STUNNED_ID); YY_BREAK case 102: YY_RULE_SETUP #line 223 "lev_comp.l" ST_RET(CONFUSED_ID); YY_BREAK case 103: YY_RULE_SETUP #line 224 "lev_comp.l" ST_RET(SEENTRAPS_ID); YY_BREAK case 104: YY_RULE_SETUP #line 225 "lev_comp.l" ST_RET(ALL_ID); YY_BREAK case 105: YY_RULE_SETUP #line 226 "lev_comp.l" ST_RETF((yylval.i=1), HORIZ_OR_VERT); YY_BREAK case 106: YY_RULE_SETUP #line 227 "lev_comp.l" { savetoken(yytext); yylval.i=2; return HORIZ_OR_VERT; } YY_BREAK case 107: YY_RULE_SETUP #line 228 "lev_comp.l" { savetoken(yytext); yylval.i=D_ISOPEN; return DOOR_STATE; } YY_BREAK case 108: YY_RULE_SETUP #line 229 "lev_comp.l" { savetoken(yytext); yylval.i=D_CLOSED; return DOOR_STATE; } YY_BREAK case 109: YY_RULE_SETUP #line 230 "lev_comp.l" { savetoken(yytext); yylval.i=D_LOCKED; return DOOR_STATE; } YY_BREAK case 110: YY_RULE_SETUP #line 231 "lev_comp.l" { savetoken(yytext); yylval.i=D_NODOOR; return DOOR_STATE; } YY_BREAK case 111: YY_RULE_SETUP #line 232 "lev_comp.l" { savetoken(yytext); yylval.i=D_BROKEN; return DOOR_STATE; } YY_BREAK case 112: YY_RULE_SETUP #line 233 "lev_comp.l" { savetoken(yytext); yylval.i=D_SECRET; return DOOR_STATE; } YY_BREAK case 113: YY_RULE_SETUP #line 234 "lev_comp.l" { savetoken(yytext); yylval.i=W_NORTH; return DIRECTION; } YY_BREAK case 114: YY_RULE_SETUP #line 235 "lev_comp.l" { savetoken(yytext); yylval.i=W_EAST; return DIRECTION; } YY_BREAK case 115: YY_RULE_SETUP #line 236 "lev_comp.l" { savetoken(yytext); yylval.i=W_SOUTH; return DIRECTION; } YY_BREAK case 116: YY_RULE_SETUP #line 237 "lev_comp.l" { savetoken(yytext); yylval.i=W_WEST; return DIRECTION; } YY_BREAK case 117: YY_RULE_SETUP #line 238 "lev_comp.l" { savetoken(yytext); yylval.i = -1; return RANDOM_TYPE; } YY_BREAK case 118: YY_RULE_SETUP #line 239 "lev_comp.l" { savetoken(yytext); yylval.i = -1; return RANDOM_TYPE_BRACKET; } YY_BREAK case 119: YY_RULE_SETUP #line 240 "lev_comp.l" { savetoken(yytext); yylval.i = -2; return NONE; } YY_BREAK case 120: YY_RULE_SETUP #line 241 "lev_comp.l" ST_RET(A_REGISTER); YY_BREAK case 121: YY_RULE_SETUP #line 242 "lev_comp.l" { savetoken(yytext); yylval.i=1; return LEFT_OR_RIGHT; } YY_BREAK case 122: YY_RULE_SETUP #line 243 "lev_comp.l" { savetoken(yytext); yylval.i=2; return LEFT_OR_RIGHT; } YY_BREAK case 123: YY_RULE_SETUP #line 244 "lev_comp.l" { savetoken(yytext); yylval.i=3; return CENTER; } YY_BREAK case 124: YY_RULE_SETUP #line 245 "lev_comp.l" { savetoken(yytext); yylval.i=4; return LEFT_OR_RIGHT; } YY_BREAK case 125: YY_RULE_SETUP #line 246 "lev_comp.l" { savetoken(yytext); yylval.i=5; return LEFT_OR_RIGHT; } YY_BREAK case 126: YY_RULE_SETUP #line 247 "lev_comp.l" { savetoken(yytext); yylval.i=1; return TOP_OR_BOT; } YY_BREAK case 127: YY_RULE_SETUP #line 248 "lev_comp.l" { savetoken(yytext); yylval.i=5; return TOP_OR_BOT; } YY_BREAK case 128: YY_RULE_SETUP #line 249 "lev_comp.l" { savetoken(yytext); yylval.i=1; return LIGHT_STATE; } YY_BREAK case 129: YY_RULE_SETUP #line 250 "lev_comp.l" { savetoken(yytext); yylval.i=0; return LIGHT_STATE; } YY_BREAK case 130: YY_RULE_SETUP #line 251 "lev_comp.l" { savetoken(yytext); yylval.i=1; return FILLING; } YY_BREAK case 131: YY_RULE_SETUP #line 252 "lev_comp.l" { savetoken(yytext); yylval.i=0; return FILLING; } YY_BREAK case 132: YY_RULE_SETUP #line 253 "lev_comp.l" { savetoken(yytext); yylval.i=0; return IRREGULAR; } YY_BREAK case 133: YY_RULE_SETUP #line 254 "lev_comp.l" { savetoken(yytext); yylval.i=1; return IRREGULAR; } YY_BREAK case 134: YY_RULE_SETUP #line 255 "lev_comp.l" { savetoken(yytext); yylval.i=1; return JOINED; } YY_BREAK case 135: YY_RULE_SETUP #line 256 "lev_comp.l" { savetoken(yytext); yylval.i=0; return JOINED; } YY_BREAK case 136: YY_RULE_SETUP #line 257 "lev_comp.l" { savetoken(yytext); yylval.i=1; return LIMITED; } YY_BREAK case 137: YY_RULE_SETUP #line 258 "lev_comp.l" { savetoken(yytext); yylval.i=0; return LIMITED; } YY_BREAK case 138: YY_RULE_SETUP #line 259 "lev_comp.l" { savetoken(yytext); yylval.i= AM_NONE; return ALIGNMENT; } YY_BREAK case 139: YY_RULE_SETUP #line 260 "lev_comp.l" { savetoken(yytext); yylval.i= AM_LAWFUL; return ALIGNMENT; } YY_BREAK case 140: YY_RULE_SETUP #line 261 "lev_comp.l" { savetoken(yytext); yylval.i= AM_NEUTRAL; return ALIGNMENT; } YY_BREAK case 141: YY_RULE_SETUP #line 262 "lev_comp.l" { savetoken(yytext); yylval.i= AM_CHAOTIC; return ALIGNMENT; } YY_BREAK case 142: YY_RULE_SETUP #line 263 "lev_comp.l" { savetoken(yytext); yylval.i= AM_SPLEV_CO; return ALIGNMENT; } YY_BREAK case 143: YY_RULE_SETUP #line 264 "lev_comp.l" { savetoken(yytext); yylval.i= AM_SPLEV_NONCO; return ALIGNMENT; } YY_BREAK case 144: YY_RULE_SETUP #line 265 "lev_comp.l" { savetoken(yytext); yylval.i=1; return MON_ATTITUDE; } YY_BREAK case 145: YY_RULE_SETUP #line 266 "lev_comp.l" { savetoken(yytext); yylval.i=0; return MON_ATTITUDE; } YY_BREAK case 146: YY_RULE_SETUP #line 267 "lev_comp.l" { savetoken(yytext); yylval.i=1; return MON_ALERTNESS; } YY_BREAK case 147: YY_RULE_SETUP #line 268 "lev_comp.l" { savetoken(yytext); yylval.i=0; return MON_ALERTNESS; } YY_BREAK case 148: YY_RULE_SETUP #line 269 "lev_comp.l" { savetoken(yytext); yylval.i= M_AP_FURNITURE; return MON_APPEARANCE; } YY_BREAK case 149: YY_RULE_SETUP #line 270 "lev_comp.l" { savetoken(yytext); yylval.i= M_AP_MONSTER; return MON_APPEARANCE; } YY_BREAK case 150: YY_RULE_SETUP #line 271 "lev_comp.l" { savetoken(yytext); yylval.i= M_AP_OBJECT; return MON_APPEARANCE; } YY_BREAK case 151: YY_RULE_SETUP #line 272 "lev_comp.l" { savetoken(yytext); yylval.i=2; return ALTAR_TYPE; } YY_BREAK case 152: YY_RULE_SETUP #line 273 "lev_comp.l" { savetoken(yytext); yylval.i=1; return ALTAR_TYPE; } YY_BREAK case 153: YY_RULE_SETUP #line 274 "lev_comp.l" { savetoken(yytext); yylval.i=0; return ALTAR_TYPE; } YY_BREAK case 154: YY_RULE_SETUP #line 275 "lev_comp.l" { savetoken(yytext); yylval.i=1; return UP_OR_DOWN; } YY_BREAK case 155: YY_RULE_SETUP #line 276 "lev_comp.l" { savetoken(yytext); yylval.i=0; return UP_OR_DOWN; } YY_BREAK case 156: YY_RULE_SETUP #line 277 "lev_comp.l" { savetoken(yytext); yylval.i=0; return BOOLEAN; } YY_BREAK case 157: YY_RULE_SETUP #line 278 "lev_comp.l" { savetoken(yytext); yylval.i=1; return BOOLEAN; } YY_BREAK case 158: YY_RULE_SETUP #line 279 "lev_comp.l" { savetoken(yytext); yylval.i=DUST; return ENGRAVING_TYPE; } YY_BREAK case 159: YY_RULE_SETUP #line 280 "lev_comp.l" { savetoken(yytext); yylval.i=ENGRAVE; return ENGRAVING_TYPE; } YY_BREAK case 160: YY_RULE_SETUP #line 281 "lev_comp.l" { savetoken(yytext); yylval.i=BURN; return ENGRAVING_TYPE; } YY_BREAK case 161: YY_RULE_SETUP #line 282 "lev_comp.l" { savetoken(yytext); yylval.i=MARK; return ENGRAVING_TYPE; } YY_BREAK case 162: YY_RULE_SETUP #line 283 "lev_comp.l" { savetoken(yytext); yylval.i=ENGR_BLOOD; return ENGRAVING_TYPE; } YY_BREAK case 163: YY_RULE_SETUP #line 284 "lev_comp.l" { savetoken(yytext); yylval.i=1; return CURSE_TYPE; } YY_BREAK case 164: YY_RULE_SETUP #line 285 "lev_comp.l" { savetoken(yytext); yylval.i=2; return CURSE_TYPE; } YY_BREAK case 165: YY_RULE_SETUP #line 286 "lev_comp.l" { savetoken(yytext); yylval.i=3; return CURSE_TYPE; } YY_BREAK case 166: YY_RULE_SETUP #line 287 "lev_comp.l" { savetoken(yytext); yylval.i=NOTELEPORT; return FLAG_TYPE; } YY_BREAK case 167: YY_RULE_SETUP #line 288 "lev_comp.l" { savetoken(yytext); yylval.i=HARDFLOOR; return FLAG_TYPE; } YY_BREAK case 168: YY_RULE_SETUP #line 289 "lev_comp.l" { savetoken(yytext); yylval.i=NOMMAP; return FLAG_TYPE; } YY_BREAK case 169: YY_RULE_SETUP #line 290 "lev_comp.l" { savetoken(yytext); yylval.i=ARBOREAL; return FLAG_TYPE; } /* KMH */ YY_BREAK case 170: YY_RULE_SETUP #line 291 "lev_comp.l" { savetoken(yytext); yylval.i=SHORTSIGHTED; return FLAG_TYPE; } YY_BREAK case 171: YY_RULE_SETUP #line 292 "lev_comp.l" { savetoken(yytext); yylval.i=MAZELEVEL; return FLAG_TYPE; } YY_BREAK case 172: YY_RULE_SETUP #line 293 "lev_comp.l" { savetoken(yytext); yylval.i=PREMAPPED; return FLAG_TYPE; } YY_BREAK case 173: YY_RULE_SETUP #line 294 "lev_comp.l" { savetoken(yytext); yylval.i=SHROUD; return FLAG_TYPE; } YY_BREAK case 174: YY_RULE_SETUP #line 295 "lev_comp.l" { savetoken(yytext); yylval.i=GRAVEYARD; return FLAG_TYPE; } YY_BREAK case 175: YY_RULE_SETUP #line 296 "lev_comp.l" { savetoken(yytext); yylval.i=ICEDPOOLS; return FLAG_TYPE; } YY_BREAK case 176: YY_RULE_SETUP #line 297 "lev_comp.l" { savetoken(yytext); yylval.i=SOLIDIFY; return FLAG_TYPE; } YY_BREAK case 177: YY_RULE_SETUP #line 298 "lev_comp.l" { savetoken(yytext); yylval.i=CORRMAZE; return FLAG_TYPE; } YY_BREAK case 178: YY_RULE_SETUP #line 299 "lev_comp.l" { char *p = strchr(yytext, 'd'); savetoken(yytext); if (p) { *p = '\0'; p++; yylval.dice.num=atoi(yytext); yylval.dice.die=atoi(p); } else { yylval.dice.num = yylval.dice.die = 1; } return DICE; } YY_BREAK case 179: YY_RULE_SETUP #line 309 "lev_comp.l" { savetoken(yytext); yylval.i = atoi(yytext + 1); if (yylval.i < 0 || yylval.i > 100) lc_error("Unexpected percentile '%li%%'", yylval.i); return PERCENT; } YY_BREAK case 180: YY_RULE_SETUP #line 313 "lev_comp.l" { savetoken(yytext); yylval.i=atoi(yytext); return MINUS_INTEGER; } YY_BREAK case 181: YY_RULE_SETUP #line 314 "lev_comp.l" { savetoken(yytext); yylval.i=atoi(yytext); return PLUS_INTEGER; } YY_BREAK case 182: YY_RULE_SETUP #line 315 "lev_comp.l" { savetoken(yytext); yylval.i = atoi(yytext); if (yylval.i < 0 || yylval.i > 100) lc_error("Unexpected percentile '%li%%'", yylval.i); return SPERCENT; } YY_BREAK case 183: YY_RULE_SETUP #line 319 "lev_comp.l" { savetoken(yytext); yylval.i=atoi(yytext); return INTEGER; } YY_BREAK case 184: YY_RULE_SETUP #line 320 "lev_comp.l" { savetoken(yytext); yytext[yyleng-1] = 0; /* Discard the trailing \" */ yylval.map = (char *) alloc(strlen(yytext+1)+1); Strcpy(yylval.map, yytext+1); /* Discard the first \" */ return STRING; } YY_BREAK case 185: YY_RULE_SETUP #line 325 "lev_comp.l" { savetoken(yytext); return handle_varstring_check(); } YY_BREAK case 186: YY_RULE_SETUP #line 326 "lev_comp.l" { savetoken(yytext); yylval.i = SPO_JE; return COMPARE_TYPE; } YY_BREAK case 187: YY_RULE_SETUP #line 327 "lev_comp.l" { savetoken(yytext); yylval.i = SPO_JNE; return COMPARE_TYPE; } YY_BREAK case 188: YY_RULE_SETUP #line 328 "lev_comp.l" { savetoken(yytext); yylval.i = SPO_JNE; return COMPARE_TYPE; } YY_BREAK case 189: YY_RULE_SETUP #line 329 "lev_comp.l" { savetoken(yytext); yylval.i = SPO_JLE; return COMPARE_TYPE; } YY_BREAK case 190: YY_RULE_SETUP #line 330 "lev_comp.l" { savetoken(yytext); yylval.i = SPO_JGE; return COMPARE_TYPE; } YY_BREAK case 191: YY_RULE_SETUP #line 331 "lev_comp.l" { savetoken(yytext); yylval.i = SPO_JL; return COMPARE_TYPE; } YY_BREAK case 192: YY_RULE_SETUP #line 332 "lev_comp.l" { savetoken(yytext); yylval.i = SPO_JG; return COMPARE_TYPE; } YY_BREAK case 193: YY_RULE_SETUP #line 333 "lev_comp.l" { newline(); } YY_BREAK case 194: YY_RULE_SETUP #line 334 "lev_comp.l" { advancepos(yytext); } YY_BREAK case 195: YY_RULE_SETUP #line 335 "lev_comp.l" { savetoken(yytext); yylval.i = yytext[2]; return CHAR; } YY_BREAK case 196: YY_RULE_SETUP #line 336 "lev_comp.l" { savetoken(yytext); yylval.i = yytext[1]; return CHAR; } YY_BREAK case 197: YY_RULE_SETUP #line 337 "lev_comp.l" ST_RET(UNKNOWN_TYPE); YY_BREAK case 198: YY_RULE_SETUP #line 338 "lev_comp.l" { savetoken(yytext); return yytext[0]; } YY_BREAK case 199: YY_RULE_SETUP #line 339 "lev_comp.l" ECHO; YY_BREAK #line 2373 "lex.yy.c" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(MAPC): yyterminate(); case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = yy_hold_char; YY_RESTORE_YY_MORE_OFFSET if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure * consistency between yy_current_buffer and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ yy_n_chars = yy_current_buffer->yy_n_chars; yy_current_buffer->yy_input_file = yyin; yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) { /* This was really a NUL. */ yy_state_type yy_next_state; yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state(); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = yytext_ptr + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++yy_c_buf_p; yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = yy_c_buf_p; goto yy_find_action; } } else switch ( yy_get_next_buffer() ) { case EOB_ACT_END_OF_FILE: { yy_did_buffer_switch_on_eof = 0; if ( yywrap() ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state(); yy_cp = yy_c_buf_p; yy_bp = yytext_ptr + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: yy_c_buf_p = &yy_current_buffer->yy_ch_buf[yy_n_chars]; yy_current_state = yy_get_previous_state(); yy_cp = yy_c_buf_p; yy_bp = yytext_ptr + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer() { register char *dest = yy_current_buffer->yy_ch_buf; register char *source = yytext_ptr; register int number_to_move, i; int ret_val; if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( yy_current_buffer->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ yy_current_buffer->yy_n_chars = yy_n_chars = 0; else { int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ #ifdef YY_USES_REJECT YY_FATAL_ERROR( "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); #else /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = yy_current_buffer; int yy_c_buf_p_offset = (int) (yy_c_buf_p - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { int new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ yy_flex_realloc( (void *) b->yy_ch_buf, b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1; #endif } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), yy_n_chars, num_to_read ); yy_current_buffer->yy_n_chars = yy_n_chars; } if ( yy_n_chars == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; yyrestart( yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; yy_current_buffer->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; yy_n_chars += number_to_move; yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state() { register yy_state_type yy_current_state; register char *yy_cp; yy_current_state = yy_start; yy_current_state += YY_AT_BOL(); for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) { register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { yy_last_accepting_state = yy_current_state; yy_last_accepting_cpos = yy_cp; } 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 >= 1046 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ #ifdef YY_USE_PROTOS static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) #else static yy_state_type yy_try_NUL_trans( yy_current_state ) yy_state_type yy_current_state; #endif { register int yy_is_jam; register char *yy_cp = yy_c_buf_p; register YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { yy_last_accepting_state = yy_current_state; yy_last_accepting_cpos = yy_cp; } 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 >= 1046 ) 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 == 1045); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_UNPUT #ifdef YY_USE_PROTOS static void yyunput( int c, register char *yy_bp ) #else static void yyunput( c, yy_bp ) int c; register char *yy_bp; #endif { register char *yy_cp = yy_c_buf_p; /* undo effects of setting up yytext */ *yy_cp = yy_hold_char; if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ register int number_to_move = yy_n_chars + 2; register char *dest = &yy_current_buffer->yy_ch_buf[ yy_current_buffer->yy_buf_size + 2]; register char *source = &yy_current_buffer->yy_ch_buf[number_to_move]; while ( source > yy_current_buffer->yy_ch_buf ) *--dest = *--source; yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); yy_current_buffer->yy_n_chars = yy_n_chars = yy_current_buffer->yy_buf_size; if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) YY_FATAL_ERROR( "flex scanner push-back overflow" ); } *--yy_cp = (char) c; yytext_ptr = yy_bp; yy_hold_char = *yy_cp; yy_c_buf_p = yy_cp; } #endif /* ifndef YY_NO_UNPUT */ #ifdef __cplusplus static int yyinput() #else static int input() #endif { int c; *yy_c_buf_p = yy_hold_char; if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) /* This was really a NUL. */ *yy_c_buf_p = '\0'; else { /* need more input */ int offset = yy_c_buf_p - yytext_ptr; ++yy_c_buf_p; switch ( yy_get_next_buffer() ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ yyrestart( yyin ); /* fall through */ case EOB_ACT_END_OF_FILE: { if ( yywrap() ) return EOF; if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: yy_c_buf_p = yytext_ptr + offset; break; } } } c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ *yy_c_buf_p = '\0'; /* preserve yytext */ yy_hold_char = *++yy_c_buf_p; yy_current_buffer->yy_at_bol = (c == '\n'); return c; } #ifdef YY_USE_PROTOS void yyrestart( FILE *input_file ) #else void yyrestart( input_file ) FILE *input_file; #endif { if ( ! yy_current_buffer ) yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); yy_init_buffer( yy_current_buffer, input_file ); yy_load_buffer_state(); } #ifdef YY_USE_PROTOS void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) #else void yy_switch_to_buffer( new_buffer ) YY_BUFFER_STATE new_buffer; #endif { if ( yy_current_buffer == new_buffer ) return; if ( yy_current_buffer ) { /* Flush out information for old buffer. */ *yy_c_buf_p = yy_hold_char; yy_current_buffer->yy_buf_pos = yy_c_buf_p; yy_current_buffer->yy_n_chars = yy_n_chars; } yy_current_buffer = new_buffer; yy_load_buffer_state(); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ yy_did_buffer_switch_on_eof = 1; } #ifdef YY_USE_PROTOS void yy_load_buffer_state( void ) #else void yy_load_buffer_state() #endif { yy_n_chars = yy_current_buffer->yy_n_chars; yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; yyin = yy_current_buffer->yy_input_file; yy_hold_char = *yy_c_buf_p; } #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) #else YY_BUFFER_STATE yy_create_buffer( file, size ) FILE *file; int size; #endif { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer( b, file ); return b; } #ifdef YY_USE_PROTOS void yy_delete_buffer( YY_BUFFER_STATE b ) #else void yy_delete_buffer( b ) YY_BUFFER_STATE b; #endif { if ( ! b ) return; if ( b == yy_current_buffer ) yy_current_buffer = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) yy_flex_free( (void *) b->yy_ch_buf ); yy_flex_free( (void *) b ); } #ifndef YY_ALWAYS_INTERACTIVE #ifndef YY_NEVER_INTERACTIVE extern int isatty YY_PROTO(( int )); #endif #endif #ifdef YY_USE_PROTOS void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) #else void yy_init_buffer( b, file ) YY_BUFFER_STATE b; FILE *file; #endif { yy_flush_buffer( b ); b->yy_input_file = file; b->yy_fill_buffer = 1; #if YY_ALWAYS_INTERACTIVE b->yy_is_interactive = 1; #else #if YY_NEVER_INTERACTIVE b->yy_is_interactive = 0; #else b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; #endif #endif } #ifdef YY_USE_PROTOS void yy_flush_buffer( YY_BUFFER_STATE b ) #else void yy_flush_buffer( b ) YY_BUFFER_STATE b; #endif { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == yy_current_buffer ) yy_load_buffer_state(); } #ifndef YY_NO_SCAN_BUFFER #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) #else YY_BUFFER_STATE yy_scan_buffer( base, size ) char *base; yy_size_t size; #endif { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; yy_switch_to_buffer( b ); return b; } #endif #ifndef YY_NO_SCAN_STRING #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) #else YY_BUFFER_STATE yy_scan_string( yy_str ) yyconst char *yy_str; #endif { int len; for ( len = 0; yy_str[len]; ++len ) ; return yy_scan_bytes( yy_str, len ); } #endif #ifndef YY_NO_SCAN_BYTES #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) #else YY_BUFFER_STATE yy_scan_bytes( bytes, len ) yyconst char *bytes; int len; #endif { YY_BUFFER_STATE b; char *buf; yy_size_t n; int i; /* Get memory for full buffer, including space for trailing EOB's. */ n = len + 2; buf = (char *) yy_flex_alloc( n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); for ( i = 0; i < len; ++i ) buf[i] = bytes[i]; buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; b = yy_scan_buffer( buf, n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #endif #ifndef YY_NO_PUSH_STATE #ifdef YY_USE_PROTOS static void yy_push_state( int new_state ) #else static void yy_push_state( new_state ) int new_state; #endif { if ( yy_start_stack_ptr >= yy_start_stack_depth ) { yy_size_t new_size; yy_start_stack_depth += YY_START_STACK_INCR; new_size = yy_start_stack_depth * sizeof( int ); if ( ! yy_start_stack ) yy_start_stack = (int *) yy_flex_alloc( new_size ); else yy_start_stack = (int *) yy_flex_realloc( (void *) yy_start_stack, new_size ); if ( ! yy_start_stack ) YY_FATAL_ERROR( "out of memory expanding start-condition stack" ); } yy_start_stack[yy_start_stack_ptr++] = YY_START; BEGIN(new_state); } #endif #ifndef YY_NO_POP_STATE static void yy_pop_state() { if ( --yy_start_stack_ptr < 0 ) YY_FATAL_ERROR( "start-condition stack underflow" ); BEGIN(yy_start_stack[yy_start_stack_ptr]); } #endif #ifndef YY_NO_TOP_STATE static int yy_top_state() { return yy_start_stack[yy_start_stack_ptr - 1]; } #endif #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif #ifdef YY_USE_PROTOS static void yy_fatal_error( yyconst char msg[] ) #else static void yy_fatal_error( msg ) char msg[]; #endif { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ yytext[yyleng] = yy_hold_char; \ yy_c_buf_p = yytext + n; \ yy_hold_char = *yy_c_buf_p; \ *yy_c_buf_p = '\0'; \ yyleng = n; \ } \ while ( 0 ) /* Internal utility routines. */ #ifndef yytext_ptr #ifdef YY_USE_PROTOS static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) #else static void yy_flex_strncpy( s1, s2, n ) char *s1; yyconst char *s2; int n; #endif { register int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN #ifdef YY_USE_PROTOS static int yy_flex_strlen( yyconst char *s ) #else static int yy_flex_strlen( s ) yyconst char *s; #endif { register int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif #ifdef YY_USE_PROTOS static void *yy_flex_alloc( yy_size_t size ) #else static void *yy_flex_alloc( size ) yy_size_t size; #endif { return (void *) malloc( size ); } #ifdef YY_USE_PROTOS static void *yy_flex_realloc( void *ptr, yy_size_t size ) #else static void *yy_flex_realloc( ptr, size ) void *ptr; yy_size_t size; #endif { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } #ifdef YY_USE_PROTOS static void yy_flex_free( void *ptr ) #else static void yy_flex_free( ptr ) void *ptr; #endif { free( ptr ); } #if YY_MAIN int main() { yylex(); return 0; } #endif #line 339 "lev_comp.l" #ifdef AMIGA long *alloc(n) unsigned n; { return ((long *)malloc (n)); } #endif /* routine to switch to another input file; needed for flex */ void init_yyin( input_f ) FILE *input_f; { #if defined(FLEX_SCANNER) || defined(FLEXHACK_SCANNER) if (yyin) yyrestart(input_f); else #endif yyin = input_f; if (!orig_yyin) orig_yyin = yyin; } /* analogous routine (for completeness) */ void init_yyout( output_f ) FILE *output_f; { yyout = output_f; } long handle_varstring_check() { struct lc_vardefs *vd; yylval.map = (char *) alloc(strlen(yytext)+1); Strcpy(yylval.map, yytext); if ((vd = vardef_defined(variable_definitions, yytext, 1))) { long l = vd->var_type; long a = ((l & SPOVAR_ARRAY) == SPOVAR_ARRAY); l = (l & ~SPOVAR_ARRAY); if (l == SPOVAR_INT) return (a ? VARSTRING_INT_ARRAY : VARSTRING_INT); if (l == SPOVAR_STRING) return (a ? VARSTRING_STRING_ARRAY : VARSTRING_STRING); if (l == SPOVAR_VARIABLE) return (a ? VARSTRING_VAR_ARRAY : VARSTRING_VAR); if (l == SPOVAR_COORD) return (a ? VARSTRING_COORD_ARRAY : VARSTRING_COORD); if (l == SPOVAR_REGION) return (a ? VARSTRING_REGION_ARRAY : VARSTRING_REGION); if (l == SPOVAR_MAPCHAR) return (a ? VARSTRING_MAPCHAR_ARRAY : VARSTRING_MAPCHAR); if (l == SPOVAR_MONST) return (a ? VARSTRING_MONST_ARRAY : VARSTRING_MONST); if (l == SPOVAR_OBJ) return (a ? VARSTRING_OBJ_ARRAY : VARSTRING_OBJ); if (l == SPOVAR_SEL) return (a ? VARSTRING_SEL_ARRAY : VARSTRING_SEL); } return VARSTRING; } void newline() { nh_line_number++; token_start_pos = 0; memset(curr_token, 0, 512); } void savetoken(s) char *s; { sprintf(curr_token, "%s", s); advancepos(s); } void advancepos(s) char *s; { token_start_pos += strlen(s); } /*lev_comp.l*/