#line 2 "alpha.yy.c" /* A lexical scanner generated by flex */ /* Scanner skeleton version: * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.85 95/04/24 10:48:47 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_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 *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 30 #define YY_END_OF_BUFFER 31 static yyconst short int yy_accept[300] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 29, 1, 1, 9, 29, 29, 29, 29, 29, 29, 29, 6, 2, 6, 6, 10, 10, 29, 30, 1, 9, 8, 9, 0, 0, 0, 0, 3, 7, 0, 0, 0, 0, 0, 0, 0, 5, 4, 0, 9, 0, 8, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 22, 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 26, 0, 0, 0, 0, 18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 16, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 13, 0, 23, 0, 0, 0, 0, 0, 0, 0, 23, 0, 0, 0, 23, 0, 0, 0, 25, 0, 0, 0, 12, 0, 11, 0, 0, 0, 0, 23, 0, 0, 0, 25, 0, 0 } ; static yyconst int yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 6, 1, 7, 1, 1, 1, 8, 9, 10, 1, 11, 1, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 16, 1, 11, 1, 1, 1, 7, 7, 17, 7, 7, 7, 7, 7, 7, 18, 7, 19, 7, 20, 7, 7, 7, 7, 21, 7, 7, 7, 7, 7, 7, 7, 22, 23, 24, 1, 25, 1, 26, 27, 28, 7, 29, 30, 31, 32, 33, 7, 7, 34, 35, 36, 37, 38, 7, 39, 40, 41, 42, 43, 44, 7, 7, 7, 45, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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[46] = { 0, 1, 1, 2, 3, 2, 1, 4, 5, 1, 6, 7, 8, 1, 9, 1, 10, 4, 4, 4, 4, 4, 11, 1, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1 } ; static yyconst short int yy_base[355] = { 0, 0, 0, 42, 43, 45, 46, 0, 0, 0, 0, 571, 1830, 57, 61, 45, 68, 57, 71, 82, 111, 67, 52, 1830, 1830, 552, 539, 1830, 1830, 495, 1830, 95, 72, 1830, 115, 98, 82, 0, 498, 1830, 0, 95, 96, 97, 105, 113, 120, 115, 1830, 1830, 463, 125, 154, 85, 175, 158, 468, 161, 0, 142, 144, 164, 158, 159, 160, 163, 457, 203, 224, 244, 469, 450, 1830, 426, 207, 210, 266, 213, 191, 234, 196, 225, 244, 256, 419, 435, 288, 391, 390, 375, 294, 304, 333, 240, 179, 376, 221, 254, 274, 284, 353, 318, 69, 1830, 348, 369, 1830, 357, 366, 385, 409, 360, 1830, 452, 287, 472, 492, 343, 194, 277, 368, 362, 325, 211, 424, 338, 310, 288, 284, 512, 532, 278, 270, 240, 300, 239, 435, 364, 401, 431, 413, 224, 337, 390, 245, 468, 486, 542, 506, 232, 553, 185, 180, 171, 482, 472, 556, 1830, 559, 418, 151, 413, 439, 451, 565, 452, 457, 571, 587, 590, 469, 1830, 601, 158, 290, 522, 346, 135, 494, 610, 616, 508, 519, 520, 633, 637, 649, 653, 664, 676, 528, 680, 143, 136, 605, 723, 556, 120, 529, 540, 687, 698, 702, 745, 749, 760, 764, 775, 779, 793, 797, 808, 569, 573, 130, 812, 823, 827, 830, 120, 873, 893, 96, 1830, 582, 80, 841, 845, 857, 861, 907, 918, 922, 614, 618, 620, 933, 638, 660, 937, 951, 662, 68, 61, 647, 713, 686, 940, 955, 700, 709, 710, 966, 970, 984, 988, 999, 1003, 720, 725, 56, 889, 1014, 1018, 1830, 727, 731, 1022, 1036, 1047, 1058, 1069, 1073, 1084, 1095, 1106, 1117, 1121, 1132, 747, 762, 809, 41, 846, 869, 1143, 1830, 1151, 1830, 1165, 1176, 1180, 1191, 1195, 1209, 1213, 870, 1830, 875, 1830, 1258, 1269, 1280, 1291, 1301, 1311, 44, 1322, 1333, 1343, 1353, 1362, 1373, 1384, 1394, 1398, 1408, 1418, 1428, 1438, 1448, 1459, 1470, 1480, 1491, 1502, 1513, 1524, 1535, 1546, 1557, 1568, 1579, 1590, 1601, 1611, 1622, 1633, 1644, 1655, 1665, 1676, 1687, 1698, 1709, 1720, 1731, 1742, 1753, 1764, 1775, 1786, 1797, 1808, 1818 } ; static yyconst short int yy_def[355] = { 0, 299, 1, 300, 300, 301, 301, 302, 302, 302, 302, 299, 299, 299, 299, 303, 304, 299, 304, 304, 304, 20, 20, 299, 299, 299, 299, 299, 299, 299, 299, 299, 303, 299, 303, 305, 20, 306, 307, 299, 308, 20, 20, 20, 20, 20, 20, 20, 299, 299, 299, 303, 299, 303, 309, 310, 307, 307, 308, 20, 20, 20, 20, 20, 20, 20, 299, 303, 299, 309, 311, 312, 299, 313, 314, 310, 315, 20, 20, 316, 20, 20, 20, 20, 299, 311, 299, 312, 312, 313, 313, 317, 318, 319, 20, 320, 20, 20, 20, 20, 299, 299, 299, 299, 313, 321, 299, 299, 317, 307, 318, 322, 299, 323, 20, 299, 320, 324, 20, 20, 20, 20, 299, 325, 326, 321, 321, 322, 322, 299, 323, 327, 328, 329, 20, 324, 324, 20, 20, 299, 20, 299, 325, 330, 331, 326, 326, 326, 326, 327, 299, 328, 328, 329, 329, 20, 324, 299, 20, 20, 299, 325, 325, 330, 331, 325, 332, 333, 326, 299, 299, 299, 329, 334, 20, 335, 20, 299, 325, 299, 325, 332, 325, 325, 333, 333, 325, 336, 337, 333, 338, 339, 334, 334, 20, 340, 20, 299, 331, 325, 341, 333, 333, 333, 325, 336, 337, 333, 333, 333, 341, 333, 338, 342, 343, 339, 339, 339, 339, 299, 299, 340, 344, 299, 20, 299, 333, 333, 325, 341, 333, 333, 326, 338, 338, 342, 343, 338, 345, 346, 339, 347, 344, 344, 20, 299, 338, 299, 338, 345, 338, 338, 346, 346, 338, 348, 349, 346, 347, 350, 351, 20, 20, 299, 299, 343, 338, 352, 346, 346, 346, 338, 348, 349, 346, 346, 346, 352, 346, 347, 347, 350, 351, 347, 353, 354, 299, 354, 299, 346, 346, 338, 352, 346, 346, 339, 347, 299, 347, 0, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299 } ; static yyconst short int yy_nxt[1876] = { 0, 12, 13, 13, 14, 13, 15, 16, 12, 12, 12, 12, 12, 17, 12, 12, 12, 16, 16, 16, 16, 16, 12, 12, 12, 16, 16, 16, 16, 18, 16, 16, 16, 19, 16, 16, 20, 16, 21, 16, 16, 16, 16, 22, 16, 12, 24, 24, 55, 27, 27, 33, 25, 25, 284, 26, 26, 28, 28, 31, 31, 31, 31, 31, 31, 31, 31, 39, 34, 284, 40, 35, 35, 35, 35, 35, 35, 243, 33, 123, 37, 47, 124, 37, 243, 35, 35, 35, 29, 29, 38, 33, 36, 38, 37, 34, 36, 31, 31, 31, 31, 35, 35, 35, 38, 41, 45, 36, 34, 46, 245, 36, 243, 42, 35, 35, 35, 51, 51, 52, 38, 53, 36, 37, 36, 36, 36, 51, 51, 52, 241, 33, 60, 38, 36, 59, 36, 36, 34, 62, 43, 61, 36, 238, 36, 36, 63, 64, 67, 36, 225, 44, 193, 36, 65, 36, 52, 52, 52, 193, 36, 74, 74, 74, 76, 76, 76, 79, 79, 79, 37, 77, 197, 36, 193, 80, 177, 32, 68, 68, 68, 78, 36, 70, 36, 57, 71, 36, 36, 36, 83, 72, 36, 36, 82, 154, 152, 73, 36, 36, 36, 152, 81, 36, 36, 51, 51, 52, 114, 53, 74, 74, 74, 74, 74, 74, 93, 93, 93, 36, 36, 143, 37, 36, 144, 36, 34, 68, 68, 68, 94, 36, 70, 96, 137, 71, 36, 79, 79, 79, 72, 150, 36, 93, 93, 93, 73, 68, 68, 68, 36, 97, 70, 36, 36, 71, 38, 118, 166, 160, 72, 36, 38, 136, 154, 36, 73, 56, 56, 76, 76, 76, 56, 36, 56, 56, 56, 98, 56, 56, 56, 56, 99, 36, 36, 36, 152, 150, 56, 56, 57, 101, 101, 101, 36, 119, 36, 104, 104, 104, 128, 102, 120, 36, 128, 105, 138, 107, 107, 107, 106, 56, 70, 36, 36, 71, 36, 36, 90, 36, 72, 101, 101, 101, 36, 121, 126, 36, 134, 36, 194, 102, 155, 103, 56, 56, 109, 109, 109, 56, 36, 56, 56, 56, 111, 56, 56, 161, 56, 112, 144, 104, 104, 104, 126, 56, 56, 57, 141, 105, 107, 107, 107, 103, 106, 70, 196, 136, 71, 107, 107, 107, 90, 72, 70, 36, 128, 71, 56, 115, 115, 115, 72, 139, 70, 126, 36, 71, 109, 109, 109, 36, 72, 36, 122, 140, 111, 36, 117, 90, 163, 112, 36, 164, 36, 158, 88, 88, 36, 57, 56, 56, 109, 109, 109, 56, 139, 56, 56, 56, 111, 56, 56, 178, 56, 112, 179, 146, 101, 146, 36, 56, 56, 57, 74, 74, 74, 147, 156, 156, 156, 36, 36, 176, 86, 100, 105, 36, 159, 161, 90, 157, 144, 36, 56, 129, 129, 129, 36, 136, 131, 163, 161, 132, 164, 144, 88, 161, 72, 148, 166, 146, 101, 146, 133, 115, 115, 115, 86, 190, 70, 147, 191, 71, 84, 172, 172, 172, 72, 146, 101, 146, 57, 173, 117, 115, 115, 115, 106, 147, 70, 36, 66, 71, 161, 174, 154, 164, 72, 146, 101, 146, 36, 148, 117, 129, 129, 129, 143, 147, 131, 200, 57, 132, 50, 175, 175, 175, 72, 161, 161, 148, 144, 144, 133, 129, 129, 129, 213, 123, 131, 214, 200, 132, 38, 146, 101, 146, 72, 49, 161, 148, 167, 144, 133, 168, 169, 169, 169, 156, 156, 156, 175, 175, 175, 48, 170, 105, 180, 180, 180, 299, 157, 299, 185, 186, 185, 224, 181, 233, 136, 187, 214, 235, 188, 36, 236, 148, 36, 299, 146, 101, 146, 169, 169, 169, 36, 167, 171, 36, 168, 244, 299, 170, 172, 172, 172, 299, 299, 299, 182, 36, 173, 101, 101, 101, 189, 106, 219, 186, 186, 186, 36, 102, 246, 154, 161, 247, 233, 198, 235, 214, 148, 236, 36, 171, 185, 186, 185, 299, 185, 186, 185, 201, 299, 36, 188, 201, 233, 299, 188, 214, 186, 186, 186, 103, 203, 204, 203, 161, 299, 199, 198, 205, 261, 262, 206, 209, 180, 209, 233, 299, 259, 238, 167, 260, 36, 210, 189, 185, 186, 185, 189, 216, 169, 216, 201, 36, 299, 188, 227, 228, 227, 217, 199, 299, 233, 201, 207, 236, 229, 185, 186, 185, 299, 185, 186, 185, 231, 211, 213, 232, 201, 267, 299, 188, 263, 263, 263, 233, 233, 189, 214, 214, 299, 218, 220, 220, 220, 264, 279, 70, 230, 260, 222, 281, 299, 190, 282, 223, 267, 233, 299, 189, 214, 73, 299, 189, 185, 186, 185, 299, 186, 186, 186, 201, 299, 296, 188, 161, 297, 299, 198, 203, 204, 203, 299, 209, 180, 209, 205, 299, 279, 206, 167, 260, 299, 210, 185, 186, 185, 299, 185, 186, 185, 201, 299, 299, 188, 201, 189, 299, 188, 299, 199, 299, 185, 186, 185, 299, 227, 228, 227, 201, 299, 207, 188, 187, 299, 211, 210, 185, 186, 185, 299, 216, 169, 216, 201, 281, 189, 188, 282, 299, 189, 217, 216, 169, 216, 299, 216, 169, 216, 216, 169, 216, 217, 239, 189, 299, 240, 299, 230, 217, 185, 186, 185, 299, 185, 186, 185, 201, 299, 189, 188, 201, 279, 218, 188, 260, 186, 186, 186, 299, 227, 228, 227, 161, 218, 299, 198, 187, 218, 299, 210, 218, 220, 220, 220, 279, 279, 70, 284, 282, 222, 279, 189, 299, 260, 223, 189, 299, 285, 285, 285, 73, 220, 220, 220, 299, 299, 70, 199, 299, 222, 286, 230, 299, 299, 223, 185, 186, 185, 299, 299, 73, 299, 201, 36, 299, 188, 185, 186, 185, 299, 146, 101, 146, 201, 36, 299, 206, 167, 299, 299, 168, 248, 248, 248, 299, 253, 254, 253, 169, 169, 169, 249, 255, 299, 299, 256, 299, 189, 170, 216, 169, 216, 299, 254, 254, 254, 239, 299, 189, 240, 233, 299, 148, 265, 253, 254, 253, 299, 253, 254, 253, 268, 299, 250, 256, 268, 299, 257, 256, 299, 171, 299, 254, 254, 254, 299, 270, 271, 270, 233, 299, 218, 265, 272, 299, 266, 273, 276, 248, 276, 299, 253, 254, 253, 239, 299, 257, 277, 268, 299, 257, 256, 287, 287, 287, 299, 263, 263, 263, 299, 290, 291, 290, 299, 266, 288, 299, 268, 274, 264, 292, 299, 299, 299, 253, 254, 253, 299, 36, 278, 299, 294, 299, 257, 295, 253, 254, 253, 299, 36, 299, 299, 268, 299, 299, 256, 253, 254, 253, 299, 299, 299, 293, 268, 299, 299, 256, 254, 254, 254, 299, 270, 271, 270, 233, 299, 257, 265, 272, 299, 299, 273, 276, 248, 276, 299, 299, 257, 299, 239, 299, 299, 277, 253, 254, 253, 299, 299, 257, 299, 268, 299, 299, 256, 253, 254, 253, 299, 299, 266, 299, 268, 299, 274, 256, 253, 254, 253, 299, 290, 291, 290, 268, 299, 278, 256, 255, 299, 299, 277, 253, 254, 253, 299, 299, 257, 299, 268, 299, 299, 256, 285, 285, 285, 299, 299, 257, 299, 299, 287, 287, 287, 299, 299, 286, 299, 299, 257, 299, 299, 38, 293, 288, 253, 254, 253, 299, 299, 38, 299, 268, 299, 257, 256, 253, 254, 253, 299, 254, 254, 254, 268, 299, 299, 256, 233, 299, 299, 265, 290, 291, 290, 299, 253, 254, 253, 255, 299, 299, 277, 268, 299, 299, 256, 299, 257, 299, 253, 254, 253, 299, 216, 169, 216, 268, 299, 257, 273, 239, 299, 266, 240, 299, 299, 299, 299, 299, 299, 299, 299, 299, 293, 299, 299, 299, 257, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 257, 299, 299, 299, 218, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 32, 32, 299, 32, 32, 32, 32, 32, 32, 32, 32, 36, 36, 36, 299, 299, 299, 36, 36, 299, 36, 54, 54, 54, 299, 299, 299, 299, 299, 299, 54, 56, 56, 56, 56, 56, 56, 299, 56, 56, 299, 56, 58, 58, 299, 58, 58, 58, 58, 58, 58, 58, 58, 69, 69, 69, 69, 299, 69, 299, 69, 69, 69, 75, 75, 75, 299, 299, 299, 75, 75, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 87, 87, 299, 87, 87, 87, 87, 87, 87, 87, 87, 89, 89, 89, 89, 89, 89, 299, 89, 89, 299, 89, 91, 91, 91, 92, 92, 92, 92, 92, 92, 299, 92, 92, 299, 92, 95, 95, 95, 299, 299, 299, 299, 299, 299, 95, 108, 108, 108, 108, 299, 108, 299, 108, 108, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 110, 113, 113, 113, 299, 299, 299, 299, 299, 299, 113, 116, 116, 116, 116, 299, 116, 299, 116, 116, 116, 125, 125, 299, 125, 125, 125, 125, 125, 125, 125, 125, 127, 127, 299, 127, 127, 127, 127, 127, 127, 127, 127, 130, 130, 130, 130, 299, 130, 299, 130, 130, 130, 135, 135, 135, 135, 135, 135, 299, 135, 135, 299, 135, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 142, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 145, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 149, 151, 151, 299, 151, 151, 151, 151, 151, 151, 151, 151, 153, 153, 153, 153, 153, 153, 299, 153, 153, 299, 153, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 162, 165, 165, 165, 165, 165, 299, 165, 165, 165, 165, 165, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 183, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 192, 192, 299, 192, 192, 192, 192, 192, 192, 192, 192, 195, 195, 195, 299, 299, 299, 299, 299, 299, 195, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 212, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 215, 221, 221, 221, 221, 299, 221, 299, 221, 221, 221, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 234, 237, 237, 237, 237, 237, 299, 237, 237, 237, 237, 237, 242, 242, 299, 242, 242, 242, 242, 242, 242, 242, 242, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 252, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 258, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 275, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 283, 283, 283, 283, 283, 299, 283, 283, 283, 283, 283, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 289, 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, 298, 54, 54, 54, 299, 299, 299, 299, 299, 54, 54, 11, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299 } ; static yyconst short int yy_chk[1876] = { 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, 3, 4, 306, 5, 6, 15, 3, 4, 282, 3, 4, 5, 6, 13, 13, 13, 13, 14, 14, 14, 14, 17, 15, 260, 17, 16, 16, 16, 18, 18, 18, 243, 32, 102, 16, 22, 102, 18, 242, 19, 19, 19, 5, 6, 16, 53, 22, 18, 19, 32, 21, 31, 31, 31, 31, 35, 35, 35, 19, 18, 21, 21, 53, 21, 225, 36, 222, 19, 20, 20, 20, 34, 34, 34, 35, 34, 36, 20, 41, 42, 43, 51, 51, 51, 219, 51, 42, 20, 44, 41, 42, 43, 34, 44, 20, 43, 45, 214, 47, 44, 45, 46, 51, 46, 197, 20, 193, 45, 47, 47, 52, 52, 52, 192, 46, 55, 55, 55, 57, 57, 57, 61, 61, 61, 55, 59, 177, 60, 173, 62, 160, 52, 54, 54, 54, 60, 59, 54, 60, 57, 54, 62, 63, 64, 65, 54, 65, 61, 64, 153, 152, 54, 62, 63, 64, 151, 63, 65, 61, 67, 67, 67, 94, 67, 74, 74, 74, 75, 75, 75, 77, 77, 77, 94, 78, 123, 75, 118, 123, 80, 67, 68, 68, 68, 78, 78, 68, 80, 118, 68, 80, 79, 79, 79, 68, 149, 77, 93, 93, 93, 68, 69, 69, 69, 96, 81, 69, 77, 81, 69, 79, 96, 144, 141, 69, 96, 93, 135, 133, 81, 69, 76, 76, 76, 76, 76, 76, 82, 76, 76, 76, 82, 76, 76, 76, 76, 83, 97, 82, 83, 132, 131, 76, 76, 76, 86, 86, 86, 97, 97, 83, 90, 90, 90, 128, 86, 98, 98, 127, 90, 119, 91, 91, 91, 90, 76, 91, 99, 98, 91, 114, 119, 90, 174, 91, 101, 101, 101, 99, 99, 126, 114, 114, 134, 174, 101, 134, 86, 92, 92, 92, 92, 92, 92, 134, 92, 92, 92, 92, 92, 92, 142, 92, 92, 142, 104, 104, 104, 125, 92, 92, 92, 122, 104, 107, 107, 107, 101, 104, 107, 176, 117, 107, 108, 108, 108, 104, 107, 108, 176, 111, 108, 92, 95, 95, 95, 108, 120, 95, 105, 176, 95, 109, 109, 109, 121, 95, 137, 100, 121, 109, 120, 95, 89, 143, 109, 121, 143, 137, 137, 88, 87, 120, 109, 110, 110, 110, 110, 110, 110, 138, 110, 110, 110, 110, 110, 110, 161, 110, 110, 161, 124, 124, 124, 138, 110, 110, 110, 139, 139, 139, 124, 136, 136, 136, 138, 140, 159, 85, 84, 136, 159, 140, 162, 73, 136, 162, 140, 110, 113, 113, 113, 159, 136, 113, 163, 165, 113, 163, 165, 71, 166, 113, 124, 166, 145, 145, 145, 113, 115, 115, 115, 70, 170, 115, 145, 170, 115, 66, 154, 154, 154, 115, 146, 146, 146, 56, 154, 115, 116, 116, 116, 154, 146, 116, 155, 50, 116, 178, 155, 154, 178, 116, 148, 148, 148, 155, 145, 116, 129, 129, 129, 181, 148, 129, 181, 38, 129, 29, 175, 175, 175, 129, 182, 183, 146, 182, 183, 129, 130, 130, 130, 190, 198, 130, 190, 198, 130, 175, 147, 147, 147, 130, 26, 199, 148, 147, 199, 130, 147, 150, 150, 150, 156, 156, 156, 158, 158, 158, 25, 150, 156, 164, 164, 164, 11, 156, 0, 167, 167, 167, 196, 164, 212, 156, 167, 212, 213, 167, 196, 213, 147, 158, 0, 168, 168, 168, 169, 169, 169, 196, 168, 150, 158, 168, 224, 0, 169, 172, 172, 172, 0, 0, 0, 164, 224, 172, 179, 179, 179, 167, 172, 194, 180, 180, 180, 224, 179, 233, 172, 180, 233, 234, 180, 235, 234, 168, 235, 194, 169, 184, 184, 184, 0, 185, 185, 185, 184, 0, 194, 184, 185, 237, 0, 185, 237, 186, 186, 186, 179, 187, 187, 187, 186, 0, 180, 186, 187, 244, 244, 187, 188, 188, 188, 238, 0, 241, 238, 188, 241, 244, 188, 184, 189, 189, 189, 185, 191, 191, 191, 189, 244, 0, 189, 200, 200, 200, 191, 186, 0, 246, 200, 187, 246, 200, 201, 201, 201, 0, 202, 202, 202, 201, 188, 249, 201, 202, 249, 0, 202, 245, 245, 245, 250, 251, 189, 250, 251, 0, 191, 195, 195, 195, 245, 258, 195, 200, 258, 195, 259, 0, 265, 259, 195, 265, 266, 0, 201, 266, 195, 0, 202, 203, 203, 203, 0, 204, 204, 204, 203, 0, 279, 203, 204, 279, 0, 204, 205, 205, 205, 0, 206, 206, 206, 205, 0, 280, 205, 206, 280, 0, 206, 207, 207, 207, 0, 208, 208, 208, 207, 0, 0, 207, 208, 203, 0, 208, 0, 204, 0, 209, 209, 209, 0, 210, 210, 210, 209, 0, 205, 209, 210, 0, 206, 210, 211, 211, 211, 0, 215, 215, 215, 211, 281, 207, 211, 281, 0, 208, 215, 216, 216, 216, 0, 217, 217, 217, 218, 218, 218, 216, 217, 209, 0, 217, 0, 210, 218, 226, 226, 226, 0, 227, 227, 227, 226, 0, 211, 226, 227, 283, 215, 227, 283, 228, 228, 228, 0, 229, 229, 229, 228, 216, 0, 228, 229, 217, 0, 229, 218, 220, 220, 220, 284, 296, 220, 284, 296, 220, 298, 226, 0, 298, 220, 227, 0, 261, 261, 261, 220, 221, 221, 221, 0, 0, 221, 228, 0, 221, 261, 229, 0, 0, 221, 230, 230, 230, 0, 0, 221, 0, 230, 261, 0, 230, 231, 231, 231, 0, 232, 232, 232, 231, 261, 0, 231, 232, 0, 0, 232, 236, 236, 236, 0, 239, 239, 239, 247, 247, 247, 236, 239, 0, 0, 239, 0, 230, 247, 240, 240, 240, 0, 248, 248, 248, 240, 0, 231, 240, 248, 0, 232, 248, 252, 252, 252, 0, 253, 253, 253, 252, 0, 236, 252, 253, 0, 239, 253, 0, 247, 0, 254, 254, 254, 0, 255, 255, 255, 254, 0, 240, 254, 255, 0, 248, 255, 256, 256, 256, 0, 257, 257, 257, 256, 0, 252, 256, 257, 0, 253, 257, 262, 262, 262, 0, 263, 263, 263, 0, 267, 267, 267, 0, 254, 262, 0, 267, 255, 263, 267, 0, 0, 0, 268, 268, 268, 0, 262, 256, 0, 268, 0, 257, 268, 269, 269, 269, 0, 262, 0, 0, 269, 0, 0, 269, 270, 270, 270, 0, 0, 0, 267, 270, 0, 0, 270, 271, 271, 271, 0, 272, 272, 272, 271, 0, 268, 271, 272, 0, 0, 272, 273, 273, 273, 0, 0, 269, 0, 273, 0, 0, 273, 274, 274, 274, 0, 0, 270, 0, 274, 0, 0, 274, 275, 275, 275, 0, 0, 271, 0, 275, 0, 272, 275, 276, 276, 276, 0, 277, 277, 277, 276, 0, 273, 276, 277, 0, 0, 277, 278, 278, 278, 0, 0, 274, 0, 278, 0, 0, 278, 285, 285, 285, 0, 0, 275, 0, 0, 287, 287, 287, 0, 0, 285, 0, 0, 276, 0, 0, 285, 277, 287, 289, 289, 289, 0, 0, 287, 0, 289, 0, 278, 289, 290, 290, 290, 0, 291, 291, 291, 290, 0, 0, 290, 291, 0, 0, 291, 292, 292, 292, 0, 293, 293, 293, 292, 0, 0, 292, 293, 0, 0, 293, 0, 289, 0, 294, 294, 294, 0, 295, 295, 295, 294, 0, 290, 294, 295, 0, 291, 295, 0, 0, 0, 0, 0, 0, 0, 0, 0, 292, 0, 0, 0, 293, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 294, 0, 0, 0, 295, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 300, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 301, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 303, 303, 0, 303, 303, 303, 303, 303, 303, 303, 303, 304, 304, 304, 0, 0, 0, 304, 304, 0, 304, 305, 305, 305, 0, 0, 0, 0, 0, 0, 305, 307, 307, 307, 307, 307, 307, 0, 307, 307, 0, 307, 308, 308, 0, 308, 308, 308, 308, 308, 308, 308, 308, 309, 309, 309, 309, 0, 309, 0, 309, 309, 309, 310, 310, 310, 0, 0, 0, 310, 310, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 311, 312, 312, 0, 312, 312, 312, 312, 312, 312, 312, 312, 313, 313, 313, 313, 313, 313, 0, 313, 313, 0, 313, 314, 314, 314, 315, 315, 315, 315, 315, 315, 0, 315, 315, 0, 315, 316, 316, 316, 0, 0, 0, 0, 0, 0, 316, 317, 317, 317, 317, 0, 317, 0, 317, 317, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 319, 319, 319, 0, 0, 0, 0, 0, 0, 319, 320, 320, 320, 320, 0, 320, 0, 320, 320, 320, 321, 321, 0, 321, 321, 321, 321, 321, 321, 321, 321, 322, 322, 0, 322, 322, 322, 322, 322, 322, 322, 322, 323, 323, 323, 323, 0, 323, 0, 323, 323, 323, 324, 324, 324, 324, 324, 324, 0, 324, 324, 0, 324, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 326, 327, 327, 327, 327, 327, 327, 327, 327, 327, 327, 327, 328, 328, 0, 328, 328, 328, 328, 328, 328, 328, 328, 329, 329, 329, 329, 329, 329, 0, 329, 329, 0, 329, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 330, 331, 331, 331, 331, 331, 0, 331, 331, 331, 331, 331, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 332, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 334, 334, 0, 334, 334, 334, 334, 334, 334, 334, 334, 335, 335, 335, 0, 0, 0, 0, 0, 0, 335, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, 340, 340, 340, 340, 0, 340, 0, 340, 340, 340, 341, 341, 341, 341, 341, 341, 341, 341, 341, 341, 341, 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, 342, 343, 343, 343, 343, 343, 0, 343, 343, 343, 343, 343, 344, 344, 0, 344, 344, 344, 344, 344, 344, 344, 344, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 345, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 351, 351, 351, 351, 351, 0, 351, 351, 351, 351, 351, 352, 352, 352, 352, 352, 352, 352, 352, 352, 352, 352, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 353, 354, 354, 354, 0, 0, 0, 0, 0, 354, 354, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299, 299 } ; 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 char *yytext; #line 1 "alpha.lex" #define INITIAL 0 #line 2 "alpha.lex" /* SCCS @(#)alpha.lex 1.8 -- 08/02/99 --14:02:42 * $Log: 98/9/28 sn added \r to the NONNEWLINE_WHITE_SPACE_CHAR list 98/10/2 aa added "else" catches so that SPECIAL and NSLJ was not getting thrown in were not wanted. 98/10/3 aa added "new" catch to ARRAY so that "ARRAY" was not getting thrown in where not wanted. */ package lx.src; import java.lang.System; import java.io.*; import java.util.*; import lx.src.util.*; import pp.src.jbf.*; class Utility { public static void assert ( boolean expr ) { if (false == expr) { throw (new Error("Error: Assertion failed.")); } } private static final String errorMsg[] = { "Error: Unmatched end-of-comment punctuation.", "Error: Unmatched start-of-comment punctuation.", "Error: Unclosed string.", "Error: Illegal character." }; public static final int E_ENDCOMMENT = 0; public static final int E_STARTCOMMENT = 1; public static final int E_UNCLOSEDSTR = 2; public static final int E_UNMATCHED = 3; public static void error ( int code ) { System.out.println(errorMsg[code]); } } //{COMMENT_TEXT} { } #define COMMENT 1 #define VERB_ON 2 #define VERB_SCAN 3 #define VERB_IGN 4 #line 941 "alpha.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 #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 \ YY_USER_ACTION YY_DECL { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; #line 106 "alpha.lex" #line 1091 "alpha.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_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 >= 300 ) 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] != 1830 ); 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 108 "alpha.lex" {echo();} YY_BREAK case 2: YY_RULE_SETUP #line 110 "alpha.lex" {echo(); //yyreturn(new YYtoken(YYtokentypes.ANY,yytext)); } YY_BREAK case 3: YY_RULE_SETUP #line 114 "alpha.lex" { echo(); yybegin(COMMENT); comment_count = comment_count + 1; } YY_BREAK case 4: YY_RULE_SETUP #line 116 "alpha.lex" {echo(); comment_count = comment_count + 1; } YY_BREAK case 5: YY_RULE_SETUP #line 117 "alpha.lex" {echo(); comment_count = comment_count - 1; Utility.assert(comment_count >= 0); if (comment_count == 0) { yybegin(INITIAL); } } YY_BREAK case 6: YY_RULE_SETUP #line 124 "alpha.lex" { echo(); } YY_BREAK case 7: YY_RULE_SETUP #line 125 "alpha.lex" { echo(); } YY_BREAK case 8: YY_RULE_SETUP #line 127 "alpha.lex" { echo(); //yyreturn(new YYtoken(YYtokentypes.ANY,yytext)); // Utility.assert(str.length() == lexeme().length() - 2); } YY_BREAK case 9: YY_RULE_SETUP #line 132 "alpha.lex" { echo(); //yyreturn(new YYtoken(YYtokentypes.ANY,yytext)); // Utility.error(Utility.E_UNCLOSEDSTR); //Utility.assert(str.length() == lexeme().length() - 1); } YY_BREAK case 10: YY_RULE_SETUP #line 140 "alpha.lex" { echo(); } YY_BREAK case 11: YY_RULE_SETUP #line 141 "alpha.lex" { echo(); yybegin(VERB_ON); } YY_BREAK case 12: YY_RULE_SETUP #line 144 "alpha.lex" { echo(); yybegin(VERB_ON); } YY_BREAK case 13: YY_RULE_SETUP #line 147 "alpha.lex" { echo(" "); yybegin(INITIAL); } YY_BREAK case 14: YY_RULE_SETUP #line 150 "alpha.lex" { echo("special "); //yyreturn(new YYtoken(YYtokentypes.ANY,yytext)); } YY_BREAK case 15: YY_RULE_SETUP #line 154 "alpha.lex" { echo("special "); //yyreturn(new YYtoken(YYtokentypes.ANY,yytext)); } YY_BREAK case 16: YY_RULE_SETUP #line 158 "alpha.lex" {echo(); } YY_BREAK case 17: YY_RULE_SETUP #line 159 "alpha.lex" { echo("special "); //yyreturn(new YYtoken(YYtokentypes.ANY,yytext)); } YY_BREAK case 18: YY_RULE_SETUP #line 163 "alpha.lex" { echo(); //yyreturn(new YYtoken(YYtokentypes.ANY,yytext)); } YY_BREAK case 19: YY_RULE_SETUP #line 169 "alpha.lex" { r_echo("nslConst","static final SPECIAL"); } YY_BREAK case 20: YY_RULE_SETUP #line 172 "alpha.lex" { r_echo("nslConst","static final SPECIAL"); } YY_BREAK case 21: YY_RULE_SETUP #line 175 "alpha.lex" { r_echo("nslConst","static final"); } YY_BREAK case 22: YY_RULE_SETUP #line 179 "alpha.lex" { echo("ARRAY "); //yyreturn(new YYtoken(YYtokentypes.ANY,yytext)); } YY_BREAK case 23: YY_RULE_SETUP #line 183 "alpha.lex" { echo(); } YY_BREAK case 24: YY_RULE_SETUP #line 186 "alpha.lex" { echo("NSLJ "); } YY_BREAK case 25: YY_RULE_SETUP #line 190 "alpha.lex" { r_echo("/*===*/"); System.err.println("***** ISTE\n"+yytext.lexeme()+ "\n**************\n"); } YY_BREAK case 26: YY_RULE_SETUP #line 195 "alpha.lex" {echo(); } YY_BREAK case 27: YY_RULE_SETUP #line 197 "alpha.lex" { echo("SPECIAL "); } YY_BREAK case 28: YY_RULE_SETUP #line 201 "alpha.lex" { echo("SPECIAL "); //yyreturn(new YYtoken(YYtokentypes.ANY,yytext)); } YY_BREAK case 29: YY_RULE_SETUP #line 206 "alpha.lex" { echo(); //yyreturn(new YYtoken(YYtokentypes.ANY,yytext)); } YY_BREAK case 30: YY_RULE_SETUP #line 212 "alpha.lex" ECHO; YY_BREAK #line 1384 "alpha.yy.c" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(COMMENT): case YY_STATE_EOF(VERB_ON): case YY_STATE_EOF(VERB_SCAN): case YY_STATE_EOF(VERB_IGN): 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; 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 singled characater, 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_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 ); } 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; 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 >= 300 ) 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 >= 300 ) 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 == 299); 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_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 */ yytext_ptr = yy_c_buf_p; ++yy_c_buf_p; switch ( yy_get_next_buffer() ) { case EOB_ACT_END_OF_FILE: { if ( yywrap() ) { yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; 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 + YY_MORE_ADJ; break; case EOB_ACT_LAST_MATCH: #ifdef __cplusplus YY_FATAL_ERROR( "unexpected last match in yyinput()" ); #else YY_FATAL_ERROR( "unexpected last match in input()" ); #endif } } } 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; 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 { 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 *str ) #else YY_BUFFER_STATE yy_scan_string( str ) yyconst char *str; #endif { int len; for ( len = 0; str[len]; ++len ) ; return yy_scan_bytes( 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_MORE_ADJ; \ 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_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 212 "alpha.lex" private int comment_count = 0; public YYtoken dummy=new YYtoken(0,"dummy",0,0,1); NslPrePreProcessor nppp; void r_echo(String s) { System.out.print(s); } void r_echo(String from, String to) { String line = yytext.lexeme(); int index = line.indexOf(from); if(index < 0) { // nothing found to replace System.out.print(yytext.lexeme()); return; } to = to.concat(line.substring(from.length())); System.out.print(to); } void echo() { System.out.print(yytext.lexeme()); } void echo(String s) { System.out.print(s+yytext.lexeme()); } public void init(NslPrePreProcessor nppp) { nppp.setWholeBuffer(yytext.wholebuffer); } int yywrap() { System.out.println(" ********* YYWRAP!!!!"); return(0); }