#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 179 #define YY_END_OF_BUFFER 180 static yyconst short int yy_accept[722] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 178, 1, 1, 170, 9, 177, 170, 170, 178, 170, 170, 170, 173, 170, 170, 17, 15, 170, 170, 170, 177, 177, 177, 170, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 171, 170, 172, 6, 2, 6, 6, 179, 19, 179, 1, 169, 9, 8, 9, 177, 155, 164, 156, 0, 0, 0, 153, 162, 151, 163, 152, 174, 11, 3, 7, 154, 11, 17, 0, 11, 0, 10, 14, 0, 15, 12, 161, 166, 168, 95, 167, 159, 177, 177, 177, 177, 157, 177, 177, 177, 177, 177, 177, 177, 177, 177, 110, 177, 177, 177, 177, 177, 177, 119, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 158, 165, 5, 4, 0, 9, 0, 8, 18, 18, 0, 18, 0, 0, 0, 0, 7, 11, 0, 11, 16, 150, 95, 148, 160, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 118, 177, 177, 123, 177, 177, 127, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 145, 177, 177, 177, 177, 0, 9, 0, 0, 0, 0, 11, 13, 149, 177, 23, 177, 177, 177, 177, 177, 177, 103, 104, 177, 106, 177, 177, 177, 177, 177, 113, 177, 177, 177, 177, 177, 177, 177, 125, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 128, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 139, 177, 177, 144, 177, 146, 177, 177, 0, 0, 26, 177, 177, 177, 177, 177, 102, 105, 177, 107, 177, 177, 177, 177, 177, 114, 115, 117, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 134, 177, 177, 136, 177, 177, 140, 177, 177, 177, 147, 0, 0, 0, 177, 177, 177, 177, 177, 177, 177, 177, 177, 111, 177, 177, 177, 177, 177, 126, 80, 42, 94, 177, 177, 177, 177, 85, 177, 177, 47, 177, 177, 81, 177, 177, 177, 177, 177, 88, 177, 177, 177, 177, 54, 177, 177, 91, 177, 177, 177, 177, 177, 177, 177, 177, 177, 86, 177, 177, 177, 62, 64, 87, 177, 177, 177, 177, 177, 132, 133, 177, 135, 137, 177, 141, 177, 177, 177, 0, 0, 0, 177, 177, 25, 177, 101, 177, 33, 177, 109, 112, 116, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 43, 48, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 51, 177, 177, 177, 177, 177, 177, 177, 177, 93, 177, 177, 55, 57, 177, 177, 79, 177, 177, 177, 92, 96, 61, 177, 177, 177, 177, 129, 130, 177, 24, 177, 177, 177, 177, 0, 0, 177, 39, 100, 177, 108, 177, 177, 177, 177, 177, 177, 98, 32, 177, 177, 46, 45, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 31, 177, 177, 41, 177, 177, 177, 177, 177, 177, 177, 177, 63, 36, 177, 177, 177, 177, 143, 0, 27, 177, 177, 177, 177, 177, 124, 82, 83, 84, 177, 177, 177, 177, 177, 177, 177, 177, 177, 177, 75, 177, 177, 121, 177, 177, 177, 177, 177, 177, 177, 28, 177, 177, 177, 77, 177, 177, 177, 177, 177, 177, 177, 131, 177, 142, 177, 0, 177, 38, 176, 120, 122, 177, 34, 177, 177, 99, 72, 177, 177, 177, 177, 177, 177, 177, 67, 177, 177, 68, 177, 177, 177, 40, 56, 35, 177, 177, 59, 177, 65, 37, 177, 177, 0, 177, 177, 44, 97, 71, 177, 50, 177, 177, 78, 29, 89, 52, 90, 53, 177, 177, 177, 60, 177, 177, 177, 0, 177, 177, 177, 76, 69, 30, 177, 70, 177, 138, 177, 0, 175, 177, 177, 58, 66, 177, 177, 0, 20, 177, 49, 0, 22, 0, 21, 177, 177, 177, 177, 177, 177, 177, 73, 177, 177, 74, 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, 6, 7, 8, 1, 9, 10, 11, 12, 13, 13, 14, 15, 13, 16, 17, 18, 19, 20, 21, 20, 22, 22, 22, 22, 23, 23, 13, 24, 25, 26, 27, 13, 13, 28, 29, 30, 31, 32, 33, 34, 9, 35, 36, 9, 37, 38, 39, 40, 41, 9, 42, 43, 44, 9, 45, 46, 47, 48, 9, 13, 49, 13, 50, 51, 1, 52, 53, 54, 55, 56, 57, 58, 59, 60, 9, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 13, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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[80] = { 0, 1, 1, 1, 2, 1, 1, 1, 1, 3, 1, 1, 4, 1, 1, 1, 1, 1, 1, 5, 5, 5, 5, 5, 1, 1, 1, 1, 5, 5, 5, 5, 5, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 3, 5, 5, 5, 5, 5, 5, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 1, 1, 1 } ; static yyconst short int yy_base[735] = { 0, 0, 0, 76, 77, 79, 80, 0, 0, 0, 0, 970, 971, 83, 96, 943, 74, 0, 942, 81, 96, 971, 941, 88, 89, 97, 95, 136, 194, 99, 100, 102, 924, 63, 924, 938, 910, 65, 79, 78, 48, 110, 85, 897, 108, 95, 905, 115, 112, 122, 901, 971, 111, 971, 971, 971, 941, 944, 971, 971, 901, 197, 971, 127, 971, 216, 0, 971, 971, 971, 944, 943, 216, 971, 971, 971, 971, 971, 971, 221, 971, 0, 971, 238, 65, 279, 971, 269, 971, 971, 0, 0, 971, 928, 971, 971, 0, 971, 168, 911, 915, 889, 918, 971, 880, 883, 891, 876, 127, 893, 892, 879, 885, 870, 871, 869, 876, 873, 871, 867, 0, 868, 135, 869, 862, 858, 868, 867, 874, 147, 874, 856, 860, 868, 871, 856, 861, 856, 161, 193, 851, 122, 858, 971, 971, 971, 971, 849, 301, 277, 157, 971, 971, 904, 903, 294, 308, 902, 302, 0, 320, 325, 335, 99, 971, 0, 971, 887, 884, 875, 193, 880, 839, 846, 855, 850, 849, 850, 835, 833, 169, 849, 847, 843, 842, 828, 844, 843, 0, 832, 823, 836, 833, 830, 0, 365, 827, 827, 815, 816, 823, 813, 815, 828, 811, 824, 809, 824, 808, 811, 811, 818, 0, 820, 817, 819, 808, 816, 361, 359, 856, 0, 363, 392, 971, 971, 819, 0, 807, 797, 829, 795, 806, 800, 0, 0, 801, 816, 789, 801, 796, 784, 792, 0, 789, 796, 789, 780, 793, 796, 779, 0, 774, 364, 780, 201, 202, 212, 784, 176, 145, 778, 364, 777, 770, 207, 378, 381, 178, 772, 0, 787, 786, 781, 776, 767, 764, 773, 772, 763, 776, 770, 0, 755, 758, 0, 774, 0, 755, 768, 771, 0, 816, 769, 760, 791, 766, 765, 0, 0, 746, 0, 761, 750, 751, 756, 756, 0, 748, 0, 746, 744, 750, 750, 736, 749, 741, 748, 730, 748, 268, 370, 729, 742, 731, 734, 725, 742, 727, 754, 733, 80, 726, 734, 726, 723, 716, 712, 273, 296, 722, 719, 712, 711, 364, 717, 711, 722, 309, 713, 724, 715, 716, 703, 718, 717, 706, 0, 717, 714, 0, 708, 698, 696, 704, 693, 702, 0, 691, 0, 696, 691, 694, 720, 702, 691, 686, 683, 681, 681, 0, 681, 674, 692, 693, 694, 0, 0, 0, 0, 344, 681, 675, 386, 0, 686, 672, 0, 700, 677, 0, 677, 413, 669, 672, 671, 0, 676, 421, 422, 226, 0, 678, 695, 0, 668, 676, 664, 674, 676, 657, 655, 682, 661, 0, 667, 652, 655, 0, 289, 0, 656, 655, 662, 661, 646, 0, 0, 653, 0, 0, 649, 0, 657, 652, 649, 650, 697, 652, 664, 636, 0, 635, 0, 644, 0, 647, 0, 0, 0, 638, 645, 646, 634, 638, 645, 641, 626, 642, 637, 415, 0, 640, 623, 217, 319, 625, 624, 632, 618, 618, 630, 0, 622, 627, 630, 619, 624, 627, 616, 615, 0, 611, 605, 603, 0, 608, 619, 0, 603, 614, 604, 0, 0, 0, 603, 602, 597, 595, 0, 0, 608, 0, 599, 598, 598, 604, 596, 585, 587, 594, 0, 591, 0, 584, 588, 596, 582, 586, 585, 0, 0, 578, 593, 0, 0, 590, 581, 579, 583, 571, 576, 575, 577, 565, 583, 576, 565, 563, 577, 564, 569, 574, 561, 566, 0, 571, 571, 563, 570, 560, 566, 569, 566, 559, 556, 544, 0, 554, 560, 554, 543, 561, 0, 560, 971, 542, 545, 550, 538, 549, 0, 0, 0, 0, 549, 534, 535, 548, 546, 528, 537, 536, 524, 525, 0, 525, 542, 0, 531, 529, 533, 519, 526, 530, 516, 0, 515, 521, 514, 0, 521, 512, 511, 525, 508, 509, 513, 0, 500, 0, 536, 509, 513, 0, 0, 0, 0, 508, 0, 506, 514, 0, 0, 499, 497, 493, 494, 487, 483, 488, 0, 483, 470, 0, 469, 468, 461, 0, 0, 0, 462, 456, 499, 456, 0, 0, 462, 474, 459, 451, 462, 0, 0, 0, 450, 0, 448, 443, 0, 0, 0, 0, 0, 0, 454, 439, 435, 0, 438, 445, 462, 441, 438, 425, 430, 0, 0, 0, 428, 0, 421, 0, 427, 465, 0, 432, 396, 0, 0, 469, 473, 477, 971, 359, 0, 481, 971, 503, 971, 399, 397, 382, 363, 350, 351, 355, 0, 327, 304, 0, 971, 527, 532, 537, 540, 545, 550, 555, 365, 560, 562, 303, 268, 88 } ; static yyconst short int yy_def[735] = { 0, 721, 1, 722, 722, 723, 723, 723, 723, 723, 723, 721, 721, 721, 721, 721, 724, 725, 721, 721, 726, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 725, 725, 725, 721, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 724, 721, 724, 725, 721, 721, 721, 721, 721, 727, 721, 721, 721, 721, 721, 721, 721, 721, 728, 721, 721, 27, 721, 721, 721, 721, 721, 729, 28, 721, 721, 721, 721, 730, 721, 721, 725, 725, 725, 725, 721, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 721, 721, 721, 721, 721, 724, 721, 724, 721, 721, 721, 721, 721, 721, 731, 721, 728, 721, 721, 721, 729, 721, 730, 721, 721, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 721, 724, 721, 721, 732, 721, 721, 721, 721, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 721, 733, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 721, 734, 721, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 721, 721, 721, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 721, 721, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 721, 721, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 721, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 721, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 721, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 721, 725, 725, 725, 725, 725, 725, 725, 721, 721, 725, 725, 721, 721, 721, 721, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 725, 0, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721 } ; static yyconst short int yy_nxt[1051] = { 0, 12, 13, 13, 14, 13, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 28, 28, 28, 21, 29, 30, 31, 32, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 33, 17, 17, 17, 34, 17, 17, 17, 17, 17, 12, 35, 17, 36, 37, 38, 39, 40, 41, 17, 17, 42, 17, 43, 17, 44, 17, 45, 17, 46, 47, 48, 17, 49, 50, 17, 17, 17, 51, 52, 53, 55, 55, 64, 59, 59, 61, 61, 61, 61, 61, 56, 56, 68, 447, 57, 57, 59, 59, 61, 61, 61, 61, 61, 74, 71, 76, 100, 69, 71, 80, 114, 78, 721, 81, 75, 77, 79, 79, 79, 79, 79, 82, 115, 65, 93, 94, 95, 96, 97, 98, 105, 108, 101, 106, 112, 64, 224, 143, 109, 721, 107, 110, 120, 113, 111, 72, 71, 128, 121, 122, 407, 60, 60, 83, 408, 84, 84, 84, 84, 85, 124, 224, 116, 129, 125, 64, 130, 86, 87, 88, 117, 138, 118, 89, 132, 119, 65, 126, 140, 127, 139, 133, 214, 90, 215, 134, 135, 141, 136, 144, 137, 86, 87, 88, 166, 167, 176, 177, 89, 61, 61, 61, 61, 61, 190, 191, 65, 198, 328, 329, 90, 83, 199, 91, 91, 91, 91, 91, 148, 148, 149, 208, 148, 228, 150, 86, 87, 88, 154, 209, 349, 92, 326, 239, 229, 155, 155, 155, 156, 240, 79, 79, 79, 79, 79, 210, 350, 327, 539, 86, 87, 88, 86, 158, 88, 540, 92, 160, 160, 160, 160, 160, 321, 319, 211, 65, 320, 322, 212, 86, 158, 88, 337, 369, 323, 338, 86, 158, 88, 149, 149, 149, 489, 149, 161, 161, 324, 157, 162, 162, 162, 162, 162, 86, 158, 88, 83, 490, 85, 85, 85, 85, 85, 148, 148, 149, 152, 148, 291, 64, 86, 87, 88, 219, 219, 219, 219, 222, 222, 505, 152, 223, 223, 223, 223, 223, 63, 220, 220, 220, 220, 506, 393, 415, 86, 87, 88, 394, 416, 160, 160, 160, 160, 160, 162, 162, 162, 162, 162, 541, 218, 86, 158, 88, 162, 162, 162, 162, 162, 417, 418, 542, 428, 148, 148, 149, 86, 148, 88, 150, 163, 151, 429, 720, 463, 86, 158, 88, 220, 220, 220, 220, 223, 223, 223, 223, 223, 464, 465, 710, 86, 719, 88, 253, 254, 255, 256, 257, 258, 259, 260, 711, 261, 262, 263, 264, 265, 266, 267, 268, 65, 223, 223, 223, 223, 223, 331, 314, 718, 315, 717, 716, 423, 86, 332, 88, 316, 395, 424, 333, 339, 269, 317, 342, 340, 334, 715, 343, 341, 396, 468, 344, 397, 476, 714, 534, 345, 86, 346, 88, 469, 347, 348, 483, 486, 477, 478, 700, 470, 484, 487, 535, 713, 701, 712, 705, 485, 488, 702, 702, 702, 702, 706, 706, 706, 706, 708, 708, 708, 708, 702, 702, 702, 702, 706, 706, 706, 706, 704, 703, 699, 536, 698, 707, 697, 696, 695, 709, 694, 693, 692, 703, 691, 690, 689, 707, 708, 708, 708, 708, 688, 687, 686, 685, 684, 683, 682, 681, 680, 679, 678, 677, 676, 675, 674, 673, 672, 709, 54, 54, 54, 54, 54, 58, 58, 58, 58, 58, 63, 671, 63, 63, 63, 66, 670, 66, 70, 669, 70, 70, 70, 153, 668, 153, 153, 153, 159, 667, 159, 159, 159, 165, 666, 165, 165, 165, 221, 221, 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, 637, 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, 609, 608, 607, 606, 605, 604, 603, 602, 601, 600, 599, 598, 597, 596, 595, 594, 593, 592, 591, 590, 589, 588, 587, 586, 585, 584, 583, 582, 581, 580, 579, 578, 577, 576, 575, 574, 573, 572, 571, 570, 569, 568, 567, 566, 565, 564, 563, 562, 561, 560, 559, 558, 557, 556, 555, 554, 553, 552, 551, 550, 549, 548, 547, 546, 545, 544, 543, 538, 537, 533, 532, 531, 530, 529, 528, 527, 526, 525, 524, 523, 522, 521, 520, 519, 518, 151, 517, 516, 515, 514, 513, 512, 511, 510, 509, 508, 507, 504, 503, 502, 501, 500, 499, 498, 497, 496, 495, 494, 493, 492, 491, 482, 481, 480, 479, 475, 474, 473, 472, 471, 467, 466, 462, 461, 460, 459, 458, 457, 456, 455, 454, 453, 452, 451, 450, 449, 448, 446, 445, 444, 443, 442, 441, 440, 439, 438, 437, 436, 435, 434, 433, 432, 431, 430, 427, 426, 425, 422, 421, 420, 419, 414, 413, 412, 411, 410, 409, 406, 405, 404, 403, 402, 401, 400, 399, 398, 392, 391, 390, 389, 388, 387, 386, 385, 384, 383, 382, 381, 380, 379, 378, 377, 376, 375, 374, 373, 372, 371, 370, 368, 367, 366, 365, 364, 363, 362, 361, 360, 359, 358, 357, 356, 355, 354, 353, 352, 351, 336, 335, 330, 325, 318, 313, 312, 311, 310, 309, 308, 307, 306, 305, 304, 303, 302, 301, 300, 299, 298, 297, 296, 295, 294, 293, 292, 151, 290, 289, 288, 287, 286, 285, 284, 283, 282, 281, 280, 279, 278, 277, 276, 275, 274, 273, 272, 271, 270, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 238, 237, 236, 235, 234, 233, 232, 231, 230, 227, 226, 225, 151, 151, 151, 217, 216, 213, 207, 206, 205, 204, 203, 202, 201, 200, 197, 196, 195, 194, 193, 192, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 175, 174, 173, 172, 171, 170, 169, 168, 164, 152, 151, 147, 146, 145, 142, 131, 123, 104, 103, 102, 99, 73, 67, 62, 721, 11, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721 } ; static yyconst short int yy_chk[1051] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 16, 5, 6, 13, 13, 13, 13, 13, 3, 4, 19, 734, 3, 4, 5, 6, 14, 14, 14, 14, 14, 23, 20, 24, 33, 19, 20, 26, 40, 25, 84, 26, 23, 24, 25, 25, 25, 25, 25, 26, 40, 16, 29, 29, 30, 30, 31, 31, 37, 38, 33, 37, 39, 63, 163, 52, 38, 84, 37, 38, 42, 39, 38, 20, 20, 45, 42, 42, 331, 5, 6, 27, 331, 27, 27, 27, 27, 27, 44, 163, 41, 45, 44, 150, 45, 27, 27, 27, 41, 48, 41, 27, 47, 41, 63, 44, 49, 44, 48, 47, 141, 27, 141, 47, 47, 49, 47, 52, 47, 27, 27, 27, 98, 98, 108, 108, 27, 61, 61, 61, 61, 61, 122, 122, 150, 129, 260, 260, 27, 28, 129, 28, 28, 28, 28, 28, 65, 65, 65, 138, 65, 170, 65, 28, 28, 28, 72, 138, 268, 28, 259, 180, 170, 72, 72, 72, 72, 180, 79, 79, 79, 79, 79, 139, 268, 259, 474, 28, 28, 28, 79, 79, 79, 474, 28, 83, 83, 83, 83, 83, 256, 255, 139, 65, 255, 256, 139, 83, 83, 83, 265, 733, 257, 265, 79, 79, 79, 149, 149, 149, 410, 149, 87, 87, 257, 72, 87, 87, 87, 87, 87, 83, 83, 83, 85, 410, 85, 85, 85, 85, 85, 148, 148, 148, 155, 148, 732, 148, 85, 85, 85, 155, 155, 155, 155, 158, 158, 429, 156, 158, 158, 158, 158, 158, 149, 156, 156, 156, 156, 429, 320, 338, 85, 85, 85, 320, 338, 160, 160, 160, 160, 160, 161, 161, 161, 161, 161, 475, 148, 160, 160, 160, 162, 162, 162, 162, 162, 339, 339, 475, 348, 218, 218, 218, 162, 218, 162, 218, 729, 219, 348, 719, 390, 160, 160, 160, 219, 219, 219, 219, 222, 222, 222, 222, 222, 390, 390, 704, 162, 718, 162, 195, 195, 195, 195, 195, 195, 195, 195, 704, 195, 195, 195, 195, 195, 195, 195, 195, 218, 223, 223, 223, 223, 223, 262, 253, 716, 253, 715, 714, 344, 223, 262, 223, 253, 321, 344, 262, 266, 195, 253, 267, 266, 262, 713, 267, 266, 321, 393, 267, 321, 402, 712, 470, 267, 223, 267, 223, 393, 267, 267, 408, 409, 402, 402, 693, 393, 408, 409, 470, 711, 693, 710, 697, 408, 409, 694, 694, 694, 694, 700, 700, 700, 700, 701, 701, 701, 701, 702, 702, 702, 702, 706, 706, 706, 706, 696, 694, 691, 470, 689, 700, 685, 684, 683, 701, 682, 681, 680, 702, 679, 677, 676, 706, 708, 708, 708, 708, 675, 668, 667, 665, 661, 660, 659, 658, 657, 654, 653, 652, 651, 647, 646, 645, 643, 708, 722, 722, 722, 722, 722, 723, 723, 723, 723, 723, 724, 642, 724, 724, 724, 725, 640, 725, 726, 639, 726, 726, 726, 727, 638, 727, 727, 727, 728, 637, 728, 728, 728, 730, 636, 730, 730, 730, 731, 731, 635, 634, 631, 630, 628, 623, 622, 621, 619, 617, 616, 615, 614, 613, 612, 611, 609, 608, 607, 605, 604, 603, 602, 601, 600, 599, 597, 596, 594, 593, 592, 591, 590, 589, 588, 587, 586, 585, 580, 579, 578, 577, 576, 574, 572, 571, 570, 569, 568, 566, 565, 564, 563, 562, 561, 560, 559, 558, 557, 556, 554, 553, 552, 551, 550, 549, 548, 547, 546, 545, 544, 543, 542, 541, 540, 539, 538, 537, 536, 533, 532, 529, 528, 527, 526, 525, 524, 522, 520, 519, 518, 517, 516, 515, 514, 513, 511, 508, 507, 506, 505, 501, 500, 499, 497, 496, 494, 493, 492, 490, 489, 488, 487, 486, 485, 484, 483, 481, 480, 479, 478, 477, 476, 473, 472, 469, 468, 467, 466, 465, 464, 463, 462, 461, 460, 456, 454, 452, 450, 449, 448, 447, 446, 445, 444, 443, 441, 438, 435, 434, 433, 432, 431, 427, 426, 425, 423, 422, 421, 420, 419, 418, 417, 416, 415, 413, 412, 407, 405, 404, 403, 401, 399, 398, 396, 395, 392, 391, 385, 384, 383, 382, 381, 379, 378, 377, 376, 375, 374, 373, 372, 371, 370, 368, 366, 365, 364, 363, 362, 361, 359, 358, 356, 355, 354, 353, 352, 351, 350, 349, 347, 346, 345, 343, 342, 341, 340, 337, 336, 335, 334, 333, 332, 330, 329, 328, 327, 326, 325, 324, 323, 322, 319, 318, 317, 316, 315, 314, 313, 312, 311, 310, 308, 306, 305, 304, 303, 302, 300, 297, 296, 295, 294, 293, 292, 290, 289, 288, 286, 284, 283, 281, 280, 279, 278, 277, 276, 275, 274, 273, 272, 271, 269, 264, 263, 261, 258, 254, 252, 250, 249, 248, 247, 246, 245, 244, 242, 241, 240, 239, 238, 237, 236, 233, 232, 231, 230, 229, 228, 226, 220, 217, 216, 215, 214, 213, 211, 210, 209, 208, 207, 206, 205, 204, 203, 202, 201, 200, 199, 198, 197, 196, 193, 192, 191, 190, 189, 187, 186, 185, 184, 183, 182, 181, 179, 178, 177, 176, 175, 174, 173, 172, 171, 169, 168, 167, 157, 154, 153, 147, 142, 140, 137, 136, 135, 134, 133, 132, 131, 130, 128, 127, 126, 125, 124, 123, 121, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 107, 106, 105, 104, 102, 101, 100, 99, 93, 71, 70, 60, 57, 56, 50, 46, 43, 36, 35, 34, 32, 22, 18, 15, 11, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, 721 } ; 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 /* SCCS - @(#)alpha.lex 1.18 - 09/15/99 - 10:39:54 */ #line 4 "alpha.lex" /* * SCCS @(#)alpha.lex 1.12 - 08/05/99 - 15:01:14 * * $Log: alpha.lex,v $ * * 98/9/28 sn: added \r to NONNEWLINE_WHITE_SPACE_CHAR list because * PC's add an extra \r to newlines * * Revision 1.6 1998/01/30 20:02:58 erhan * ver 5 * * Revision 1.5 1997/12/13 01:30:31 erhan * aa - commited files for erhan. erhan will comment when he comes back * * Revision 1.4 1997/11/06 03:21:55 erhan * NSL3.0.b * * Revision 1.3 1997/07/30 21:10:33 erhan * nsl3.0 * * Revision 1.2 1997/06/13 22:46:57 erhan * 'NslMain takes model name as a parameter, npp:verbatim_on verbatim_off semi-column stuff, NslModule: method to setup display variables ' * * Revision 1.1.1.1 1997/03/12 23:09:23 nsl * changed dir struct * * Revision 1.1.1.1 1997/02/20 08:04:35 nsl * Importng npp * */ package npp.src; import java.lang.System; import java.io.*; import java.util.*; import npp.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 917 "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 120 "alpha.lex" #line 1069 "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 >= 722 ) 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] != 971 ); 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 124 "alpha.lex" ; YY_BREAK case 2: YY_RULE_SETUP #line 126 "alpha.lex" ; YY_BREAK case 3: YY_RULE_SETUP #line 128 "alpha.lex" { yybegin(COMMENT); comment_count = comment_count + 1; } YY_BREAK case 4: YY_RULE_SETUP #line 130 "alpha.lex" { comment_count = comment_count + 1; } YY_BREAK case 5: YY_RULE_SETUP #line 131 "alpha.lex" { comment_count = comment_count - 1; Utility.assert(comment_count >= 0); if (comment_count == 0) { yybegin(INITIAL); } } YY_BREAK case 6: YY_RULE_SETUP #line 138 "alpha.lex" { } YY_BREAK case 7: YY_RULE_SETUP #line 139 "alpha.lex" { } YY_BREAK case 8: YY_RULE_SETUP #line 141 "alpha.lex" { // Utility.assert(str.length() == lexeme().length() - 2); yyreturn((YYtoken)(new String_Token(YYtokentypes.STRING_LITERAL,yytext))); } YY_BREAK case 9: YY_RULE_SETUP #line 145 "alpha.lex" { // Utility.error(Utility.E_UNCLOSEDSTR); //Utility.assert(str.length() == lexeme().length() - 1); yyreturn((YYtoken)(new String_Token(YYtokentypes.STRING_LITERAL,yytext))); } YY_BREAK case 10: YY_RULE_SETUP #line 152 "alpha.lex" { /* String str; if (lexeme().endsWith("f") || lexeme().endsWith("F")) { str = lexeme().substring(0,lexeme().length()-1); Utility.assert(str.length() == lexeme().length() - 1); } else str = lexeme(); */ Float_Token t = new Float_Token(YYtokentypes.FLOAT_LITERAL,yytext); /* try { t.m_float = java.lang.Float.valueOf(str).floatValue(); } catch (NumberFormatException e) { System.err.println("Unexpected integer number parse error at line:" +yyline+" char:"+yychar()+" to "+(yychar() + str.length())); } */ yyreturn ((YYtoken)t); } YY_BREAK case 11: YY_RULE_SETUP #line 175 "alpha.lex" { /* String str; if (lexeme().endsWith("d") || lexeme().endsWith("D")) { str = lexeme().substring(0,lexeme().length()-1); Utility.assert(str.length() == lexeme().length() - 1); } else str = lexeme(); */ Double_Token t = new Double_Token(YYtokentypes.DOUBLE_LITERAL,yytext); /* try { t.m_double = java.lang.Double.valueOf(str).doubleValue(); } catch (NumberFormatException e) { System.err.println("Unexpected integer number parse error at line:" +yyline+" char:"+yychar()+" to "+(yychar() + str.length())); } */ yyreturn((YYtoken)(t)); } YY_BREAK case 12: YY_RULE_SETUP #line 199 "alpha.lex" { // String str = lexeme().substring(0,lexeme().length() - 1); DecLong_Token t = new DecLong_Token(YYtokentypes.LONG_LITERAL,yytext); /* Utility.assert(str.length() == lexeme().length() - 1); try { t.m_long = java.lang.Long.valueOf(str).longValue(); } catch (NumberFormatException e) { System.err.println("Unexpected long number parse error at line:" +yyline+" char:"+yychar()+" to "+(yychar() + str.length())); } */ yyreturn((YYtoken)(t)); } YY_BREAK case 13: YY_RULE_SETUP #line 214 "alpha.lex" { /* String str = lexeme().substring(2,lexeme().length() - 1); Long_Token t = new Long_Token(YYtokentypes.LONG_LITERAL,yytext); Utility.assert(str.length() == lexeme().length() - 2); try { t.m_long = java.lang.Long.valueOf(str, 16).longValue(); } catch (NumberFormatException e) { System.err.println("Unexpected long number parse error at line:" +yyline+" char:"+yychar()+" to "+(yychar() + str.length())); } */ yyreturn((YYtoken)( new HexLong_Token(YYtokentypes.LONG_LITERAL,yytext))); } YY_BREAK case 14: YY_RULE_SETUP #line 229 "alpha.lex" { /* String str = lexeme().substring(1,lexeme().length() - 1); Long_Token t = new Long_Token(YYtokentypes.LONG_LITERAL,yytext); Utility.assert(str.length() == lexeme().length() - 2); try { t.m_long = java.lang.Long.valueOf(str, 8).longValue(); } catch (NumberFormatException e) { System.err.println("Unexpected long number parse error at line:" +yyline+" char:"+yychar()+" to "+(yychar() + str.length())); } yyreturn((YYtoken)(t)); */ yyreturn((YYtoken)(new OctLong_Token(YYtokentypes.LONG_LITERAL,yytext))); } YY_BREAK case 15: YY_RULE_SETUP #line 245 "alpha.lex" { /* Int_Token t = new Int_Token(YYtokentypes.INT_LITERAL,yytext); try { t.m_int = java.lang.Integer.parseInt(lexeme()); } catch (NumberFormatException e) { System.err.println("Unexpected 10-based integer number parse error at line:" +yyline+" char:"+yychar()+" to "+(yychar() + lexeme().length())+"str "+lexeme()); } yyreturn((YYtoken)(t)); */ yyreturn((YYtoken)(new DecInt_Token(YYtokentypes.INT_LITERAL,yytext))); } YY_BREAK case 16: YY_RULE_SETUP #line 260 "alpha.lex" { /* String str = lexeme().substring(2,lexeme().length()); Int_Token t = new Int_Token(YYtokentypes.INT_LITERAL,yytext); Utility.assert(str.length() == lexeme().length() - 2); try { t.m_int = java.lang.Integer.parseInt(str, 16); } catch (NumberFormatException e) { System.err.println("Unexpected 16-based integer number parse error at line:" +yyline+" char:"+yychar()+" to "+(yychar() + str.length())); } yyreturn((YYtoken)(t)); */ yyreturn((YYtoken)(new OctInt_Token(YYtokentypes.INT_LITERAL,yytext))); } YY_BREAK case 17: YY_RULE_SETUP #line 277 "alpha.lex" { /* String str = lexeme(); Int_Token t = new Int_Token(YYtokentypes.INT_LITERAL,yytext); //Utility.assert(str.length() == lexeme().length() - 1); try { t.m_int = java.lang.Integer.parseInt(str, 8); } catch (NumberFormatException e) { System.err.println("Unexpected 8-based integer number parse error at line:" +yyline+" char:"+yychar()+" to "+(yychar() + str.length())); } yyreturn((YYtoken)(t)); */ yyreturn((YYtoken)(new DecInt_Token(YYtokentypes.INT_LITERAL,yytext))); } YY_BREAK case 18: YY_RULE_SETUP #line 295 "alpha.lex" { // String str = lexeme().substring(1,lexeme().length()-1); // Utility.assert(str.length() == lexeme().length() - 2); yyreturn((YYtoken)(new Char_Token(YYtokentypes.CHARACTER_LITERAL,yytext))); } YY_BREAK case 19: YY_RULE_SETUP #line 302 "alpha.lex" { } YY_BREAK case 20: YY_RULE_SETUP #line 303 "alpha.lex" { yybegin(INITIAL); yyreturn(new YYtoken(YYtokentypes.VERBATIM_OFF,yytext)); } YY_BREAK case 21: YY_RULE_SETUP #line 305 "alpha.lex" { // yybegin(VERB_SCAN); yybegin(VERB_ON); yyreturn(new YYtoken(YYtokentypes.VERBATIM_NSLJ,yytext));} YY_BREAK case 22: YY_RULE_SETUP #line 308 "alpha.lex" { // yybegin(VERB_SCAN); yybegin(VERB_ON); yyreturn(new YYtoken(YYtokentypes.VERBATIM_NSLC,yytext));} YY_BREAK case 23: YY_RULE_SETUP #line 311 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLJ,yytext));} YY_BREAK case 24: YY_RULE_SETUP #line 313 "alpha.lex" {yyreturn(new YYtoken(YYtokentypes.SPECIAL,yytext));} YY_BREAK case 25: YY_RULE_SETUP #line 314 "alpha.lex" {yyreturn(new YYtoken(YYtokentypes.SPECIAL,yytext));} YY_BREAK case 26: YY_RULE_SETUP #line 315 "alpha.lex" {yyreturn(new YYtoken(YYtokentypes.ARRAY,yytext));} YY_BREAK case 27: YY_RULE_SETUP #line 316 "alpha.lex" {yyreturn(new YYtoken(YYtokentypes.NEW,yytext));} YY_BREAK case 28: YY_RULE_SETUP #line 317 "alpha.lex" {yyreturn(new YYtoken(YYtokentypes.NSLMODULE,yytext));} YY_BREAK case 29: YY_RULE_SETUP #line 318 "alpha.lex" {yyreturn(new YYtoken(YYtokentypes.NSLMODULE,yytext));} YY_BREAK case 30: YY_RULE_SETUP #line 319 "alpha.lex" {yyreturn(new YYtoken(YYtokentypes.NSLMODULE,yytext));} YY_BREAK case 31: YY_RULE_SETUP #line 320 "alpha.lex" {yyreturn(new YYtoken(YYtokentypes.NSLMODEL,yytext));} YY_BREAK case 32: YY_RULE_SETUP #line 321 "alpha.lex" {yyreturn(new YYtoken(YYtokentypes.NSLCLASS,yytext));} YY_BREAK case 33: YY_RULE_SETUP #line 322 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.CONNECT,yytext));} YY_BREAK case 34: YY_RULE_SETUP #line 323 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.CONNECT,yytext));} YY_BREAK case 35: YY_RULE_SETUP #line 324 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.CONNECT,yytext));} YY_BREAK case 36: YY_RULE_SETUP #line 325 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 37: YY_RULE_SETUP #line 326 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 38: YY_RULE_SETUP #line 327 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 39: YY_RULE_SETUP #line 328 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 40: YY_RULE_SETUP #line 329 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 41: YY_RULE_SETUP #line 330 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 42: YY_RULE_SETUP #line 331 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 43: YY_RULE_SETUP #line 332 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 44: YY_RULE_SETUP #line 333 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 45: YY_RULE_SETUP #line 334 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 46: YY_RULE_SETUP #line 335 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 47: YY_RULE_SETUP #line 336 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 48: YY_RULE_SETUP #line 337 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 49: YY_RULE_SETUP #line 338 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 50: YY_RULE_SETUP #line 339 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 51: YY_RULE_SETUP #line 340 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 52: YY_RULE_SETUP #line 341 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 53: YY_RULE_SETUP #line 342 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 54: YY_RULE_SETUP #line 343 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 55: YY_RULE_SETUP #line 344 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 56: YY_RULE_SETUP #line 345 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 57: YY_RULE_SETUP #line 346 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 58: YY_RULE_SETUP #line 347 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 59: YY_RULE_SETUP #line 348 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 60: YY_RULE_SETUP #line 349 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 61: YY_RULE_SETUP #line 350 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 62: YY_RULE_SETUP #line 351 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 63: YY_RULE_SETUP #line 352 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 64: YY_RULE_SETUP #line 353 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 65: YY_RULE_SETUP #line 354 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 66: YY_RULE_SETUP #line 355 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 67: YY_RULE_SETUP #line 356 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 68: YY_RULE_SETUP #line 357 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 69: YY_RULE_SETUP #line 358 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 70: YY_RULE_SETUP #line 359 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 71: YY_RULE_SETUP #line 360 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 72: YY_RULE_SETUP #line 361 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 73: YY_RULE_SETUP #line 362 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 74: YY_RULE_SETUP #line 363 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 75: YY_RULE_SETUP #line 364 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 76: YY_RULE_SETUP #line 365 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 77: YY_RULE_SETUP #line 366 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 78: YY_RULE_SETUP #line 367 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 79: YY_RULE_SETUP #line 368 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 80: YY_RULE_SETUP #line 369 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 81: YY_RULE_SETUP #line 370 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 82: YY_RULE_SETUP #line 371 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 83: YY_RULE_SETUP #line 372 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 84: YY_RULE_SETUP #line 373 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 85: YY_RULE_SETUP #line 374 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 86: YY_RULE_SETUP #line 375 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 87: YY_RULE_SETUP #line 376 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 88: YY_RULE_SETUP #line 377 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 89: YY_RULE_SETUP #line 378 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 90: YY_RULE_SETUP #line 379 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 91: YY_RULE_SETUP #line 380 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 92: YY_RULE_SETUP #line 381 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 93: YY_RULE_SETUP #line 382 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 94: YY_RULE_SETUP #line 383 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 95: YY_RULE_SETUP #line 384 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 96: YY_RULE_SETUP #line 385 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 97: YY_RULE_SETUP #line 386 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 98: YY_RULE_SETUP #line 387 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 99: YY_RULE_SETUP #line 388 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLMULTI,yytext));} YY_BREAK case 100: YY_RULE_SETUP #line 395 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.ABSTRACT,yytext));} YY_BREAK case 101: YY_RULE_SETUP #line 396 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.BOOLEAN,yytext));} YY_BREAK case 102: YY_RULE_SETUP #line 397 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.BREAK,yytext));} YY_BREAK case 103: YY_RULE_SETUP #line 398 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.BYTE,yytext));} YY_BREAK case 104: YY_RULE_SETUP #line 399 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.CASE,yytext));} YY_BREAK case 105: YY_RULE_SETUP #line 400 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.CATCH,yytext));} YY_BREAK case 106: YY_RULE_SETUP #line 401 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.CHAR, yytext));} YY_BREAK case 107: YY_RULE_SETUP #line 402 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.CLASS,yytext));} YY_BREAK case 108: YY_RULE_SETUP #line 403 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.CONTINUE,yytext));} YY_BREAK case 109: YY_RULE_SETUP #line 404 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.DEFAULT, yytext));} YY_BREAK case 110: YY_RULE_SETUP #line 405 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.DO , yytext));} YY_BREAK case 111: YY_RULE_SETUP #line 406 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.DOUBLE, yytext));} YY_BREAK case 112: YY_RULE_SETUP #line 407 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.EXTENDS, yytext));} YY_BREAK case 113: YY_RULE_SETUP #line 408 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.ELSE, yytext));} YY_BREAK case 114: YY_RULE_SETUP #line 410 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.FALSE_TOKEN, yytext));} YY_BREAK case 115: YY_RULE_SETUP #line 412 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.FINAL, yytext));} YY_BREAK case 116: YY_RULE_SETUP #line 413 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.FINALLY, yytext));} YY_BREAK case 117: YY_RULE_SETUP #line 414 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.FLOAT , yytext));} YY_BREAK case 118: YY_RULE_SETUP #line 415 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.FOR , yytext));} YY_BREAK case 119: YY_RULE_SETUP #line 416 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.IF , yytext));} YY_BREAK case 120: YY_RULE_SETUP #line 417 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.IMPLEMENTS, yytext));} YY_BREAK case 121: YY_RULE_SETUP #line 418 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NSLIMPORT , yytext));} YY_BREAK case 122: YY_RULE_SETUP #line 419 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.INSTANCEOF, yytext));} YY_BREAK case 123: YY_RULE_SETUP #line 420 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.INT , yytext));} YY_BREAK case 124: YY_RULE_SETUP #line 421 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.INTERFACE, yytext));} YY_BREAK case 125: YY_RULE_SETUP #line 422 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.LONG , yytext));} YY_BREAK case 126: YY_RULE_SETUP #line 423 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NATIVE , yytext));} YY_BREAK case 127: YY_RULE_SETUP #line 424 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NEW , yytext));} YY_BREAK case 128: YY_RULE_SETUP #line 425 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NULL_TOKEN , yytext));} YY_BREAK case 129: YY_RULE_SETUP #line 427 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.PACKAGE , yytext));} YY_BREAK case 130: YY_RULE_SETUP #line 428 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.PRIVATE , yytext));} YY_BREAK case 131: YY_RULE_SETUP #line 429 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.PROTECTED, yytext));} YY_BREAK case 132: YY_RULE_SETUP #line 430 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.PUBLIC , yytext));} YY_BREAK case 133: YY_RULE_SETUP #line 431 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.RETURN , yytext));} YY_BREAK case 134: YY_RULE_SETUP #line 432 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.SHORT , yytext));} YY_BREAK case 135: YY_RULE_SETUP #line 433 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.STATIC , yytext));} YY_BREAK case 136: YY_RULE_SETUP #line 434 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.SUPER , yytext));} YY_BREAK case 137: YY_RULE_SETUP #line 435 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.SWITCH , yytext));} YY_BREAK case 138: YY_RULE_SETUP #line 436 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.SYNCHRONIZED, yytext));} YY_BREAK case 139: YY_RULE_SETUP #line 437 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.THIS , yytext));} YY_BREAK case 140: YY_RULE_SETUP #line 438 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.THROW , yytext));} YY_BREAK case 141: YY_RULE_SETUP #line 439 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.THROWS , yytext));} YY_BREAK case 142: YY_RULE_SETUP #line 440 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.TRANSIENT, yytext));} YY_BREAK case 143: YY_RULE_SETUP #line 441 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.VOLATILE , yytext));} YY_BREAK case 144: YY_RULE_SETUP #line 442 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.TRUE_TOKEN, yytext));} YY_BREAK case 145: YY_RULE_SETUP #line 443 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.TRY , yytext));} YY_BREAK case 146: YY_RULE_SETUP #line 444 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.VOID , yytext));} YY_BREAK case 147: YY_RULE_SETUP #line 445 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.WHILE , yytext));} YY_BREAK case 148: YY_RULE_SETUP #line 447 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.SHIFT_RIGHT_EQUALS, yytext));} YY_BREAK case 149: YY_RULE_SETUP #line 448 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.FILL_SHIFT_RIGHT_EQUALS, yytext));} YY_BREAK case 150: YY_RULE_SETUP #line 449 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.SHIFT_LEFT_EQUALS, yytext));} YY_BREAK case 151: YY_RULE_SETUP #line 450 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.ADD_EQUALS, yytext));} YY_BREAK case 152: YY_RULE_SETUP #line 451 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.SUB_EQUALS, yytext));} YY_BREAK case 153: YY_RULE_SETUP #line 452 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.MUL_EQUALS, yytext));} YY_BREAK case 154: YY_RULE_SETUP #line 453 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.DIV_EQUALS, yytext));} YY_BREAK case 155: YY_RULE_SETUP #line 454 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.MOD_EQUALS, yytext));} YY_BREAK case 156: YY_RULE_SETUP #line 455 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.AND_EQUALS, yytext));} YY_BREAK case 157: YY_RULE_SETUP #line 456 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.XOR_EQUALS, yytext));} YY_BREAK case 158: YY_RULE_SETUP #line 457 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.OR_EQUALS, yytext));} YY_BREAK case 159: YY_RULE_SETUP #line 458 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.BITSHIFT_RIGHT, yytext));} YY_BREAK case 160: YY_RULE_SETUP #line 459 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.FILL_SHIFT_RIGHT, yytext));} YY_BREAK case 161: YY_RULE_SETUP #line 460 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.SHIFT_LEFT, yytext));} YY_BREAK case 162: YY_RULE_SETUP #line 461 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.INCR, yytext));} YY_BREAK case 163: YY_RULE_SETUP #line 462 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.DECR, yytext));} YY_BREAK case 164: YY_RULE_SETUP #line 463 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.AND, yytext));} YY_BREAK case 165: YY_RULE_SETUP #line 464 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.OR, yytext));} YY_BREAK case 166: YY_RULE_SETUP #line 465 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.LTEQ, yytext));} YY_BREAK case 167: YY_RULE_SETUP #line 466 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.GTEQ, yytext));} YY_BREAK case 168: YY_RULE_SETUP #line 467 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.EQUAL_COMPARE, yytext));} YY_BREAK case 169: YY_RULE_SETUP #line 468 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.NOT_EQUAL, yytext));} YY_BREAK case 170: YY_RULE_SETUP #line 469 "alpha.lex" { yyreturn(new YYtoken((yytext.lexeme()).charAt(0), yytext));} YY_BREAK case 171: YY_RULE_SETUP #line 470 "alpha.lex" { yyreturn(new YYtoken((yytext.lexeme()).charAt(0), yytext));} YY_BREAK case 172: YY_RULE_SETUP #line 471 "alpha.lex" { yyreturn(new YYtoken((yytext.lexeme()).charAt(0), yytext));} YY_BREAK case 173: YY_RULE_SETUP #line 472 "alpha.lex" { yyreturn(new YYtoken((yytext.lexeme()).charAt(0), yytext));} YY_BREAK case 174: YY_RULE_SETUP #line 473 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.BIT_MUL, yytext));} YY_BREAK case 175: YY_RULE_SETUP #line 475 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.STRING, yytext));} YY_BREAK case 176: YY_RULE_SETUP #line 476 "alpha.lex" { yyreturn(new YYtoken(YYtokentypes.STRING, yytext));} YY_BREAK case 177: YY_RULE_SETUP #line 478 "alpha.lex" { YYtoken t =new YYtoken(YYtokentypes.SYMBOL, yytext); yyreturn(t); } YY_BREAK case 178: YY_RULE_SETUP #line 485 "alpha.lex" { System.out.println("Illegal character: <" + yytext.lexeme() + "> at line "+yyline()); Utility.error(Utility.E_UNMATCHED); } YY_BREAK case 179: YY_RULE_SETUP #line 490 "alpha.lex" ECHO; YY_BREAK #line 2203 "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 >= 722 ) 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 >= 722 ) 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 == 721); 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 490 "alpha.lex" private int comment_count = 0; NslPreProcessor npp; public void init(NslPreProcessor npp) { npp.setWholeBuffer(yytext.wholebuffer); }