/* A lexical scanner generated by flex */ /* Scanner skeleton version: * $Header: /cvsroot/kmfl/kmflcomp/src/lex.c,v 1.3 2005/08/30 17:22:43 courtjester 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) #define yywrap() 1 #define YY_SKIP_YYWRAP 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 231 #define YY_END_OF_BUFFER 232 static yyconst short int yy_accept[732] = { 0, 40, 40, 40, 40, 0, 0, 78, 78, 88, 88, 81, 81, 56, 56, 0, 0, 70, 70, 0, 0, 0, 0, 232, 230, 40, 1, 2, 230, 230, 230, 230, 228, 38, 45, 37, 49, 230, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 40, 230, 229, 231, 40, 2, 231, 231, 231, 45, 49, 231, 55, 55, 55, 55, 55, 55, 55, 55, 77, 77, 2, 77, 80, 78, 2, 79, 80, 88, 212, 211, 213, 231, 231, 231, 231, 231, 231, 231, 231, 85, 81, 2, 83, 84, 82, 85, 62, 56, 2, 59, 61, 60, 62, 62, 67, 67, 2, 67, 67, 67, 67, 70, 76, 73, 231, 231, 231, 227, 227, 2, 227, 87, 87, 2, 86, 87, 40, 0, 0, 44, 39, 0, 43, 0, 42, 45, 0, 214, 0, 229, 229, 229, 229, 229, 41, 229, 229, 46, 229, 33, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 0, 229, 229, 47, 40, 0, 39, 39, 41, 219, 218, 40, 0, 55, 55, 46, 55, 52, 55, 55, 47, 0, 78, 88, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 81, 56, 0, 0, 0, 64, 63, 0, 0, 66, 0, 65, 0, 69, 68, 70, 73, 0, 74, 75, 0, 223, 222, 215, 26, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 31, 229, 229, 229, 229, 229, 48, 24, 229, 229, 224, 0, 0, 0, 221, 220, 55, 55, 54, 55, 99, 0, 0, 0, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 57, 0, 0, 72, 71, 0, 0, 229, 27, 229, 229, 35, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 229, 3, 229, 21, 229, 229, 229, 229, 229, 229, 0, 0, 50, 55, 53, 0, 90, 0, 98, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 179, 180, 181, 182, 183, 184, 185, 186, 187, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 156, 92, 0, 0, 0, 96, 0, 0, 0, 209, 0, 63, 0, 0, 216, 0, 229, 19, 229, 0, 229, 229, 229, 229, 229, 229, 22, 229, 28, 229, 229, 30, 229, 229, 229, 229, 229, 20, 229, 229, 229, 0, 0, 55, 0, 206, 210, 210, 210, 210, 210, 210, 207, 210, 161, 210, 210, 153, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 210, 162, 210, 210, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 210, 210, 210, 210, 210, 208, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 149, 91, 0, 94, 95, 0, 97, 0, 64, 63, 217, 16, 0, 4, 0, 0, 229, 229, 229, 229, 229, 229, 5, 229, 8, 229, 229, 229, 34, 0, 229, 36, 0, 229, 0, 0, 55, 0, 210, 210, 148, 205, 210, 210, 210, 158, 210, 210, 154, 210, 210, 155, 210, 210, 210, 210, 210, 210, 210, 210, 160, 159, 210, 210, 210, 210, 210, 210, 210, 89, 93, 64, 0, 0, 4, 4, 0, 0, 229, 0, 229, 25, 229, 32, 229, 229, 13, 229, 29, 0, 229, 0, 6, 226, 225, 51, 210, 210, 143, 139, 210, 150, 144, 210, 145, 167, 210, 210, 210, 210, 210, 151, 210, 101, 147, 157, 210, 203, 142, 100, 0, 0, 0, 0, 229, 229, 229, 229, 7, 229, 0, 229, 0, 226, 225, 210, 210, 210, 140, 210, 165, 210, 164, 210, 141, 152, 0, 0, 0, 0, 229, 229, 12, 229, 0, 229, 0, 229, 0, 138, 146, 204, 166, 168, 163, 17, 0, 0, 0, 229, 10, 229, 0, 229, 0, 229, 23, 0, 0, 10, 0, 229, 0, 229, 0, 229, 0, 0, 229, 0, 0, 229, 0, 229, 0, 229, 0, 229, 18, 0, 9, 0, 229, 0, 229, 0, 229, 9, 0, 15, 0, 14, 0, 11, 15, 14, 11, 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, 1, 6, 1, 7, 1, 1, 8, 9, 10, 1, 11, 12, 1, 13, 1, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 1, 1, 1, 25, 1, 1, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 26, 27, 28, 1, 29, 1, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 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, 1, 1, 1 } ; static yyconst int yy_meta[56] = { 0, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5 } ; static yyconst short int yy_base[759] = { 0, 0, 51, 83, 0, 137, 141, 145, 149, 175, 227, 182, 234, 279, 310, 341, 352, 378, 0, 193, 222, 431, 460, 1271, 1272, 156, 1272, 1272, 1264, 0, 1261, 1258, 1272, 1272, 45, 1272, 1272, 65, 28, 38, 160, 476, 1218, 0, 1219, 1221, 1221, 1233, 126, 169, 1212, 1227, 204, 152, 1226, 503, 169, 130, 260, 1272, 240, 1272, 1253, 1250, 1247, 355, 1272, 77, 0, 1222, 72, 525, 1205, 1204, 1242, 552, 1272, 245, 1272, 284, 1272, 246, 1272, 1272, 305, 271, 1272, 1272, 1272, 1211, 222, 1222, 287, 1218, 288, 1212, 1208, 1272, 346, 1272, 1272, 1272, 1272, 336, 1272, 357, 1272, 1272, 1272, 1272, 382, 206, 1272, 398, 1272, 1241, 1238, 163, 404, 386, 1272, 405, 212, 0, 0, 1272, 443, 1272, 410, 1272, 444, 1272, 1272, 448, 472, 476, 1239, 1238, 1272, 1235, 1234, 1231, 1230, 535, 498, 1272, 1236, 0, 1184, 1188, 39, 1187, 1272, 148, 130, 172, 1205, 0, 1197, 1189, 1183, 1198, 167, 1181, 1181, 1194, 1185, 1184, 1184, 1175, 1174, 1184, 1177, 1182, 0, 327, 1172, 0, 525, 503, 1184, 1183, 509, 1272, 1272, 526, 361, 0, 1182, 200, 1185, 0, 1173, 1164, 0, 558, 559, 574, 1163, 1166, 1167, 1162, 593, 1167, 1158, 1169, 1175, 1163, 1154, 1165, 1163, 1171, 587, 647, 318, 413, 651, 1272, 424, 591, 1193, 1192, 1189, 1188, 479, 1272, 574, 655, 583, 577, 0, 0, 1168, 1272, 1272, 1272, 0, 1157, 1148, 1154, 1149, 1149, 1141, 1139, 1133, 1153, 1142, 1134, 1143, 1148, 1145, 1136, 1147, 1130, 1135, 1142, 1145, 0, 1126, 1123, 1137, 1124, 1121, 0, 0, 1126, 1120, 1140, 1112, 1135, 659, 1272, 1272, 1119, 1130, 0, 1114, 1125, 1112, 1110, 1117, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1116, 1116, 261, 235, 574, 673, 0, 323, 1112, 0, 0, 498, 0, 620, 1120, 637, 1103, 416, 637, 1122, 1106, 0, 0, 0, 0, 0, 1101, 1102, 1110, 1102, 1097, 1098, 1106, 1108, 0, 647, 1272, 655, 672, 677, 1272, 681, 1115, 698, 1097, 0, 1097, 1109, 0, 667, 1104, 1090, 1096, 1091, 1089, 1099, 1079, 1081, 1080, 1092, 1098, 1083, 0, 1077, 0, 1078, 1075, 1089, 1090, 1085, 1082, 1077, 1067, 0, 1077, 0, 1069, 1272, 1068, 1272, 0, 1065, 212, 1068, 663, 1071, 1059, 301, 1060, 1077, 712, 698, 0, 0, 0, 0, 0, 0, 0, 1066, 1062, 1058, 1058, 1069, 722, 1061, 1086, 1051, 1053, 555, 1055, 1051, 1061, 1049, 1057, 1064, 1063, 1061, 0, 1272, 1050, 1055, 1041, 1272, 1047, 1052, 1037, 0, 719, 744, 747, 754, 1272, 683, 1038, 1079, 1038, 748, 1041, 1038, 1027, 1041, 1044, 1036, 0, 1022, 0, 1045, 1025, 0, 1037, 1029, 1039, 1027, 663, 0, 1032, 616, 1024, 1037, 1032, 1031, 1020, 0, 1013, 676, 1014, 1017, 1018, 1010, 0, 1015, 0, 1023, 1026, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1021, 1017, 0, 1013, 1003, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1007, 1012, 1008, 713, 1007, 0, 999, 1008, 1002, 999, 994, 1002, 1004, 996, 1004, 990, 1005, 0, 1272, 987, 1272, 1272, 986, 1272, 780, 1272, 762, 1272, 0, 756, 767, 993, 990, 980, 719, 982, 994, 975, 984, 0, 991, 0, 992, 987, 987, 0, 672, 976, 0, 771, 979, 978, 973, 965, 977, 973, 986, 0, 0, 972, 984, 966, 0, 965, 970, 0, 976, 960, 0, 959, 964, 956, 975, 974, 959, 968, 957, 0, 0, 966, 950, 949, 956, 947, 958, 960, 1272, 1272, 1272, 950, 949, 775, 785, 939, 755, 960, 770, 946, 0, 951, 0, 951, 952, 0, 953, 0, 937, 949, 948, 0, 957, 956, 0, 930, 930, 0, 0, 933, 0, 0, 933, 0, 0, 925, 926, 925, 925, 939, 0, 937, 0, 0, 0, 928, 0, 0, 0, 920, 929, 936, 922, 910, 922, 913, 911, 0, 763, 926, 925, 904, 1272, 1272, 923, 919, 914, 0, 906, 0, 916, 0, 912, 0, 0, 913, 918, 895, 893, 862, 851, 0, 855, 783, 854, 842, 785, 784, 0, 0, 0, 0, 0, 0, 1272, 787, 781, 774, 774, 0, 788, 796, 768, 771, 789, 1272, 784, 786, 1272, 790, 781, 791, 769, 758, 766, 793, 795, 779, 774, 770, 768, 758, 768, 753, 670, 689, 673, 1272, 674, 0, 675, 632, 512, 466, 464, 381, 1272, 370, 0, 303, 0, 109, 0, 1272, 1272, 1272, 1272, 834, 839, 844, 849, 854, 859, 864, 869, 874, 877, 882, 887, 890, 893, 898, 903, 908, 913, 54, 916, 918, 922, 927, 932, 935, 938, 943 } ; static yyconst short int yy_def[759] = { 0, 731, 1, 731, 3, 732, 732, 733, 733, 734, 734, 735, 735, 736, 736, 737, 737, 734, 17, 738, 738, 739, 739, 731, 731, 731, 731, 731, 740, 741, 742, 743, 731, 731, 731, 731, 731, 731, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 731, 741, 744, 731, 731, 731, 740, 742, 743, 731, 731, 731, 745, 745, 745, 745, 745, 745, 745, 745, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 746, 731, 747, 748, 749, 731, 731, 731, 731, 731, 750, 751, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 740, 740, 731, 742, 742, 743, 743, 731, 731, 731, 731, 744, 744, 744, 744, 744, 731, 744, 744, 41, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 752, 744, 744, 55, 731, 731, 731, 731, 731, 731, 731, 731, 731, 745, 745, 71, 745, 745, 745, 745, 75, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 753, 746, 746, 731, 746, 746, 747, 747, 748, 748, 749, 731, 749, 731, 731, 754, 750, 751, 755, 731, 731, 731, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 752, 744, 744, 744, 755, 731, 731, 731, 731, 731, 745, 745, 745, 745, 731, 731, 731, 731, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 731, 731, 731, 731, 731, 731, 731, 731, 757, 753, 731, 753, 758, 754, 731, 754, 755, 755, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 731, 731, 745, 745, 745, 731, 731, 731, 731, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 731, 731, 731, 731, 731, 731, 731, 731, 757, 758, 758, 758, 755, 731, 755, 744, 744, 744, 731, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 731, 731, 745, 731, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 731, 731, 731, 731, 731, 731, 758, 731, 758, 731, 744, 731, 744, 731, 731, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 744, 731, 744, 744, 731, 744, 731, 731, 745, 731, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 731, 731, 731, 731, 731, 731, 744, 731, 731, 744, 731, 744, 744, 744, 744, 744, 744, 744, 744, 744, 731, 744, 731, 744, 731, 731, 745, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 731, 731, 731, 731, 744, 744, 744, 744, 744, 744, 731, 744, 731, 731, 731, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 756, 731, 731, 731, 731, 744, 744, 744, 744, 731, 744, 731, 744, 731, 756, 756, 756, 756, 756, 756, 731, 731, 731, 731, 744, 744, 744, 731, 744, 731, 744, 731, 731, 731, 731, 731, 744, 731, 744, 731, 744, 731, 731, 744, 731, 731, 744, 731, 744, 731, 744, 731, 744, 731, 731, 744, 731, 744, 731, 744, 731, 744, 731, 731, 744, 731, 744, 731, 744, 731, 731, 731, 0, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731 } ; static yyconst short int yy_nxt[1328] = { 0, 24, 25, 26, 27, 25, 28, 29, 30, 31, 32, 33, 24, 24, 34, 34, 34, 34, 34, 34, 34, 34, 24, 24, 24, 35, 36, 37, 24, 24, 38, 39, 40, 41, 42, 43, 44, 45, 46, 43, 43, 47, 48, 49, 50, 43, 43, 51, 52, 43, 53, 54, 43, 55, 43, 43, 56, 230, 57, 143, 143, 143, 143, 143, 143, 143, 143, 144, 145, 146, 144, 148, 150, 238, 152, 239, 151, 152, 149, 144, 145, 146, 144, 58, 59, 60, 26, 61, 60, 62, 59, 63, 64, 59, 59, 59, 59, 65, 65, 65, 65, 65, 65, 65, 65, 59, 59, 59, 59, 66, 67, 59, 59, 68, 69, 70, 71, 68, 68, 68, 68, 68, 68, 68, 68, 68, 72, 73, 68, 68, 68, 68, 68, 74, 68, 68, 75, 68, 68, 77, 26, 78, 77, 77, 26, 78, 77, 81, 26, 82, 81, 81, 26, 82, 81, 83, 163, 730, 134, 83, 164, 134, 152, 174, 79, 152, 225, 226, 79, 165, 180, 134, 84, 243, 178, 244, 84, 85, 26, 61, 85, 86, 181, 87, 98, 26, 99, 98, 135, 241, 153, 100, 101, 242, 102, 126, 26, 127, 126, 166, 175, 179, 67, 88, 154, 89, 147, 90, 214, 103, 250, 214, 147, 167, 229, 91, 92, 229, 93, 168, 128, 251, 94, 95, 126, 26, 127, 126, 96, 85, 26, 61, 85, 86, 187, 87, 98, 26, 99, 98, 187, 171, 185, 100, 101, 185, 102, 195, 196, 128, 195, 196, 199, 172, 67, 88, 173, 89, 455, 90, 456, 103, 182, 183, 184, 182, 200, 91, 92, 376, 93, 201, 186, 197, 94, 95, 197, 186, 186, 377, 96, 105, 26, 106, 105, 107, 144, 145, 146, 144, 153, 374, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 186, 154, 375, 110, 144, 145, 146, 144, 111, 105, 26, 106, 105, 107, 203, 207, 204, 208, 327, 328, 108, 109, 109, 109, 109, 109, 109, 109, 109, 109, 109, 463, 205, 209, 110, 144, 145, 146, 144, 111, 113, 26, 114, 113, 115, 212, 116, 464, 212, 729, 117, 113, 26, 114, 113, 115, 213, 116, 264, 213, 232, 117, 265, 232, 390, 118, 143, 143, 143, 143, 143, 143, 143, 143, 391, 186, 118, 119, 26, 61, 119, 144, 145, 146, 144, 227, 186, 120, 227, 121, 121, 121, 121, 121, 121, 121, 121, 216, 217, 218, 216, 728, 67, 144, 145, 146, 144, 122, 123, 144, 145, 146, 144, 217, 218, 186, 228, 228, 228, 228, 228, 228, 228, 228, 217, 218, 727, 219, 124, 129, 130, 26, 131, 130, 129, 129, 129, 129, 129, 129, 129, 129, 195, 195, 402, 195, 195, 144, 145, 146, 144, 403, 129, 129, 129, 133, 129, 129, 129, 130, 26, 131, 130, 129, 129, 129, 129, 129, 129, 129, 129, 134, 186, 186, 134, 232, 233, 234, 232, 225, 226, 129, 129, 129, 133, 129, 129, 155, 155, 155, 155, 155, 155, 155, 155, 155, 155, 144, 145, 146, 144, 135, 267, 233, 234, 267, 726, 156, 270, 271, 272, 270, 725, 157, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 134, 185, 393, 178, 185, 394, 177, 177, 177, 177, 177, 177, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 143, 143, 143, 143, 143, 143, 143, 143, 179, 186, 190, 195, 196, 724, 195, 196, 191, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 197, 225, 226, 197, 331, 332, 194, 194, 194, 194, 194, 194, 505, 212, 186, 186, 212, 329, 217, 218, 329, 228, 228, 228, 228, 228, 228, 228, 228, 506, 186, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 378, 546, 186, 379, 546, 380, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 213, 327, 328, 213, 216, 217, 218, 216, 227, 327, 328, 227, 270, 271, 272, 270, 395, 723, 398, 543, 404, 396, 399, 428, 400, 405, 217, 420, 543, 406, 186, 331, 332, 407, 219, 331, 332, 524, 186, 381, 382, 383, 384, 385, 386, 387, 388, 389, 429, 544, 421, 422, 423, 424, 422, 458, 459, 460, 603, 722, 721, 334, 430, 477, 478, 479, 480, 481, 553, 720, 719, 718, 554, 217, 420, 593, 334, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 421, 217, 420, 521, 522, 523, 521, 428, 569, 497, 422, 423, 424, 422, 593, 526, 570, 594, 498, 585, 420, 499, 668, 588, 500, 421, 588, 546, 421, 593, 546, 588, 528, 694, 588, 334, 521, 522, 523, 521, 586, 588, 668, 421, 588, 694, 529, 696, 701, 694, 696, 717, 701, 637, 701, 716, 715, 714, 669, 713, 587, 421, 712, 711, 709, 605, 708, 707, 637, 589, 705, 703, 695, 700, 697, 702, 699, 706, 686, 710, 698, 710, 693, 692, 704, 691, 690, 689, 704, 76, 76, 76, 76, 76, 80, 80, 80, 80, 80, 59, 59, 59, 59, 59, 97, 97, 97, 97, 97, 104, 104, 104, 104, 104, 112, 112, 112, 112, 112, 125, 125, 125, 125, 125, 132, 132, 132, 132, 132, 136, 688, 136, 136, 136, 138, 138, 138, 139, 687, 139, 139, 139, 141, 685, 141, 141, 141, 147, 147, 147, 187, 187, 187, 215, 215, 215, 215, 215, 220, 684, 220, 220, 220, 222, 683, 222, 222, 222, 224, 224, 224, 224, 224, 231, 231, 263, 263, 326, 326, 326, 326, 326, 330, 330, 330, 330, 330, 333, 682, 333, 333, 333, 371, 371, 371, 418, 418, 418, 419, 419, 419, 419, 419, 681, 680, 679, 678, 677, 676, 675, 674, 673, 672, 671, 670, 667, 666, 665, 664, 663, 662, 661, 660, 659, 658, 657, 656, 655, 654, 653, 652, 651, 650, 649, 648, 647, 646, 645, 644, 643, 642, 641, 640, 639, 638, 636, 635, 634, 633, 632, 631, 630, 629, 628, 627, 626, 625, 624, 623, 622, 621, 620, 619, 618, 617, 616, 615, 614, 613, 612, 611, 610, 370, 609, 608, 607, 606, 604, 602, 601, 600, 599, 598, 597, 596, 595, 592, 591, 590, 584, 583, 582, 581, 580, 579, 578, 577, 576, 575, 574, 573, 572, 571, 568, 567, 566, 565, 564, 563, 562, 561, 560, 559, 558, 557, 556, 555, 552, 551, 550, 549, 548, 547, 545, 542, 541, 540, 539, 538, 537, 536, 535, 534, 533, 532, 531, 530, 527, 526, 525, 520, 519, 518, 517, 516, 515, 514, 513, 512, 511, 510, 509, 508, 507, 504, 503, 502, 501, 486, 485, 484, 483, 482, 466, 465, 462, 461, 457, 454, 453, 414, 452, 451, 450, 449, 448, 447, 446, 445, 444, 443, 442, 441, 440, 439, 438, 437, 436, 435, 434, 433, 432, 431, 427, 426, 425, 334, 417, 416, 415, 414, 413, 412, 411, 410, 409, 408, 401, 397, 392, 373, 372, 370, 369, 368, 367, 366, 365, 364, 363, 362, 334, 361, 360, 359, 358, 357, 356, 355, 354, 353, 352, 351, 350, 349, 348, 347, 346, 345, 344, 343, 342, 341, 340, 339, 338, 337, 336, 335, 334, 223, 223, 221, 221, 325, 324, 323, 322, 321, 320, 319, 318, 317, 280, 279, 278, 277, 276, 275, 274, 273, 269, 268, 266, 262, 261, 260, 259, 258, 257, 256, 255, 254, 253, 252, 249, 248, 247, 246, 245, 240, 237, 236, 235, 142, 142, 140, 140, 137, 137, 223, 221, 211, 210, 206, 202, 198, 174, 193, 192, 188, 142, 140, 137, 176, 170, 169, 162, 161, 160, 159, 158, 142, 140, 137, 731, 23, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731 } ; static yyconst short int yy_chk[1328] = { 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, 2, 750, 2, 34, 34, 34, 34, 34, 34, 34, 34, 37, 37, 37, 37, 38, 39, 150, 70, 150, 39, 70, 38, 67, 67, 67, 67, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 7, 48, 726, 25, 8, 48, 25, 40, 53, 5, 40, 117, 117, 6, 48, 57, 56, 7, 154, 56, 154, 8, 9, 9, 9, 9, 9, 57, 9, 11, 11, 11, 11, 25, 153, 40, 11, 11, 153, 11, 19, 19, 19, 19, 49, 53, 56, 9, 9, 40, 9, 155, 9, 111, 11, 162, 111, 155, 49, 122, 9, 9, 122, 9, 49, 19, 162, 9, 9, 20, 20, 20, 20, 9, 10, 10, 10, 10, 10, 189, 10, 12, 12, 12, 12, 189, 52, 60, 12, 12, 60, 12, 77, 81, 20, 77, 81, 90, 52, 10, 10, 52, 10, 373, 10, 373, 12, 58, 58, 58, 58, 90, 10, 10, 294, 10, 90, 60, 85, 10, 10, 85, 77, 81, 294, 10, 13, 13, 13, 13, 13, 79, 79, 79, 79, 58, 293, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 85, 58, 293, 13, 84, 84, 84, 84, 13, 14, 14, 14, 14, 14, 92, 94, 92, 94, 214, 214, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 378, 92, 94, 14, 103, 103, 103, 103, 14, 15, 15, 15, 15, 15, 98, 15, 378, 98, 724, 15, 16, 16, 16, 16, 16, 105, 16, 175, 105, 186, 16, 175, 186, 298, 15, 65, 65, 65, 65, 65, 65, 65, 65, 298, 98, 16, 17, 17, 17, 17, 110, 110, 110, 110, 119, 105, 17, 119, 17, 17, 17, 17, 17, 17, 17, 17, 113, 113, 113, 113, 722, 17, 118, 118, 118, 118, 17, 17, 128, 128, 128, 128, 215, 215, 119, 121, 121, 121, 121, 121, 121, 121, 121, 218, 218, 720, 113, 17, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 126, 130, 308, 126, 130, 133, 133, 133, 133, 308, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 134, 126, 130, 134, 135, 135, 135, 135, 224, 224, 22, 22, 22, 22, 22, 22, 41, 41, 41, 41, 41, 41, 41, 41, 41, 41, 144, 144, 144, 144, 134, 179, 179, 179, 179, 719, 41, 182, 182, 182, 182, 718, 41, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 178, 185, 302, 178, 185, 302, 55, 55, 55, 55, 55, 55, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 143, 143, 143, 143, 143, 143, 143, 143, 178, 185, 71, 195, 196, 717, 195, 196, 71, 75, 75, 75, 75, 75, 75, 75, 75, 75, 75, 197, 226, 226, 197, 229, 229, 75, 75, 75, 75, 75, 75, 400, 212, 195, 196, 212, 219, 219, 219, 219, 228, 228, 228, 228, 228, 228, 228, 228, 400, 197, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 295, 448, 212, 295, 448, 295, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 213, 326, 326, 213, 216, 216, 216, 216, 227, 328, 328, 227, 270, 270, 270, 270, 304, 716, 306, 445, 309, 304, 306, 340, 306, 309, 329, 329, 543, 309, 213, 330, 330, 309, 216, 332, 332, 424, 227, 296, 296, 296, 296, 296, 296, 296, 296, 296, 340, 445, 329, 334, 334, 334, 334, 375, 375, 375, 543, 715, 713, 424, 340, 382, 382, 382, 382, 382, 456, 711, 710, 709, 456, 419, 419, 531, 334, 381, 381, 381, 381, 381, 381, 381, 381, 381, 381, 395, 395, 395, 395, 395, 395, 395, 395, 395, 395, 419, 420, 420, 421, 421, 421, 421, 428, 500, 395, 422, 422, 422, 422, 591, 526, 500, 531, 395, 523, 523, 395, 643, 527, 395, 420, 527, 546, 421, 593, 546, 588, 428, 683, 588, 422, 521, 521, 521, 521, 526, 589, 668, 523, 589, 692, 428, 685, 689, 694, 696, 708, 700, 591, 701, 707, 706, 705, 643, 704, 526, 521, 703, 702, 699, 546, 698, 697, 593, 527, 695, 691, 683, 688, 685, 689, 687, 696, 668, 700, 686, 701, 682, 681, 692, 680, 672, 671, 694, 732, 732, 732, 732, 732, 733, 733, 733, 733, 733, 734, 734, 734, 734, 734, 735, 735, 735, 735, 735, 736, 736, 736, 736, 736, 737, 737, 737, 737, 737, 738, 738, 738, 738, 738, 739, 739, 739, 739, 739, 740, 670, 740, 740, 740, 741, 741, 741, 742, 669, 742, 742, 742, 743, 667, 743, 743, 743, 744, 744, 744, 745, 745, 745, 746, 746, 746, 746, 746, 747, 665, 747, 747, 747, 748, 664, 748, 748, 748, 749, 749, 749, 749, 749, 751, 751, 752, 752, 753, 753, 753, 753, 753, 754, 754, 754, 754, 754, 755, 663, 755, 755, 755, 756, 756, 756, 757, 757, 757, 758, 758, 758, 758, 758, 662, 661, 660, 657, 655, 653, 651, 650, 649, 646, 645, 644, 641, 640, 639, 638, 637, 636, 635, 634, 630, 626, 624, 623, 622, 621, 620, 617, 614, 611, 610, 608, 607, 605, 604, 603, 601, 599, 598, 596, 594, 592, 590, 587, 586, 582, 581, 580, 579, 578, 577, 576, 573, 572, 571, 570, 569, 568, 567, 566, 564, 563, 561, 560, 558, 557, 556, 553, 552, 551, 550, 549, 548, 547, 544, 541, 540, 539, 537, 535, 534, 533, 532, 530, 529, 528, 519, 516, 513, 512, 511, 510, 509, 508, 507, 506, 505, 504, 503, 501, 499, 498, 497, 486, 485, 483, 482, 465, 464, 462, 460, 459, 458, 457, 455, 453, 452, 451, 450, 449, 447, 444, 443, 442, 441, 439, 438, 436, 434, 433, 432, 431, 430, 429, 427, 426, 425, 417, 416, 415, 413, 412, 411, 408, 407, 406, 405, 404, 403, 402, 401, 399, 398, 397, 396, 394, 393, 392, 391, 390, 380, 379, 377, 376, 374, 372, 369, 367, 365, 363, 362, 361, 360, 359, 358, 357, 356, 354, 352, 351, 350, 349, 348, 347, 346, 345, 344, 343, 342, 341, 338, 337, 335, 333, 324, 323, 322, 321, 320, 319, 318, 317, 311, 310, 307, 305, 299, 292, 291, 280, 279, 278, 277, 276, 274, 273, 269, 268, 267, 266, 265, 262, 261, 260, 259, 258, 256, 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, 237, 232, 223, 222, 221, 220, 211, 210, 209, 208, 207, 206, 205, 204, 203, 201, 200, 199, 198, 193, 192, 190, 188, 181, 180, 176, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 161, 160, 159, 158, 156, 151, 149, 148, 146, 142, 141, 140, 139, 137, 136, 116, 115, 96, 95, 93, 91, 89, 74, 73, 72, 69, 64, 63, 62, 54, 51, 50, 47, 46, 45, 44, 42, 31, 30, 28, 23, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731, 731 } ; 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 "lex.l" #define INITIAL 0 #line 2 "lex.l" /* lex.l: Lex parser for Keyman keyboard source files for kmflcomp compiler */ /* Derived from version written by David Gardner for k_tty */ #include #include #include "compiler.h" #include "yacc.h" void yyerror(char *); int caller=INITIAL,caller0=INITIAL; char qchar; extern int lineno; extern int errcount; int done=0; void yycleanup(void) { yy_delete_buffer(yy_current_buffer); } int yyterminate(void) { yyerror("END\n"); fflush(stderr); return YY_NULL; } #define STOR 1 #define QUOTE 2 #define PARENS 3 #define KEYNAME 4 #define PLIST 5 #define KBDVER 6 #define BITMAP 7 #define LNGCODE 8 #define SKIP 9 #define NAME 10 #line 956 "lex.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 48 "lex.l" #line 1113 "lex.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 >= 732 ) 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] != 1272 ); 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 50 "lex.l" {lineno++;caller=INITIAL;BEGIN(INITIAL);return(TOK_NL);} YY_BREAK case 2: YY_RULE_SETUP #line 51 "lex.l" {/* just ignore carriage returns */}; YY_BREAK case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(STOR): case YY_STATE_EOF(QUOTE): case YY_STATE_EOF(PARENS): case YY_STATE_EOF(KEYNAME): case YY_STATE_EOF(PLIST): case YY_STATE_EOF(KBDVER): case YY_STATE_EOF(BITMAP): case YY_STATE_EOF(LNGCODE): case YY_STATE_EOF(SKIP): case YY_STATE_EOF(NAME): #line 53 "lex.l" { if(done){yyterminate();} else {done=1;lineno++;caller=INITIAL;BEGIN(INITIAL);return(TOK_NL);} } YY_BREAK case 3: YY_RULE_SETUP #line 58 "lex.l" {return TOK_NAME;} YY_BREAK case 4: YY_RULE_SETUP #line 59 "lex.l" {BEGIN(BITMAP);return TOK_BITMAP;} YY_BREAK case 5: YY_RULE_SETUP #line 60 "lex.l" {caller=STOR;BEGIN(STOR);return TOK_HOTKEY;} YY_BREAK case 6: YY_RULE_SETUP #line 61 "lex.l" {BEGIN(KBDVER);return TOK_VERSION;} YY_BREAK case 7: YY_RULE_SETUP #line 62 "lex.l" {BEGIN(LNGCODE);return TOK_LANGUAGE;} YY_BREAK case 8: YY_RULE_SETUP #line 63 "lex.l" {return TOK_LAYOUT;} YY_BREAK case 9: YY_RULE_SETUP #line 64 "lex.l" {return TOK_CAPSOFF;} YY_BREAK case 10: YY_RULE_SETUP #line 65 "lex.l" {return TOK_CAPSON;} YY_BREAK case 11: YY_RULE_SETUP #line 66 "lex.l" {return TOK_CAPSFREE;} YY_BREAK case 12: YY_RULE_SETUP #line 67 "lex.l" {return TOK_COPYRIGHT;} YY_BREAK case 13: YY_RULE_SETUP #line 68 "lex.l" {return TOK_MESSAGE;} YY_BREAK case 14: YY_RULE_SETUP #line 69 "lex.l" {return TOK_MNEMONIC;} YY_BREAK case 15: YY_RULE_SETUP #line 70 "lex.l" {return TOK_ETHNOLOGUE;} YY_BREAK case 16: YY_RULE_SETUP #line 71 "lex.l" {return TOK_AUTHOR;} YY_BREAK case 17: YY_RULE_SETUP #line 72 "lex.l" {return TOK_ANSI;} YY_BREAK case 18: YY_RULE_SETUP #line 73 "lex.l" {return TOK_UNICODE;} YY_BREAK case 19: YY_RULE_SETUP #line 74 "lex.l" {return TOK_ANSI;} YY_BREAK case 20: YY_RULE_SETUP #line 75 "lex.l" {caller=STOR;BEGIN(STOR);return TOK_STORE;} YY_BREAK case 21: YY_RULE_SETUP #line 76 "lex.l" {return TOK_OUTS;} YY_BREAK case 22: YY_RULE_SETUP #line 77 "lex.l" {return TOK_GROUP;} YY_BREAK case 23: YY_RULE_SETUP #line 78 "lex.l" {return TOK_USINGKEYS;} YY_BREAK case 24: YY_RULE_SETUP #line 79 "lex.l" {return TOK_USE;} YY_BREAK case 25: YY_RULE_SETUP #line 80 "lex.l" {return TOK_CONTEXT;} YY_BREAK case 26: YY_RULE_SETUP #line 81 "lex.l" {return TOK_ANY;} YY_BREAK case 27: YY_RULE_SETUP #line 82 "lex.l" {return TOK_BEEP;} YY_BREAK case 28: YY_RULE_SETUP #line 83 "lex.l" {BEGIN(PLIST);return TOK_INDEX;} YY_BREAK case 29: YY_RULE_SETUP #line 84 "lex.l" {return TOK_NOMATCH;} YY_BREAK case 30: YY_RULE_SETUP #line 85 "lex.l" {return TOK_MATCH;} YY_BREAK case 31: YY_RULE_SETUP #line 86 "lex.l" {return TOK_NUL;} YY_BREAK case 32: YY_RULE_SETUP #line 87 "lex.l" {return TOK_DEADKEY;} YY_BREAK case 33: YY_RULE_SETUP #line 88 "lex.l" {return TOK_DEADKEY;} YY_BREAK case 34: YY_RULE_SETUP #line 89 "lex.l" {return TOK_RTN;} YY_BREAK case 35: YY_RULE_SETUP #line 90 "lex.l" {return TOK_CALL; /* not implemented */} YY_BREAK case 36: YY_RULE_SETUP #line 91 "lex.l" {return TOK_SWITCH;/* (obsolete) */} YY_BREAK case 37: YY_RULE_SETUP #line 92 "lex.l" {return TOK_GT;} YY_BREAK case 38: YY_RULE_SETUP #line 93 "lex.l" {return TOK_PLUS;} YY_BREAK case 39: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 94 "lex.l" {BEGIN(NAME);return TOK_DOLLAR;} YY_BREAK case 40: YY_RULE_SETUP #line 97 "lex.l" {/* ignore spaces */} YY_BREAK case 41: YY_RULE_SETUP #line 98 "lex.l" {BEGIN(SKIP);} YY_BREAK case 42: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 99 "lex.l" {BEGIN(PARENS);return(TOK_BRKT);} YY_BREAK case 43: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 100 "lex.l" {qchar='\'';BEGIN(QUOTE);return(TOK_QM);} YY_BREAK case 44: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 101 "lex.l" {qchar='"';BEGIN(QUOTE);return(TOK_QM);} YY_BREAK case 45: YY_RULE_SETUP #line 102 "lex.l" {yylval.number=strtol(yytext,NULL,8);return(TOK_NUMBER);} YY_BREAK case 46: YY_RULE_SETUP #line 103 "lex.l" {yylval.number=atoi(yytext+1);return(TOK_NUMBER);} YY_BREAK case 47: YY_RULE_SETUP #line 104 "lex.l" {yylval.number=strtol(yytext+1,NULL,16);return(TOK_NUMBER);} YY_BREAK case 48: YY_RULE_SETUP #line 105 "lex.l" {yylval.number=strtol(yytext+2,NULL,16);return(TOK_NUMBER);} YY_BREAK case 49: YY_RULE_SETUP #line 106 "lex.l" {BEGIN(KEYNAME);return(TOK_SB);} YY_BREAK case 50: YY_RULE_SETUP #line 107 "lex.l" {return(TOK_BEEP);} YY_BREAK case 51: YY_RULE_SETUP #line 111 "lex.l" {return(TOK_DEADKEY);} YY_BREAK case 52: YY_RULE_SETUP #line 112 "lex.l" {return(TOK_DEADKEY);} YY_BREAK case 53: YY_RULE_SETUP #line 113 "lex.l" {return(TOK_OUTS);} YY_BREAK case 54: YY_RULE_SETUP #line 114 "lex.l" {return(TOK_NUL);} YY_BREAK case 55: YY_RULE_SETUP #line 115 "lex.l" {return(TOK_ERROR);} YY_BREAK case 56: YY_RULE_SETUP #line 119 "lex.l" {/* ignore spaces */} YY_BREAK case 57: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 120 "lex.l" {/* ignore comments */} YY_BREAK case 58: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 121 "lex.l" {/* before either EOL */} YY_BREAK case 59: YY_RULE_SETUP #line 122 "lex.l" {return TOK_QM;} YY_BREAK case 60: YY_RULE_SETUP #line 123 "lex.l" {yylval.number=*yytext;return TOK_CHAR;} YY_BREAK case 61: YY_RULE_SETUP #line 124 "lex.l" {yylval.number=*yytext;return TOK_CHAR;} YY_BREAK case 62: YY_RULE_SETUP #line 125 "lex.l" {BEGIN(SKIP);} YY_BREAK case 63: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 129 "lex.l" {/* ignore anything after a space */} YY_BREAK case 64: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 130 "lex.l" {/* including comments */} YY_BREAK case 65: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 131 "lex.l" {qchar='\'';BEGIN(QUOTE);return(TOK_QM);} YY_BREAK case 66: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 132 "lex.l" {qchar='"';BEGIN(QUOTE);return(TOK_QM);} YY_BREAK case 67: YY_RULE_SETUP #line 133 "lex.l" {yylval.number=*yytext;return TOK_CHAR;} YY_BREAK case 68: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 134 "lex.l" {/* also ignore anything after a comma */} YY_BREAK case 69: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 135 "lex.l" {/* before either EOL */} YY_BREAK case 70: YY_RULE_SETUP #line 139 "lex.l" {/* ignore spaces */} YY_BREAK case 71: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 140 "lex.l" {/* ignore comments */} YY_BREAK case 72: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 141 "lex.l" {/* before either EOL */} YY_BREAK case 73: YY_RULE_SETUP #line 142 "lex.l" {yylval.number=strtoul(yytext,NULL,8);return(TOK_NUMBER);} YY_BREAK case 74: YY_RULE_SETUP #line 143 "lex.l" {yylval.number=strtoul(yytext+1,NULL,10);return(TOK_NUMBER);} YY_BREAK case 75: YY_RULE_SETUP #line 144 "lex.l" {yylval.number=strtoul(yytext+1,NULL,16);return(TOK_NUMBER);} YY_BREAK case 76: YY_RULE_SETUP #line 145 "lex.l" {/* ignore comma separator */} YY_BREAK case 77: YY_RULE_SETUP #line 149 "lex.l" {if (*yytext==qchar) {BEGIN(caller);return(TOK_QM);} else {yylval.number=*yytext;return(TOK_CHAR);} } YY_BREAK case 78: YY_RULE_SETUP #line 157 "lex.l" YY_BREAK case 79: YY_RULE_SETUP #line 158 "lex.l" {BEGIN(caller);return(TOK_BRKT);} YY_BREAK case 80: YY_RULE_SETUP #line 159 "lex.l" {yylval.number=*yytext;return(TOK_CHAR);} YY_BREAK case 81: YY_RULE_SETUP #line 163 "lex.l" {/* ignore */} YY_BREAK case 82: YY_RULE_SETUP #line 164 "lex.l" { return(TOK_COMMA);} YY_BREAK case 83: YY_RULE_SETUP #line 165 "lex.l" { return(TOK_BRKT);} YY_BREAK case 84: YY_RULE_SETUP #line 166 "lex.l" {BEGIN(caller);return(TOK_BRKT);} YY_BREAK case 85: YY_RULE_SETUP #line 167 "lex.l" {yylval.number=*yytext;return(TOK_CHAR);} YY_BREAK case 86: YY_RULE_SETUP #line 171 "lex.l" {yylval.number=*yytext;return(TOK_CHAR);} YY_BREAK case 87: YY_RULE_SETUP #line 172 "lex.l" {BEGIN(caller);} YY_BREAK case 88: YY_RULE_SETUP #line 176 "lex.l" {/* ignore */} YY_BREAK case 89: YY_RULE_SETUP #line 177 "lex.l" {yylval.number=KS_LSHIFT;return(TOK_SHIFT);} YY_BREAK case 90: YY_RULE_SETUP #line 178 "lex.l" {yylval.number=KS_CAPS;return(TOK_SHIFT);} YY_BREAK case 91: YY_RULE_SETUP #line 179 "lex.l" {yylval.number=KS_LCTRL;return(TOK_SHIFT);} YY_BREAK case 92: YY_RULE_SETUP #line 180 "lex.l" {yylval.number=KS_LALT;return(TOK_SHIFT);} YY_BREAK case 93: YY_RULE_SETUP #line 181 "lex.l" {yylval.number=KS_RSHIFT;return(TOK_SHIFT);} YY_BREAK case 94: YY_RULE_SETUP #line 182 "lex.l" {yylval.number=KS_NCAPS;return(TOK_SHIFT);} YY_BREAK case 95: YY_RULE_SETUP #line 183 "lex.l" {yylval.number=KS_RCTRL;return(TOK_SHIFT);} YY_BREAK case 96: YY_RULE_SETUP #line 184 "lex.l" {yylval.number=KS_RALT;return(TOK_SHIFT);} YY_BREAK case 97: YY_RULE_SETUP #line 185 "lex.l" {yylval.number=KS_SHIFT;return(TOK_SHIFT);} YY_BREAK case 98: YY_RULE_SETUP #line 186 "lex.l" {yylval.number=KS_CTRL;return(TOK_SHIFT);} YY_BREAK case 99: YY_RULE_SETUP #line 187 "lex.l" {yylval.number=KS_ALT;return(TOK_SHIFT);} YY_BREAK case 100: YY_RULE_SETUP #line 189 "lex.l" {yylval.number=0x20;return(TOK_RAWKEY);} YY_BREAK case 101: YY_RULE_SETUP #line 190 "lex.l" {yylval.number=0x27;return(TOK_RAWKEY);} YY_BREAK case 102: YY_RULE_SETUP #line 191 "lex.l" {yylval.number=0x30;return(TOK_RAWKEY);} YY_BREAK case 103: YY_RULE_SETUP #line 192 "lex.l" {yylval.number=0x31;return(TOK_RAWKEY);} YY_BREAK case 104: YY_RULE_SETUP #line 193 "lex.l" {yylval.number=0x32;return(TOK_RAWKEY);} YY_BREAK case 105: YY_RULE_SETUP #line 194 "lex.l" {yylval.number=0x33;return(TOK_RAWKEY);} YY_BREAK case 106: YY_RULE_SETUP #line 195 "lex.l" {yylval.number=0x34;return(TOK_RAWKEY);} YY_BREAK case 107: YY_RULE_SETUP #line 196 "lex.l" {yylval.number=0x35;return(TOK_RAWKEY);} YY_BREAK case 108: YY_RULE_SETUP #line 197 "lex.l" {yylval.number=0x36;return(TOK_RAWKEY);} YY_BREAK case 109: YY_RULE_SETUP #line 198 "lex.l" {yylval.number=0x37;return(TOK_RAWKEY);} YY_BREAK case 110: YY_RULE_SETUP #line 199 "lex.l" {yylval.number=0x38;return(TOK_RAWKEY);} YY_BREAK case 111: YY_RULE_SETUP #line 200 "lex.l" {yylval.number=0x39;return(TOK_RAWKEY);} YY_BREAK case 112: YY_RULE_SETUP #line 201 "lex.l" {yylval.number=0x41;return(TOK_RAWKEY);} YY_BREAK case 113: YY_RULE_SETUP #line 202 "lex.l" {yylval.number=0x42;return(TOK_RAWKEY);} YY_BREAK case 114: YY_RULE_SETUP #line 203 "lex.l" {yylval.number=0x43;return(TOK_RAWKEY);} YY_BREAK case 115: YY_RULE_SETUP #line 204 "lex.l" {yylval.number=0x44;return(TOK_RAWKEY);} YY_BREAK case 116: YY_RULE_SETUP #line 205 "lex.l" {yylval.number=0x45;return(TOK_RAWKEY);} YY_BREAK case 117: YY_RULE_SETUP #line 206 "lex.l" {yylval.number=0x46;return(TOK_RAWKEY);} YY_BREAK case 118: YY_RULE_SETUP #line 207 "lex.l" {yylval.number=0x47;return(TOK_RAWKEY);} YY_BREAK case 119: YY_RULE_SETUP #line 208 "lex.l" {yylval.number=0x48;return(TOK_RAWKEY);} YY_BREAK case 120: YY_RULE_SETUP #line 209 "lex.l" {yylval.number=0x49;return(TOK_RAWKEY);} YY_BREAK case 121: YY_RULE_SETUP #line 210 "lex.l" {yylval.number=0x4a;return(TOK_RAWKEY);} YY_BREAK case 122: YY_RULE_SETUP #line 211 "lex.l" {yylval.number=0x4b;return(TOK_RAWKEY);} YY_BREAK case 123: YY_RULE_SETUP #line 212 "lex.l" {yylval.number=0x4c;return(TOK_RAWKEY);} YY_BREAK case 124: YY_RULE_SETUP #line 213 "lex.l" {yylval.number=0x4d;return(TOK_RAWKEY);} YY_BREAK case 125: YY_RULE_SETUP #line 214 "lex.l" {yylval.number=0x4e;return(TOK_RAWKEY);} YY_BREAK case 126: YY_RULE_SETUP #line 215 "lex.l" {yylval.number=0x4f;return(TOK_RAWKEY);} YY_BREAK case 127: YY_RULE_SETUP #line 216 "lex.l" {yylval.number=0x50;return(TOK_RAWKEY);} YY_BREAK case 128: YY_RULE_SETUP #line 217 "lex.l" {yylval.number=0x51;return(TOK_RAWKEY);} YY_BREAK case 129: YY_RULE_SETUP #line 218 "lex.l" {yylval.number=0x52;return(TOK_RAWKEY);} YY_BREAK case 130: YY_RULE_SETUP #line 219 "lex.l" {yylval.number=0x53;return(TOK_RAWKEY);} YY_BREAK case 131: YY_RULE_SETUP #line 220 "lex.l" {yylval.number=0x54;return(TOK_RAWKEY);} YY_BREAK case 132: YY_RULE_SETUP #line 221 "lex.l" {yylval.number=0x55;return(TOK_RAWKEY);} YY_BREAK case 133: YY_RULE_SETUP #line 222 "lex.l" {yylval.number=0x56;return(TOK_RAWKEY);} YY_BREAK case 134: YY_RULE_SETUP #line 223 "lex.l" {yylval.number=0x57;return(TOK_RAWKEY);} YY_BREAK case 135: YY_RULE_SETUP #line 224 "lex.l" {yylval.number=0x58;return(TOK_RAWKEY);} YY_BREAK case 136: YY_RULE_SETUP #line 225 "lex.l" {yylval.number=0x59;return(TOK_RAWKEY);} YY_BREAK case 137: YY_RULE_SETUP #line 226 "lex.l" {yylval.number=0x5a;return(TOK_RAWKEY);} YY_BREAK case 138: YY_RULE_SETUP #line 227 "lex.l" {yylval.number=0x60;return(TOK_RAWKEY);} YY_BREAK case 139: YY_RULE_SETUP #line 228 "lex.l" {yylval.number=0x2c;return(TOK_RAWKEY);} YY_BREAK case 140: YY_RULE_SETUP #line 229 "lex.l" {yylval.number=0x2d;return(TOK_RAWKEY);} YY_BREAK case 141: YY_RULE_SETUP #line 230 "lex.l" {yylval.number=0x2e;return(TOK_RAWKEY);} YY_BREAK case 142: YY_RULE_SETUP #line 231 "lex.l" {yylval.number=0x2f;return(TOK_RAWKEY);} YY_BREAK case 143: YY_RULE_SETUP #line 232 "lex.l" {yylval.number=0x3a;return(TOK_RAWKEY);} YY_BREAK case 144: YY_RULE_SETUP #line 233 "lex.l" {yylval.number=0x3d;return(TOK_RAWKEY);} YY_BREAK case 145: YY_RULE_SETUP #line 234 "lex.l" {yylval.number=0x5b;return(TOK_RAWKEY);} YY_BREAK case 146: YY_RULE_SETUP #line 235 "lex.l" {yylval.number=0x5c;return(TOK_RAWKEY);} YY_BREAK case 147: YY_RULE_SETUP #line 236 "lex.l" {yylval.number=0x5d;return(TOK_RAWKEY);} YY_BREAK case 148: YY_RULE_SETUP #line 237 "lex.l" {yylval.number=0xff08;return(TOK_RAWKEY);} YY_BREAK case 149: YY_RULE_SETUP #line 238 "lex.l" {yylval.number=0xff09;return(TOK_RAWKEY);} YY_BREAK case 150: YY_RULE_SETUP #line 239 "lex.l" {yylval.number=0xff0d;return(TOK_RAWKEY);} YY_BREAK case 151: YY_RULE_SETUP #line 240 "lex.l" {yylval.number=0xff13;return(TOK_RAWKEY);} YY_BREAK case 152: YY_RULE_SETUP #line 241 "lex.l" {yylval.number=0xff14;return(TOK_RAWKEY);} YY_BREAK case 153: YY_RULE_SETUP #line 242 "lex.l" {yylval.number=0xff1b;return(TOK_RAWKEY);} YY_BREAK case 154: YY_RULE_SETUP #line 243 "lex.l" {yylval.number=0xff50;return(TOK_RAWKEY);} YY_BREAK case 155: YY_RULE_SETUP #line 244 "lex.l" {yylval.number=0xff51;return(TOK_RAWKEY);} YY_BREAK case 156: YY_RULE_SETUP #line 245 "lex.l" {yylval.number=0xff52;return(TOK_RAWKEY);} YY_BREAK case 157: YY_RULE_SETUP #line 246 "lex.l" {yylval.number=0xff53;return(TOK_RAWKEY);} YY_BREAK case 158: YY_RULE_SETUP #line 247 "lex.l" {yylval.number=0xff54;return(TOK_RAWKEY);} YY_BREAK case 159: YY_RULE_SETUP #line 248 "lex.l" {yylval.number=0xff55;return(TOK_RAWKEY);} YY_BREAK case 160: YY_RULE_SETUP #line 249 "lex.l" {yylval.number=0xff56;return(TOK_RAWKEY);} YY_BREAK case 161: YY_RULE_SETUP #line 250 "lex.l" {yylval.number=0xff57;return(TOK_RAWKEY);} YY_BREAK case 162: YY_RULE_SETUP #line 251 "lex.l" {yylval.number=0xff63;return(TOK_RAWKEY);} YY_BREAK case 163: YY_RULE_SETUP #line 252 "lex.l" {yylval.number=0xff7f;return(TOK_RAWKEY);} YY_BREAK case 164: YY_RULE_SETUP #line 253 "lex.l" {yylval.number=0xffaa;return(TOK_RAWKEY);} YY_BREAK case 165: YY_RULE_SETUP #line 254 "lex.l" {yylval.number=0xffab;return(TOK_RAWKEY);} YY_BREAK case 166: YY_RULE_SETUP #line 255 "lex.l" {yylval.number=0xffad;return(TOK_RAWKEY);} YY_BREAK case 167: YY_RULE_SETUP #line 256 "lex.l" {yylval.number=0xffae;return(TOK_RAWKEY);} YY_BREAK case 168: YY_RULE_SETUP #line 257 "lex.l" {yylval.number=0xffaf;return(TOK_RAWKEY);} YY_BREAK case 169: YY_RULE_SETUP #line 258 "lex.l" {yylval.number=0xffb0;return(TOK_RAWKEY);} YY_BREAK case 170: YY_RULE_SETUP #line 259 "lex.l" {yylval.number=0xffb1;return(TOK_RAWKEY);} YY_BREAK case 171: YY_RULE_SETUP #line 260 "lex.l" {yylval.number=0xffb2;return(TOK_RAWKEY);} YY_BREAK case 172: YY_RULE_SETUP #line 261 "lex.l" {yylval.number=0xffb3;return(TOK_RAWKEY);} YY_BREAK case 173: YY_RULE_SETUP #line 262 "lex.l" {yylval.number=0xffb4;return(TOK_RAWKEY);} YY_BREAK case 174: YY_RULE_SETUP #line 263 "lex.l" {yylval.number=0xffb5;return(TOK_RAWKEY);} YY_BREAK case 175: YY_RULE_SETUP #line 264 "lex.l" {yylval.number=0xffb6;return(TOK_RAWKEY);} YY_BREAK case 176: YY_RULE_SETUP #line 265 "lex.l" {yylval.number=0xffb7;return(TOK_RAWKEY);} YY_BREAK case 177: YY_RULE_SETUP #line 266 "lex.l" {yylval.number=0xffb8;return(TOK_RAWKEY);} YY_BREAK case 178: YY_RULE_SETUP #line 267 "lex.l" {yylval.number=0xffb9;return(TOK_RAWKEY);} YY_BREAK case 179: YY_RULE_SETUP #line 268 "lex.l" {yylval.number=0xffbe;return(TOK_RAWKEY);} YY_BREAK case 180: YY_RULE_SETUP #line 269 "lex.l" {yylval.number=0xffbf;return(TOK_RAWKEY);} YY_BREAK case 181: YY_RULE_SETUP #line 270 "lex.l" {yylval.number=0xffc0;return(TOK_RAWKEY);} YY_BREAK case 182: YY_RULE_SETUP #line 271 "lex.l" {yylval.number=0xffc1;return(TOK_RAWKEY);} YY_BREAK case 183: YY_RULE_SETUP #line 272 "lex.l" {yylval.number=0xffc2;return(TOK_RAWKEY);} YY_BREAK case 184: YY_RULE_SETUP #line 273 "lex.l" {yylval.number=0xffc3;return(TOK_RAWKEY);} YY_BREAK case 185: YY_RULE_SETUP #line 274 "lex.l" {yylval.number=0xffc4;return(TOK_RAWKEY);} YY_BREAK case 186: YY_RULE_SETUP #line 275 "lex.l" {yylval.number=0xffc5;return(TOK_RAWKEY);} YY_BREAK case 187: YY_RULE_SETUP #line 276 "lex.l" {yylval.number=0xffc6;return(TOK_RAWKEY);} YY_BREAK case 188: YY_RULE_SETUP #line 277 "lex.l" {yylval.number=0xffc7;return(TOK_RAWKEY);} YY_BREAK case 189: YY_RULE_SETUP #line 278 "lex.l" {yylval.number=0xffc8;return(TOK_RAWKEY);} YY_BREAK case 190: YY_RULE_SETUP #line 279 "lex.l" {yylval.number=0xffc9;return(TOK_RAWKEY);} YY_BREAK case 191: YY_RULE_SETUP #line 280 "lex.l" {yylval.number=0xffca;return(TOK_RAWKEY);} YY_BREAK case 192: YY_RULE_SETUP #line 281 "lex.l" {yylval.number=0xffcb;return(TOK_RAWKEY);} YY_BREAK case 193: YY_RULE_SETUP #line 282 "lex.l" {yylval.number=0xffcc;return(TOK_RAWKEY);} YY_BREAK case 194: YY_RULE_SETUP #line 283 "lex.l" {yylval.number=0xffcd;return(TOK_RAWKEY);} YY_BREAK case 195: YY_RULE_SETUP #line 284 "lex.l" {yylval.number=0xffce;return(TOK_RAWKEY);} YY_BREAK case 196: YY_RULE_SETUP #line 285 "lex.l" {yylval.number=0xffcf;return(TOK_RAWKEY);} YY_BREAK case 197: YY_RULE_SETUP #line 286 "lex.l" {yylval.number=0xffd0;return(TOK_RAWKEY);} YY_BREAK case 198: YY_RULE_SETUP #line 287 "lex.l" {yylval.number=0xffd1;return(TOK_RAWKEY);} YY_BREAK case 199: YY_RULE_SETUP #line 288 "lex.l" {yylval.number=0xffd2;return(TOK_RAWKEY);} YY_BREAK case 200: YY_RULE_SETUP #line 289 "lex.l" {yylval.number=0xffd3;return(TOK_RAWKEY);} YY_BREAK case 201: YY_RULE_SETUP #line 290 "lex.l" {yylval.number=0xffd4;return(TOK_RAWKEY);} YY_BREAK case 202: YY_RULE_SETUP #line 291 "lex.l" {yylval.number=0xffd5;return(TOK_RAWKEY);} YY_BREAK case 203: YY_RULE_SETUP #line 292 "lex.l" {yylval.number=0xffe1;return(TOK_RAWKEY);} YY_BREAK case 204: YY_RULE_SETUP #line 293 "lex.l" {yylval.number=0xffe3;return(TOK_RAWKEY);} YY_BREAK case 205: YY_RULE_SETUP #line 294 "lex.l" {yylval.number=0xffe5;return(TOK_RAWKEY);} YY_BREAK case 206: YY_RULE_SETUP #line 295 "lex.l" {yylval.number=0xffe9;return(TOK_RAWKEY);} YY_BREAK case 207: YY_RULE_SETUP #line 296 "lex.l" {yylval.number=0xffff;return(TOK_RAWKEY);} YY_BREAK case 208: YY_RULE_SETUP #line 297 "lex.l" {yylval.number=0x3c;return(TOK_RAWKEY); /* on German kbds only!*/} YY_BREAK case 209: YY_RULE_SETUP #line 299 "lex.l" {yylval.number=text_to_keysym(yytext); if (yylval.number == -1) yyerror("unrecognised raw key"); else return(TOK_XKEYSYM);} YY_BREAK case 210: YY_RULE_SETUP #line 300 "lex.l" { yyerror("unrecognised raw key");} YY_BREAK case 211: YY_RULE_SETUP #line 301 "lex.l" {caller0=caller;caller=KEYNAME;qchar='\'';BEGIN(QUOTE);return(TOK_QM);} YY_BREAK case 212: YY_RULE_SETUP #line 302 "lex.l" {caller0=caller;caller=KEYNAME;qchar='\"';BEGIN(QUOTE);return(TOK_QM);} YY_BREAK case 213: YY_RULE_SETUP #line 304 "lex.l" { if(caller==KEYNAME) caller=caller0; BEGIN(caller);return(TOK_SB); } YY_BREAK case 214: YY_RULE_SETUP #line 310 "lex.l" {lineno++; /* Join lines */} YY_BREAK case 215: YY_RULE_SETUP #line 311 "lex.l" {lineno++; /* Join lines */} YY_BREAK case 216: YY_RULE_SETUP #line 312 "lex.l" {lineno++; /* Join lines */} YY_BREAK case 217: YY_RULE_SETUP #line 313 "lex.l" {lineno++; /* Join lines */} YY_BREAK case 218: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 315 "lex.l" {/* ignore, use both /\r and /\n, not to work $ */} YY_BREAK case 219: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 316 "lex.l" {/* with either CR or CR/LF line ending */} YY_BREAK case 220: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 317 "lex.l" {/* ignore */} YY_BREAK case 221: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 318 "lex.l" {/* ignore */} YY_BREAK case 222: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 319 "lex.l" {/* ignore */} YY_BREAK case 223: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 320 "lex.l" {/* ignore */} YY_BREAK case 224: YY_RULE_SETUP #line 322 "lex.l" {BEGIN(SKIP);} YY_BREAK case 225: YY_RULE_SETUP #line 324 "lex.l" {BEGIN(SKIP); /*Mac compatibility line: must treat entire line as a comment*/} YY_BREAK case 226: YY_RULE_SETUP #line 325 "lex.l" {/* Keyman/Mac compatibility - just drop marker */} YY_BREAK case 227: YY_RULE_SETUP #line 328 "lex.l" {/* ignore everything until nl or EOF */} YY_BREAK case 228: YY_RULE_SETUP #line 331 "lex.l" {fprintf(stderr,"Line %d: Unmatched closing parenthesis\n",lineno);return(TOK_BRKT);} YY_BREAK case 229: YY_RULE_SETUP #line 332 "lex.l" {yylval.number=yytext[0];fprintf(stderr,"Line %d: Unrecognized keyword '%s'\n", (int)lineno, yytext);errcount++;return(TOK_ERROR);} YY_BREAK case 230: YY_RULE_SETUP #line 334 "lex.l" {yylval.number=yytext[0];fprintf(stderr,"Line %d: Unexpected char (%d) `%c'\n", (int)lineno, (int) yytext[0],(char) yytext[0]);errcount++;return(TOK_CHAR);} YY_BREAK case 231: YY_RULE_SETUP #line 336 "lex.l" ECHO; YY_BREAK #line 2460 "lex.c" 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 >= 732 ) 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 >= 732 ) 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 == 731); 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 336 "lex.l"