/* 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 #include /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ #ifdef c_plusplus #ifndef __cplusplus #define __cplusplus #endif #endif #ifdef __cplusplus #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 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 112 #define YY_END_OF_BUFFER 113 static yyconst short int yy_acclist[610] = { 0, 113, 110, 112, 109, 110, 112, 1, 111, 112, 110, 111, 112, 110, 112, 110, 112, 110, 112, 100, 110, 112, 100, 110, 112, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 109, 110, 112, 110, 112, 110, 112, 103, 110, 112, 29, 110, 112, 1, 30, 111, 112, 29, 110, 111, 112, 29, 110, 112, 29, 110, 112, 29, 110, 112, 53, 110, 112, 1, 54, 111, 112, 53, 110, 111, 112, 45, 53, 110, 112, 53, 110, 112, 53, 110, 112, 53, 110, 112, 51, 53, 110, 112, 52, 53, 110, 112, 53, 110, 112, 53, 110, 112, 49, 110, 112, 1, 50, 111, 112, 49, 110, 111, 112, 48, 49, 110, 112, 49, 110, 112, 49, 110, 112, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 106, 110, 112, 110, 112, 110, 112, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 107, 110, 112, 108, 110, 112, 97, 110, 112, 46, 110, 112, 98, 110, 112, 99, 110, 112, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 103, 110, 112, 10, 110, 112, 10, 110, 111, 112, 10, 110, 112, 10, 110, 112, 10, 110, 112, 10, 110, 112, 15, 110, 112, 15, 110, 111, 112, 15, 110, 112, 15, 110, 112, 15, 110, 112, 15, 110, 112, 18, 110, 112, 18, 110, 111, 112, 18, 110, 112, 18, 110, 112, 100, 23, 100, 100, 102, 103, 101, 103, 103, 103, 103, 36, 103, 28, 24, 44, 37, 47, 25, 103, 103, 103, 26, 105, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 27, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 9, 7, 14, 11, 13, 12, 14, 17, 16, 104, 104, 100, 3, 100, 100, 102, 102, 101, 103, 103, 103, 103, 31, 35, 103, 42, 38, 40, 19, 20, 103, 103, 103, 75, 21, 103, 103, 103, 103, 103, 103, 103, 70, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 22, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 12, 102, 103, 57, 103, 103, 103, 32, 33, 34, 103, 43, 39, 41, 103, 61, 103, 60, 103, 6, 103, 73, 103, 103, 103, 103, 65, 103, 103, 68, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 62, 103, 103, 103, 103, 65, 103, 103, 103, 103, 85, 103, 103, 103, 103, 91, 103, 8, 55, 103, 56, 103, 58, 103, 103, 103, 60, 103, 74, 103, 103, 71, 103, 103, 103, 103, 103, 103, 69, 103, 103, 103, 103, 64, 103, 103, 103, 86, 103, 103, 103, 103, 90, 103, 103, 103, 103, 103, 103, 103, 103, 72, 103, 103, 103, 103, 103, 76, 103, 82, 103, 66, 103, 63, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 103, 4, 103, 103, 103, 103, 77, 103, 103, 103, 103, 81, 103, 103, 103, 103, 103, 87, 103, 88, 103, 103, 103, 103, 80, 103, 103, 83, 103, 84, 103, 103, 67, 103, 103, 103, 103, 103, 103, 103, 79, 103, 78, 103, 103, 103, 93, 103, 103, 103, 103, 4, 2, 95, 103, 103, 92, 103, 103, 94, 103, 5, 103, 96, 103, 103, 89, 103, 59 } ; static yyconst short int yy_accept[514] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 4, 7, 10, 13, 15, 17, 19, 22, 25, 27, 30, 33, 36, 39, 42, 44, 46, 49, 52, 56, 60, 63, 66, 69, 72, 76, 80, 84, 87, 90, 93, 97, 101, 104, 107, 110, 114, 118, 122, 125, 128, 130, 133, 136, 139, 142, 144, 146, 148, 151, 154, 157, 160, 163, 166, 169, 172, 175, 178, 181, 184, 187, 190, 193, 196, 199, 202, 204, 207, 210, 213, 216, 219, 222, 225, 228, 231, 234, 237, 240, 243, 247, 250, 253, 256, 259, 262, 266, 269, 272, 275, 278, 281, 285, 288, 291, 291, 291, 292, 293, 293, 293, 294, 294, 294, 295, 296, 297, 298, 299, 300, 301, 302, 302, 302, 302, 302, 302, 302, 302, 303, 304, 305, 305, 305, 305, 305, 305, 306, 306, 307, 307, 307, 308, 309, 310, 310, 311, 312, 313, 313, 314, 314, 314, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 347, 347, 347, 348, 348, 349, 349, 349, 349, 350, 351, 351, 353, 354, 355, 356, 356, 357, 358, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 368, 368, 368, 368, 369, 369, 369, 370, 370, 370, 371, 371, 372, 372, 372, 372, 373, 374, 374, 375, 375, 375, 376, 377, 378, 379, 380, 380, 380, 381, 381, 381, 382, 383, 384, 385, 386, 387, 388, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 415, 416, 417, 418, 420, 421, 422, 422, 422, 422, 423, 423, 424, 425, 425, 426, 426, 427, 428, 429, 429, 430, 432, 434, 434, 435, 436, 438, 439, 440, 441, 443, 444, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 459, 460, 461, 462, 464, 465, 466, 467, 469, 470, 471, 472, 474, 474, 475, 475, 475, 477, 479, 481, 481, 481, 481, 481, 481, 482, 482, 482, 483, 485, 487, 488, 490, 491, 492, 493, 494, 495, 497, 498, 499, 500, 502, 503, 504, 506, 507, 508, 509, 511, 512, 513, 514, 515, 515, 515, 515, 515, 515, 516, 516, 516, 517, 518, 520, 521, 522, 523, 524, 526, 528, 530, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 542, 543, 543, 543, 544, 544, 544, 545, 546, 547, 549, 550, 551, 552, 554, 555, 556, 557, 558, 560, 562, 563, 564, 564, 564, 564, 564, 565, 565, 565, 567, 568, 570, 572, 573, 575, 576, 577, 578, 579, 580, 581, 581, 581, 581, 581, 581, 581, 581, 581, 583, 585, 586, 587, 589, 590, 591, 592, 592, 593, 593, 593, 593, 594, 594, 596, 597, 599, 600, 602, 602, 602, 602, 603, 604, 606, 606, 606, 607, 607, 607, 609, 609, 609, 610, 610 } ; static yyconst int yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 4, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 1, 7, 8, 1, 9, 1, 10, 11, 12, 13, 1, 1, 1, 14, 15, 16, 17, 18, 18, 18, 18, 18, 18, 19, 19, 20, 1, 21, 1, 22, 1, 1, 23, 23, 23, 23, 24, 23, 25, 25, 26, 25, 25, 25, 25, 25, 25, 25, 25, 27, 28, 25, 25, 25, 25, 25, 25, 25, 29, 30, 31, 1, 32, 1, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 25, 58, 1, 59, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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[60] = { 0, 1, 2, 3, 4, 4, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 5, 5, 6, 1, 1, 7, 7, 8, 8, 8, 8, 1, 1, 9, 8, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1 } ; static yyconst short int yy_base[542] = { 0, 0, 58, 58, 65, 69, 126, 80, 85, 60, 86, 172, 1217, 102, 111, 225, 1216, 101, 149, 140, 158, 162, 165, 1223, 1226, 1226, 1226, 1226, 1192, 163, 67, 177, 225, 0, 1201, 42, 57, 45, 196, 103, 164, 105, 1226, 1226, 1226, 1205, 114, 1191, 1226, 1226, 1226, 1226, 169, 87, 0, 1226, 1226, 209, 1159, 1226, 1226, 1226, 1226, 0, 212, 117, 130, 61, 149, 1226, 266, 175, 270, 197, 255, 49, 157, 139, 209, 201, 152, 214, 270, 245, 272, 1226, 1226, 1226, 1226, 1226, 1226, 236, 261, 274, 278, 254, 273, 283, 277, 218, 225, 286, 276, 284, 1226, 1226, 1202, 326, 328, 334, 1226, 1226, 1201, 339, 340, 341, 1212, 1211, 320, 355, 1203, 1202, 346, 1226, 1208, 350, 357, 363, 0, 369, 1190, 1189, 1188, 287, 215, 309, 358, 387, 1170, 388, 1165, 348, 358, 310, 1226, 376, 1226, 0, 1195, 344, 1194, 1193, 1226, 1199, 1226, 395, 1155, 1226, 1226, 1226, 1197, 378, 384, 385, 1185, 1185, 1194, 396, 1165, 1166, 389, 387, 388, 397, 398, 399, 402, 403, 404, 333, 413, 410, 409, 414, 415, 418, 420, 421, 1226, 1191, 422, 292, 425, 426, 438, 427, 428, 437, 444, 441, 448, 446, 1226, 471, 486, 493, 1226, 495, 1226, 498, 500, 506, 1226, 514, 1178, 1226, 1226, 1226, 1226, 1182, 1181, 505, 1187, 1226, 509, 0, 1169, 1168, 1167, 456, 460, 490, 494, 1137, 1139, 1140, 1125, 1226, 1149, 1123, 1226, 1122, 1138, 498, 1151, 1226, 1167, 1166, 1165, 1226, 1226, 1171, 1226, 1138, 1169, 1226, 499, 509, 510, 1226, 529, 1168, 1226, 1139, 522, 514, 516, 522, 523, 447, 524, 525, 1149, 526, 527, 528, 532, 535, 536, 529, 537, 540, 542, 539, 552, 1165, 1226, 543, 544, 556, 550, 558, 551, 565, 574, 576, 578, 579, 581, 601, 1226, 1147, 580, 1146, 582, 585, 1112, 1127, 556, 1226, 1127, 1226, 1226, 1108, 589, 1135, 1226, 1226, 1226, 1116, 590, 1139, 1138, 613, 1226, 592, 1137, 600, 602, 603, 1136, 604, 1135, 607, 606, 608, 609, 614, 613, 615, 458, 618, 620, 622, 1134, 624, 630, 623, 629, 633, 640, 642, 1133, 643, 647, 649, 1132, 668, 1226, 677, 687, 1131, 1130, 1129, 1107, 666, 1100, 1109, 1112, 653, 0, 1091, 657, 661, 1123, 662, 1122, 668, 671, 675, 676, 678, 1121, 680, 681, 682, 1120, 684, 685, 1113, 687, 688, 686, 690, 692, 694, 700, 695, 1075, 737, 1076, 1065, 1056, 709, 1075, 1062, 711, 701, 1077, 708, 713, 706, 715, 1062, 1027, 1015, 998, 728, 716, 717, 720, 721, 729, 731, 739, 741, 742, 975, 769, 712, 967, 746, 984, 943, 743, 754, 759, 899, 748, 762, 757, 898, 760, 769, 763, 771, 897, 896, 772, 778, 864, 907, 866, 872, 798, 789, 807, 889, 782, 888, 880, 790, 879, 783, 792, 795, 794, 796, 800, 819, 884, 842, 850, 821, 833, 842, 815, 824, 821, 810, 823, 814, 825, 809, 835, 826, 1226, 535, 849, 857, 1226, 857, 470, 850, 462, 851, 335, 273, 864, 870, 1226, 858, 237, 217, 879, 864, 150, 886, 172, 904, 883, 1226, 1226, 923, 932, 941, 950, 959, 968, 977, 980, 984, 992, 1001, 1006, 1015, 1024, 1029, 1032, 1036, 1044, 1053, 1062, 1071, 1076, 1085, 1093, 1097, 1104, 1112, 1121, 1130 } ; static yyconst short int yy_def[542] = { 0, 512, 1, 513, 513, 514, 514, 515, 515, 1, 1, 1, 11, 1, 1, 1, 15, 516, 516, 517, 517, 518, 518, 512, 512, 512, 512, 512, 519, 512, 512, 512, 512, 520, 521, 521, 521, 521, 512, 512, 512, 521, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 522, 512, 512, 512, 512, 512, 512, 512, 512, 523, 512, 512, 521, 521, 521, 512, 512, 512, 524, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 512, 512, 512, 512, 512, 512, 512, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 525, 512, 512, 526, 512, 512, 512, 527, 512, 528, 521, 529, 521, 521, 521, 521, 512, 512, 512, 512, 512, 512, 512, 512, 521, 512, 530, 512, 512, 512, 512, 512, 531, 512, 512, 512, 512, 512, 512, 532, 521, 521, 521, 512, 512, 533, 512, 534, 512, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 512, 535, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 512, 512, 512, 512, 512, 536, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 526, 512, 512, 527, 528, 537, 529, 521, 521, 521, 521, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 521, 512, 512, 512, 512, 512, 512, 512, 531, 512, 512, 532, 512, 521, 521, 521, 512, 512, 533, 512, 534, 524, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 535, 512, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 538, 512, 537, 521, 521, 521, 521, 512, 512, 512, 512, 512, 512, 512, 512, 521, 512, 512, 512, 512, 512, 521, 521, 521, 512, 512, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 512, 512, 538, 512, 521, 521, 521, 512, 512, 512, 512, 512, 521, 539, 512, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 512, 512, 512, 512, 512, 521, 512, 512, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 512, 512, 512, 512, 521, 512, 512, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 512, 512, 512, 512, 521, 512, 512, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, 512, 540, 512, 512, 512, 512, 512, 512, 521, 521, 521, 521, 521, 521, 521, 521, 540, 512, 512, 512, 512, 512, 541, 521, 521, 521, 521, 521, 512, 512, 541, 512, 521, 521, 512, 512, 521, 512, 512, 521, 512, 512, 512, 0, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512 } ; static yyconst short int yy_nxt[1286] = { 0, 24, 25, 26, 25, 27, 25, 24, 24, 24, 28, 24, 24, 24, 29, 30, 31, 32, 32, 32, 33, 24, 24, 34, 34, 34, 34, 34, 34, 24, 24, 24, 34, 34, 34, 35, 34, 36, 37, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 34, 24, 24, 38, 43, 132, 44, 38, 132, 39, 40, 43, 132, 44, 45, 49, 46, 50, 65, 51, 132, 45, 52, 123, 132, 124, 60, 53, 61, 133, 62, 60, 136, 61, 47, 62, 64, 39, 66, 174, 34, 67, 54, 152, 65, 153, 134, 26, 139, 105, 135, 41, 139, 63, 162, 68, 87, 106, 63, 139, 24, 69, 39, 139, 66, 87, 34, 67, 132, 24, 55, 56, 49, 159, 50, 160, 51, 57, 58, 52, 34, 68, 34, 34, 53, 145, 26, 69, 111, 34, 140, 34, 34, 132, 107, 26, 112, 105, 107, 54, 108, 140, 132, 113, 26, 109, 111, 113, 26, 114, 117, 26, 132, 117, 115, 132, 119, 161, 118, 148, 132, 118, 122, 122, 122, 122, 176, 55, 56, 70, 71, 165, 163, 166, 125, 132, 126, 126, 126, 127, 141, 137, 149, 241, 72, 137, 175, 142, 73, 179, 74, 75, 76, 77, 155, 143, 78, 139, 155, 79, 132, 139, 80, 81, 132, 144, 82, 68, 83, 84, 150, 151, 132, 85, 86, 88, 128, 132, 132, 89, 90, 132, 125, 91, 129, 129, 129, 129, 132, 138, 170, 178, 188, 156, 189, 198, 140, 506, 177, 140, 132, 199, 92, 93, 94, 95, 96, 180, 132, 78, 181, 230, 79, 97, 98, 99, 100, 132, 132, 101, 102, 83, 103, 164, 132, 122, 122, 122, 122, 167, 167, 167, 167, 132, 185, 132, 132, 132, 171, 132, 132, 132, 172, 193, 169, 173, 132, 132, 190, 132, 132, 191, 503, 182, 183, 132, 186, 171, 192, 195, 194, 197, 187, 229, 173, 184, 216, 196, 174, 182, 200, 203, 132, 139, 187, 203, 201, 139, 217, 205, 206, 184, 204, 207, 209, 139, 211, 212, 209, 139, 213, 288, 202, 241, 246, 210, 132, 214, 132, 215, 139, 216, 231, 242, 139, 221, 221, 221, 221, 224, 224, 224, 224, 274, 125, 140, 126, 126, 126, 127, 125, 132, 127, 127, 127, 127, 125, 140, 129, 129, 129, 129, 137, 139, 232, 235, 137, 139, 238, 132, 155, 132, 140, 236, 155, 247, 248, 132, 132, 237, 132, 132, 132, 239, 256, 167, 167, 167, 167, 240, 132, 132, 132, 266, 267, 132, 132, 132, 243, 258, 169, 265, 132, 132, 257, 140, 132, 132, 132, 156, 138, 132, 140, 132, 132, 132, 268, 277, 132, 132, 132, 132, 271, 273, 269, 270, 279, 275, 272, 278, 132, 132, 281, 276, 132, 284, 289, 132, 280, 132, 132, 132, 282, 283, 291, 294, 203, 293, 287, 132, 203, 132, 290, 132, 329, 132, 292, 204, 271, 295, 297, 205, 206, 132, 296, 207, 385, 298, 205, 206, 205, 206, 205, 209, 205, 211, 212, 209, 303, 213, 302, 211, 212, 132, 210, 211, 214, 132, 300, 211, 212, 132, 132, 211, 221, 221, 221, 221, 224, 224, 224, 224, 132, 132, 323, 324, 305, 132, 323, 132, 304, 167, 167, 167, 167, 132, 132, 132, 132, 132, 132, 132, 132, 320, 314, 132, 169, 321, 132, 132, 132, 331, 132, 132, 322, 132, 132, 132, 332, 326, 325, 497, 330, 132, 132, 132, 327, 328, 339, 132, 333, 132, 337, 335, 346, 334, 342, 336, 132, 338, 341, 344, 347, 340, 343, 350, 345, 132, 348, 132, 349, 132, 132, 132, 132, 132, 357, 358, 132, 351, 357, 366, 132, 132, 354, 132, 353, 237, 323, 324, 352, 356, 323, 132, 360, 132, 132, 132, 355, 132, 132, 132, 132, 369, 361, 362, 132, 132, 132, 363, 372, 132, 378, 132, 322, 132, 132, 132, 379, 380, 375, 383, 132, 132, 373, 384, 132, 374, 381, 376, 377, 389, 387, 132, 392, 132, 132, 386, 382, 390, 132, 399, 132, 357, 358, 399, 132, 357, 388, 391, 132, 396, 357, 358, 132, 132, 357, 393, 394, 384, 395, 132, 357, 358, 132, 397, 357, 406, 132, 132, 360, 132, 408, 132, 132, 132, 403, 132, 132, 132, 132, 132, 409, 132, 412, 132, 413, 132, 132, 407, 415, 418, 419, 132, 132, 422, 410, 414, 411, 132, 426, 132, 132, 417, 132, 420, 132, 416, 132, 132, 132, 421, 399, 132, 132, 435, 399, 436, 423, 431, 424, 132, 132, 437, 132, 425, 428, 428, 428, 428, 434, 438, 132, 441, 132, 132, 132, 452, 440, 132, 439, 132, 442, 240, 451, 443, 448, 132, 451, 446, 132, 444, 132, 132, 445, 132, 132, 447, 428, 428, 428, 428, 132, 458, 132, 132, 462, 449, 457, 459, 454, 132, 461, 473, 464, 132, 132, 473, 460, 474, 475, 475, 476, 132, 465, 132, 476, 132, 132, 132, 463, 132, 477, 132, 473, 491, 473, 467, 473, 478, 473, 466, 132, 132, 479, 481, 486, 132, 468, 491, 488, 488, 488, 488, 132, 482, 132, 132, 132, 480, 492, 484, 489, 489, 489, 489, 483, 490, 132, 493, 495, 489, 489, 489, 489, 494, 498, 500, 488, 488, 488, 488, 490, 132, 132, 496, 489, 489, 489, 489, 500, 132, 500, 504, 504, 504, 504, 132, 510, 511, 487, 502, 510, 239, 486, 500, 507, 501, 504, 504, 504, 504, 132, 132, 508, 509, 509, 509, 509, 510, 511, 132, 132, 510, 505, 472, 471, 470, 469, 132, 132, 132, 132, 509, 509, 509, 509, 42, 42, 42, 42, 42, 42, 42, 42, 42, 48, 48, 48, 48, 48, 48, 48, 48, 48, 59, 59, 59, 59, 59, 59, 59, 59, 59, 104, 104, 104, 104, 104, 104, 104, 104, 104, 110, 110, 110, 110, 110, 110, 110, 110, 110, 116, 116, 116, 116, 116, 116, 116, 116, 116, 120, 120, 456, 120, 120, 120, 120, 120, 120, 130, 130, 131, 131, 131, 131, 154, 154, 455, 154, 154, 154, 154, 154, 154, 158, 158, 453, 158, 158, 158, 158, 158, 158, 168, 450, 168, 168, 168, 219, 219, 132, 219, 219, 219, 219, 219, 219, 222, 222, 222, 222, 222, 222, 222, 222, 222, 225, 132, 225, 226, 226, 226, 226, 228, 228, 228, 228, 244, 244, 132, 244, 244, 244, 244, 244, 244, 251, 251, 251, 251, 251, 251, 251, 251, 251, 254, 254, 254, 254, 254, 254, 254, 254, 254, 261, 261, 261, 261, 261, 261, 261, 261, 261, 263, 132, 263, 263, 263, 285, 285, 285, 285, 285, 285, 285, 285, 285, 299, 299, 132, 433, 432, 299, 299, 301, 301, 301, 301, 359, 359, 430, 359, 359, 359, 359, 404, 404, 429, 404, 404, 404, 404, 404, 404, 485, 485, 236, 427, 485, 485, 485, 485, 485, 499, 499, 132, 499, 499, 499, 499, 499, 499, 132, 132, 132, 132, 405, 402, 401, 400, 398, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 132, 371, 370, 368, 367, 365, 364, 132, 227, 286, 132, 169, 262, 255, 319, 252, 318, 317, 316, 315, 313, 312, 311, 310, 309, 308, 307, 306, 132, 227, 227, 223, 218, 218, 300, 286, 264, 169, 262, 260, 259, 255, 253, 252, 250, 249, 245, 234, 233, 132, 132, 227, 223, 220, 218, 216, 216, 208, 202, 157, 147, 146, 132, 121, 512, 39, 39, 23, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512 } ; static yyconst short int yy_chk[1286] = { 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, 2, 3, 35, 3, 2, 37, 2, 2, 4, 75, 4, 3, 5, 4, 5, 9, 5, 36, 4, 5, 30, 67, 30, 7, 5, 7, 35, 7, 8, 37, 8, 4, 8, 8, 10, 9, 75, 9, 9, 5, 53, 10, 53, 36, 17, 39, 17, 36, 2, 39, 7, 67, 9, 13, 17, 8, 46, 13, 9, 14, 46, 10, 14, 10, 10, 41, 14, 5, 5, 6, 65, 6, 65, 6, 6, 6, 6, 13, 10, 13, 13, 6, 41, 19, 10, 19, 14, 39, 14, 14, 66, 18, 18, 19, 18, 18, 6, 18, 46, 77, 20, 20, 18, 20, 20, 21, 20, 21, 22, 68, 22, 20, 80, 22, 66, 21, 52, 76, 22, 29, 29, 29, 29, 77, 6, 6, 11, 11, 71, 68, 71, 31, 508, 31, 31, 31, 31, 40, 38, 52, 506, 11, 38, 76, 40, 11, 80, 11, 11, 11, 11, 57, 40, 11, 64, 57, 11, 73, 64, 11, 11, 79, 40, 11, 11, 11, 11, 52, 52, 78, 11, 11, 15, 31, 81, 134, 15, 15, 99, 32, 15, 32, 32, 32, 32, 100, 38, 73, 79, 91, 57, 91, 99, 57, 503, 78, 64, 502, 100, 15, 15, 15, 15, 15, 81, 83, 15, 81, 134, 15, 15, 15, 15, 15, 95, 74, 15, 15, 15, 15, 70, 92, 70, 70, 70, 70, 72, 72, 72, 72, 82, 83, 84, 96, 93, 74, 102, 98, 94, 74, 95, 72, 74, 97, 103, 92, 101, 133, 92, 497, 82, 82, 191, 84, 93, 94, 97, 96, 98, 84, 133, 93, 82, 118, 97, 94, 101, 101, 107, 135, 108, 103, 107, 102, 108, 118, 109, 109, 101, 107, 109, 113, 114, 115, 115, 113, 114, 115, 191, 109, 143, 149, 113, 179, 115, 496, 115, 119, 119, 135, 143, 119, 122, 122, 122, 122, 125, 125, 125, 125, 179, 126, 108, 126, 126, 126, 126, 127, 136, 127, 127, 127, 127, 129, 114, 129, 129, 129, 129, 137, 139, 136, 141, 137, 139, 142, 145, 155, 161, 119, 141, 155, 149, 149, 162, 163, 141, 171, 172, 170, 142, 161, 167, 167, 167, 167, 142, 173, 174, 175, 171, 172, 176, 177, 178, 145, 163, 167, 170, 182, 181, 162, 139, 180, 183, 184, 155, 137, 185, 155, 186, 187, 190, 173, 181, 192, 193, 195, 196, 176, 178, 174, 175, 183, 180, 177, 182, 197, 194, 185, 180, 199, 187, 192, 198, 184, 201, 269, 200, 185, 186, 194, 197, 203, 196, 190, 229, 203, 340, 193, 230, 269, 494, 195, 203, 194, 198, 200, 204, 204, 492, 199, 204, 340, 201, 205, 205, 207, 207, 205, 209, 207, 210, 210, 209, 230, 210, 229, 211, 211, 231, 209, 211, 210, 232, 210, 213, 213, 243, 256, 213, 221, 221, 221, 221, 224, 224, 224, 224, 257, 258, 260, 260, 232, 265, 260, 266, 231, 264, 264, 264, 264, 267, 268, 270, 271, 273, 274, 275, 279, 256, 243, 276, 264, 257, 277, 278, 280, 271, 283, 281, 258, 282, 287, 288, 273, 266, 265, 487, 270, 290, 292, 284, 267, 268, 279, 289, 274, 291, 277, 276, 288, 275, 282, 276, 293, 278, 281, 284, 289, 280, 283, 292, 287, 294, 290, 295, 291, 296, 297, 302, 298, 304, 299, 299, 305, 293, 299, 308, 314, 320, 296, 325, 295, 308, 323, 323, 294, 298, 323, 327, 299, 328, 329, 331, 297, 334, 333, 335, 336, 314, 302, 304, 338, 337, 339, 305, 325, 341, 334, 342, 320, 343, 347, 345, 335, 336, 329, 339, 348, 346, 327, 339, 349, 328, 337, 331, 333, 345, 342, 350, 348, 351, 353, 341, 338, 346, 354, 365, 355, 357, 357, 365, 369, 357, 343, 347, 372, 353, 359, 359, 373, 375, 359, 349, 350, 355, 351, 377, 360, 360, 378, 354, 360, 372, 379, 380, 359, 381, 375, 383, 384, 385, 369, 387, 388, 392, 390, 391, 377, 393, 380, 394, 381, 395, 397, 373, 384, 388, 390, 396, 407, 393, 378, 383, 379, 411, 397, 409, 403, 387, 406, 391, 410, 385, 412, 418, 419, 392, 399, 420, 421, 407, 399, 409, 394, 403, 395, 417, 422, 410, 423, 396, 399, 399, 399, 399, 406, 411, 424, 418, 425, 426, 434, 429, 417, 431, 412, 438, 419, 429, 428, 420, 425, 435, 428, 423, 440, 421, 436, 442, 422, 439, 444, 424, 428, 428, 428, 428, 443, 435, 445, 448, 440, 426, 434, 436, 431, 449, 439, 454, 443, 458, 463, 454, 438, 455, 455, 455, 456, 461, 444, 464, 456, 466, 465, 467, 442, 454, 458, 468, 469, 476, 473, 448, 469, 461, 473, 445, 483, 479, 463, 465, 485, 481, 449, 476, 473, 473, 473, 473, 478, 466, 480, 477, 482, 464, 479, 468, 474, 474, 474, 474, 467, 475, 484, 480, 483, 475, 475, 475, 475, 482, 488, 491, 488, 488, 488, 488, 489, 493, 495, 484, 489, 489, 489, 489, 499, 501, 491, 498, 498, 498, 498, 505, 510, 510, 472, 495, 510, 471, 470, 499, 504, 493, 504, 504, 504, 504, 462, 460, 505, 507, 507, 507, 507, 509, 509, 459, 457, 509, 501, 453, 452, 451, 450, 447, 446, 441, 437, 509, 509, 509, 509, 513, 513, 513, 513, 513, 513, 513, 513, 513, 514, 514, 514, 514, 514, 514, 514, 514, 514, 515, 515, 515, 515, 515, 515, 515, 515, 515, 516, 516, 516, 516, 516, 516, 516, 516, 516, 517, 517, 517, 517, 517, 517, 517, 517, 517, 518, 518, 518, 518, 518, 518, 518, 518, 518, 519, 519, 433, 519, 519, 519, 519, 519, 519, 520, 520, 521, 521, 521, 521, 522, 522, 432, 522, 522, 522, 522, 522, 522, 523, 523, 430, 523, 523, 523, 523, 523, 523, 524, 427, 524, 524, 524, 525, 525, 416, 525, 525, 525, 525, 525, 525, 526, 526, 526, 526, 526, 526, 526, 526, 526, 527, 415, 527, 528, 528, 528, 528, 529, 529, 529, 529, 530, 530, 414, 530, 530, 530, 530, 530, 530, 531, 531, 531, 531, 531, 531, 531, 531, 531, 532, 532, 532, 532, 532, 532, 532, 532, 532, 533, 533, 533, 533, 533, 533, 533, 533, 533, 534, 413, 534, 534, 534, 535, 535, 535, 535, 535, 535, 535, 535, 535, 536, 536, 408, 405, 404, 536, 536, 537, 537, 537, 537, 538, 538, 402, 538, 538, 538, 538, 539, 539, 401, 539, 539, 539, 539, 539, 539, 540, 540, 400, 398, 540, 540, 540, 540, 540, 541, 541, 389, 541, 541, 541, 541, 541, 541, 386, 382, 376, 374, 371, 368, 367, 366, 364, 363, 362, 361, 356, 352, 344, 332, 330, 326, 322, 321, 319, 315, 313, 310, 307, 306, 303, 301, 285, 272, 263, 261, 254, 253, 251, 248, 247, 246, 244, 242, 241, 239, 238, 236, 235, 234, 233, 228, 227, 226, 222, 220, 219, 214, 189, 169, 168, 166, 165, 164, 160, 156, 153, 151, 150, 148, 140, 138, 132, 131, 130, 124, 121, 120, 117, 116, 112, 106, 58, 47, 45, 34, 28, 23, 16, 12, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512, 512 } ; 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 "lexer.l" #define INITIAL 0 /* GOB C Preprocessor * Copyright (C) 1999 the Free Software Foundation. * * Author: George Lebl * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, * USA. */ #line 22 "lexer.l" #include "config.h" #include #include #include #include "treefuncs.h" #include "parse.h" #include "main.h" #include "util.h" static int parenth_depth = 0; static int before_comment = INITIAL; static gboolean class_after_c = FALSE; static int code_type = CCODE; static int before_string; static int property_paren_depth = 0; /* GTK+ doc stuff */ static char *gtk_doc_func = NULL; /* current gtk-doc func */ GHashTable *gtk_doc_hash = NULL; static GString *cbuf = NULL; int ccode_line = 1; GList *include_files = NULL; /* 0 no, 1 means yes, 2+ means don't even start looking anymore */ static int look_for_includes = 0; int line_no = 1; /* last filename parsed from a #line directive */ char *hline_filename = NULL; static void clear_cbuf(void) { if(!cbuf) { cbuf = g_string_new(NULL); } else { cbuf = g_string_assign(cbuf, ""); } } static void add_to_cbuf(char *s) { if(!cbuf) { cbuf = g_string_new(s); } else { cbuf = g_string_append(cbuf,s); } } static void add_gtk_doc_func(void) { if(!gtk_doc_func) return; if(!gtk_doc_hash) gtk_doc_hash = g_hash_table_new(g_str_hash, g_str_equal); g_hash_table_insert(gtk_doc_hash, gtk_doc_func, g_strdup(cbuf->str)); clear_cbuf(); gtk_doc_func = NULL; } /* Ugly warning avoiding */ #ifdef FLEX_SCANNER int yylex(void); #endif #define COMMENT 1 #define C_CODE 2 #define CODE_STRING 3 #define CLASS_CODE 4 #define CLASS_CODE_I 5 #define PROPERTY_CODE 6 #define PROPERTY_CODE_I 7 #define GTK_DOC_BEFORE_NAME 8 #define GTK_DOC 9 #define GTK_DOC_LINE 10 #line 1011 "lex.yy.c" /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int yywrap YY_PROTO(( void )); #else extern int yywrap YY_PROTO(( void )); #endif #endif #ifndef YY_NO_UNPUT static void yyunput YY_PROTO(( int c, char *buf_ptr )); #endif #ifndef yytext_ptr static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen YY_PROTO(( yyconst char * )); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput YY_PROTO(( void )); #else static int input YY_PROTO(( void )); #endif #endif #if YY_STACK_USED static int yy_start_stack_ptr = 0; static int yy_start_stack_depth = 0; static int *yy_start_stack = 0; #ifndef YY_NO_PUSH_STATE static void yy_push_state YY_PROTO(( int new_state )); #endif #ifndef YY_NO_POP_STATE static void yy_pop_state YY_PROTO(( void )); #endif #ifndef YY_NO_TOP_STATE static int yy_top_state YY_PROTO(( void )); #endif #else #define YY_NO_PUSH_STATE 1 #define YY_NO_POP_STATE 1 #define YY_NO_TOP_STATE 1 #endif #ifdef YY_MALLOC_DECL YY_MALLOC_DECL #else #if __STDC__ #ifndef __cplusplus #include #endif #else /* Just try to get by without declaring the routines. This will fail * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) * or sizeof(void*) != sizeof(int). */ #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #define YY_READ_BUF_SIZE 8192 #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( yy_current_buffer->yy_is_interactive ) \ { \ int c = '*', n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL int yylex YY_PROTO(( void )) #endif /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ if ( yyleng > 0 ) \ yy_current_buffer->yy_at_bol = \ (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION YY_DECL { register yy_state_type yy_current_state; register char *yy_cp = NULL, *yy_bp = NULL; register int yy_act; #line 109 "lexer.l" /* Avoid warning from flex, cuz flex sucks */ #ifdef FLEX_SCANNER yy_current_state = 0; #endif #line 1176 "lex.yy.c" if ( yy_init ) { yy_init = 0; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! yy_start ) yy_start = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! yy_current_buffer ) yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); yy_load_buffer_state(); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = yy_c_buf_p; /* Support of yytext. */ *yy_cp = yy_hold_char; /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = yy_start; yy_current_state += YY_AT_BOL(); yy_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 >= 513 ) 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] != 1226 ); 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; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 1: YY_RULE_SETUP #line 119 "lexer.l" { line_no++; REJECT; } YY_BREAK case 2: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 121 "lexer.l" { /* Thy evil easter egg */ #define QQ(x) long x #define KK(x) =atoi(__(&,,x,)) #define MM(x,a) {QQ(i);for(i=2;i'); *p = '\0'; include_files = g_list_prepend(include_files,g_strdup(file)); g_free(str); } REJECT; } YY_BREAK case 6: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 199 "lexer.l" { /* eat out gtk doc stuff */ BEGIN(GTK_DOC_BEFORE_NAME); clear_cbuf(); } YY_BREAK case 7: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 204 "lexer.l" { /* empty doc lines */ ; } YY_BREAK case 8: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 208 "lexer.l" { char *p; BEGIN(GTK_DOC); p = strchr(yytext, '*'); g_free(gtk_doc_func); gtk_doc_func = g_strdup(p+2); p = strchr(gtk_doc_func, ':'); if(p) *p='\0'; g_strstrip(gtk_doc_func); } YY_BREAK case 9: YY_RULE_SETUP #line 218 "lexer.l" { BEGIN(CLASS_CODE_I); } YY_BREAK case 10: YY_RULE_SETUP #line 221 "lexer.l" { BEGIN(COMMENT); before_comment = CLASS_CODE_I; } YY_BREAK case 11: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 225 "lexer.l" { /* empty doc lines */ add_to_cbuf(" *\n"); } YY_BREAK case 12: YY_RULE_SETUP #line 229 "lexer.l" { BEGIN(CLASS_CODE_I); add_gtk_doc_func(); } YY_BREAK case 13: YY_RULE_SETUP #line 233 "lexer.l" { fflush(stdout); add_to_cbuf(" * "); BEGIN(GTK_DOC_LINE); } YY_BREAK case 14: YY_RULE_SETUP #line 238 "lexer.l" { BEGIN(CLASS_CODE_I); } YY_BREAK case 15: YY_RULE_SETUP #line 241 "lexer.l" { BEGIN(COMMENT); before_comment = CLASS_CODE_I; } YY_BREAK case 16: YY_RULE_SETUP #line 245 "lexer.l" { BEGIN(CLASS_CODE_I); add_to_cbuf("\n"); add_gtk_doc_func(); } YY_BREAK case 17: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 250 "lexer.l" { BEGIN(GTK_DOC); add_to_cbuf(yytext); add_to_cbuf("\n"); } YY_BREAK case 18: YY_RULE_SETUP #line 255 "lexer.l" { fflush(stdout); add_to_cbuf(yytext); } YY_BREAK case 19: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 260 "lexer.l" { add_to_cbuf(yytext); /*comment, ignore*/ } YY_BREAK case 20: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 261 "lexer.l" { ; /*comment, ignore*/ } YY_BREAK case 21: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 262 "lexer.l" { ; /*comment, ignore*/ } YY_BREAK case 22: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 263 "lexer.l" { ; /*comment, ignore*/ } YY_BREAK case 23: YY_RULE_SETUP #line 264 "lexer.l" {BEGIN(COMMENT); before_comment = INITIAL; } YY_BREAK case 24: YY_RULE_SETUP #line 265 "lexer.l" { add_to_cbuf(yytext); BEGIN(COMMENT); before_comment = C_CODE; } YY_BREAK case 25: YY_RULE_SETUP #line 270 "lexer.l" {BEGIN(COMMENT); before_comment = CLASS_CODE; } YY_BREAK case 26: YY_RULE_SETUP #line 271 "lexer.l" {BEGIN(COMMENT); before_comment = CLASS_CODE_I; } YY_BREAK case 27: YY_RULE_SETUP #line 272 "lexer.l" {BEGIN(COMMENT); before_comment = PROPERTY_CODE_I; } YY_BREAK case 28: YY_RULE_SETUP #line 273 "lexer.l" { if(before_comment == C_CODE) add_to_cbuf(yytext); BEGIN(before_comment); } YY_BREAK case 29: YY_RULE_SETUP #line 277 "lexer.l" { /* comment, ignore */ if(before_comment == C_CODE) add_to_cbuf(yytext); } YY_BREAK case 30: YY_RULE_SETUP #line 281 "lexer.l" { /* comment, ignore */ if(before_comment == C_CODE) add_to_cbuf(yytext); } YY_BREAK case 31: YY_RULE_SETUP #line 286 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; class_after_c = FALSE; code_type = ACODE; clear_cbuf(); ccode_line = line_no; } YY_BREAK case 32: YY_RULE_SETUP #line 294 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; class_after_c = FALSE; code_type = ATCODE; clear_cbuf(); ccode_line = line_no; } YY_BREAK case 33: YY_RULE_SETUP #line 303 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; class_after_c = FALSE; code_type = HTCODE; clear_cbuf(); ccode_line = line_no; } YY_BREAK case 34: YY_RULE_SETUP #line 311 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; class_after_c = FALSE; code_type = PHCODE; clear_cbuf(); ccode_line = line_no; } YY_BREAK case 35: YY_RULE_SETUP #line 319 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; class_after_c = FALSE; code_type = HCODE; clear_cbuf(); ccode_line = line_no; } YY_BREAK case 36: YY_RULE_SETUP #line 327 "lexer.l" { BEGIN(C_CODE); parenth_depth = 1; class_after_c = FALSE; code_type = CCODE; clear_cbuf(); ccode_line = line_no; if(look_for_includes==0) look_for_includes=1; } YY_BREAK case 37: YY_RULE_SETUP #line 337 "lexer.l" { BEGIN(INITIAL); yylval.cbuf = cbuf; cbuf = NULL; if(look_for_includes==1) look_for_includes=0; return code_type; } YY_BREAK case 38: YY_RULE_SETUP #line 346 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK case 39: YY_RULE_SETUP #line 347 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK case 40: YY_RULE_SETUP #line 348 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK case 41: YY_RULE_SETUP #line 349 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK case 42: YY_RULE_SETUP #line 350 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK case 43: YY_RULE_SETUP #line 351 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK case 44: YY_RULE_SETUP #line 353 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK case 45: YY_RULE_SETUP #line 356 "lexer.l" { BEGIN(CODE_STRING); before_string = C_CODE; add_to_cbuf(yytext); } YY_BREAK case 46: YY_RULE_SETUP #line 361 "lexer.l" { BEGIN(CODE_STRING); before_string = PROPERTY_CODE_I; add_to_cbuf(yytext); } YY_BREAK case 47: YY_RULE_SETUP #line 366 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK case 48: YY_RULE_SETUP #line 367 "lexer.l" { BEGIN(before_string); add_to_cbuf(yytext); if (before_string == PROPERTY_CODE_I) { yylval.id = cbuf->str; g_string_free (cbuf, FALSE); cbuf = NULL; return STRING; } } YY_BREAK case 49: YY_RULE_SETUP #line 377 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK case 50: YY_RULE_SETUP #line 378 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK case 51: YY_RULE_SETUP #line 380 "lexer.l" { parenth_depth++; add_to_cbuf(yytext); } YY_BREAK case 52: YY_RULE_SETUP #line 384 "lexer.l" { parenth_depth--; if(parenth_depth<0) { REJECT; } else if(parenth_depth==0 && class_after_c) { BEGIN(CLASS_CODE_I); yylval.cbuf = cbuf; cbuf = NULL; return CCODE; } add_to_cbuf(yytext); } YY_BREAK case 53: YY_RULE_SETUP #line 397 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK case 54: YY_RULE_SETUP #line 398 "lexer.l" { add_to_cbuf(yytext); } YY_BREAK case 55: YY_RULE_SETUP #line 400 "lexer.l" { static int found_classes = 0; look_for_includes = 2; BEGIN(CLASS_CODE); if(++found_classes > 1) { error_print(GOB_ERROR, line_no, "Only one class per file allowed"); } return CLASS; } YY_BREAK case 56: YY_RULE_SETUP #line 413 "lexer.l" { return ERROR; } YY_BREAK case 57: YY_RULE_SETUP #line 414 "lexer.l" { return ENUM; } YY_BREAK case 58: YY_RULE_SETUP #line 415 "lexer.l" { return FLAGS; } YY_BREAK case 59: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 417 "lexer.l" { int maj = 0, min = 0, pl = 0; int rmaj = 0, rmin = 0, rpl = 0; int effective_maj = 0; int effective_rmaj = 0; char *p; sscanf (VERSION, "%d.%d.%d", &rmaj, &rmin, &rpl); effective_rmaj = rmaj; if (rmin >= 90) effective_rmaj = rmaj + 1; p = strchr (yytext,'r'); g_assert (p); /* we MUST have found it */ sscanf (p, "requires %d.%d.%d", &maj, &min, &pl); effective_maj = maj; if (min >= 90) effective_maj = maj + 1; if(rmaj < maj || (rmaj == maj && rmin < min) || (rmaj == maj && rmin == min && rpl < pl)) { error_printf (GOB_ERROR, line_no, "GOB version at least %d.%d.%d required " "(this is %s)\n" "To upgrade your gob, see: " "http://www.5z.com/jirka/gob.html", maj, min, pl, VERSION); } if(effective_rmaj != effective_maj) { error_printf(GOB_ERROR, line_no, "GOB major version %d required " "(this is %s)\n" "To upgrade your gob, see: " "http://www.5z.com/jirka/gob.html", effective_maj, VERSION); } } YY_BREAK case 60: YY_RULE_SETUP #line 458 "lexer.l" { if(for_cpp) { error_printf(GOB_WARN, line_no, "'%s' keyword should not " "be used when generating " "C++ code", yytext); } REJECT; } YY_BREAK case 61: YY_RULE_SETUP #line 468 "lexer.l" {return FROM;} YY_BREAK case 62: YY_RULE_SETUP #line 470 "lexer.l" {return VOID;} YY_BREAK case 63: YY_RULE_SETUP #line 471 "lexer.l" {return STRUCT;} YY_BREAK case 64: YY_RULE_SETUP #line 472 "lexer.l" {return UNION;} YY_BREAK case 65: YY_RULE_SETUP #line 473 "lexer.l" {return ENUM;} YY_BREAK case 66: YY_RULE_SETUP #line 474 "lexer.l" {return SIGNED;} YY_BREAK case 67: YY_RULE_SETUP #line 475 "lexer.l" {return UNSIGNED;} YY_BREAK case 68: YY_RULE_SETUP #line 476 "lexer.l" {return LONG;} YY_BREAK case 69: YY_RULE_SETUP #line 477 "lexer.l" {return SHORT;} YY_BREAK case 70: YY_RULE_SETUP #line 478 "lexer.l" {return INT;} YY_BREAK case 71: YY_RULE_SETUP #line 479 "lexer.l" {return FLOAT;} YY_BREAK case 72: YY_RULE_SETUP #line 480 "lexer.l" {return DOUBLE;} YY_BREAK case 73: YY_RULE_SETUP #line 481 "lexer.l" {return CHAR;} YY_BREAK case 74: YY_RULE_SETUP #line 482 "lexer.l" {return CONST;} YY_BREAK case 75: YY_RULE_SETUP #line 484 "lexer.l" {return THREEDOTS;} YY_BREAK case 76: YY_RULE_SETUP #line 486 "lexer.l" {yylval.line = line_no; return PUBLIC;} YY_BREAK case 77: YY_RULE_SETUP #line 487 "lexer.l" {yylval.line = line_no; return PRIVATE;} YY_BREAK case 78: YY_RULE_SETUP #line 488 "lexer.l" {yylval.line = line_no; return PROTECTED;} YY_BREAK case 79: YY_RULE_SETUP #line 489 "lexer.l" {yylval.line = line_no; return CLASSWIDE;} YY_BREAK case 80: YY_RULE_SETUP #line 490 "lexer.l" {yylval.line = line_no; return ARGUMENT;} YY_BREAK case 81: YY_RULE_SETUP #line 491 "lexer.l" {yylval.line = line_no; return VIRTUAL;} YY_BREAK case 82: YY_RULE_SETUP #line 492 "lexer.l" {yylval.line = line_no; return SIGNAL;} YY_BREAK case 83: YY_RULE_SETUP #line 493 "lexer.l" {yylval.line = line_no; return OVERRIDE;} YY_BREAK case 84: YY_RULE_SETUP #line 494 "lexer.l" { yylval.line = line_no; BEGIN(PROPERTY_CODE); return PROPERTY; } YY_BREAK case 85: YY_RULE_SETUP #line 499 "lexer.l" { yylval.line = line_no; return NICK; } YY_BREAK case 86: YY_RULE_SETUP #line 500 "lexer.l" { yylval.line = line_no; return BLURB; } YY_BREAK case 87: YY_RULE_SETUP #line 501 "lexer.l" { yylval.line = line_no; return MAXIMUM; } YY_BREAK case 88: YY_RULE_SETUP #line 502 "lexer.l" { yylval.line = line_no; return MINIMUM; } YY_BREAK case 89: YY_RULE_SETUP #line 503 "lexer.l" { yylval.line = line_no; return DEFAULT_VALUE; } YY_BREAK case 90: YY_RULE_SETUP #line 504 "lexer.l" { yylval.line = line_no; return FLAGS; } YY_BREAK case 91: YY_RULE_SETUP #line 505 "lexer.l" { yylval.line = line_no; return TYPE; } YY_BREAK case 92: YY_RULE_SETUP #line 506 "lexer.l" { yylval.line = line_no; return FLAGS_TYPE; } YY_BREAK case 93: YY_RULE_SETUP #line 507 "lexer.l" { yylval.line = line_no; return ENUM_TYPE; } YY_BREAK case 94: YY_RULE_SETUP #line 508 "lexer.l" { yylval.line = line_no; return PARAM_TYPE; } YY_BREAK case 95: YY_RULE_SETUP #line 509 "lexer.l" { yylval.line = line_no; return BOXED_TYPE; } YY_BREAK case 96: YY_RULE_SETUP #line 510 "lexer.l" { yylval.line = line_no; return OBJECT_TYPE; } YY_BREAK case 97: YY_RULE_SETUP #line 511 "lexer.l" { yylval.line = line_no; property_paren_depth = 1; BEGIN(PROPERTY_CODE_I); return '('; } YY_BREAK case 98: YY_RULE_SETUP #line 517 "lexer.l" { yylval.line = line_no; property_paren_depth++; return '('; } YY_BREAK case 99: YY_RULE_SETUP #line 522 "lexer.l" { yylval.line = line_no; property_paren_depth--; if (property_paren_depth == 0) { BEGIN(CLASS_CODE_I); } return ')'; } YY_BREAK case 100: YY_RULE_SETUP #line 531 "lexer.l" { yylval.id = g_strdup(yytext); return NUMBER; } YY_BREAK case 101: YY_RULE_SETUP #line 535 "lexer.l" { /* this one is for a classname with a namespace */ yylval.id = g_strdup(yytext); return TYPETOKEN; } YY_BREAK case 102: YY_RULE_SETUP #line 540 "lexer.l" { /* this is for a classname with an empty namespace */ yylval.id = g_strdup(yytext); return TYPETOKEN; } YY_BREAK case 103: YY_RULE_SETUP #line 545 "lexer.l" { yylval.id = g_strdup(yytext); return TOKEN; } YY_BREAK case 104: YY_RULE_SETUP #line 549 "lexer.l" { yylval.id = g_strdup(yytext); return SINGLE_CHAR; } YY_BREAK case 105: YY_RULE_SETUP #line 554 "lexer.l" { yylval.id = g_strdup(yytext); return ARRAY_DIM; } YY_BREAK case 106: YY_RULE_SETUP #line 559 "lexer.l" { BEGIN(CLASS_CODE_I); return '{'; } YY_BREAK case 107: YY_RULE_SETUP #line 563 "lexer.l" { BEGIN(C_CODE); parenth_depth=1; class_after_c = TRUE; yylval.line = line_no; clear_cbuf(); ccode_line = line_no; return '{'; } YY_BREAK case 108: YY_RULE_SETUP #line 572 "lexer.l" { BEGIN(INITIAL); return '}'; } YY_BREAK case 109: YY_RULE_SETUP #line 577 "lexer.l" ; /*ignore*/ YY_BREAK case 110: YY_RULE_SETUP #line 579 "lexer.l" { yylval.line = line_no; return yytext[0]; } YY_BREAK case 111: YY_RULE_SETUP #line 584 "lexer.l" ; /*ignore*/ YY_BREAK case 112: YY_RULE_SETUP #line 586 "lexer.l" ECHO; YY_BREAK #line 2184 "lex.yy.c" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(COMMENT): case YY_STATE_EOF(C_CODE): case YY_STATE_EOF(CODE_STRING): case YY_STATE_EOF(CLASS_CODE): case YY_STATE_EOF(CLASS_CODE_I): case YY_STATE_EOF(PROPERTY_CODE): case YY_STATE_EOF(PROPERTY_CODE_I): case YY_STATE_EOF(GTK_DOC_BEFORE_NAME): case YY_STATE_EOF(GTK_DOC): case YY_STATE_EOF(GTK_DOC_LINE): 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 >= 513 ) 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 >= 513 ) 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 == 512); 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; yytext_ptr = yy_bp; yy_hold_char = *yy_cp; yy_c_buf_p = yy_cp; } #endif /* ifndef YY_NO_UNPUT */ #ifdef __cplusplus static int yyinput() #else static int input() #endif { int c; *yy_c_buf_p = yy_hold_char; if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) /* This was really a NUL. */ *yy_c_buf_p = '\0'; else { /* need more input */ int offset = yy_c_buf_p - yytext_ptr; ++yy_c_buf_p; switch ( yy_get_next_buffer() ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ yyrestart( yyin ); /* fall through */ case EOB_ACT_END_OF_FILE: { if ( yywrap() ) return EOF; if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: yy_c_buf_p = yytext_ptr + offset; break; } } } c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ *yy_c_buf_p = '\0'; /* preserve yytext */ yy_hold_char = *++yy_c_buf_p; yy_current_buffer->yy_at_bol = (c == '\n'); return c; } #ifdef YY_USE_PROTOS void yyrestart( FILE *input_file ) #else void yyrestart( input_file ) FILE *input_file; #endif { if ( ! yy_current_buffer ) yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); yy_init_buffer( yy_current_buffer, input_file ); yy_load_buffer_state(); } #ifdef YY_USE_PROTOS void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) #else void yy_switch_to_buffer( new_buffer ) YY_BUFFER_STATE new_buffer; #endif { if ( yy_current_buffer == new_buffer ) return; if ( yy_current_buffer ) { /* Flush out information for old buffer. */ *yy_c_buf_p = yy_hold_char; yy_current_buffer->yy_buf_pos = yy_c_buf_p; yy_current_buffer->yy_n_chars = yy_n_chars; } yy_current_buffer = new_buffer; yy_load_buffer_state(); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ yy_did_buffer_switch_on_eof = 1; } #ifdef YY_USE_PROTOS void yy_load_buffer_state( void ) #else void yy_load_buffer_state() #endif { yy_n_chars = yy_current_buffer->yy_n_chars; yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; yyin = yy_current_buffer->yy_input_file; yy_hold_char = *yy_c_buf_p; } #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) #else YY_BUFFER_STATE yy_create_buffer( file, size ) FILE *file; int size; #endif { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer( b, file ); return b; } #ifdef YY_USE_PROTOS void yy_delete_buffer( YY_BUFFER_STATE b ) #else void yy_delete_buffer( b ) YY_BUFFER_STATE b; #endif { if ( ! b ) return; if ( b == yy_current_buffer ) yy_current_buffer = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) yy_flex_free( (void *) b->yy_ch_buf ); yy_flex_free( (void *) b ); } #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 586 "lexer.l" /* Ugly warning avoiding */ #ifdef FLEX_SCANNER static void warning_avoider(void) G_GNUC_UNUSED; static void warning_avoider(void) { yy_flex_realloc(NULL, 0); yyunput(0, NULL); warning_avoider(); } #endif