#line 2 "Parser/lex.yy.cc" /* A lexical scanner generated by flex */ /* Scanner skeleton version: * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #include /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ #ifdef c_plusplus #ifndef __cplusplus #define __cplusplus #endif #endif #ifdef __cplusplus #include #include /* Use prototypes in function declarations. */ #define YY_USE_PROTOS /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ #if __STDC__ #define YY_USE_PROTOS #define YY_USE_CONST #endif /* __STDC__ */ #endif /* ! __cplusplus */ #ifdef __TURBOC__ #pragma warn -rch #pragma warn -use #include #include #define YY_USE_CONST #define YY_USE_PROTOS #endif #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif #ifdef YY_USE_PROTOS #define YY_PROTO(proto) proto #else #define YY_PROTO(proto) () #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN yy_start = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START ((yy_start - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE yyrestart( yyin ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #define YY_BUF_SIZE 16384 typedef struct yy_buffer_state *YY_BUFFER_STATE; extern int yyleng; extern FILE *yyin, *yyout; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 /* The funky do-while in the following #define is used to turn the definition * int a single C statement (which needs a semi-colon terminator). This * avoids problems with code like: * * if ( condition_holds ) * yyless( 5 ); * else * do_something_else(); * * Prior to using the do-while the compiler would get upset at the * "else" because it interpreted the "if" statement as being all * done when it reached the ';' after the yyless() call. */ /* Return all but the first 'n' matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ *yy_cp = yy_hold_char; \ YY_RESTORE_YY_MORE_OFFSET \ yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up yytext again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, yytext_ptr ) /* The following is because we cannot portably get our hands on size_t * (without autoconf's help, which isn't available because we want * flex-generated scanners to compile on their own). */ typedef unsigned int yy_size_t; struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via yyrestart()), so that the user can continue scanning by * just pointing yyin at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; static YY_BUFFER_STATE yy_current_buffer = 0; /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". */ #define YY_CURRENT_BUFFER yy_current_buffer /* yy_hold_char holds the character lost when yytext is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ int yyleng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 1; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow yywrap()'s to do buffer switches * instead of setting up a fresh yyin. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void yyrestart YY_PROTO(( FILE *input_file )); void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); void yy_load_buffer_state YY_PROTO(( void )); YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); static void *yy_flex_alloc YY_PROTO(( yy_size_t )); static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); static void yy_flex_free YY_PROTO(( void * )); #define yy_new_buffer yy_create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! yy_current_buffer ) \ yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ yy_current_buffer->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (yy_current_buffer->yy_at_bol) #define YY_USES_REJECT typedef unsigned char YY_CHAR; FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern int yylineno; int yylineno = 1; 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 150 #define YY_END_OF_BUFFER 151 static yyconst short int yy_acclist[636] = { 0, 151, 149, 150, 7, 149, 150, 9, 150, 8, 149, 150, 110, 149, 150, 149, 150, 85, 149, 150, 115, 149, 150, 118, 149, 150, 149, 150, 97, 149, 150, 98, 149, 150, 113, 149, 150, 111, 149, 150, 101, 149, 150, 112, 149, 150, 104, 149, 150, 114, 149, 150, 86, 89, 149, 150, 87, 88, 149, 150, 88, 149, 150, 102, 149, 150, 103, 149, 150, 120, 149, 150, 122, 149, 150, 121, 149, 150, 123, 149, 150, 85, 149, 150, 95, 149, 150, 149, 150, 96, 149, 150, 116, 149, 150, 85, 149, 150, 85, 149, 150, 85, 149, 150, 85, 149, 150, 85, 149, 150, 85, 149, 150, 85, 149, 150, 85, 149, 150, 85, 149, 150, 85, 149, 150, 85, 149, 150, 85, 149, 150, 85, 149, 150, 85, 149, 150, 85, 149, 150, 85, 149, 150, 99, 149, 150, 119, 149, 150, 100, 149, 150, 117, 149, 150, 7, 149, 150, 149, 150, 4, 150, 4, 150, 7, 9, 8, 127, 145, 94, 85, 139, 109, 132, 140, 93, 137, 124, 135, 125, 136, 134, 91, 3, 138, 91, 89, 89, 89, 89, 88, 88, 88, 88, 107, 108, 106, 128, 130, 126, 131, 129, 142, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 33, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 47, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 141, 133, 7, 2, 5, 105, 91, 91, 6, 89, 91, 89, 89, 89, 89, 90, 88, 88, 88, 88, 143, 144, 147, 146, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 12, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 42, 85, 85, 85, 85, 54, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 72, 85, 85, 85, 85, 85, 85, 85, 148, 91, 91, 89, 89, 90, 90, 90, 90, 88, 88, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 17, 85, 85, 20, 85, 85, 22, 85, 85, 85, 85, 85, 85, 85, 36, 85, 37, 85, 85, 85, 85, 85, 85, 85, 46, 85, 85, 56, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 73, 85, 85, 85, 80, 85, 85, 85, 91, 90, 90, 92, 90, 90, 18, 85, 85, 85, 85, 13, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 85, 19, 85, 21, 85, 85, 27, 85, 85, 85, 85, 85, 35, 85, 85, 85, 41, 85, 85, 85, 45, 85, 85, 85, 85, 85, 85, 63, 85, 85, 85, 85, 85, 85, 71, 85, 85, 85, 78, 85, 85, 85, 84, 85, 92, 90, 92, 92, 90, 85, 85, 85, 85, 85, 85, 85, 85, 85, 49, 85, 85, 85, 85, 85, 85, 85, 23, 85, 85, 85, 85, 34, 85, 39, 85, 85, 43, 85, 85, 51, 85, 57, 85, 85, 85, 62, 85, 64, 85, 67, 85, 68, 85, 69, 85, 70, 85, 85, 75, 85, 85, 85, 1, 2, 92, 85, 85, 85, 14, 85, 85, 85, 28, 85, 85, 85, 85, 85, 85, 85, 85, 85, 30, 85, 85, 32, 85, 85, 44, 85, 85, 85, 74, 85, 85, 85, 24, 85, 85, 85, 85, 85, 85, 85, 50, 85, 52, 85, 85, 85, 65, 85, 76, 85, 85, 31, 85, 40, 85, 58, 85, 59, 85, 79, 85, 81, 85, 85, 10, 85, 85, 25, 85, 29, 85, 85, 85, 55, 85, 85, 85, 85, 85, 48, 85, 85, 85, 85, 85, 53, 85, 60, 85, 66, 85, 77, 85, 82, 85, 11, 85, 15, 85, 26, 85, 85, 85, 85, 85, 85, 61, 85, 83, 85, 16, 85, 38, 85 } ; static yyconst short int yy_accept[619] = { 0, 1, 1, 1, 1, 1, 2, 4, 7, 9, 12, 15, 17, 20, 23, 26, 28, 31, 34, 37, 40, 43, 46, 49, 52, 56, 60, 63, 66, 69, 72, 75, 78, 81, 84, 87, 89, 92, 95, 98, 101, 104, 107, 110, 113, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149, 152, 155, 158, 160, 162, 164, 165, 166, 166, 167, 168, 169, 169, 170, 170, 171, 171, 172, 173, 174, 175, 175, 176, 176, 177, 178, 179, 180, 181, 182, 182, 183, 184, 184, 185, 186, 187, 187, 187, 188, 189, 189, 189, 190, 191, 192, 193, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 244, 244, 244, 245, 245, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 246, 247, 248, 248, 249, 249, 249, 250, 250, 251, 251, 251, 251, 252, 252, 253, 254, 255, 256, 256, 257, 257, 257, 258, 259, 260, 261, 261, 262, 263, 263, 264, 265, 265, 265, 265, 265, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 296, 297, 298, 299, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 315, 316, 317, 318, 319, 320, 321, 321, 321, 321, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 322, 323, 323, 323, 323, 324, 324, 325, 326, 326, 326, 327, 328, 328, 329, 329, 330, 331, 332, 332, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 349, 350, 352, 353, 355, 356, 357, 358, 359, 360, 361, 363, 365, 366, 367, 368, 369, 370, 371, 373, 374, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 389, 390, 391, 393, 394, 395, 395, 395, 395, 395, 395, 395, 395, 395, 395, 395, 395, 396, 396, 396, 396, 396, 396, 396, 397, 398, 398, 399, 399, 400, 401, 401, 401, 401, 403, 404, 405, 406, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 421, 423, 424, 426, 427, 428, 429, 430, 432, 433, 434, 436, 437, 438, 440, 441, 442, 443, 444, 445, 447, 448, 449, 450, 451, 452, 454, 455, 456, 458, 459, 460, 462, 462, 462, 462, 462, 462, 462, 462, 462, 462, 463, 463, 463, 464, 465, 466, 466, 467, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 478, 479, 480, 481, 482, 483, 484, 486, 487, 488, 489, 491, 493, 494, 496, 497, 499, 501, 502, 503, 505, 507, 509, 511, 513, 515, 516, 518, 519, 520, 520, 522, 522, 522, 522, 522, 522, 523, 523, 523, 523, 524, 525, 526, 528, 529, 530, 532, 533, 534, 535, 536, 537, 538, 539, 540, 542, 543, 545, 546, 548, 549, 550, 552, 553, 554, 554, 554, 554, 554, 554, 556, 557, 558, 559, 560, 561, 562, 564, 566, 567, 568, 570, 572, 573, 575, 577, 579, 581, 583, 585, 585, 585, 585, 585, 586, 588, 589, 591, 593, 594, 595, 597, 598, 599, 600, 601, 601, 601, 601, 603, 604, 605, 606, 607, 609, 611, 613, 615, 617, 619, 621, 623, 624, 625, 626, 627, 628, 630, 632, 634, 636, 636 } ; static yyconst int yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 5, 6, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 25, 25, 25, 25, 25, 26, 26, 27, 28, 29, 30, 31, 32, 1, 33, 34, 35, 33, 36, 37, 11, 11, 38, 11, 11, 39, 11, 11, 11, 40, 11, 11, 11, 11, 41, 11, 11, 42, 11, 11, 43, 44, 45, 46, 47, 1, 48, 49, 50, 51, 52, 53, 54, 55, 56, 11, 57, 58, 59, 60, 61, 62, 11, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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[76] = { 0, 1, 1, 2, 1, 1, 1, 1, 1, 3, 1, 4, 1, 1, 3, 1, 1, 1, 1, 1, 1, 5, 1, 6, 6, 6, 7, 1, 1, 1, 1, 1, 3, 7, 7, 7, 7, 7, 4, 8, 9, 10, 4, 1, 11, 1, 1, 12, 6, 6, 7, 7, 6, 6, 4, 4, 4, 4, 8, 4, 11, 4, 9, 11, 4, 11, 10, 11, 4, 11, 4, 4, 1, 1, 1, 1 } ; static yyconst short int yy_base[678] = { 0, 0, 74, 1651, 1650, 1666, 1669, 83, 1669, 89, 47, 69, 1621, 52, 67, 84, 1669, 1669, 69, 82, 1669, 85, 83, 101, 111, 160, 0, 1633, 1669, 112, 1633, 72, 219, 111, 1669, 78, 1669, 1632, 126, 82, 66, 101, 107, 131, 144, 77, 134, 149, 78, 189, 127, 67, 96, 99, 1669, 103, 1669, 1629, 218, 244, 1669, 1638, 269, 1669, 275, 281, 1669, 285, 170, 1669, 271, 1615, 163, 1669, 1669, 1669, 1669, 151, 1669, 276, 1669, 1626, 1669, 1625, 1669, 1669, 1635, 296, 1669, 1652, 1669, 327, 336, 346, 366, 172, 159, 209, 371, 194, 0, 225, 201, 378, 268, 1669, 1669, 1669, 1624, 1669, 1669, 1669, 1623, 1622, 176, 223, 1635, 231, 293, 309, 274, 379, 278, 325, 1618, 306, 314, 280, 333, 0, 0, 1669, 269, 355, 199, 376, 329, 356, 122, 383, 394, 159, 274, 321, 387, 371, 401, 389, 318, 402, 405, 406, 407, 1605, 408, 362, 412, 415, 409, 417, 414, 430, 420, 421, 431, 434, 438, 441, 1669, 1669, 497, 503, 1645, 509, 1669, 515, 1669, 1617, 457, 483, 489, 512, 516, 493, 520, 513, 523, 1614, 526, 527, 538, 0, 0, 0, 0, 0, 546, 0, 0, 0, 1669, 541, 561, 1669, 577, 1642, 1669, 559, 0, 595, 602, 549, 620, 640, 443, 1669, 1605, 1585, 0, 629, 562, 656, 454, 1669, 1603, 1583, 660, 1669, 1669, 1608, 1669, 1669, 559, 574, 1594, 0, 0, 470, 548, 589, 644, 507, 553, 596, 604, 571, 595, 627, 628, 1594, 631, 646, 649, 331, 633, 654, 655, 656, 561, 661, 662, 666, 669, 668, 674, 680, 667, 672, 618, 1593, 673, 686, 687, 688, 690, 691, 448, 694, 692, 693, 695, 697, 1592, 696, 703, 705, 711, 719, 707, 766, 763, 1603, 1669, 720, 744, 1589, 761, 0, 0, 797, 0, 0, 757, 0, 0, 837, 764, 771, 789, 812, 829, 854, 871, 1669, 1669, 764, 852, 881, 759, 880, 744, 756, 798, 1669, 1669, 0, 0, 734, 755, 813, 735, 783, 775, 784, 865, 821, 824, 867, 869, 871, 822, 873, 1589, 875, 1588, 879, 1587, 882, 891, 892, 893, 894, 831, 1586, 1585, 897, 896, 898, 906, 905, 901, 1584, 907, 1583, 910, 911, 914, 918, 913, 921, 922, 926, 930, 935, 925, 940, 927, 942, 1582, 944, 945, 989, 963, 0, 0, 0, 0, 0, 976, 0, 0, 0, 979, 988, 998, 968, 1024, 989, 955, 953, 1669, 1029, 1033, 1042, 1586, 1566, 1042, 0, 0, 1579, 1017, 984, 956, 987, 1025, 1030, 1020, 1033, 989, 1034, 1035, 1029, 1049, 1051, 1053, 1578, 1577, 1054, 1576, 1052, 1055, 1058, 1061, 1575, 1063, 1067, 1574, 1066, 1070, 1573, 1068, 1073, 1075, 1082, 1083, 1572, 955, 588, 1084, 1085, 1086, 1571, 1087, 1089, 1570, 1088, 1091, 1569, 1609, 0, 0, 0, 0, 0, 0, 1128, 1132, 1137, 1146, 1097, 1669, 1154, 1669, 1163, 1669, 0, 1498, 1121, 1123, 1137, 1102, 1138, 1141, 1148, 1154, 1159, 1160, 1161, 1152, 1165, 1164, 1167, 1497, 1174, 1178, 1180, 1495, 1463, 1179, 1433, 1183, 1432, 1431, 1182, 1185, 1430, 1412, 1411, 1410, 1408, 1407, 1092, 1403, 1184, 1189, 1443, 1669, 0, 1221, 0, 0, 1217, 1225, 1229, 1233, 0, 1194, 1193, 1216, 1401, 1225, 1223, 1226, 1227, 1237, 1241, 1242, 1244, 1246, 1248, 1250, 1399, 1251, 1398, 1252, 1374, 1235, 1255, 1365, 1258, 1260, 0, 0, 0, 1290, 0, 1353, 1261, 1264, 1263, 1266, 1275, 1267, 1338, 1281, 1283, 1196, 1287, 1289, 1282, 1337, 1317, 1124, 1032, 995, 994, 0, 0, 0, 0, 1277, 1294, 1288, 1295, 814, 1299, 1301, 772, 1300, 1302, 1307, 1306, 0, 0, 0, 749, 1308, 1312, 1315, 1313, 698, 1319, 532, 493, 1323, 437, 1324, 324, 1325, 1330, 1331, 1332, 1336, 246, 198, 171, 123, 1669, 1383, 1395, 1404, 1416, 1428, 1438, 1447, 1458, 1466, 1473, 1475, 1477, 1479, 1481, 1483, 1485, 1487, 1489, 1491, 1493, 1496, 1503, 1505, 1512, 1519, 1521, 1523, 1525, 1527, 1529, 1531, 1538, 1540, 1542, 1544, 1546, 1548, 1550, 1552, 1554, 1556, 1563, 1570, 1572, 1574, 1576, 1578, 1580, 1582, 1584, 1586, 1588, 1590, 1592, 1594, 1596, 1598, 1600, 1602, 1604 } ; static yyconst short int yy_def[678] = { 0, 617, 1, 618, 618, 617, 617, 617, 617, 617, 617, 619, 620, 617, 617, 621, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 25, 617, 617, 617, 617, 617, 617, 620, 617, 617, 617, 617, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 617, 617, 617, 617, 617, 622, 617, 617, 617, 617, 617, 617, 617, 617, 619, 617, 623, 620, 617, 617, 617, 617, 617, 621, 617, 624, 617, 617, 617, 617, 617, 617, 617, 617, 617, 625, 617, 617, 24, 617, 617, 617, 617, 626, 617, 617, 25, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 619, 621, 627, 628, 617, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 617, 617, 617, 622, 622, 622, 617, 622, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 619, 629, 630, 631, 632, 633, 621, 634, 635, 636, 617, 617, 617, 617, 617, 625, 617, 617, 92, 617, 617, 617, 617, 617, 617, 617, 617, 617, 637, 638, 626, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 639, 640, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 622, 641, 617, 617, 617, 617, 617, 619, 642, 643, 619, 644, 645, 621, 646, 647, 621, 617, 617, 617, 617, 617, 617, 617, 617, 617, 648, 637, 638, 617, 617, 617, 317, 617, 617, 617, 649, 650, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 641, 619, 651, 652, 299, 653, 654, 621, 655, 656, 305, 617, 617, 617, 648, 617, 648, 617, 617, 617, 617, 617, 617, 617, 617, 317, 657, 658, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 659, 660, 661, 662, 663, 664, 665, 617, 617, 617, 617, 648, 617, 617, 617, 617, 617, 666, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 659, 617, 667, 619, 668, 669, 621, 617, 617, 617, 670, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 671, 672, 673, 617, 674, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 675, 676, 677, 658, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 661, 663, 665, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 620, 0, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617 } ; static yyconst short int yy_nxt[1745] = { 0, 6, 7, 8, 9, 9, 9, 7, 10, 11, 6, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 26, 27, 28, 29, 30, 31, 32, 12, 12, 12, 12, 12, 12, 33, 12, 12, 12, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 12, 46, 12, 47, 12, 12, 12, 12, 48, 49, 50, 51, 52, 53, 12, 12, 12, 54, 55, 56, 57, 58, 66, 69, 67, 75, 58, 73, 74, 59, 62, 63, 64, 64, 64, 62, 64, 63, 65, 65, 65, 64, 76, 78, 80, 81, 67, 111, 112, 86, 83, 87, 87, 87, 87, 72, 72, 82, 70, 67, 84, 85, 67, 88, 129, 127, 72, 72, 89, 106, 128, 72, 165, 79, 138, 157, 90, 91, 168, 92, 92, 92, 93, 152, 107, 72, 108, 109, 72, 130, 72, 136, 94, 137, 139, 95, 72, 96, 97, 167, 72, 140, 166, 98, 142, 132, 133, 141, 94, 134, 78, 72, 72, 143, 99, 72, 72, 144, 135, 251, 72, 169, 96, 72, 69, 97, 91, 162, 100, 100, 100, 100, 153, 72, 145, 163, 146, 148, 72, 154, 79, 94, 164, 216, 101, 147, 102, 149, 72, 194, 150, 229, 103, 230, 151, 155, 214, 94, 215, 70, 72, 156, 217, 104, 256, 170, 63, 64, 64, 64, 170, 102, 113, 171, 195, 218, 114, 115, 72, 116, 215, 117, 118, 215, 119, 224, 120, 72, 72, 158, 159, 173, 174, 121, 122, 123, 173, 214, 229, 160, 230, 220, 161, 239, 225, 215, 229, 124, 230, 222, 125, 223, 175, 175, 175, 175, 62, 63, 64, 64, 64, 62, 64, 63, 64, 64, 64, 64, 64, 63, 65, 65, 65, 64, 69, 72, 223, 126, 177, 190, 190, 190, 178, 179, 196, 196, 196, 180, 181, 229, 182, 230, 183, 229, 223, 230, 231, 191, 72, 184, 185, 186, 197, 72, 201, 201, 201, 201, 229, 70, 230, 222, 257, 187, 231, 237, 188, 202, 203, 223, 203, 229, 192, 230, 229, 193, 230, 198, 204, 229, 199, 230, 78, 202, 203, 87, 87, 87, 87, 203, 229, 233, 230, 189, 208, 208, 208, 72, 202, 203, 72, 203, 91, 72, 93, 93, 93, 93, 72, 207, 72, 263, 79, 617, 202, 203, 345, 94, 209, 211, 203, 211, 258, 249, 212, 212, 212, 212, 210, 92, 92, 92, 93, 94, 72, 72, 100, 100, 100, 100, 617, 72, 94, 232, 229, 95, 230, 96, 213, 94, 72, 238, 101, 221, 102, 72, 250, 270, 94, 240, 226, 241, 72, 242, 99, 94, 72, 243, 72, 244, 260, 104, 96, 72, 245, 246, 247, 254, 248, 102, 72, 72, 252, 253, 72, 72, 72, 72, 72, 262, 255, 72, 259, 72, 72, 271, 72, 278, 264, 72, 72, 268, 261, 265, 272, 275, 276, 267, 269, 72, 72, 266, 279, 72, 273, 274, 72, 72, 281, 313, 72, 280, 291, 277, 292, 284, 282, 72, 283, 286, 323, 287, 288, 285, 170, 63, 64, 64, 64, 170, 173, 174, 171, 369, 313, 173, 173, 174, 291, 72, 292, 173, 289, 174, 291, 323, 292, 289, 291, 290, 292, 175, 175, 175, 175, 292, 327, 175, 175, 175, 175, 292, 72, 175, 175, 175, 175, 291, 291, 292, 292, 291, 69, 292, 293, 291, 72, 292, 291, 294, 292, 291, 291, 292, 292, 78, 296, 296, 296, 201, 201, 201, 201, 333, 302, 302, 302, 212, 212, 212, 212, 72, 202, 203, 306, 203, 306, 70, 218, 307, 307, 307, 307, 204, 229, 79, 230, 72, 202, 203, 202, 203, 72, 203, 203, 201, 201, 201, 201, 229, 72, 230, 328, 308, 617, 351, 202, 203, 202, 203, 72, 203, 203, 208, 208, 208, 93, 334, 338, 309, 93, 93, 93, 93, 202, 203, 94, 72, 72, 95, 203, 96, 329, 94, 72, 72, 507, 310, 311, 311, 311, 311, 94, 72, 221, 316, 339, 337, 99, 94, 335, 336, 203, 211, 203, 211, 96, 72, 212, 212, 212, 212, 312, 318, 319, 320, 72, 72, 203, 362, 72, 321, 72, 203, 93, 93, 93, 93, 100, 100, 100, 100, 322, 72, 341, 72, 319, 342, 72, 343, 320, 346, 340, 72, 72, 72, 344, 330, 221, 350, 72, 72, 226, 331, 332, 72, 72, 72, 72, 353, 347, 72, 72, 72, 348, 349, 355, 357, 352, 72, 354, 356, 363, 358, 360, 72, 72, 72, 361, 72, 72, 72, 72, 72, 72, 72, 72, 72, 365, 364, 359, 370, 72, 375, 72, 291, 72, 292, 366, 368, 72, 367, 371, 374, 372, 373, 377, 378, 72, 376, 380, 174, 379, 289, 174, 69, 78, 172, 289, 291, 290, 292, 617, 72, 72, 388, 388, 388, 404, 382, 382, 382, 307, 307, 307, 307, 412, 409, 72, 392, 392, 392, 392, 399, 72, 400, 79, 405, 406, 396, 70, 69, 306, 203, 306, 203, 397, 307, 307, 307, 307, 72, 410, 393, 72, 385, 385, 385, 385, 203, 400, 396, 72, 72, 203, 385, 385, 385, 385, 385, 201, 201, 201, 201, 400, 414, 70, 413, 415, 416, 385, 385, 385, 385, 385, 385, 78, 208, 208, 208, 93, 399, 72, 72, 309, 391, 391, 391, 391, 400, 72, 72, 411, 72, 418, 391, 391, 391, 391, 391, 72, 310, 311, 311, 311, 311, 79, 419, 433, 423, 391, 391, 391, 391, 391, 391, 203, 396, 203, 311, 311, 311, 311, 401, 398, 401, 312, 316, 402, 402, 402, 402, 203, 203, 72, 203, 72, 203, 72, 396, 72, 420, 72, 394, 72, 318, 319, 320, 72, 203, 422, 72, 403, 321, 203, 417, 424, 425, 421, 426, 72, 72, 72, 72, 322, 72, 72, 72, 319, 429, 72, 427, 320, 430, 72, 72, 72, 432, 439, 72, 72, 428, 72, 72, 431, 434, 435, 72, 436, 437, 72, 72, 440, 438, 72, 72, 72, 69, 446, 72, 442, 441, 443, 445, 72, 449, 444, 448, 447, 72, 450, 72, 454, 72, 72, 78, 452, 174, 451, 470, 396, 455, 457, 458, 72, 72, 453, 392, 392, 392, 392, 506, 70, 396, 456, 479, 392, 392, 392, 392, 397, 203, 396, 203, 470, 79, 311, 311, 311, 311, 203, 393, 203, 72, 396, 396, 72, 203, 72, 480, 465, 469, 203, 72, 72, 478, 203, 466, 485, 466, 394, 203, 467, 467, 467, 467, 396, 402, 402, 402, 402, 471, 471, 471, 471, 401, 72, 401, 617, 72, 402, 402, 402, 402, 72, 472, 468, 472, 72, 72, 477, 72, 72, 72, 72, 473, 617, 617, 617, 483, 484, 472, 487, 481, 406, 486, 472, 482, 72, 488, 72, 72, 72, 72, 72, 617, 491, 72, 490, 617, 72, 492, 72, 617, 489, 72, 72, 72, 496, 72, 494, 495, 72, 500, 72, 501, 493, 498, 497, 499, 502, 72, 72, 72, 72, 72, 72, 72, 72, 508, 72, 72, 617, 504, 511, 503, 510, 512, 505, 469, 548, 72, 514, 513, 529, 509, 392, 392, 392, 392, 467, 467, 467, 467, 617, 522, 522, 522, 522, 466, 72, 466, 72, 72, 467, 467, 467, 467, 526, 472, 465, 472, 471, 471, 471, 471, 72, 72, 527, 523, 72, 471, 471, 471, 471, 472, 472, 72, 472, 530, 472, 72, 528, 72, 531, 472, 473, 472, 72, 72, 72, 534, 472, 72, 72, 524, 72, 472, 532, 533, 537, 472, 538, 72, 536, 535, 472, 72, 72, 72, 539, 72, 72, 72, 72, 69, 78, 540, 72, 546, 547, 549, 72, 72, 541, 72, 557, 544, 545, 542, 543, 588, 550, 522, 522, 522, 522, 522, 522, 522, 522, 471, 471, 471, 471, 72, 79, 472, 556, 472, 70, 472, 72, 472, 72, 72, 72, 523, 561, 559, 560, 554, 558, 472, 72, 524, 72, 472, 472, 563, 72, 72, 472, 72, 565, 72, 562, 72, 564, 72, 72, 72, 567, 572, 72, 566, 568, 72, 570, 72, 72, 569, 72, 72, 574, 72, 72, 575, 522, 522, 522, 522, 581, 571, 72, 573, 72, 584, 585, 580, 72, 72, 72, 586, 582, 587, 72, 72, 72, 589, 583, 590, 554, 72, 72, 591, 596, 598, 72, 72, 72, 72, 595, 600, 602, 72, 72, 72, 597, 603, 605, 72, 72, 604, 72, 599, 72, 607, 72, 606, 601, 609, 72, 72, 72, 610, 611, 612, 608, 72, 72, 72, 613, 614, 615, 72, 72, 72, 616, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 68, 72, 68, 68, 68, 68, 68, 68, 68, 68, 68, 68, 71, 72, 71, 71, 71, 71, 71, 71, 71, 77, 72, 77, 77, 77, 77, 77, 77, 77, 77, 77, 77, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 172, 68, 72, 72, 68, 72, 516, 72, 68, 68, 77, 72, 72, 77, 72, 72, 72, 77, 77, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 219, 219, 219, 72, 72, 72, 72, 219, 235, 235, 236, 236, 297, 297, 298, 298, 299, 299, 300, 300, 301, 301, 303, 303, 304, 304, 305, 305, 315, 315, 317, 317, 317, 317, 317, 317, 72, 317, 325, 325, 326, 326, 381, 381, 381, 381, 381, 381, 381, 381, 381, 381, 381, 381, 383, 383, 384, 384, 386, 386, 387, 387, 389, 389, 390, 390, 395, 395, 72, 395, 72, 72, 395, 407, 407, 408, 408, 459, 459, 460, 460, 461, 461, 462, 462, 463, 463, 464, 464, 475, 475, 476, 476, 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, 515, 517, 517, 518, 518, 519, 519, 71, 71, 520, 520, 521, 521, 525, 525, 551, 551, 552, 552, 553, 553, 555, 555, 576, 576, 577, 577, 578, 578, 579, 579, 592, 592, 593, 593, 594, 594, 516, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 72, 474, 474, 72, 72, 72, 72, 72, 72, 72, 72, 292, 292, 72, 72, 72, 231, 230, 324, 324, 314, 314, 206, 295, 291, 174, 72, 234, 231, 229, 228, 227, 206, 200, 67, 67, 72, 176, 67, 131, 110, 105, 72, 617, 61, 61, 5, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617 } ; static yyconst short int yy_chk[1745] = { 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, 2, 10, 11, 10, 14, 2, 13, 13, 2, 7, 7, 7, 7, 7, 7, 9, 9, 9, 9, 9, 9, 14, 15, 18, 19, 18, 31, 31, 22, 21, 22, 22, 22, 22, 40, 51, 19, 11, 19, 21, 21, 21, 23, 35, 33, 45, 48, 23, 29, 33, 39, 51, 15, 40, 48, 23, 24, 55, 24, 24, 24, 24, 45, 29, 52, 29, 29, 53, 35, 41, 39, 24, 39, 41, 24, 42, 24, 24, 53, 33, 41, 52, 24, 42, 38, 38, 41, 24, 38, 77, 138, 616, 42, 24, 38, 50, 42, 38, 138, 43, 55, 24, 46, 68, 24, 25, 50, 25, 25, 25, 25, 46, 44, 43, 50, 43, 44, 47, 46, 77, 25, 50, 96, 25, 43, 25, 44, 141, 72, 44, 114, 25, 114, 44, 47, 95, 25, 95, 68, 615, 47, 96, 25, 141, 58, 58, 58, 58, 58, 58, 25, 32, 58, 72, 97, 32, 32, 49, 32, 99, 32, 32, 95, 32, 102, 32, 614, 134, 49, 49, 59, 59, 32, 32, 32, 59, 99, 115, 49, 115, 97, 49, 134, 102, 99, 117, 32, 117, 101, 32, 101, 59, 59, 59, 59, 62, 62, 62, 62, 62, 62, 64, 64, 64, 64, 64, 64, 65, 65, 65, 65, 65, 65, 127, 613, 101, 32, 67, 70, 70, 70, 67, 67, 79, 79, 79, 67, 67, 120, 67, 120, 67, 122, 104, 122, 118, 70, 132, 67, 67, 67, 79, 142, 87, 87, 87, 87, 118, 127, 118, 104, 142, 67, 119, 132, 67, 87, 87, 104, 87, 125, 70, 125, 119, 70, 119, 79, 87, 126, 79, 126, 128, 87, 87, 91, 91, 91, 91, 87, 123, 123, 123, 67, 92, 92, 92, 148, 91, 91, 143, 91, 93, 607, 93, 93, 93, 93, 136, 91, 253, 148, 128, 92, 91, 91, 253, 93, 92, 94, 91, 94, 143, 136, 94, 94, 94, 94, 93, 98, 98, 98, 98, 93, 133, 137, 103, 103, 103, 103, 92, 155, 98, 121, 121, 98, 121, 98, 94, 103, 145, 133, 103, 98, 103, 135, 137, 155, 98, 135, 103, 135, 139, 135, 98, 103, 144, 135, 147, 135, 145, 103, 98, 140, 135, 135, 135, 140, 135, 103, 146, 149, 139, 139, 150, 151, 152, 154, 158, 147, 140, 156, 144, 160, 157, 156, 159, 160, 149, 162, 163, 154, 146, 150, 157, 158, 159, 152, 154, 161, 164, 151, 160, 165, 157, 157, 605, 166, 162, 214, 167, 161, 178, 159, 178, 165, 163, 276, 164, 166, 222, 166, 167, 165, 170, 170, 170, 170, 170, 170, 171, 171, 170, 276, 214, 171, 173, 173, 179, 237, 179, 173, 175, 175, 180, 222, 180, 175, 183, 175, 183, 171, 171, 171, 171, 181, 237, 173, 173, 173, 173, 182, 603, 175, 175, 175, 175, 181, 185, 181, 185, 182, 190, 182, 184, 184, 241, 184, 186, 186, 186, 188, 189, 188, 189, 196, 190, 190, 190, 201, 201, 201, 201, 241, 196, 196, 196, 211, 211, 211, 211, 602, 201, 201, 202, 201, 202, 190, 220, 202, 202, 202, 202, 201, 232, 196, 232, 238, 201, 201, 207, 207, 242, 207, 201, 204, 204, 204, 204, 233, 258, 233, 238, 202, 220, 258, 207, 207, 204, 204, 245, 204, 207, 209, 209, 209, 209, 242, 245, 204, 210, 210, 210, 210, 204, 204, 209, 447, 239, 209, 204, 209, 239, 210, 246, 243, 447, 209, 212, 212, 212, 212, 209, 244, 210, 219, 246, 244, 209, 210, 243, 243, 212, 213, 212, 213, 209, 268, 213, 213, 213, 213, 212, 219, 219, 219, 247, 248, 212, 268, 250, 219, 254, 212, 221, 221, 221, 221, 226, 226, 226, 226, 219, 240, 248, 251, 219, 250, 252, 251, 219, 254, 247, 255, 256, 257, 252, 240, 221, 257, 259, 260, 226, 240, 240, 261, 266, 263, 262, 260, 255, 267, 270, 264, 256, 256, 262, 264, 259, 265, 261, 263, 270, 265, 266, 271, 272, 273, 267, 274, 275, 278, 279, 277, 280, 283, 281, 600, 272, 271, 265, 277, 284, 283, 285, 293, 288, 293, 273, 275, 286, 274, 278, 281, 279, 280, 285, 286, 287, 284, 288, 290, 287, 289, 289, 296, 302, 290, 289, 294, 289, 294, 321, 327, 330, 302, 302, 302, 320, 296, 296, 296, 306, 306, 306, 306, 330, 327, 595, 307, 307, 307, 307, 318, 328, 318, 302, 320, 321, 315, 296, 299, 308, 307, 308, 307, 315, 308, 308, 308, 308, 587, 328, 307, 332, 299, 299, 299, 299, 307, 318, 315, 331, 333, 307, 299, 299, 299, 299, 299, 309, 309, 309, 309, 322, 332, 299, 331, 333, 333, 299, 299, 299, 299, 299, 299, 305, 310, 310, 310, 310, 322, 329, 584, 309, 305, 305, 305, 305, 322, 335, 340, 329, 336, 335, 305, 305, 305, 305, 305, 352, 310, 311, 311, 311, 311, 305, 336, 352, 340, 305, 305, 305, 305, 305, 305, 311, 316, 311, 312, 312, 312, 312, 319, 316, 319, 311, 317, 319, 319, 319, 319, 311, 312, 334, 312, 337, 311, 338, 316, 339, 337, 341, 312, 343, 317, 317, 317, 345, 312, 339, 347, 319, 317, 312, 334, 341, 343, 338, 345, 348, 349, 350, 351, 317, 356, 355, 357, 317, 349, 360, 347, 317, 349, 359, 358, 362, 351, 360, 364, 365, 348, 368, 366, 350, 355, 356, 367, 357, 358, 369, 370, 362, 359, 374, 371, 376, 382, 369, 372, 365, 364, 366, 368, 373, 372, 367, 371, 370, 375, 373, 377, 376, 379, 380, 388, 375, 381, 374, 399, 398, 377, 380, 381, 446, 412, 375, 392, 392, 392, 392, 446, 382, 395, 379, 412, 393, 393, 393, 393, 395, 392, 398, 392, 399, 388, 394, 394, 394, 394, 393, 392, 393, 411, 397, 395, 413, 392, 418, 413, 393, 397, 392, 575, 574, 411, 393, 396, 418, 396, 394, 393, 396, 396, 396, 396, 397, 401, 401, 401, 401, 402, 402, 402, 402, 403, 410, 403, 406, 416, 403, 403, 403, 403, 414, 402, 396, 402, 421, 415, 410, 573, 417, 419, 420, 402, 406, 406, 406, 416, 417, 402, 420, 414, 406, 419, 402, 415, 422, 421, 423, 429, 424, 427, 430, 406, 424, 431, 423, 406, 432, 427, 434, 406, 422, 437, 435, 440, 432, 438, 430, 431, 441, 438, 442, 440, 429, 435, 434, 437, 441, 443, 444, 448, 449, 450, 452, 455, 453, 448, 456, 511, 469, 443, 452, 442, 450, 453, 444, 469, 511, 480, 456, 455, 480, 449, 465, 465, 465, 465, 466, 466, 466, 466, 469, 467, 467, 467, 467, 468, 477, 468, 478, 572, 468, 468, 468, 468, 477, 467, 465, 467, 471, 471, 471, 471, 479, 481, 478, 467, 482, 473, 473, 473, 473, 467, 471, 483, 471, 481, 467, 488, 479, 484, 482, 473, 471, 473, 485, 486, 487, 485, 471, 490, 489, 473, 491, 471, 483, 484, 488, 473, 489, 493, 487, 486, 473, 494, 498, 495, 490, 503, 500, 513, 504, 518, 521, 491, 514, 503, 504, 513, 527, 526, 493, 566, 527, 498, 500, 494, 495, 566, 514, 522, 522, 522, 522, 523, 523, 523, 523, 524, 524, 524, 524, 528, 521, 522, 526, 522, 518, 523, 531, 523, 530, 532, 533, 522, 532, 530, 531, 523, 528, 522, 546, 524, 534, 523, 522, 534, 535, 536, 523, 537, 536, 538, 533, 539, 535, 540, 542, 544, 538, 546, 547, 537, 539, 549, 542, 550, 557, 540, 559, 558, 549, 560, 562, 550, 554, 554, 554, 554, 558, 544, 561, 547, 580, 561, 562, 557, 564, 569, 565, 564, 559, 565, 567, 582, 568, 567, 560, 568, 554, 581, 583, 569, 581, 583, 585, 588, 586, 589, 580, 586, 589, 591, 590, 596, 582, 590, 596, 597, 599, 591, 598, 585, 571, 598, 601, 597, 588, 601, 604, 606, 608, 604, 606, 608, 599, 609, 610, 611, 609, 610, 611, 612, 570, 563, 612, 618, 618, 618, 618, 618, 618, 618, 618, 618, 618, 618, 618, 619, 556, 619, 619, 619, 619, 619, 619, 619, 619, 619, 619, 620, 548, 620, 620, 620, 620, 620, 620, 620, 621, 545, 621, 621, 621, 621, 621, 621, 621, 621, 621, 621, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 622, 623, 543, 541, 623, 529, 515, 512, 623, 623, 624, 510, 509, 624, 508, 507, 506, 624, 624, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 625, 626, 626, 626, 505, 502, 501, 499, 626, 627, 627, 628, 628, 629, 629, 630, 630, 631, 631, 632, 632, 633, 633, 634, 634, 635, 635, 636, 636, 637, 637, 638, 638, 638, 638, 638, 638, 497, 638, 639, 639, 640, 640, 641, 641, 641, 641, 641, 641, 641, 641, 641, 641, 641, 641, 642, 642, 643, 643, 644, 644, 645, 645, 646, 646, 647, 647, 648, 648, 496, 648, 492, 476, 648, 649, 649, 650, 650, 651, 651, 652, 652, 653, 653, 654, 654, 655, 655, 656, 656, 657, 657, 658, 658, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 659, 660, 660, 661, 661, 662, 662, 663, 663, 664, 664, 665, 665, 666, 666, 667, 667, 668, 668, 669, 669, 670, 670, 671, 671, 672, 672, 673, 673, 674, 674, 675, 675, 676, 676, 677, 677, 458, 457, 454, 451, 445, 439, 436, 433, 428, 426, 425, 409, 405, 404, 378, 363, 361, 354, 353, 346, 344, 342, 295, 291, 282, 269, 249, 234, 229, 225, 224, 217, 216, 205, 187, 177, 172, 153, 124, 116, 113, 112, 108, 89, 86, 83, 81, 71, 61, 57, 37, 30, 27, 12, 5, 4, 3, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617, 617 } ; static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr; static char *yy_full_match; static int yy_lp; #define REJECT \ { \ *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \ yy_cp = yy_full_match; /* restore poss. backed-over text */ \ ++yy_lp; \ goto find_rule; \ } #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *yytext; #line 1 "Parser/lex.l" #define INITIAL 0 /* -*- Mode: C -*- * * CForall Lexer Version 1.0, Copyright (C) Peter A. Buhr 2001 -- Permission is granted to copy this * grammar and to use it within software systems. THIS GRAMMAR IS PROVIDED "AS IS" AND WITHOUT * ANY EXPRESS OR IMPLIED WARRANTIES. * * lex.l -- * * Author : Peter A. Buhr * Created On : Sat Sep 22 08:58:10 2001 * Last Modified By : Peter A. Buhr * Last Modified On : Thu Jan 23 16:17:09 2003 * Update Count : 191 */ #line 19 "Parser/lex.l" /* This lexer assumes the program has been preprocessed by cpp. Hence, all user level preprocessor directive have been performed and removed from the source. The only exceptions are preprocessor directives passed to the compiler (e.g., line-number directives) and C/C++ style comments, which are ignored. */ /*************** Includes and Defines *****************************/ #include #include "ParseNode.h" #include "cfa.tab.h" /* YACC generated definitions based on C++ grammar */ #include "lex.h" char *yyfilename; #define WHITE_RETURN(x) /* do nothing */ #define NEWLINE_RETURN() WHITE_RETURN('\n') #define RETURN_VAL(x) yylval.tok.str = new std::string(yytext); yylval.tok.file = yyfilename; yylval.tok.line = yylineno; return(x) #define KEYWORD_RETURN(x) RETURN_VAL(x) /* keyword */ #define IDENTIFIER_RETURN() RETURN_VAL((typedefTable.isIdentifier(yytext) ? IDENTIFIER : typedefTable.isTypedef(yytext) ? TYPEDEFname : TYPEGENname)) #define ASCIIOP_RETURN() RETURN_VAL((int)yytext[0]) /* single character operator */ #define NAMEDOP_RETURN(x) RETURN_VAL(x) /* multichar operator, with a name */ #define NUMERIC_RETURN(x) rm_underscore(); RETURN_VAL(x) /* numeric constant */ void rm_underscore() { /* remove underscores in constant or escape sequence */ int j = 0; for ( int i = 0; i < yyleng; i += 1 ) { if ( yytext[i] != '_' ) { yytext[j] = yytext[i]; j += 1; } // if } // for yyleng = j; yytext[yyleng] = '\0'; } /* identifier, GCC: $ in identifier */ /* numeric constants, CFA: '_' in constant */ /* character escape sequence, GCC: \e => esc character */ /* display/white-space characters */ /* operators */ #define COMMENT 1 #line 1108 "Parser/lex.yy.cc" /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int yywrap YY_PROTO(( void )); #else extern int yywrap YY_PROTO(( void )); #endif #endif #ifndef YY_NO_UNPUT static void yyunput YY_PROTO(( int c, char *buf_ptr )); #endif #ifndef yytext_ptr static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen YY_PROTO(( yyconst char * )); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput YY_PROTO(( void )); #else static int input YY_PROTO(( void )); #endif #endif #if YY_STACK_USED static int yy_start_stack_ptr = 0; static int yy_start_stack_depth = 0; static int *yy_start_stack = 0; #ifndef YY_NO_PUSH_STATE static void yy_push_state YY_PROTO(( int new_state )); #endif #ifndef YY_NO_POP_STATE static void yy_pop_state YY_PROTO(( void )); #endif #ifndef YY_NO_TOP_STATE static int yy_top_state YY_PROTO(( void )); #endif #else #define YY_NO_PUSH_STATE 1 #define YY_NO_POP_STATE 1 #define YY_NO_TOP_STATE 1 #endif #ifdef YY_MALLOC_DECL YY_MALLOC_DECL #else #if __STDC__ #ifndef __cplusplus #include #endif #else /* Just try to get by without declaring the routines. This will fail * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) * or sizeof(void*) != sizeof(int). */ #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #define YY_READ_BUF_SIZE 8192 #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( yy_current_buffer->yy_is_interactive ) \ { \ int c = '*', n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL int yylex YY_PROTO(( void )) #endif /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ if ( yyleng > 0 ) \ yy_current_buffer->yy_at_bol = \ (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION YY_DECL { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; #line 120 "Parser/lex.l" /* line directives */ #line 1265 "Parser/lex.yy.cc" if ( yy_init ) { yy_init = 0; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! yy_start ) yy_start = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! yy_current_buffer ) yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); yy_load_buffer_state(); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = yy_c_buf_p; /* Support of yytext. */ *yy_cp = yy_hold_char; /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = yy_start; yy_current_state += YY_AT_BOL(); yy_state_ptr = yy_state_buf; *yy_state_ptr++ = yy_current_state; yy_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*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 >= 618 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; *yy_state_ptr++ = yy_current_state; ++yy_cp; } while ( yy_base[yy_current_state] != 1669 ); yy_find_action: yy_current_state = *--yy_state_ptr; yy_lp = yy_accept[yy_current_state]; find_rule: /* we branch to this label when backing up */ for ( ; ; ) /* until we find what rule we matched */ { if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] ) { yy_act = yy_acclist[yy_lp]; { yy_full_match = yy_cp; break; } } --yy_cp; yy_current_state = *--yy_state_ptr; yy_lp = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; if ( yy_act != YY_END_OF_BUFFER ) { int yyl; for ( yyl = 0; yyl < yyleng; ++yyl ) if ( yytext[yyl] == '\n' ) ++yylineno; } do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 1: YY_RULE_SETUP #line 122 "Parser/lex.l" { char *end_num; char *begin_string, *end_string; char *filename; long lineno, length; lineno = strtol( yytext + 1, &end_num, 0 ); begin_string = strchr( end_num, '"' ); if( begin_string ) { end_string = strchr( begin_string + 1, '"' ); if( end_string ) { length = end_string - begin_string - 1; filename = new char[ length + 1 ]; memcpy( filename, begin_string + 1, length ); filename[ length ] = '\0'; //std::cout << "file " << filename << " line " << lineno << std::endl; yylineno = lineno; yyfilename = filename; } } } YY_BREAK /* ignore preprocessor directives (for now) */ case 2: YY_RULE_SETUP #line 144 "Parser/lex.l" ; YY_BREAK /* ignore C style comments */ case 3: YY_RULE_SETUP #line 147 "Parser/lex.l" {BEGIN COMMENT;} YY_BREAK case 4: YY_RULE_SETUP #line 148 "Parser/lex.l" ; YY_BREAK case 5: YY_RULE_SETUP #line 149 "Parser/lex.l" {BEGIN 0;} YY_BREAK /* ignore C++ style comments */ case 6: YY_RULE_SETUP #line 152 "Parser/lex.l" ; YY_BREAK /* ignore whitespace */ case 7: YY_RULE_SETUP #line 155 "Parser/lex.l" {WHITE_RETURN(' ');} YY_BREAK case 8: YY_RULE_SETUP #line 156 "Parser/lex.l" {WHITE_RETURN(' ');} YY_BREAK case 9: YY_RULE_SETUP #line 157 "Parser/lex.l" {NEWLINE_RETURN();} YY_BREAK /* keywords */ case 10: YY_RULE_SETUP #line 160 "Parser/lex.l" {KEYWORD_RETURN(ALIGNOF);} /* GCC */ YY_BREAK case 11: YY_RULE_SETUP #line 161 "Parser/lex.l" {KEYWORD_RETURN(ALIGNOF);} /* GCC */ YY_BREAK case 12: YY_RULE_SETUP #line 162 "Parser/lex.l" {KEYWORD_RETURN(ASM);} YY_BREAK case 13: YY_RULE_SETUP #line 163 "Parser/lex.l" {KEYWORD_RETURN(ASM);} /* GCC */ YY_BREAK case 14: YY_RULE_SETUP #line 164 "Parser/lex.l" {KEYWORD_RETURN(ASM);} /* GCC */ YY_BREAK case 15: YY_RULE_SETUP #line 165 "Parser/lex.l" {KEYWORD_RETURN(ATTRIBUTE);} /* GCC */ YY_BREAK case 16: YY_RULE_SETUP #line 166 "Parser/lex.l" {KEYWORD_RETURN(ATTRIBUTE);} /* GCC */ YY_BREAK case 17: YY_RULE_SETUP #line 167 "Parser/lex.l" {KEYWORD_RETURN(AUTO);} YY_BREAK case 18: YY_RULE_SETUP #line 168 "Parser/lex.l" {KEYWORD_RETURN(BOOL);} /* ANSI99 */ YY_BREAK case 19: YY_RULE_SETUP #line 169 "Parser/lex.l" {KEYWORD_RETURN(BREAK);} YY_BREAK case 20: YY_RULE_SETUP #line 170 "Parser/lex.l" {KEYWORD_RETURN(CASE);} YY_BREAK case 21: YY_RULE_SETUP #line 171 "Parser/lex.l" {KEYWORD_RETURN(CATCH);} /* CFA */ YY_BREAK case 22: YY_RULE_SETUP #line 172 "Parser/lex.l" {KEYWORD_RETURN(CHAR);} YY_BREAK case 23: YY_RULE_SETUP #line 173 "Parser/lex.l" {KEYWORD_RETURN(CHOOSE);} YY_BREAK case 24: YY_RULE_SETUP #line 174 "Parser/lex.l" {KEYWORD_RETURN(COMPLEX);} /* ANSI99 */ YY_BREAK case 25: YY_RULE_SETUP #line 175 "Parser/lex.l" {KEYWORD_RETURN(COMPLEX);} /* GCC */ YY_BREAK case 26: YY_RULE_SETUP #line 176 "Parser/lex.l" {KEYWORD_RETURN(COMPLEX);} /* GCC */ YY_BREAK case 27: YY_RULE_SETUP #line 177 "Parser/lex.l" {KEYWORD_RETURN(CONST);} YY_BREAK case 28: YY_RULE_SETUP #line 178 "Parser/lex.l" {KEYWORD_RETURN(CONST);} /* GCC */ YY_BREAK case 29: YY_RULE_SETUP #line 179 "Parser/lex.l" {KEYWORD_RETURN(CONST);} /* GCC */ YY_BREAK case 30: YY_RULE_SETUP #line 180 "Parser/lex.l" {KEYWORD_RETURN(CONTEXT);} YY_BREAK case 31: YY_RULE_SETUP #line 181 "Parser/lex.l" {KEYWORD_RETURN(CONTINUE);} YY_BREAK case 32: YY_RULE_SETUP #line 182 "Parser/lex.l" {KEYWORD_RETURN(DEFAULT);} YY_BREAK case 33: YY_RULE_SETUP #line 183 "Parser/lex.l" {KEYWORD_RETURN(DO);} YY_BREAK case 34: YY_RULE_SETUP #line 184 "Parser/lex.l" {KEYWORD_RETURN(DOUBLE);} YY_BREAK case 35: YY_RULE_SETUP #line 185 "Parser/lex.l" {KEYWORD_RETURN(DTYPE);} YY_BREAK case 36: YY_RULE_SETUP #line 186 "Parser/lex.l" {KEYWORD_RETURN(ELSE);} YY_BREAK case 37: YY_RULE_SETUP #line 187 "Parser/lex.l" {KEYWORD_RETURN(ENUM);} YY_BREAK case 38: YY_RULE_SETUP #line 188 "Parser/lex.l" {KEYWORD_RETURN(EXTENSION);} /* GCC */ YY_BREAK case 39: YY_RULE_SETUP #line 189 "Parser/lex.l" {KEYWORD_RETURN(EXTERN);} YY_BREAK case 40: YY_RULE_SETUP #line 190 "Parser/lex.l" {KEYWORD_RETURN(FALLTHRU);} YY_BREAK case 41: YY_RULE_SETUP #line 191 "Parser/lex.l" {KEYWORD_RETURN(FLOAT);} YY_BREAK case 42: YY_RULE_SETUP #line 192 "Parser/lex.l" {KEYWORD_RETURN(FOR);} YY_BREAK case 43: YY_RULE_SETUP #line 193 "Parser/lex.l" {KEYWORD_RETURN(FORALL);} YY_BREAK case 44: YY_RULE_SETUP #line 194 "Parser/lex.l" {KEYWORD_RETURN(FORTRAN);} YY_BREAK case 45: YY_RULE_SETUP #line 195 "Parser/lex.l" {KEYWORD_RETURN(FTYPE);} YY_BREAK case 46: YY_RULE_SETUP #line 196 "Parser/lex.l" {KEYWORD_RETURN(GOTO);} YY_BREAK case 47: YY_RULE_SETUP #line 197 "Parser/lex.l" {KEYWORD_RETURN(IF);} YY_BREAK case 48: YY_RULE_SETUP #line 198 "Parser/lex.l" {KEYWORD_RETURN(IMAGINARY);} /* ANSI99 */ YY_BREAK case 49: YY_RULE_SETUP #line 199 "Parser/lex.l" {KEYWORD_RETURN(IMAGINARY);} /* GCC */ YY_BREAK case 50: YY_RULE_SETUP #line 200 "Parser/lex.l" {KEYWORD_RETURN(IMAGINARY);} /* GCC */ YY_BREAK case 51: YY_RULE_SETUP #line 201 "Parser/lex.l" {KEYWORD_RETURN(INLINE);} /* ANSI99 */ YY_BREAK case 52: YY_RULE_SETUP #line 202 "Parser/lex.l" {KEYWORD_RETURN(INLINE);} /* GCC */ YY_BREAK case 53: YY_RULE_SETUP #line 203 "Parser/lex.l" {KEYWORD_RETURN(INLINE);} /* GCC */ YY_BREAK case 54: YY_RULE_SETUP #line 204 "Parser/lex.l" {KEYWORD_RETURN(INT);} YY_BREAK case 55: YY_RULE_SETUP #line 205 "Parser/lex.l" {KEYWORD_RETURN(LABEL);} /* GCC */ YY_BREAK case 56: YY_RULE_SETUP #line 206 "Parser/lex.l" {KEYWORD_RETURN(LONG);} YY_BREAK case 57: YY_RULE_SETUP #line 207 "Parser/lex.l" {KEYWORD_RETURN(LVALUE);} YY_BREAK case 58: YY_RULE_SETUP #line 208 "Parser/lex.l" {KEYWORD_RETURN(REGISTER);} YY_BREAK case 59: YY_RULE_SETUP #line 209 "Parser/lex.l" {KEYWORD_RETURN(RESTRICT);} /* ANSI99 */ YY_BREAK case 60: YY_RULE_SETUP #line 210 "Parser/lex.l" {KEYWORD_RETURN(RESTRICT);} /* GCC */ YY_BREAK case 61: YY_RULE_SETUP #line 211 "Parser/lex.l" {KEYWORD_RETURN(RESTRICT);} /* GCC */ YY_BREAK case 62: YY_RULE_SETUP #line 212 "Parser/lex.l" {KEYWORD_RETURN(RETURN);} YY_BREAK case 63: YY_RULE_SETUP #line 213 "Parser/lex.l" {KEYWORD_RETURN(SHORT);} YY_BREAK case 64: YY_RULE_SETUP #line 214 "Parser/lex.l" {KEYWORD_RETURN(SIGNED);} YY_BREAK case 65: YY_RULE_SETUP #line 215 "Parser/lex.l" {KEYWORD_RETURN(SIGNED);} /* GCC */ YY_BREAK case 66: YY_RULE_SETUP #line 216 "Parser/lex.l" {KEYWORD_RETURN(SIGNED);} /* GCC */ YY_BREAK case 67: YY_RULE_SETUP #line 217 "Parser/lex.l" {KEYWORD_RETURN(SIZEOF);} YY_BREAK case 68: YY_RULE_SETUP #line 218 "Parser/lex.l" {KEYWORD_RETURN(STATIC);} YY_BREAK case 69: YY_RULE_SETUP #line 219 "Parser/lex.l" {KEYWORD_RETURN(STRUCT);} YY_BREAK case 70: YY_RULE_SETUP #line 220 "Parser/lex.l" {KEYWORD_RETURN(SWITCH);} YY_BREAK case 71: YY_RULE_SETUP #line 221 "Parser/lex.l" {KEYWORD_RETURN(THROW);} /* CFA */ YY_BREAK case 72: YY_RULE_SETUP #line 222 "Parser/lex.l" {KEYWORD_RETURN(TRY);} /* CFA */ YY_BREAK case 73: YY_RULE_SETUP #line 223 "Parser/lex.l" {KEYWORD_RETURN(TYPE);} YY_BREAK case 74: YY_RULE_SETUP #line 224 "Parser/lex.l" {KEYWORD_RETURN(TYPEDEF);} YY_BREAK case 75: YY_RULE_SETUP #line 225 "Parser/lex.l" {KEYWORD_RETURN(TYPEOF);} /* GCC */ YY_BREAK case 76: YY_RULE_SETUP #line 226 "Parser/lex.l" {KEYWORD_RETURN(TYPEOF);} /* GCC */ YY_BREAK case 77: YY_RULE_SETUP #line 227 "Parser/lex.l" {KEYWORD_RETURN(TYPEOF);} /* GCC */ YY_BREAK case 78: YY_RULE_SETUP #line 228 "Parser/lex.l" {KEYWORD_RETURN(UNION);} YY_BREAK case 79: YY_RULE_SETUP #line 229 "Parser/lex.l" {KEYWORD_RETURN(UNSIGNED);} YY_BREAK case 80: YY_RULE_SETUP #line 230 "Parser/lex.l" {KEYWORD_RETURN(VOID);} YY_BREAK case 81: YY_RULE_SETUP #line 231 "Parser/lex.l" {KEYWORD_RETURN(VOLATILE);} YY_BREAK case 82: YY_RULE_SETUP #line 232 "Parser/lex.l" {KEYWORD_RETURN(VOLATILE);} /* GCC */ YY_BREAK case 83: YY_RULE_SETUP #line 233 "Parser/lex.l" {KEYWORD_RETURN(VOLATILE);} /* GCC */ YY_BREAK case 84: YY_RULE_SETUP #line 234 "Parser/lex.l" {KEYWORD_RETURN(WHILE);} YY_BREAK /* identifier */ case 85: YY_RULE_SETUP #line 237 "Parser/lex.l" {IDENTIFIER_RETURN();} YY_BREAK /* numeric constants */ case 86: YY_RULE_SETUP #line 240 "Parser/lex.l" {NUMERIC_RETURN(ZERO);} /* CFA */ YY_BREAK case 87: YY_RULE_SETUP #line 241 "Parser/lex.l" {NUMERIC_RETURN(ONE);} /* CFA */ YY_BREAK case 88: YY_RULE_SETUP #line 242 "Parser/lex.l" {NUMERIC_RETURN(INTEGERconstant);} YY_BREAK case 89: YY_RULE_SETUP #line 243 "Parser/lex.l" {NUMERIC_RETURN(INTEGERconstant);} YY_BREAK case 90: YY_RULE_SETUP #line 244 "Parser/lex.l" {NUMERIC_RETURN(INTEGERconstant);} YY_BREAK case 91: YY_RULE_SETUP #line 245 "Parser/lex.l" {NUMERIC_RETURN(FLOATINGconstant);} YY_BREAK case 92: YY_RULE_SETUP #line 246 "Parser/lex.l" {NUMERIC_RETURN(FLOATINGconstant);} YY_BREAK /* character constant, allows empty value */ case 93: YY_RULE_SETUP #line 249 "Parser/lex.l" {RETURN_VAL(CHARACTERconstant);} YY_BREAK /* string constant */ case 94: YY_RULE_SETUP #line 252 "Parser/lex.l" {RETURN_VAL(STRINGliteral);} YY_BREAK /* punctuation */ case 95: YY_RULE_SETUP #line 255 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 96: YY_RULE_SETUP #line 256 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 97: YY_RULE_SETUP #line 257 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 98: YY_RULE_SETUP #line 258 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 99: YY_RULE_SETUP #line 259 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 100: YY_RULE_SETUP #line 260 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 101: YY_RULE_SETUP #line 261 "Parser/lex.l" {ASCIIOP_RETURN();} /* also operator */ YY_BREAK case 102: YY_RULE_SETUP #line 262 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 103: YY_RULE_SETUP #line 263 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 104: YY_RULE_SETUP #line 264 "Parser/lex.l" {ASCIIOP_RETURN();} /* also operator */ YY_BREAK case 105: YY_RULE_SETUP #line 265 "Parser/lex.l" {NAMEDOP_RETURN(ELLIPSIS);} YY_BREAK /* alternative ANSI99 brackets, "<:" & "<:<:" handled by preprocessor */ case 106: YY_RULE_SETUP #line 268 "Parser/lex.l" {RETURN_VAL('[');} YY_BREAK case 107: YY_RULE_SETUP #line 269 "Parser/lex.l" {RETURN_VAL(']');} YY_BREAK case 108: YY_RULE_SETUP #line 270 "Parser/lex.l" {RETURN_VAL('{');} YY_BREAK case 109: YY_RULE_SETUP #line 271 "Parser/lex.l" {RETURN_VAL('}');} YY_BREAK /* operators */ case 110: YY_RULE_SETUP #line 274 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 111: YY_RULE_SETUP #line 275 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 112: YY_RULE_SETUP #line 276 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 113: YY_RULE_SETUP #line 277 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 114: YY_RULE_SETUP #line 278 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 115: YY_RULE_SETUP #line 279 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 116: YY_RULE_SETUP #line 280 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 117: YY_RULE_SETUP #line 281 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 118: YY_RULE_SETUP #line 282 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 119: YY_RULE_SETUP #line 283 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 120: YY_RULE_SETUP #line 284 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 121: YY_RULE_SETUP #line 285 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 122: YY_RULE_SETUP #line 286 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 123: YY_RULE_SETUP #line 287 "Parser/lex.l" {ASCIIOP_RETURN();} YY_BREAK case 124: YY_RULE_SETUP #line 289 "Parser/lex.l" {NAMEDOP_RETURN(ICR);} YY_BREAK case 125: YY_RULE_SETUP #line 290 "Parser/lex.l" {NAMEDOP_RETURN(DECR);} YY_BREAK case 126: YY_RULE_SETUP #line 291 "Parser/lex.l" {NAMEDOP_RETURN(EQ);} YY_BREAK case 127: YY_RULE_SETUP #line 292 "Parser/lex.l" {NAMEDOP_RETURN(NE);} YY_BREAK case 128: YY_RULE_SETUP #line 293 "Parser/lex.l" {NAMEDOP_RETURN(LS);} YY_BREAK case 129: YY_RULE_SETUP #line 294 "Parser/lex.l" {NAMEDOP_RETURN(RS);} YY_BREAK case 130: YY_RULE_SETUP #line 295 "Parser/lex.l" {NAMEDOP_RETURN(LE);} YY_BREAK case 131: YY_RULE_SETUP #line 296 "Parser/lex.l" {NAMEDOP_RETURN(GE);} YY_BREAK case 132: YY_RULE_SETUP #line 297 "Parser/lex.l" {NAMEDOP_RETURN(ANDAND);} YY_BREAK case 133: YY_RULE_SETUP #line 298 "Parser/lex.l" {NAMEDOP_RETURN(OROR);} YY_BREAK case 134: YY_RULE_SETUP #line 299 "Parser/lex.l" {NAMEDOP_RETURN(ARROW);} YY_BREAK case 135: YY_RULE_SETUP #line 300 "Parser/lex.l" {NAMEDOP_RETURN(PLUSassign);} YY_BREAK case 136: YY_RULE_SETUP #line 301 "Parser/lex.l" {NAMEDOP_RETURN(MINUSassign);} YY_BREAK case 137: YY_RULE_SETUP #line 302 "Parser/lex.l" {NAMEDOP_RETURN(MULTassign);} YY_BREAK case 138: YY_RULE_SETUP #line 303 "Parser/lex.l" {NAMEDOP_RETURN(DIVassign);} YY_BREAK case 139: YY_RULE_SETUP #line 304 "Parser/lex.l" {NAMEDOP_RETURN(MODassign);} YY_BREAK case 140: YY_RULE_SETUP #line 305 "Parser/lex.l" {NAMEDOP_RETURN(ANDassign);} YY_BREAK case 141: YY_RULE_SETUP #line 306 "Parser/lex.l" {NAMEDOP_RETURN(ORassign);} YY_BREAK case 142: YY_RULE_SETUP #line 307 "Parser/lex.l" {NAMEDOP_RETURN(ERassign);} YY_BREAK case 143: YY_RULE_SETUP #line 308 "Parser/lex.l" {NAMEDOP_RETURN(LSassign);} YY_BREAK case 144: YY_RULE_SETUP #line 309 "Parser/lex.l" {NAMEDOP_RETURN(RSassign);} YY_BREAK /* CFA, operator identifier */ case 145: YY_RULE_SETUP #line 312 "Parser/lex.l" {IDENTIFIER_RETURN();} /* unary */ YY_BREAK case 146: YY_RULE_SETUP #line 313 "Parser/lex.l" {IDENTIFIER_RETURN();} YY_BREAK case 147: YY_RULE_SETUP #line 314 "Parser/lex.l" {IDENTIFIER_RETURN();} /* binary */ YY_BREAK /* This rule handles ambiguous cases with operator identifiers, e.g., "int *?*?()", where the string "*?*?" can be lexed as "*"/"?*?" or "*?"/"*?". Since it is common practise to put a unary operator juxtaposed to an identifier, e.g., "*i", users will be annoyed if they cannot do this with respect to operator identifiers. Even with this special hack, there are 5 general cases that cannot be handled. The first case is for the function-call identifier "?()": int * ?()(); // declaration: space required after '*' * ?()(); // expression: space required after '*' Without the space, the string "*?()" is ambiguous without N character look ahead; it requires scanning ahead to determine if there is a '(', which is the start of an argument/parameter list. The 4 remaining cases occur in expressions: i++?i:0; // space required before '?' i--?i:0; // space required before '?' i?++i:0; // space required after '?' i?--i:0; // space required after '?' In the first two cases, the string "i++?" is ambiguous, where this string can be lexed as "i"/"++?" or "i++"/"?"; it requires scanning ahead to determine if there is a '(', which is the start of an argument list. In the second two cases, the string "?++x" is ambiguous, where this string can be lexed as "?++"/"x" or "?"/"++x"; it requires scanning ahead to determine if there is a '(', which is the start of an argument list. */ case 148: YY_RULE_SETUP #line 343 "Parser/lex.l" { // 1 or 2 character unary operator ? int i = yytext[1] == '?' ? 1 : 2; yyless( i ); /* put back characters up to first '?' */ if ( i > 1 ) { NAMEDOP_RETURN( yytext[0] == '+' ? ICR : DECR ); } else { ASCIIOP_RETURN(); } // if } YY_BREAK /* unknown characters */ case 149: YY_RULE_SETUP #line 355 "Parser/lex.l" {printf("unknown character(s):\"%s\" on line %d\n", yytext, yylineno);} YY_BREAK case 150: YY_RULE_SETUP #line 357 "Parser/lex.l" ECHO; YY_BREAK #line 2177 "Parser/lex.yy.cc" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(COMMENT): yyterminate(); case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = yy_hold_char; YY_RESTORE_YY_MORE_OFFSET if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure * consistency between yy_current_buffer and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ yy_n_chars = yy_current_buffer->yy_n_chars; yy_current_buffer->yy_input_file = yyin; yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) { /* This was really a NUL. */ yy_state_type yy_next_state; yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state(); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = yytext_ptr + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++yy_c_buf_p; yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = yy_c_buf_p; goto yy_find_action; } } else switch ( yy_get_next_buffer() ) { case EOB_ACT_END_OF_FILE: { yy_did_buffer_switch_on_eof = 0; if ( yywrap() ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state(); yy_cp = yy_c_buf_p; yy_bp = yytext_ptr + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: yy_c_buf_p = &yy_current_buffer->yy_ch_buf[yy_n_chars]; yy_current_state = yy_get_previous_state(); yy_cp = yy_c_buf_p; yy_bp = yytext_ptr + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer() { register char *dest = yy_current_buffer->yy_ch_buf; register char *source = yytext_ptr; register int number_to_move, i; int ret_val; if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( yy_current_buffer->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ yy_current_buffer->yy_n_chars = yy_n_chars = 0; else { int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ #ifdef YY_USES_REJECT YY_FATAL_ERROR( "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); #else /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = yy_current_buffer; int yy_c_buf_p_offset = (int) (yy_c_buf_p - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { int new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ yy_flex_realloc( (void *) b->yy_ch_buf, b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1; #endif } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), yy_n_chars, num_to_read ); yy_current_buffer->yy_n_chars = yy_n_chars; } if ( yy_n_chars == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; yyrestart( yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; yy_current_buffer->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; yy_n_chars += number_to_move; yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state() { register yy_state_type yy_current_state; register char *yy_cp; yy_current_state = yy_start; yy_current_state += YY_AT_BOL(); yy_state_ptr = yy_state_buf; *yy_state_ptr++ = yy_current_state; 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); 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 >= 618 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; *yy_state_ptr++ = yy_current_state; } 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 YY_CHAR yy_c = 1; 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 >= 618 ) 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 == 617); if ( ! yy_is_jam ) *yy_state_ptr++ = yy_current_state; return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_UNPUT #ifdef YY_USE_PROTOS static void yyunput( int c, register char *yy_bp ) #else static void yyunput( c, yy_bp ) int c; register char *yy_bp; #endif { register char *yy_cp = yy_c_buf_p; /* undo effects of setting up yytext */ *yy_cp = yy_hold_char; if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ register int number_to_move = yy_n_chars + 2; register char *dest = &yy_current_buffer->yy_ch_buf[ yy_current_buffer->yy_buf_size + 2]; register char *source = &yy_current_buffer->yy_ch_buf[number_to_move]; while ( source > yy_current_buffer->yy_ch_buf ) *--dest = *--source; yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); yy_current_buffer->yy_n_chars = yy_n_chars = yy_current_buffer->yy_buf_size; if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) YY_FATAL_ERROR( "flex scanner push-back overflow" ); } *--yy_cp = (char) c; if ( c == '\n' ) --yylineno; yytext_ptr = yy_bp; yy_hold_char = *yy_cp; yy_c_buf_p = yy_cp; } #endif /* ifndef YY_NO_UNPUT */ #ifdef __cplusplus static int yyinput() #else static int input() #endif { int c; *yy_c_buf_p = yy_hold_char; if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) /* This was really a NUL. */ *yy_c_buf_p = '\0'; else { /* need more input */ int offset = yy_c_buf_p - yytext_ptr; ++yy_c_buf_p; switch ( yy_get_next_buffer() ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ yyrestart( yyin ); /* fall through */ case EOB_ACT_END_OF_FILE: { if ( yywrap() ) return EOF; if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: yy_c_buf_p = yytext_ptr + offset; break; } } } c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ *yy_c_buf_p = '\0'; /* preserve yytext */ yy_hold_char = *++yy_c_buf_p; yy_current_buffer->yy_at_bol = (c == '\n'); if ( yy_current_buffer->yy_at_bol ) ++yylineno; return c; } #ifdef YY_USE_PROTOS void yyrestart( FILE *input_file ) #else void yyrestart( input_file ) FILE *input_file; #endif { if ( ! yy_current_buffer ) yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); yy_init_buffer( yy_current_buffer, input_file ); yy_load_buffer_state(); } #ifdef YY_USE_PROTOS void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) #else void yy_switch_to_buffer( new_buffer ) YY_BUFFER_STATE new_buffer; #endif { if ( yy_current_buffer == new_buffer ) return; if ( yy_current_buffer ) { /* Flush out information for old buffer. */ *yy_c_buf_p = yy_hold_char; yy_current_buffer->yy_buf_pos = yy_c_buf_p; yy_current_buffer->yy_n_chars = yy_n_chars; } yy_current_buffer = new_buffer; yy_load_buffer_state(); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ yy_did_buffer_switch_on_eof = 1; } #ifdef YY_USE_PROTOS void yy_load_buffer_state( void ) #else void yy_load_buffer_state() #endif { yy_n_chars = yy_current_buffer->yy_n_chars; yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; yyin = yy_current_buffer->yy_input_file; yy_hold_char = *yy_c_buf_p; } #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) #else YY_BUFFER_STATE yy_create_buffer( file, size ) FILE *file; int size; #endif { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer( b, file ); return b; } #ifdef YY_USE_PROTOS void yy_delete_buffer( YY_BUFFER_STATE b ) #else void yy_delete_buffer( b ) YY_BUFFER_STATE b; #endif { if ( ! b ) return; if ( b == yy_current_buffer ) yy_current_buffer = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) yy_flex_free( (void *) b->yy_ch_buf ); yy_flex_free( (void *) b ); } #ifndef YY_ALWAYS_INTERACTIVE #ifndef YY_NEVER_INTERACTIVE extern int isatty YY_PROTO(( int )); #endif #endif #ifdef YY_USE_PROTOS void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) #else void yy_init_buffer( b, file ) YY_BUFFER_STATE b; FILE *file; #endif { yy_flush_buffer( b ); b->yy_input_file = file; b->yy_fill_buffer = 1; #if YY_ALWAYS_INTERACTIVE b->yy_is_interactive = 1; #else #if YY_NEVER_INTERACTIVE b->yy_is_interactive = 0; #else b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; #endif #endif } #ifdef YY_USE_PROTOS void yy_flush_buffer( YY_BUFFER_STATE b ) #else void yy_flush_buffer( b ) YY_BUFFER_STATE b; #endif { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == yy_current_buffer ) yy_load_buffer_state(); } #ifndef YY_NO_SCAN_BUFFER #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) #else YY_BUFFER_STATE yy_scan_buffer( base, size ) char *base; yy_size_t size; #endif { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; yy_switch_to_buffer( b ); return b; } #endif #ifndef YY_NO_SCAN_STRING #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) #else YY_BUFFER_STATE yy_scan_string( yy_str ) yyconst char *yy_str; #endif { int len; for ( len = 0; yy_str[len]; ++len ) ; return yy_scan_bytes( yy_str, len ); } #endif #ifndef YY_NO_SCAN_BYTES #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) #else YY_BUFFER_STATE yy_scan_bytes( bytes, len ) yyconst char *bytes; int len; #endif { YY_BUFFER_STATE b; char *buf; yy_size_t n; int i; /* Get memory for full buffer, including space for trailing EOB's. */ n = len + 2; buf = (char *) yy_flex_alloc( n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); for ( i = 0; i < len; ++i ) buf[i] = bytes[i]; buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; b = yy_scan_buffer( buf, n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #endif #ifndef YY_NO_PUSH_STATE #ifdef YY_USE_PROTOS static void yy_push_state( int new_state ) #else static void yy_push_state( new_state ) int new_state; #endif { if ( yy_start_stack_ptr >= yy_start_stack_depth ) { yy_size_t new_size; yy_start_stack_depth += YY_START_STACK_INCR; new_size = yy_start_stack_depth * sizeof( int ); if ( ! yy_start_stack ) yy_start_stack = (int *) yy_flex_alloc( new_size ); else yy_start_stack = (int *) yy_flex_realloc( (void *) yy_start_stack, new_size ); if ( ! yy_start_stack ) YY_FATAL_ERROR( "out of memory expanding start-condition stack" ); } yy_start_stack[yy_start_stack_ptr++] = YY_START; BEGIN(new_state); } #endif #ifndef YY_NO_POP_STATE static void yy_pop_state() { if ( --yy_start_stack_ptr < 0 ) YY_FATAL_ERROR( "start-condition stack underflow" ); BEGIN(yy_start_stack[yy_start_stack_ptr]); } #endif #ifndef YY_NO_TOP_STATE static int yy_top_state() { return yy_start_stack[yy_start_stack_ptr - 1]; } #endif #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif #ifdef YY_USE_PROTOS static void yy_fatal_error( yyconst char msg[] ) #else static void yy_fatal_error( msg ) char msg[]; #endif { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up yytext. */ \ yytext[yyleng] = yy_hold_char; \ yy_c_buf_p = yytext + n; \ yy_hold_char = *yy_c_buf_p; \ *yy_c_buf_p = '\0'; \ yyleng = n; \ } \ while ( 0 ) /* Internal utility routines. */ #ifndef yytext_ptr #ifdef YY_USE_PROTOS static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) #else static void yy_flex_strncpy( s1, s2, n ) char *s1; yyconst char *s2; int n; #endif { register int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN #ifdef YY_USE_PROTOS static int yy_flex_strlen( yyconst char *s ) #else static int yy_flex_strlen( s ) yyconst char *s; #endif { register int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif #ifdef YY_USE_PROTOS static void *yy_flex_alloc( yy_size_t size ) #else static void *yy_flex_alloc( size ) yy_size_t size; #endif { return (void *) malloc( size ); } #ifdef YY_USE_PROTOS static void *yy_flex_realloc( void *ptr, yy_size_t size ) #else static void *yy_flex_realloc( ptr, size ) void *ptr; yy_size_t size; #endif { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } #ifdef YY_USE_PROTOS static void yy_flex_free( void *ptr ) #else static void yy_flex_free( ptr ) void *ptr; #endif { free( ptr ); } #if YY_MAIN int main() { yylex(); return 0; } #endif #line 357 "Parser/lex.l" /* Local Variables: */ /* fill-column: 100 */ /* compile-command: "gmake" */ /* End: */