#define yy_create_buffer fcodeYY_create_buffer #define yy_delete_buffer fcodeYY_delete_buffer #define yy_scan_buffer fcodeYY_scan_buffer #define yy_scan_string fcodeYY_scan_string #define yy_scan_bytes fcodeYY_scan_bytes #define yy_flex_debug fcodeYY_flex_debug #define yy_init_buffer fcodeYY_init_buffer #define yy_flush_buffer fcodeYY_flush_buffer #define yy_load_buffer_state fcodeYY_load_buffer_state #define yy_switch_to_buffer fcodeYY_switch_to_buffer #define yyin fcodeYYin #define yyleng fcodeYYleng #define yylex fcodeYYlex #define yyout fcodeYYout #define yyrestart fcodeYYrestart #define yytext fcodeYYtext /* A lexical scanner generated by flex */ /* Scanner skeleton version: * $Header: /cvs/root/flex/flex/skel.c,v 1.2 2004/05/07 00:28:17 jkh 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 262144 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 #define yywrap() 1 #define YY_SKIP_YYWRAP typedef unsigned char YY_CHAR; FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; typedef int yy_state_type; extern char *yytext; #define yytext_ptr yytext static yy_state_type yy_get_previous_state YY_PROTO(( void )); static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); static int yy_get_next_buffer YY_PROTO(( void )); static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. */ #define YY_DO_BEFORE_ACTION \ yytext_ptr = yy_bp; \ yyleng = (int) (yy_cp - yy_bp); \ yy_hold_char = *yy_cp; \ *yy_cp = '\0'; \ yy_c_buf_p = yy_cp; #define YY_NUM_RULES 47 #define YY_END_OF_BUFFER 48 static yyconst short int yy_acclist[621] = { 0, 34, 34, 48, 46, 47, 45, 47, 46, 47, 43, 46, 47, 46, 47, 46, 47, 45, 47, 46, 47, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 39, 46, 47, 31, 46, 47, 12, 45, 47, 11, 46, 47, 19, 45, 47, 18, 46, 47, 17, 46, 47, 34, 46, 47, 36, 45, 47, 34, 46, 47, 34, 43, 46, 47, 34, 46, 47, 9, 45, 47, 46, 47, 5, 46, 47, 46, 47, 7, 46, 47, 8, 46, 47, 23, 46, 47, 22, 46, 47, 29, 45, 47, 27, 46, 47, 46, 47, 46, 47, 46, 47, 46, 47, 46, 47, 46, 47, 46, 47, 46, 47, 46, 47, 46, 47, 46, 47, 28, 45, 47, 44, 46, 47, 44, 46, 47, 42, 43, 44, 46, 47, 44, 46, 47, 37, 41, 40, 33, 38, 32, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 16386, 39, 39, 39, 39, 39,16386, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 31, 31, 11, 11, 18, 17, 17, 34, 35, 34, 34, 41, 34, 40, 5, 5, 7, 7, 8, 8, 22, 22, 39, 39, 39, 39, 39, 39, 39, 39, 39, 8194, 8194, 8194, 32, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 35, 35, 34, 39, 39, 39, 39, 39, 39, 39, 39, 8194, 8194, 8194, 32, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 8193, 39, 16385, 39,16399, 25, 39, 39, 39, 39, 39,16394, 4, 39, 39, 39, 39, 30, 39, 39, 39, 39, 39, 39, 39, 39, 39,16387, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 8193, 8193, 32,16399, 24,16399, 24, 32, 24, 39, 39, 39, 39, 39, 8202, 8202, 21, 32, 6, 26, 26, 26, 39, 39, 39, 39, 39, 39, 39, 39,16387, 39, 39, 8195, 8195, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39,16394, 39, 39, 39, 39, 39, 32,16399,16399, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 8195, 8195, 8195, 32, 39, 39, 39, 39, 39, 39, 14, 39, 39, 39, 39, 39, 32, 39, 39, 8202, 39, 39, 39,16394,16399, 24,16399,16399, 24,16399, 39, 39, 39, 26, 39, 39, 39, 39, 39, 39, 14, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 39, 8202, 39, 39, 39, 39, 39,16399, 39, 39, 39, 39, 39, 39, 13, 14, 39, 39, 39, 16, 39, 39, 39, 39, 39,16386,16399, 24,16399, 24, 32, 32, 39, 13, 14, 39, 39, 39, 13, 13, 13, 32, 13, 39, 13, 39, 39, 39, 25, 39, 39, 26, 26, 32,16399,16399, 25, 39, 13, 39, 20, 39, 39, 13, 13, 39, 39, 39, 39,16399, 24,16399,16399, 25, 39, 20, 20, 20, 20, 32, 20, 39, 20, 39, 13, 39, 39, 39, 26, 26,16399, 24,16399, 39, 13, 8193,16385, 8207, 39, 26, 39, 13, 8193, 8193, 8207, 39,16399, 13,16399,16399, 24,16399, 24, 32, 13, 13, 13, 13,16387, 8195, 13, 8195, 13 } ; static yyconst short int yy_accept[792] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 6, 8, 10, 13, 15, 17, 19, 21, 23, 26, 29, 32, 35, 38, 41, 44, 47, 50, 53, 56, 59, 62, 65, 68, 71, 74, 77, 80, 83, 86, 89, 92, 95, 98, 101, 105, 108, 111, 113, 116, 118, 121, 124, 127, 130, 133, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 161, 164, 167, 172, 175, 175, 176, 177, 178, 178, 178, 179, 179, 180, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 192, 193, 194, 195, 196, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 226, 227, 228, 230, 232, 232, 232, 233, 234, 234, 235, 236, 237, 238, 239, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 294, 295, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 322, 324, 326, 327, 328, 329, 331, 332, 333, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 343, 344, 345, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 375, 376, 378, 380, 380, 381, 382, 383, 384, 385, 386, 387, 388, 390, 390, 391, 391, 391, 391, 391, 391, 391, 391, 391, 391, 391, 391, 391, 391, 391, 391, 391, 392, 393, 393, 394, 394, 395, 395, 396, 397, 398, 399, 400, 401, 402, 402, 402, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 427, 428, 429, 430, 431, 432, 433, 433, 433, 433, 434, 435, 436, 437, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 438, 439, 439, 440, 441, 442, 443, 444, 444, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 445, 446, 447, 448, 450, 451, 452, 453, 454, 455, 456, 458, 459, 460, 461, 462, 462, 463, 464, 465, 466, 467, 468, 470, 470, 470, 471, 473, 474, 476, 477, 478, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, 480, 481, 481, 482, 483, 484, 485, 485, 486, 486, 486, 486, 486, 486, 486, 486, 487, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 496, 496, 496, 497, 498, 498, 499, 500, 500, 500, 501, 502, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 503, 504, 504, 506, 507, 508, 508, 509, 509, 509, 509, 509, 509, 509, 509, 509, 510, 511, 512, 515, 516, 517, 518, 518, 519, 519, 519, 519, 519, 519, 520, 521, 522, 522, 522, 522, 522, 522, 522, 522, 522, 523, 524, 525, 527, 529, 529, 529, 530, 530, 531, 531, 531, 531, 531, 533, 533, 533, 534, 535, 536, 537, 538, 540, 542, 544, 545, 545, 546, 546, 547, 547, 547, 547, 547, 547, 548, 549, 549, 549, 549, 549, 550, 551, 551, 551, 551, 551, 551, 551, 551, 552, 552, 553, 553, 553, 554, 554, 555, 555, 556, 556, 556, 556, 557, 557, 558, 560, 561, 562, 563, 564, 564, 565, 565, 565, 565, 565, 565, 566, 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, 567, 568, 570, 570, 571, 572, 572, 573, 573, 574, 574, 574, 575, 576, 578, 580, 582, 583, 584, 584, 584, 584, 584, 585, 586, 586, 587, 587, 587, 587, 588, 588, 589, 591, 591, 592, 592, 593, 595, 595, 595, 595, 596, 597, 597, 598, 598, 598, 599, 600, 601, 602, 602, 603, 603, 603, 603, 605, 606, 606, 606, 607, 608, 610, 612, 613, 614, 615, 617, 619, 621, 621 } ; static yyconst int yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 4, 5, 6, 7, 1, 1, 8, 9, 10, 11, 12, 1, 13, 1, 1, 1, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 1, 1, 1, 16, 1, 1, 19, 20, 21, 22, 23, 24, 25, 26, 27, 18, 28, 29, 30, 31, 32, 33, 18, 34, 35, 36, 37, 38, 39, 40, 41, 42, 1, 17, 1, 1, 18, 1, 19, 20, 21, 22, 23, 24, 25, 26, 27, 18, 28, 29, 30, 31, 32, 33, 18, 34, 35, 36, 37, 38, 39, 40, 41, 42, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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[43] = { 0, 1, 2, 3, 2, 1, 1, 1, 1, 1, 2, 1, 1, 1, 4, 1, 5, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 } ; static yyconst short int yy_base[832] = { 0, 0, 5, 22, 0, 64, 0, 104, 109, 126, 0, 166, 171, 188, 0, 228, 233, 250, 0, 292, 0, 334, 0, 374, 0, 381, 408, 413, 418, 423, 428, 2468, 2469, 2469, 2464, 2469, 102, 11, 16, 170, 2463, 390, 434, 437, 465, 423, 433, 451, 456, 442, 463, 473, 475, 485, 495, 484, 494, 504, 2451, 2469, 2450, 2469, 0, 2449, 0, 118, 232, 0, 372, 2469, 496, 2448, 529, 0, 2447, 2469, 2446, 2469, 2469, 2430, 152, 155, 2418, 2426, 2424, 2422, 515, 2431, 2434, 2433, 2469, 2469, 2448, 2469, 531, 2447, 2469, 2469, 2469, 239, 2433, 2469, 2445, 2469, 541, 2469, 551, 531, 525, 540, 529, 548, 546, 552, 562, 593, 579, 590, 589, 539, 2410, 560, 588, 598, 604, 603, 570, 618, 627, 631, 629, 641, 635, 640, 645, 652, 664, 665, 668, 678, 683, 0, 2432, 0, 2431, 0, 0, 2430, 0, 452, 165, 2440, 0, 0, 581, 2411, 0, 2427, 698, 245, 456, 0, 2426, 0, 2425, 2409, 2418, 2406, 2405, 2397, 2395, 2390, 2396, 2375, 2357, 2359, 2344, 2346, 2332, 2304, 2294, 2320, 658, 694, 688, 693, 696, 706, 709, 703, 719, 668, 0, 0, 724, 729, 768, 734, 790, 737, 789, 744, 785, 786, 735, 802, 803, 815, 807, 823, 827, 828, 841, 831, 844, 808, 851, 875, 859, 847, 2314, 2469, 2289, 2262, 2257, 2254, 2254, 2263, 2265, 2261, 365, 2256, 2254, 2261, 2247, 2239, 2247, 2246, 2251, 2248, 865, 869, 900, 887, 872, 889, 887, 891, 0, 922, 0, 894, 933, 899, 910, 914, 918, 930, 947, 919, 954, 925, 958, 963, 966, 975, 977, 981, 987, 962, 988, 994, 1003, 1004, 1005, 1013, 1022, 1042, 1055, 1032, 1034, 1052, 1054, 1079, 1092, 1072, 1080, 2231, 2246, 2247, 2235, 2223, 2219, 2207, 154, 2209, 2197, 2185, 2183, 2168, 2184, 2174, 1103, 531, 2176, 1082, 1107, 1118, 1104, 1108, 1116, 1100, 1118, 1126, 2164, 2170, 2156, 2156, 2141, 93, 2144, 2125, 209, 379, 2127, 1128, 1136, 1162, 1148, 1032, 1146, 1156, 1137, 1045, 1150, 1166, 1169, 1170, 1163, 1184, 1183, 1196, 1197, 1210, 1176, 1203, 1219, 1215, 1225, 1229, 1228, 1221, 1251, 1269, 2469, 1272, 1276, 2131, 2121, 2469, 1262, 1265, 1282, 1266, 1287, 1318, 2469, 2469, 1155, 2469, 2115, 2111, 2098, 2085, 2094, 2084, 2083, 1964, 1964, 1972, 1956, 1963, 1960, 1941, 1951, 1285, 1322, 1958, 1938, 2469, 1914, 1308, 1331, 1310, 1311, 1281, 1317, 1329, 1325, 1357, 1910, 1905, 638, 1894, 1897, 1887, 1891, 1879, 1869, 1872, 1868, 1855, 1860, 1341, 1345, 1373, 0, 1355, 1358, 1365, 1362, 1372, 1377, 1380, 1384, 1387, 1392, 1319, 1403, 1411, 1414, 1437, 1423, 1426, 1425, 1460, 1434, 1449, 1450, 1460, 1461, 1863, 1811, 1801, 1824, 1492, 727, 1459, 1469, 1472, 1216, 378, 1787, 1781, 1773, 1785, 1228, 1788, 1765, 1509, 1750, 1751, 1749, 1721, 1719, 1700, 1711, 1709, 1513, 1520, 1499, 1697, 1478, 1513, 1518, 1522, 1523, 1536, 1532, 1686, 1681, 1666, 1654, 1651, 1633, 1638, 1635, 1623, 1622, 1628, 1613, 1533, 0, 1558, 0, 1544, 1552, 1543, 1548, 1560, 1566, 1571, 1576, 1565, 1575, 1578, 1609, 1608, 1596, 1593, 1619, 1597, 1615, 1646, 1611, 1614, 0, 0, 1637, 1641, 1633, 1637, 1651, 1604, 1610, 1597, 1578, 1555, 1665, 1533, 1528, 1677, 1681, 1529, 1518, 1520, 1682, 1686, 1674, 1493, 1674, 1683, 1692, 1681, 1487, 1696, 1492, 1470, 1461, 1449, 1438, 1450, 1435, 2469, 1427, 1727, 1703, 1711, 1715, 1707, 1726, 1728, 1757, 1762, 1746, 1413, 1391, 1751, 1760, 1385, 1756, 1785, 1386, 1370, 1765, 1737, 1765, 1354, 1353, 1360, 1329, 1324, 1326, 1798, 1308, 1288, 1295, 1275, 1775, 1286, 1806, 1780, 1817, 1281, 1793, 1455, 1266, 1266, 1252, 1248, 1230, 1226, 1824, 1810, 1813, 1818, 1850, 1849, 1850, 1839, 1868, 1821, 1869, 1226, 1211, 1195, 1189, 1858, 1868, 1870, 1198, 1181, 1162, 1902, 1893, 1163, 1905, 1137, 1899, 1917, 1922, 1931, 1150, 1934, 1943, 1140, 1125, 1932, 1571, 1119, 1101, 1105, 474, 1080, 1064, 1935, 1934, 1939, 0, 1971, 0, 2004, 2021, 1949, 1065, 1953, 1986, 2469, 1051, 1362, 1066, 1048, 1025, 1930, 1966, 1014, 1022, 1019, 2037, 2038, 1027, 2041, 1997, 1023, 998, 1992, 971, 2042, 994, 986, 616, 2050, 964, 960, 954, 777, 937, 2037, 914, 910, 896, 1906, 884, 2038, 2072, 2039, 873, 2057, 2061, 864, 2068, 856, 2064, 843, 829, 817, 2064, 2067, 826, 824, 817, 2101, 2108, 816, 2109, 813, 2123, 745, 740, 2098, 0, 0, 751, 781, 977, 721, 2099, 732, 0, 724, 690, 0, 2127, 0, 2139, 2156, 674, 2151, 680, 667, 657, 641, 2173, 2150, 2182, 2192, 651, 2196, 2206, 2210, 629, 0, 0, 625, 2196, 614, 615, 2222, 594, 1137, 571, 2225, 2211, 2229, 2236, 558, 555, 2216, 559, 2248, 2469, 539, 1313, 539, 508, 493, 2251, 497, 492, 1421, 488, 2255, 2258, 2469, 456, 456, 458, 2267, 0, 0, 2469, 2293, 2298, 2303, 2308, 2312, 2316, 468, 467, 2320, 449, 2325, 2330, 439, 398, 381, 2335, 2339, 236, 121, 112, 2343, 15, 8, 3, 2348, 2353, 2358, 2363, 2368, 2373, 2378, 2383, 2388, 2393, 2398, 2403, 2408, 2413, 2418, 2423, 2428 } ; static yyconst short int yy_def[832] = { 0, 791, 791, 790, 3, 790, 5, 791, 791, 790, 9, 791, 791, 790, 13, 792, 792, 790, 17, 790, 19, 790, 21, 791, 23, 791, 791, 791, 791, 793, 793, 790, 790, 790, 794, 790, 790, 790, 790, 794, 795, 796, 796, 796, 796, 44, 44, 44, 46, 44, 44, 44, 44, 44, 44, 44, 44, 44, 797, 790, 798, 790, 799, 800, 801, 790, 802, 801, 801, 790, 790, 803, 790, 790, 804, 790, 805, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 794, 790, 790, 806, 790, 790, 790, 790, 790, 790, 795, 790, 790, 790, 807, 44, 46, 44, 46, 44, 46, 44, 44, 796, 44, 44, 44, 46, 115, 46, 46, 46, 46, 46, 46, 46, 44, 44, 44, 44, 46, 46, 46, 46, 46, 46, 46, 46, 46, 808, 797, 809, 798, 799, 810, 800, 801, 790, 790, 811, 801, 801, 790, 790, 812, 803, 790, 790, 790, 813, 804, 814, 805, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 806, 44, 44, 46, 46, 46, 46, 46, 46, 46, 815, 815, 815, 46, 46, 790, 46, 46, 46, 46, 46, 46, 46, 44, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 796, 46, 46, 790, 790, 811, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 46, 46, 796, 44, 46, 44, 46, 46, 815, 815, 815, 46, 790, 46, 44, 44, 46, 46, 46, 44, 44, 54, 44, 44, 44, 44, 44, 46, 46, 46, 46, 44, 44, 44, 44, 44, 44, 796, 796, 44, 44, 44, 44, 796, 790, 44, 44, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 44, 796, 790, 44, 44, 44, 44, 44, 44, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 44, 44, 796, 44, 46, 46, 46, 44, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 44, 44, 46, 46, 46, 46, 44, 44, 790, 790, 790, 790, 816, 790, 790, 44, 44, 44, 44, 44, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 817, 790, 790, 790, 44, 790, 44, 44, 46, 46, 46, 46, 796, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 46, 46, 818, 818, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 44, 44, 44, 44, 796, 44, 44, 46, 796, 44, 44, 44, 44, 44, 816, 790, 790, 816, 790, 445, 46, 46, 46, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 817, 817, 790, 790, 44, 790, 44, 44, 44, 44, 44, 790, 44, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 44, 818, 818, 818, 44, 44, 46, 46, 46, 44, 44, 44, 46, 46, 46, 790, 790, 46, 46, 790, 46, 46, 796, 790, 790, 445, 445, 790, 790, 46, 46, 46, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 46, 790, 44, 44, 44, 46, 790, 46, 790, 790, 790, 790, 790, 790, 790, 790, 790, 796, 46, 46, 46, 44, 44, 44, 796, 796, 790, 790, 790, 44, 44, 790, 44, 790, 790, 790, 44, 44, 46, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 46, 790, 278, 46, 796, 790, 46, 790, 790, 790, 790, 790, 790, 790, 790, 44, 44, 44, 819, 44, 44, 790, 790, 44, 790, 790, 790, 790, 790, 44, 44, 44, 790, 790, 790, 790, 790, 790, 790, 790, 44, 790, 790, 790, 820, 790, 790, 821, 790, 44, 790, 790, 790, 790, 822, 790, 790, 44, 46, 46, 822, 822, 822, 823, 819, 46, 790, 46, 790, 790, 790, 790, 790, 790, 790, 44, 44, 790, 790, 790, 790, 790, 824, 790, 790, 825, 790, 790, 790, 790, 820, 820, 445, 790, 826, 446, 821, 790, 790, 44, 790, 790, 790, 822, 790, 44, 827, 44, 822, 822, 46, 790, 46, 790, 790, 790, 790, 790, 46, 46, 790, 824, 824, 790, 790, 828, 790, 825, 790, 790, 790, 790, 680, 680, 826, 680, 790, 790, 46, 790, 829, 790, 790, 829, 829, 829, 830, 827, 822, 46, 790, 790, 790, 790, 796, 46, 790, 790, 828, 790, 790, 790, 790, 723, 723, 790, 44, 790, 822, 790, 790, 790, 790, 790, 44, 790, 790, 790, 790, 46, 822, 790, 790, 790, 790, 790, 790, 790, 278, 822, 790, 790, 446, 790, 790, 790, 822, 822, 822, 822, 831, 831, 0, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790 } ; static yyconst short int yy_nxt[2512] = { 0, 790, 160, 33, 160, 34, 35, 163, 33, 35, 34, 35, 161, 99, 35, 99, 100, 36, 99, 156, 99, 100, 36, 32, 37, 38, 37, 39, 35, 40, 32, 35, 32, 32, 32, 32, 32, 32, 32, 36, 41, 42, 43, 44, 45, 46, 47, 41, 41, 48, 41, 49, 50, 41, 51, 52, 53, 54, 55, 56, 41, 57, 41, 41, 41, 32, 32, 33, 32, 34, 35, 32, 32, 35, 32, 32, 32, 32, 32, 32, 32, 36, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 58, 33, 97, 34, 35, 97, 33, 35, 34, 35, 146, 402, 35, 98, 149, 36, 149, 150, 405, 143, 36, 32, 32, 59, 32, 34, 35, 32, 32, 35, 32, 32, 32, 32, 32, 32, 32, 36, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 33, 220, 34, 35, 96, 33, 35, 34, 35, 166, 376, 35, 221, 168, 36, 167, 377, 101, 169, 36, 32, 32, 61, 32, 34, 35, 32, 32, 35, 62, 32, 32, 32, 32, 32, 32, 36, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 65, 408, 66, 67, 96, 65, 67, 66, 67, 141, 99, 67, 99, 100, 68, 409, 160, 148, 160, 68, 32, 32, 69, 32, 34, 35, 32, 32, 35, 32, 32, 32, 70, 32, 32, 32, 36, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 32, 72, 69, 72, 34, 35, 32, 32, 35, 32, 32, 32, 73, 32, 32, 32, 36, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 74, 32, 32, 33, 32, 34, 35, 32, 32, 35, 32, 75, 32, 32, 32, 32, 32, 36, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 76, 77, 152, 34, 35, 152, 78, 35, 90, 164, 34, 35, 294, 153, 35, 36, 104, 79, 104, 80, 81, 82, 36, 295, 105, 83, 162, 84, 106, 410, 85, 86, 87, 88, 89, 90, 523, 34, 35, 524, 33, 35, 34, 35, 411, 33, 35, 34, 35, 36, 33, 35, 92, 93, 36, 33, 93, 92, 93, 36, 104, 93, 104, 104, 94, 104, 107, 157, 105, 94, 113, 105, 106, 107, 114, 106, 107, 147, 149, 115, 149, 150, 160, 107, 160, 107, 116, 108, 117, 107, 109, 104, 107, 104, 107, 144, 142, 118, 123, 105, 691, 107, 691, 106, 120, 787, 107, 107, 110, 107, 121, 122, 119, 107, 786, 111, 107, 785, 126, 124, 107, 112, 154, 107, 154, 107, 790, 135, 107, 107, 125, 127, 130, 128, 136, 107, 129, 107, 131, 629, 107, 107, 132, 784, 107, 107, 133, 107, 780, 137, 107, 107, 155, 138, 139, 158, 134, 158, 174, 389, 107, 97, 140, 779, 97, 389, 159, 104, 389, 104, 389, 175, 98, 176, 107, 105, 177, 104, 182, 104, 107, 107, 184, 107, 107, 105, 759, 107, 185, 107, 107, 186, 107, 107, 198, 189, 183, 778, 107, 107, 187, 188, 107, 107, 107, 107, 777, 154, 107, 154, 107, 775, 107, 107, 774, 107, 190, 199, 107, 191, 192, 191, 107, 107, 107, 107, 773, 193, 204, 107, 192, 106, 107, 107, 107, 107, 196, 155, 195, 107, 107, 107, 720, 107, 721, 107, 107, 201, 200, 197, 202, 107, 107, 107, 194, 771, 107, 107, 107, 107, 768, 728, 107, 203, 416, 416, 416, 107, 107, 205, 107, 107, 209, 107, 107, 208, 766, 107, 206, 107, 765, 107, 107, 207, 107, 107, 747, 107, 211, 213, 107, 107, 760, 107, 249, 107, 249, 107, 107, 107, 107, 107, 250, 210, 107, 107, 212, 107, 107, 107, 214, 215, 759, 758, 240, 217, 107, 107, 107, 107, 107, 107, 216, 107, 158, 218, 158, 757, 107, 107, 756, 107, 107, 107, 219, 159, 107, 107, 107, 241, 120, 242, 107, 107, 107, 755, 107, 107, 107, 107, 107, 107, 107, 518, 243, 519, 246, 107, 107, 107, 107, 107, 107, 244, 107, 446, 247, 107, 251, 245, 107, 553, 107, 107, 107, 402, 120, 107, 272, 107, 753, 264, 107, 107, 107, 107, 723, 107, 107, 107, 266, 107, 107, 107, 252, 269, 252, 107, 107, 107, 677, 107, 105, 724, 750, 724, 106, 751, 107, 752, 107, 107, 253, 254, 255, 256, 257, 107, 107, 258, 107, 107, 259, 107, 107, 260, 107, 261, 262, 107, 107, 263, 107, 107, 107, 265, 267, 271, 107, 107, 107, 107, 107, 107, 107, 107, 270, 268, 716, 107, 107, 747, 711, 107, 107, 107, 107, 273, 107, 711, 276, 107, 107, 120, 275, 274, 107, 107, 107, 277, 107, 107, 107, 366, 279, 280, 278, 741, 107, 107, 107, 107, 107, 107, 107, 740, 107, 107, 277, 281, 739, 107, 107, 282, 107, 107, 107, 107, 283, 107, 107, 284, 107, 284, 107, 107, 107, 286, 107, 105, 305, 107, 107, 106, 107, 107, 659, 285, 107, 738, 107, 306, 107, 107, 107, 309, 307, 107, 307, 107, 308, 736, 310, 107, 105, 730, 107, 107, 106, 107, 311, 729, 107, 107, 107, 107, 312, 313, 249, 107, 249, 107, 325, 326, 107, 107, 250, 107, 107, 252, 107, 252, 107, 107, 107, 728, 107, 105, 107, 107, 327, 328, 333, 107, 727, 331, 107, 314, 315, 316, 317, 318, 107, 107, 319, 107, 334, 320, 725, 685, 321, 329, 322, 323, 107, 327, 324, 107, 683, 723, 107, 107, 330, 724, 107, 724, 107, 345, 335, 107, 107, 107, 332, 337, 107, 107, 107, 107, 107, 107, 107, 680, 107, 336, 338, 107, 107, 107, 340, 680, 341, 107, 718, 107, 107, 339, 342, 107, 344, 343, 107, 346, 107, 107, 107, 107, 107, 107, 350, 717, 347, 107, 107, 107, 107, 107, 107, 348, 716, 107, 107, 107, 711, 107, 349, 107, 303, 366, 353, 107, 353, 351, 107, 352, 708, 107, 354, 107, 107, 362, 106, 355, 107, 356, 107, 107, 705, 418, 107, 357, 107, 358, 359, 106, 359, 107, 107, 107, 422, 704, 107, 364, 107, 360, 107, 365, 366, 365, 363, 107, 107, 703, 701, 367, 361, 107, 368, 106, 284, 120, 284, 699, 107, 107, 692, 391, 105, 277, 107, 385, 107, 386, 107, 392, 553, 392, 107, 387, 107, 388, 389, 105, 389, 107, 307, 106, 307, 107, 690, 394, 107, 107, 105, 393, 107, 395, 397, 689, 107, 107, 107, 107, 688, 772, 107, 772, 107, 396, 107, 107, 686, 107, 107, 399, 107, 685, 107, 398, 107, 107, 107, 450, 107, 450, 413, 680, 107, 107, 415, 416, 415, 107, 107, 421, 423, 414, 105, 677, 107, 107, 106, 107, 420, 107, 107, 107, 419, 417, 674, 107, 107, 107, 451, 424, 107, 667, 107, 426, 427, 107, 107, 107, 107, 107, 107, 107, 425, 107, 429, 107, 107, 433, 666, 107, 107, 428, 107, 107, 107, 107, 107, 665, 450, 430, 450, 662, 434, 107, 107, 107, 107, 107, 107, 107, 528, 661, 528, 431, 432, 107, 107, 107, 107, 107, 440, 107, 435, 660, 107, 107, 436, 107, 437, 451, 107, 107, 438, 107, 107, 107, 107, 107, 107, 107, 107, 529, 659, 644, 439, 107, 402, 643, 107, 107, 107, 353, 279, 353, 355, 642, 355, 107, 355, 354, 355, 107, 441, 107, 107, 107, 441, 385, 107, 385, 641, 107, 107, 640, 107, 466, 442, 107, 107, 447, 442, 107, 448, 449, 636, 629, 107, 443, 107, 303, 107, 443, 107, 107, 107, 772, 303, 772, 120, 107, 365, 278, 365, 279, 385, 627, 385, 107, 367, 472, 107, 368, 466, 392, 107, 392, 107, 107, 503, 626, 107, 105, 107, 107, 470, 107, 107, 473, 474, 625, 475, 107, 476, 471, 107, 624, 107, 107, 107, 477, 107, 477, 491, 623, 702, 107, 702, 105, 327, 107, 107, 106, 107, 657, 107, 493, 107, 493, 327, 495, 622, 107, 621, 494, 107, 107, 107, 107, 496, 107, 478, 107, 620, 107, 107, 107, 107, 498, 107, 497, 499, 107, 107, 107, 616, 107, 107, 615, 107, 107, 501, 107, 107, 107, 500, 327, 107, 107, 107, 614, 107, 107, 107, 107, 107, 389, 502, 107, 613, 107, 107, 389, 107, 107, 389, 504, 389, 107, 505, 506, 107, 506, 508, 107, 612, 107, 107, 507, 278, 107, 402, 106, 107, 511, 278, 107, 107, 638, 107, 638, 107, 509, 510, 366, 510, 107, 107, 601, 107, 107, 105, 600, 599, 368, 106, 107, 107, 639, 598, 107, 107, 107, 107, 279, 279, 512, 107, 107, 107, 521, 520, 513, 107, 107, 516, 597, 517, 107, 107, 107, 107, 107, 359, 107, 107, 359, 596, 359, 522, 107, 107, 531, 107, 531, 540, 536, 442, 537, 538, 532, 595, 593, 277, 389, 389, 107, 389, 443, 389, 589, 389, 107, 107, 389, 469, 389, 541, 107, 477, 107, 477, 542, 107, 587, 107, 107, 105, 303, 107, 107, 107, 107, 107, 277, 107, 543, 586, 303, 107, 107, 493, 555, 493, 107, 107, 107, 545, 582, 494, 544, 107, 107, 558, 638, 107, 638, 107, 107, 107, 107, 556, 560, 559, 107, 107, 107, 557, 581, 107, 107, 107, 107, 107, 639, 279, 107, 107, 107, 561, 327, 107, 580, 107, 107, 107, 107, 562, 107, 107, 107, 564, 506, 564, 506, 563, 107, 579, 567, 107, 507, 568, 510, 107, 510, 107, 107, 279, 107, 107, 105, 578, 577, 368, 107, 573, 565, 107, 107, 570, 518, 566, 518, 572, 518, 107, 518, 107, 554, 571, 366, 571, 553, 569, 402, 574, 107, 105, 552, 551, 368, 106, 442, 107, 550, 107, 442, 107, 528, 107, 528, 549, 575, 443, 107, 548, 547, 443, 107, 576, 531, 107, 531, 107, 583, 536, 583, 537, 532, 536, 402, 537, 107, 389, 120, 588, 389, 389, 389, 529, 389, 107, 389, 107, 107, 402, 107, 107, 546, 584, 107, 107, 107, 592, 585, 107, 107, 539, 590, 107, 594, 468, 107, 468, 303, 107, 107, 607, 107, 591, 602, 604, 602, 107, 107, 107, 605, 107, 105, 606, 107, 107, 106, 107, 107, 107, 107, 107, 107, 564, 603, 564, 107, 107, 303, 107, 107, 107, 535, 107, 609, 107, 609, 327, 107, 610, 608, 610, 105, 534, 618, 107, 106, 105, 565, 513, 107, 106, 107, 566, 107, 302, 279, 107, 107, 107, 533, 107, 571, 107, 571, 279, 107, 107, 611, 107, 105, 619, 107, 368, 302, 583, 617, 583, 277, 628, 107, 107, 530, 630, 107, 631, 107, 527, 302, 637, 107, 632, 526, 633, 634, 107, 634, 107, 525, 107, 584, 602, 635, 602, 645, 585, 106, 107, 107, 105, 445, 107, 647, 515, 107, 107, 609, 107, 609, 107, 646, 639, 107, 514, 105, 107, 648, 649, 655, 649, 648, 648, 648, 648, 648, 650, 648, 648, 648, 651, 648, 648, 648, 107, 107, 610, 656, 610, 656, 445, 107, 107, 107, 105, 501, 657, 107, 107, 490, 107, 663, 653, 107, 489, 107, 107, 488, 487, 562, 107, 672, 107, 672, 486, 654, 107, 658, 107, 673, 668, 664, 669, 675, 691, 675, 691, 485, 670, 484, 671, 389, 303, 389, 107, 192, 192, 192, 279, 483, 630, 107, 630, 192, 482, 481, 192, 107, 678, 630, 633, 630, 681, 676, 681, 696, 480, 678, 479, 633, 682, 634, 442, 634, 683, 107, 303, 107, 469, 635, 107, 442, 107, 443, 107, 687, 695, 107, 706, 107, 107, 694, 443, 107, 107, 468, 107, 693, 303, 649, 107, 649, 698, 465, 107, 107, 107, 650, 107, 464, 700, 107, 463, 462, 656, 107, 656, 461, 107, 107, 675, 460, 675, 657, 107, 672, 459, 672, 707, 303, 696, 648, 697, 673, 697, 648, 648, 648, 648, 648, 650, 648, 648, 648, 658, 648, 648, 648, 648, 697, 676, 697, 648, 648, 648, 648, 648, 650, 648, 648, 648, 651, 648, 648, 648, 668, 668, 668, 668, 712, 719, 712, 719, 709, 709, 671, 671, 713, 681, 303, 681, 714, 107, 327, 107, 697, 682, 697, 501, 107, 107, 107, 702, 650, 702, 107, 107, 107, 726, 731, 732, 657, 732, 731, 731, 731, 731, 731, 733, 731, 731, 731, 734, 731, 731, 731, 107, 277, 737, 107, 743, 742, 107, 107, 107, 107, 719, 107, 719, 744, 107, 745, 458, 107, 107, 303, 712, 389, 712, 389, 389, 457, 389, 456, 713, 389, 455, 454, 389, 714, 389, 748, 754, 749, 107, 732, 107, 732, 453, 389, 452, 446, 389, 733, 389, 107, 731, 732, 445, 732, 731, 731, 731, 731, 731, 733, 731, 731, 731, 412, 731, 731, 731, 731, 732, 407, 732, 731, 731, 731, 731, 731, 733, 731, 731, 731, 734, 731, 731, 731, 694, 761, 406, 761, 404, 107, 107, 762, 107, 105, 744, 403, 745, 106, 402, 401, 107, 107, 389, 400, 744, 389, 745, 389, 763, 390, 764, 384, 389, 383, 382, 389, 389, 389, 748, 389, 749, 389, 748, 381, 749, 107, 389, 380, 379, 389, 389, 389, 107, 389, 769, 389, 769, 761, 767, 761, 107, 763, 770, 764, 742, 105, 378, 107, 763, 389, 764, 375, 389, 107, 389, 107, 389, 776, 374, 389, 769, 389, 769, 781, 373, 782, 107, 781, 770, 781, 781, 783, 781, 790, 372, 105, 371, 370, 105, 788, 416, 788, 369, 304, 303, 302, 301, 300, 299, 442, 298, 297, 442, 296, 293, 292, 291, 290, 289, 288, 443, 287, 96, 443, 32, 32, 32, 32, 32, 64, 64, 64, 64, 64, 91, 91, 91, 91, 91, 95, 95, 95, 95, 102, 102, 102, 102, 102, 107, 220, 107, 145, 145, 96, 145, 145, 148, 148, 239, 148, 148, 151, 151, 151, 151, 151, 181, 181, 181, 181, 181, 106, 238, 106, 222, 222, 222, 222, 222, 248, 248, 237, 248, 248, 444, 444, 444, 444, 444, 467, 467, 467, 467, 467, 492, 492, 236, 492, 492, 652, 652, 235, 652, 652, 679, 679, 679, 679, 679, 684, 684, 684, 684, 684, 648, 648, 234, 648, 648, 651, 651, 233, 651, 651, 710, 710, 710, 710, 710, 715, 715, 715, 715, 715, 722, 722, 722, 722, 722, 735, 735, 232, 735, 735, 746, 746, 746, 746, 746, 731, 731, 231, 731, 731, 734, 734, 230, 734, 734, 789, 789, 229, 789, 789, 228, 227, 226, 225, 224, 163, 161, 156, 223, 96, 146, 143, 141, 107, 103, 101, 96, 96, 180, 179, 178, 173, 172, 171, 170, 165, 163, 161, 156, 146, 143, 141, 103, 96, 790, 31, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790 } ; static yyconst short int yy_chk[2512] = { 0, 0, 73, 1, 73, 1, 1, 814, 2, 1, 2, 2, 813, 37, 2, 37, 37, 1, 38, 812, 38, 38, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 36, 7, 7, 36, 8, 7, 8, 8, 810, 319, 8, 36, 65, 7, 65, 65, 319, 809, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 11, 150, 11, 11, 39, 12, 11, 12, 12, 80, 294, 12, 150, 81, 11, 80, 294, 39, 81, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 15, 322, 15, 15, 66, 16, 15, 16, 16, 808, 99, 16, 99, 99, 15, 322, 159, 66, 159, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 23, 68, 23, 23, 68, 23, 23, 25, 805, 25, 25, 230, 68, 25, 23, 41, 23, 41, 23, 23, 23, 25, 230, 41, 23, 804, 23, 41, 323, 23, 23, 23, 23, 23, 26, 451, 26, 26, 451, 27, 26, 27, 27, 323, 28, 27, 28, 28, 26, 29, 28, 29, 29, 27, 30, 29, 30, 30, 28, 42, 30, 42, 43, 29, 43, 45, 803, 42, 30, 45, 43, 42, 45, 45, 43, 46, 800, 149, 45, 149, 149, 160, 46, 160, 49, 46, 42, 46, 46, 43, 44, 49, 44, 47, 798, 797, 46, 49, 44, 642, 47, 642, 44, 48, 786, 50, 47, 44, 48, 48, 48, 47, 50, 785, 44, 51, 784, 52, 50, 48, 44, 70, 51, 70, 52, 780, 55, 53, 51, 51, 52, 53, 52, 55, 53, 52, 56, 54, 778, 55, 53, 54, 777, 56, 54, 54, 57, 775, 55, 56, 54, 70, 56, 57, 72, 54, 72, 86, 303, 57, 94, 57, 774, 94, 303, 72, 104, 303, 104, 303, 86, 94, 86, 107, 104, 86, 106, 108, 106, 108, 107, 110, 109, 110, 106, 773, 107, 110, 108, 109, 111, 119, 110, 119, 113, 109, 771, 111, 112, 112, 112, 113, 119, 111, 114, 768, 154, 113, 154, 112, 766, 114, 121, 765, 121, 114, 121, 114, 115, 115, 115, 116, 126, 121, 126, 760, 115, 126, 116, 115, 115, 118, 117, 126, 116, 117, 154, 116, 118, 117, 122, 680, 122, 680, 118, 117, 123, 122, 118, 124, 123, 122, 123, 115, 758, 125, 124, 125, 124, 756, 755, 123, 125, 402, 402, 402, 125, 124, 127, 128, 127, 130, 127, 129, 129, 753, 128, 128, 130, 750, 129, 127, 128, 131, 130, 746, 129, 132, 134, 132, 131, 741, 133, 191, 133, 191, 131, 134, 132, 134, 182, 191, 131, 133, 135, 133, 135, 182, 134, 135, 136, 740, 739, 182, 138, 135, 136, 137, 136, 137, 138, 137, 138, 158, 139, 158, 738, 136, 137, 736, 139, 138, 139, 140, 158, 140, 183, 140, 183, 185, 184, 139, 184, 183, 730, 185, 140, 185, 186, 183, 186, 184, 446, 186, 446, 189, 185, 189, 187, 186, 187, 188, 187, 188, 446, 190, 189, 194, 188, 187, 729, 190, 188, 190, 727, 195, 194, 204, 194, 725, 197, 195, 190, 195, 204, 722, 197, 194, 197, 199, 204, 199, 195, 196, 201, 196, 201, 197, 201, 718, 199, 196, 685, 717, 685, 196, 723, 201, 723, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 198, 200, 203, 202, 203, 202, 203, 200, 198, 200, 198, 202, 200, 715, 202, 203, 713, 710, 200, 198, 205, 206, 205, 206, 709, 208, 215, 208, 215, 207, 206, 205, 206, 207, 209, 207, 208, 215, 708, 210, 211, 209, 705, 209, 207, 210, 211, 210, 211, 213, 704, 213, 209, 212, 213, 703, 210, 211, 214, 212, 213, 212, 214, 216, 214, 219, 217, 219, 217, 216, 212, 216, 219, 214, 217, 240, 219, 218, 217, 218, 216, 701, 218, 240, 699, 240, 241, 241, 218, 241, 244, 242, 244, 242, 240, 243, 696, 245, 241, 242, 692, 244, 243, 242, 245, 246, 690, 246, 243, 247, 245, 247, 251, 249, 251, 249, 246, 253, 254, 253, 247, 249, 255, 251, 252, 254, 252, 259, 253, 255, 689, 254, 252, 261, 259, 255, 256, 261, 256, 688, 259, 261, 252, 252, 252, 252, 252, 256, 257, 252, 257, 261, 252, 686, 684, 252, 257, 252, 252, 257, 258, 252, 260, 683, 682, 258, 262, 258, 724, 260, 724, 263, 269, 262, 264, 260, 258, 260, 263, 262, 269, 264, 269, 265, 263, 266, 679, 264, 262, 264, 265, 269, 266, 266, 678, 267, 265, 676, 266, 267, 265, 267, 271, 268, 267, 268, 270, 268, 270, 271, 267, 272, 273, 274, 674, 271, 268, 270, 272, 273, 274, 275, 272, 673, 272, 273, 274, 670, 275, 273, 276, 667, 666, 277, 275, 277, 275, 276, 276, 665, 279, 277, 280, 276, 280, 277, 278, 279, 278, 280, 329, 662, 329, 279, 278, 280, 278, 278, 278, 278, 281, 329, 282, 333, 661, 333, 282, 281, 278, 282, 283, 283, 283, 281, 333, 282, 660, 658, 283, 278, 285, 283, 283, 284, 285, 284, 654, 285, 286, 644, 305, 284, 286, 285, 302, 286, 302, 305, 306, 643, 306, 286, 302, 305, 302, 302, 306, 302, 311, 307, 306, 307, 308, 641, 308, 311, 309, 307, 306, 308, 309, 311, 640, 309, 310, 308, 312, 639, 759, 309, 759, 310, 310, 312, 313, 636, 325, 310, 313, 312, 635, 313, 312, 325, 326, 332, 368, 313, 368, 325, 632, 326, 332, 327, 327, 327, 328, 326, 332, 334, 326, 327, 627, 328, 330, 327, 330, 331, 334, 328, 334, 330, 328, 625, 331, 330, 331, 368, 335, 334, 622, 338, 337, 338, 335, 331, 335, 336, 337, 336, 337, 336, 338, 340, 344, 335, 344, 621, 336, 337, 339, 340, 339, 340, 339, 344, 620, 450, 341, 450, 616, 345, 340, 339, 341, 342, 341, 342, 345, 456, 615, 456, 342, 343, 345, 341, 342, 346, 343, 351, 343, 346, 614, 347, 346, 347, 351, 348, 450, 343, 346, 349, 351, 348, 347, 348, 350, 349, 350, 349, 456, 613, 601, 350, 348, 600, 599, 350, 349, 352, 353, 352, 353, 355, 598, 355, 352, 356, 353, 356, 360, 355, 352, 361, 363, 356, 385, 360, 385, 597, 361, 363, 596, 360, 385, 355, 361, 363, 360, 356, 362, 361, 363, 593, 589, 364, 355, 362, 587, 395, 356, 395, 364, 362, 772, 586, 772, 362, 364, 365, 395, 365, 364, 386, 585, 386, 391, 365, 393, 394, 365, 386, 392, 391, 392, 393, 394, 427, 584, 391, 392, 393, 394, 391, 427, 396, 394, 396, 582, 397, 427, 398, 392, 398, 581, 398, 396, 397, 399, 397, 399, 413, 580, 659, 398, 659, 399, 414, 397, 413, 399, 413, 659, 414, 415, 414, 415, 417, 418, 579, 413, 578, 415, 417, 414, 417, 418, 419, 418, 399, 420, 577, 420, 419, 417, 419, 421, 418, 420, 422, 421, 420, 421, 573, 419, 422, 572, 422, 423, 425, 423, 421, 424, 423, 424, 425, 422, 425, 569, 423, 426, 428, 426, 424, 779, 426, 425, 566, 428, 429, 779, 426, 430, 779, 428, 779, 429, 429, 431, 430, 431, 432, 429, 565, 433, 430, 431, 430, 432, 554, 431, 433, 436, 434, 432, 434, 595, 433, 595, 436, 433, 435, 435, 435, 434, 436, 552, 437, 438, 435, 551, 550, 435, 435, 437, 438, 595, 549, 439, 440, 437, 438, 439, 438, 437, 439, 440, 447, 448, 447, 440, 439, 440, 445, 548, 445, 472, 448, 447, 448, 449, 445, 449, 472, 445, 547, 445, 449, 448, 472, 459, 449, 459, 472, 468, 445, 468, 470, 459, 546, 544, 470, 468, 469, 470, 468, 445, 468, 539, 469, 470, 473, 469, 469, 469, 473, 474, 477, 473, 477, 475, 476, 535, 474, 473, 477, 534, 475, 476, 474, 478, 491, 474, 475, 476, 533, 530, 478, 491, 493, 491, 493, 495, 478, 491, 478, 529, 493, 477, 495, 496, 497, 638, 497, 638, 495, 498, 496, 498, 495, 499, 498, 497, 496, 500, 496, 527, 498, 499, 501, 499, 500, 638, 503, 502, 503, 501, 500, 502, 499, 526, 502, 501, 504, 503, 504, 505, 502, 505, 507, 506, 507, 506, 505, 504, 525, 508, 505, 506, 509, 510, 509, 510, 509, 508, 511, 508, 511, 510, 524, 523, 510, 509, 515, 507, 508, 511, 512, 518, 507, 518, 514, 519, 512, 519, 512, 490, 513, 513, 513, 489, 510, 488, 520, 512, 513, 487, 486, 513, 513, 518, 520, 485, 520, 519, 521, 528, 521, 528, 484, 521, 518, 520, 483, 482, 519, 521, 522, 531, 522, 531, 522, 532, 536, 532, 536, 531, 537, 481, 537, 522, 536, 540, 538, 536, 537, 536, 528, 537, 540, 537, 541, 538, 480, 538, 540, 479, 532, 541, 543, 542, 543, 532, 538, 541, 471, 541, 542, 545, 467, 543, 466, 465, 542, 545, 559, 545, 542, 555, 556, 555, 556, 559, 556, 557, 545, 555, 558, 559, 557, 555, 557, 556, 558, 560, 558, 561, 564, 555, 564, 557, 560, 464, 561, 558, 575, 463, 560, 562, 561, 562, 560, 575, 563, 561, 563, 562, 462, 575, 567, 562, 563, 564, 567, 570, 563, 567, 564, 568, 461, 568, 570, 567, 574, 460, 568, 571, 570, 571, 570, 574, 568, 563, 576, 571, 576, 574, 571, 458, 583, 574, 583, 591, 588, 576, 588, 457, 590, 591, 590, 591, 455, 454, 594, 588, 590, 453, 590, 592, 591, 592, 594, 452, 594, 583, 602, 592, 602, 603, 583, 592, 604, 594, 602, 444, 603, 605, 443, 604, 611, 609, 603, 609, 605, 604, 602, 611, 442, 609, 605, 606, 606, 611, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 606, 607, 608, 610, 612, 610, 612, 441, 607, 608, 617, 610, 607, 612, 607, 608, 412, 617, 617, 608, 618, 411, 619, 617, 410, 409, 619, 618, 624, 619, 624, 408, 610, 618, 612, 619, 624, 623, 618, 623, 626, 691, 626, 691, 407, 623, 406, 623, 623, 626, 623, 628, 629, 629, 629, 628, 405, 630, 628, 630, 629, 404, 403, 629, 628, 630, 631, 630, 631, 633, 626, 633, 691, 401, 631, 400, 631, 633, 634, 630, 634, 633, 663, 390, 637, 388, 634, 645, 631, 663, 630, 637, 637, 647, 645, 663, 646, 637, 646, 631, 645, 647, 387, 647, 645, 384, 649, 646, 649, 653, 383, 653, 647, 653, 649, 655, 382, 655, 664, 381, 380, 656, 653, 656, 379, 664, 655, 675, 378, 675, 656, 664, 672, 377, 672, 664, 675, 649, 651, 651, 672, 651, 651, 651, 651, 651, 651, 651, 651, 651, 651, 656, 651, 651, 651, 652, 652, 675, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 652, 668, 669, 668, 669, 671, 677, 671, 677, 668, 669, 668, 669, 671, 681, 677, 681, 671, 687, 693, 695, 697, 681, 697, 695, 687, 693, 695, 702, 697, 702, 687, 693, 695, 687, 694, 694, 702, 694, 694, 694, 694, 694, 694, 694, 694, 694, 694, 694, 694, 694, 694, 698, 700, 698, 706, 707, 706, 707, 700, 707, 700, 719, 698, 719, 711, 706, 711, 376, 707, 700, 719, 712, 711, 712, 714, 711, 375, 711, 374, 712, 714, 373, 372, 714, 714, 714, 716, 726, 716, 726, 732, 726, 732, 371, 716, 370, 358, 716, 732, 716, 726, 734, 734, 357, 734, 734, 734, 734, 734, 734, 734, 734, 734, 734, 324, 734, 734, 734, 735, 735, 321, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 735, 737, 742, 320, 742, 318, 743, 737, 743, 737, 742, 744, 317, 744, 742, 316, 315, 743, 737, 744, 314, 745, 744, 745, 744, 747, 304, 747, 301, 745, 300, 299, 745, 747, 745, 748, 747, 748, 747, 749, 298, 749, 754, 748, 297, 296, 748, 749, 748, 754, 749, 757, 749, 757, 761, 754, 761, 762, 763, 757, 763, 762, 761, 295, 762, 764, 763, 764, 293, 763, 762, 763, 767, 764, 767, 292, 764, 769, 764, 769, 776, 291, 776, 767, 781, 769, 781, 782, 776, 782, 776, 290, 781, 289, 288, 782, 787, 787, 787, 287, 239, 238, 237, 236, 235, 234, 781, 233, 232, 782, 231, 229, 228, 227, 226, 225, 224, 781, 223, 222, 782, 791, 791, 791, 791, 791, 792, 792, 792, 792, 792, 793, 793, 793, 793, 793, 794, 794, 794, 794, 795, 795, 795, 795, 795, 796, 220, 796, 799, 799, 181, 799, 799, 801, 801, 180, 801, 801, 802, 802, 802, 802, 802, 806, 806, 806, 806, 806, 807, 179, 807, 811, 811, 811, 811, 811, 815, 815, 178, 815, 815, 816, 816, 816, 816, 816, 817, 817, 817, 817, 817, 818, 818, 177, 818, 818, 819, 819, 176, 819, 819, 820, 820, 820, 820, 820, 821, 821, 821, 821, 821, 822, 822, 175, 822, 822, 823, 823, 174, 823, 823, 824, 824, 824, 824, 824, 825, 825, 825, 825, 825, 826, 826, 826, 826, 826, 827, 827, 173, 827, 827, 828, 828, 828, 828, 828, 829, 829, 172, 829, 829, 830, 830, 171, 830, 830, 831, 831, 170, 831, 831, 169, 168, 167, 166, 165, 164, 162, 157, 155, 151, 147, 144, 142, 120, 102, 100, 95, 92, 89, 88, 87, 85, 84, 83, 82, 79, 76, 74, 71, 63, 60, 58, 40, 34, 31, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790, 790 } ; static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr; static char *yy_full_match; static int yy_lp; static int yy_looking_for_trail_begin = 0; static int yy_full_lp; static int *yy_full_state; #define YY_TRAILING_MASK 0x2000 #define YY_TRAILING_HEAD_MASK 0x4000 #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 = yy_full_lp; /* restore orig. accepting pos. */ \ yy_state_ptr = yy_full_state; /* restore orig. state */ \ yy_current_state = *yy_state_ptr; /* restore curr. state */ \ ++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 "fortrancode.l" #define INITIAL 0 /****************************************************************************** * * Parser for syntax hightlighting and references for Fortran90 F subset * * Copyright (C) by Anke Visser * based on the work of Dimitri van Heesch. * * Permission to use, copy, modify, and distribute this software and its * documentation under the terms of the GNU General Public License is hereby * granted. No representations are made about the suitability of this software * for any purpose. It is provided "as is" without express or implied warranty. * See the GNU General Public License for more details. * * Documents produced by Doxygen are derivative works derived from the * input used in their production; they are not affected by this license. * */ /** @todo - continutation lines not always recognized - merging of use-statements with same module name and different only-names - rename part of use-statement - links to interface functions - references to variables **/ #line 28 "fortrancode.l" /* * includes */ #include "qtbc.h" #include #include #include #include #include #include #include "entry.h" #include "doxygen.h" #include "message.h" #include "outputlist.h" #include "util.h" #include "membername.h" #include "searchindex.h" #include "defargs.h" #define YY_NEVER_INTERACTIVE 1 #define YY_NO_TOP_STATE 1 //-------------------------------------------------------------------------------- /** data of an use-statement */ class UseEntry { public: QCString module; // just for debug QStringList onlyNames; /* entries of the ONLY-part */ }; /** module name -> list of ONLY/remote entries (module name = name of the module, which can be accessed via use-directive) */ class UseSDict : public SDict { public: UseSDict() : SDict(17) {} }; /*===================================================================*/ /* * statics */ static QCString docBlock; //!< contents of all lines of a documentation block static QCString currentModule=0; //!< name of the current enclosing module static UseSDict *useMembers= new UseSDict; //!< info about used modules static UseEntry *useEntry = 0; //!< current use statement info static QStack useStack; //!< contains names of used modules for current program tree static QStringList *currentUseNames= new QStringList; //! contains names of used modules of current program unit static QCString str=""; //!> contents of fortran string static CodeOutputInterface * g_code; // TODO: is this still needed? if so, make it work static QCString g_parmType; static QCString g_parmName; static const char * g_inputString; //!< the code fragment as text static int g_inputPosition; //!< read offset during parsing static int g_inputLines; //!< number of line in the code fragment static int g_yyLineNr; //!< current line number static bool g_needsTermination; static bool g_insideBody; //!< inside subprog/program body? => create links static const char * g_currentFontClass; static bool g_exampleBlock; static QCString g_exampleName; static QCString g_exampleFile; static FileDef * g_sourceFileDef; static Definition * g_currentDefinition; static MemberDef * g_currentMemberDef; static bool g_includeCodeFragment; static char stringStartSymbol; // single or double quote static void endFontClass() { if (g_currentFontClass) { g_code->endFontClass(); g_currentFontClass=0; } } static void startFontClass(const char *s) { endFontClass(); g_code->startFontClass(s); g_currentFontClass=s; } static void setCurrentDoc(const QCString &name,const QCString &base,const QCString &anchor="") { static bool searchEngineEnabled=Config_getBool("SEARCHENGINE"); if (searchEngineEnabled) { Doxygen::searchIndex->setCurrentDoc(name,base,anchor); } } static void addToSearchIndex(const char *text) { static bool searchEngineEnabled=Config_getBool("SEARCHENGINE"); if (searchEngineEnabled) { Doxygen::searchIndex->addWord(text,FALSE); } } /*! start a new line of code, inserting a line number if g_sourceFileDef * is TRUE. If a definition starts at the current line, then the line * number is linked to the documentation of that definition. */ static void startCodeLine() { if (g_sourceFileDef) { //QCString lineNumber,lineAnchor; //lineNumber.sprintf("%05d",g_yyLineNr); //lineAnchor.sprintf("l%05d",g_yyLineNr); Definition *d = g_sourceFileDef->getSourceDefinition(g_yyLineNr); //printf("startCodeLine %d d=%s\n", g_yyLineNr,d ? d->name().data() : ""); if (!g_includeCodeFragment && d) { g_currentDefinition = d; g_currentMemberDef = g_sourceFileDef->getSourceMember(g_yyLineNr); g_insideBody = FALSE; g_parmType.resize(0); g_parmName.resize(0); QCString lineAnchor; lineAnchor.sprintf("l%05d",g_yyLineNr); if (g_currentMemberDef) { g_code->writeLineNumber(g_currentMemberDef->getReference(), g_currentMemberDef->getOutputFileBase(), g_currentMemberDef->anchor(),g_yyLineNr); setCurrentDoc( g_currentMemberDef->qualifiedName(), g_sourceFileDef->getSourceFileBase(), lineAnchor); } else if (d->isLinkableInProject()) { g_code->writeLineNumber(d->getReference(), d->getOutputFileBase(), 0,g_yyLineNr); setCurrentDoc( d->qualifiedName(), g_sourceFileDef->getSourceFileBase(), lineAnchor); } } else { g_code->writeLineNumber(0,0,0,g_yyLineNr); } } g_code->startCodeLine(); if (g_currentFontClass) { g_code->startFontClass(g_currentFontClass); } } static void endFontClass(); static void endCodeLine() { if (g_currentFontClass) { g_code->endFontClass(); } g_code->endCodeLine(); } /*! write a code fragment `text' that may span multiple lines, inserting * line numbers for each line. */ static void codifyLines(char *text) { //printf("codifyLines(%d,\"%s\")\n",g_yyLineNr,text); char *p=text,*sp=p; char c; bool done=FALSE; while (!done) { sp=p; while ((c=*p++) && c!='\n'); if (c=='\n') { g_yyLineNr++; *(p-1)='\0'; g_code->codify(sp); endCodeLine(); if (g_yyLineNrcodify(sp); done=TRUE; } } } static void codifyLines(QCString str) { char *tmp= (char *) malloc(str.length()+1); strcpy(tmp, str); codifyLines(tmp); free(tmp); } /*! writes a link to a fragment \a text that may span multiple lines, inserting * line numbers for each line. If \a text contains newlines, the link will be * split into multiple links with the same destination, one for each line. */ static void writeMultiLineCodeLink(CodeOutputInterface &ol, const char *ref,const char *file, const char *anchor,const char *text) { bool done=FALSE; char *p=(char *)text; while (!done) { char *sp=p; char c; while ((c=*p++) && c!='\n'); if (c=='\n') { g_yyLineNr++; *(p-1)='\0'; //printf("writeCodeLink(%s,%s,%s,%s)\n",ref,file,anchor,sp); ol.writeCodeLink(ref,file,anchor,sp,0); endCodeLine(); if (g_yyLineNrisTypedef() || dst->isEnumerate()) return; // don't add types //printf("======= addDocCrossReference src=%s,dst=%s\n",src->name().data(),dst->name().data()); if ((Config_getBool("REFERENCED_BY_RELATION") || Config_getBool("CALLER_GRAPH")) && (src->isFunction())) { dst->addSourceReferencedBy(src); } if ((Config_getBool("REFERENCES_RELATION") || Config_getBool("CALL_GRAPH")) && (src->isFunction())) { src->addSourceReferences(dst); } } //------------------------------------------------------------------------------- /** searches for definition of a type @param memberName the name of the type @param moduleName name of enclosing module or null, if global entry @param cd the entry, if found or null @param useList array of data of USE-statement @returns true, if type is found */ static bool getFortranTypeDefs(const QCString &tname, const QCString &moduleName, ClassDef *&cd, UseSDict *usedict=0) { if (tname.isEmpty()) return FALSE; /* empty name => nothing to link */ //cout << "=== search for type: " << tname << endl; // search for type if ((cd=Doxygen::classSDict->find(tname))) { //cout << "=== type found in global module" << endl; return TRUE; } else if (moduleName && (cd= Doxygen::classSDict->find(moduleName+"::"+tname))) { //cout << "=== type found in local module" << endl; return TRUE; } else { UseEntry *use; for (UseSDict::Iterator di(*usedict); (use=di.current()); ++di) if ((cd= Doxygen::classSDict->find(use->module+"::"+tname))) { //cout << "=== type found in used module" << endl; return TRUE; } } return FALSE; } /** searches for definition of function memberName @param memberName the name of the function/variable @param moduleName name of enclosing module or null, if global entry @param memberDef the entry, if found or null @param useList array of data of USE-statement @returns true, if found */ static bool getFortranDefs(const QCString &memberName, const QCString &moduleName, MemberDef *&md, UseSDict *usedict=0) { if (memberName.isEmpty()) return FALSE; /* empty name => nothing to link */ // search for function MemberName *mn = Doxygen::functionNameSDict->find(memberName); if (mn) // name is known { MemberListIterator mli(*mn); for (mli.toFirst();(md=mli.current());++mli) // all found functions with given name { FileDef *fd=md->getFileDef(); GroupDef *gd=md->getGroupDef(); //cout << "found link with same name: " << fd->fileName() << " " << memberName; //if (md->getNamespaceDef() != 0) cout << " in namespace " << md->getNamespaceDef()->name();cout << endl; if ((gd && gd->isLinkable()) || (fd && fd->isLinkable())) { NamespaceDef *nspace= md->getNamespaceDef(); if (nspace == 0) { // found function in global scope return TRUE; } else if (moduleName == nspace->name()) { // found in local scope return TRUE; } else { // else search in used modules QCString moduleName= nspace->name(); UseEntry *ue= usedict->find(moduleName); if (ue) { // check if only-list exists and if current entry exists is this list QStringList &only= ue->onlyNames; if (only.isEmpty()) { //cout << " found in module " << moduleName << " entry " << memberName << endl; return TRUE; // whole module used } else { for ( QStringList::Iterator it = only.begin(); it != only.end(); ++it) { //cout << " search in only: " << moduleName << ":: " << memberName << "==" << (*it)<< endl; if (memberName == (QCString)(*it)) return TRUE; // found in ONLY-part of use list } } } } } // if linkable } // for } return FALSE; } /** gets the link to a generic procedure which depends not on the name, but on the parameter list @todo implementation */ static bool getGenericProcedureLink(const ClassDef *cd, const char *memberText, CodeOutputInterface &ol) { (void)cd; (void)memberText; (void)ol; return FALSE; } static bool getLink(UseSDict *usedict, // dictonary with used modules const char *memberText, // exact member text CodeOutputInterface &ol, const char *text) { MemberDef *md; QCString memberName= removeRedundantWhiteSpace(memberText); //printf("Trying `%s'::`%s'\n",c.data(),m.data()); if (getFortranDefs(memberName, currentModule, md, usedict) && md->isLinkable()) { //if (md->isVariable()) return FALSE; // variables aren't handled yet Definition *d = md->getOuterScope()==Doxygen::globalScope ? md->getBodyDef() : md->getOuterScope(); if (md->getGroupDef()) d = md->getGroupDef(); if (d && d->isLinkable()) { if (g_currentDefinition && g_currentMemberDef && md!=g_currentMemberDef && g_insideBody) { addDocCrossReference(g_currentMemberDef,md); } ol.linkableSymbol(g_yyLineNr,md->name(),md, g_currentMemberDef ? g_currentMemberDef : g_currentDefinition); writeMultiLineCodeLink(ol,md->getReference(), md->getOutputFileBase(), md->anchor(), text ? text : memberText); addToSearchIndex(text ? text : memberText); return TRUE; } } return FALSE; } static void generateLink(CodeOutputInterface &ol, char *lname) { ClassDef *cd=0; // check if lname is a linkable type or interface if ( (getFortranTypeDefs(lname, currentModule, cd, useMembers)) && cd->isLinkable() ) { if ( (cd->compoundType() == ClassDef::Class) && // was Entry::INTERFACE_SEC) && (getGenericProcedureLink(cd, lname, ol)) ) { //cout << "=== generic procedure resolved" << endl; } else { // write type or interface link ol.linkableSymbol(g_yyLineNr, lname, cd, g_currentMemberDef?g_currentMemberDef:g_currentDefinition); writeMultiLineCodeLink(ol,cd->getReference(),cd->getOutputFileBase(),0,lname); addToSearchIndex(lname); } } // check for function/variable else if (getLink(useMembers, lname, ol, lname)) { //cout << "=== found link for " << lname << endl; } else { // nothing found, just write out the word ol.linkableSymbol(g_yyLineNr, lname, 0, g_currentMemberDef?g_currentMemberDef:g_currentDefinition); //startFontClass("charliteral"); //test codifyLines(lname); //endFontClass(); //test addToSearchIndex(lname); } } /*! counts the number of lines in the input */ static int countLines() { const char *p=g_inputString; char c; int count=1; while ((c=*p)) { p++ ; if (c=='\n') count++; } if (p>g_inputString && *(p-1)!='\n') { // last line does not end with a \n, so we add an extra // line and explicitly terminate the line after parsing. count++, g_needsTermination=TRUE; } return count; } //---------------------------------------------------------------------------- /** start use list */ void startUseScope() { //fprintf("===> startUse %s",yytext); useStack.push(currentUseNames); currentUseNames= new QStringList; } /** end use list */ void endUseScope() { //fprintf(stderr,"===> endUse %s",yytext); //UseSDict::Iterator di(*useMembers); UseEntry *ue; //for (di.toFirst(); ue=di.current(); ++di){cout << ue->module ;} cout << endl; for ( QStringList::Iterator it = currentUseNames->begin(); it != currentUseNames->end(); ++it) { useMembers->remove(*it); } delete currentUseNames; currentUseNames= useStack.pop(); if (currentUseNames == 0) { fprintf(stderr,"fortrancode.l: stack empty!"); //exit(-1); } } void addUse(QString moduleName) { currentUseNames->append(moduleName); } //---------------------------------------------------------------------------- /* -----------------------------------------------------------------*/ #undef YY_INPUT #define YY_INPUT(buf,result,max_size) result=yyread(buf,max_size); static int yyread(char *buf,int max_size) { int c=0; while( c < max_size && g_inputString[g_inputPosition] ) { *buf = g_inputString[g_inputPosition++] ; c++; buf++; } return c; } /* Assume that attribute statements are almost the same as attributes. */ /* | */ #define YY_STACK_USED 1 /*%option debug*/ #define Start 1 #define SubCall 2 #define FuncDef 3 #define ClassName 4 #define ClassVar 5 #define Subprog 6 #define DocBlock 7 #define Use 8 #define UseOnly 9 #define TypeDecl 10 #define Declaration 11 #define DeclContLine 12 #define Parameterlist 13 #define String 14 /* 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 \ YY_USER_ACTION YY_DECL { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; #line 617 "fortrancode.l" /*==================================================================*/ /*-------- ignore ------------------------------------------------------------*/ 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_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 >= 791 ) 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] != 2469 ); 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]; if ( yy_act & YY_TRAILING_HEAD_MASK || yy_looking_for_trail_begin ) { if ( yy_act == yy_looking_for_trail_begin ) { yy_looking_for_trail_begin = 0; yy_act &= ~YY_TRAILING_HEAD_MASK; break; } } else if ( yy_act & YY_TRAILING_MASK ) { yy_looking_for_trail_begin = yy_act & ~YY_TRAILING_MASK; yy_looking_for_trail_begin |= YY_TRAILING_HEAD_MASK; yy_full_match = yy_cp; yy_full_state = yy_state_ptr; yy_full_lp = yy_lp; } else { yy_full_match = yy_cp; yy_full_state = yy_state_ptr; yy_full_lp = yy_lp; break; } ++yy_lp; goto find_rule; } --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 622 "fortrancode.l" { // do not search keywords, intrinsics... TODO: complete list codifyLines(yytext); } YY_BREAK /*-------- inner construct ---------------------------------------------------*/ case 2: YY_RULE_SETUP #line 627 "fortrancode.l" { // hightlight rest of fortran statements /* font class is defined e.g. in doxygen.css */ startFontClass("keyword"); codifyLines(yytext); endFontClass(); } YY_BREAK case 3: YY_RULE_SETUP #line 633 "fortrancode.l" { startFontClass("keyword"); codifyLines(yytext); endFontClass(); } YY_BREAK /*-------- use statement -------------------------------------------*/ case 4: YY_RULE_SETUP #line 640 "fortrancode.l" { codifyLines(yytext); yy_push_state(YY_START); BEGIN(Use); } YY_BREAK case 5: YY_RULE_SETUP #line 645 "fortrancode.l" { startFontClass("keywordflow"); codifyLines(yytext); endFontClass(); /* append module name to use dict */ useEntry = new UseEntry(); useEntry->module = yytext; useMembers->append(yytext, useEntry); addUse(yytext); } YY_BREAK case 6: YY_RULE_SETUP #line 656 "fortrancode.l" { // TODO: rename codifyLines(yytext); yy_push_state(YY_START); BEGIN(UseOnly); } YY_BREAK case 7: YY_RULE_SETUP #line 661 "fortrancode.l" { codifyLines(yytext); } YY_BREAK case 8: YY_RULE_SETUP #line 662 "fortrancode.l" { codifyLines(yytext); useEntry->onlyNames.append(yytext); } YY_BREAK case 9: YY_RULE_SETUP #line 666 "fortrancode.l" { unput(*yytext); yy_pop_state(); } YY_BREAK /*-------- fortran module -----------------------------------------*/ case 10: YY_RULE_SETUP #line 672 "fortrancode.l" { // startUseScope(); startFontClass("keyword"); codifyLines(yytext); endFontClass(); yy_push_state(YY_START); BEGIN(ClassName); if (!strcmp(yytext,"module")) currentModule="module"; } YY_BREAK case 11: YY_RULE_SETUP #line 681 "fortrancode.l" { if (currentModule == "module") currentModule=yytext; generateLink(*g_code,yytext); yy_pop_state(); } YY_BREAK case 12: YY_RULE_SETUP #line 686 "fortrancode.l" { // interface may be without name yy_pop_state(); REJECT; } YY_BREAK case 13: YY_RULE_SETUP #line 690 "fortrancode.l" { // just reset currentModule, rest is done in following rule currentModule=0; REJECT; } YY_BREAK case 14: YY_RULE_SETUP #line 694 "fortrancode.l" { // endUseScope(); startFontClass("keyword"); codifyLines(yytext); endFontClass(); } YY_BREAK /*-------- subprog definition -------------------------------------*/ case 15: YY_RULE_SETUP #line 702 "fortrancode.l" { // TYPE_SPEC is for old function style function result startFontClass("keyword"); codifyLines(yytext); endFontClass(); } YY_BREAK case 16: YY_RULE_SETUP #line 707 "fortrancode.l" { // Fortran subroutine or function found startFontClass("keyword"); codifyLines(yytext); endFontClass(); yy_push_state(YY_START); BEGIN(Subprog); } YY_BREAK case 17: YY_RULE_SETUP #line 714 "fortrancode.l" { // subroutine/function name //cout << "===> start procedure " << yytext << endl; startUseScope(); generateLink(*g_code,yytext); } YY_BREAK case 18: YY_RULE_SETUP #line 719 "fortrancode.l" { // ignore rest of line codifyLines(yytext); } YY_BREAK case 19: YY_RULE_SETUP #line 722 "fortrancode.l" { codifyLines(yytext); yy_pop_state(); } YY_BREAK case 20: YY_RULE_SETUP #line 725 "fortrancode.l" { // Fortran subroutine or function ends //cout << "===> end function " << yytext << endl; endUseScope(); startFontClass("keyword"); codifyLines(yytext); endFontClass(); } YY_BREAK /*-------- variable declaration ----------------------------------*/ case 21: YY_RULE_SETUP #line 733 "fortrancode.l" { yy_push_state(YY_START); BEGIN(TypeDecl); startFontClass("keywordtype"); g_code->codify(yytext); endFontClass(); } YY_BREAK case 22: YY_RULE_SETUP #line 740 "fortrancode.l" { // link type g_insideBody=TRUE; generateLink(*g_code,yytext); g_insideBody=FALSE; } YY_BREAK case 23: YY_RULE_SETUP #line 745 "fortrancode.l" { BEGIN(Declaration); startFontClass("keywordtype"); g_code->codify(yytext); endFontClass(); } YY_BREAK case 24: *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 751 "fortrancode.l" { yy_push_state(YY_START); BEGIN(Declaration); startFontClass("keywordtype"); g_code->codify(yytext); endFontClass(); } YY_BREAK case 25: YY_RULE_SETUP #line 758 "fortrancode.l" { startFontClass("keywordtype"); g_code->codify(yytext); endFontClass(); } YY_BREAK case 26: *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 763 "fortrancode.l" { //| variable deklaration startFontClass("keywordtype"); g_code->codify(yytext); endFontClass(); } YY_BREAK case 27: YY_RULE_SETUP #line 768 "fortrancode.l" { // continuation line yy_push_state(YY_START); BEGIN(DeclContLine); } YY_BREAK case 28: YY_RULE_SETUP #line 772 "fortrancode.l" { // declaration not yet finished codifyLines(yytext); yy_pop_state(); } YY_BREAK case 29: YY_RULE_SETUP #line 776 "fortrancode.l" { // end declaration line codifyLines(yytext); yy_pop_state(); } YY_BREAK /*-------- subprog calls -----------------------------------------*/ case 30: YY_RULE_SETUP #line 783 "fortrancode.l" { codifyLines(yytext); yy_push_state(YY_START); BEGIN(SubCall); } YY_BREAK case 31: YY_RULE_SETUP #line 788 "fortrancode.l" { // subroutine call g_insideBody=TRUE; generateLink(*g_code, yytext); g_insideBody=FALSE; yy_pop_state(); } YY_BREAK case 32: *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 794 "fortrancode.l" { // function call g_insideBody=TRUE; generateLink(*g_code, yytext); g_insideBody=FALSE; } YY_BREAK /*-------- comments ---------------------------------------------------*/ case 33: YY_RULE_SETUP #line 801 "fortrancode.l" { // start comment line or comment block yy_push_state(YY_START); BEGIN(DocBlock); docBlock=yytext; } YY_BREAK case 34: YY_RULE_SETUP #line 807 "fortrancode.l" { // contents of current comment line docBlock+=yytext; } YY_BREAK case 35: YY_RULE_SETUP #line 810 "fortrancode.l" { //| comment block (next line is also comment line) docBlock+=yytext; } YY_BREAK case 36: YY_RULE_SETUP #line 813 "fortrancode.l" { // comment block ends at the end of this line docBlock+=yytext; // remove special comment (default config) if (Config_getBool("STRIP_CODE_COMMENTS")) { g_yyLineNr+=((QCString)docBlock).contains('\n'); endCodeLine(); if (g_yyLineNrcodify(yytext); } YY_BREAK case 47: YY_RULE_SETUP #line 879 "fortrancode.l" ECHO; YY_BREAK case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(Start): case YY_STATE_EOF(SubCall): case YY_STATE_EOF(FuncDef): case YY_STATE_EOF(ClassName): case YY_STATE_EOF(ClassVar): case YY_STATE_EOF(Subprog): case YY_STATE_EOF(DocBlock): case YY_STATE_EOF(Use): case YY_STATE_EOF(UseOnly): case YY_STATE_EOF(TypeDecl): case YY_STATE_EOF(Declaration): case YY_STATE_EOF(DeclContLine): case YY_STATE_EOF(Parameterlist): case YY_STATE_EOF(String): 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_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 >= 791 ) 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 >= 791 ) 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 == 790); 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; 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 879 "fortrancode.l" /*@ ---------------------------------------------------------------------------- */ /*===================================================================*/ void resetFortranCodeParserState() {} void parseFortranCode(CodeOutputInterface &od,const char *className,const QCString &s, bool exBlock, const char *exName,FileDef *fd, int startLine,int endLine,bool inlineFragment, MemberDef *memberDef) { //printf("***parseCode() exBlock=%d exName=%s fd=%p\n",exBlock,exName,fd); // used parameters (void)memberDef; (void)className; if (s.isEmpty()) return; g_code = &od; g_inputString = s; g_inputPosition = 0; g_currentFontClass = 0; g_needsTermination = FALSE; if (endLine!=-1) g_inputLines = endLine+1; else g_inputLines = countLines(); if (startLine!=-1) g_yyLineNr = startLine; else g_yyLineNr = 1; g_exampleBlock = exBlock; g_exampleName = exName; g_sourceFileDef = fd; if (exBlock && fd==0) { // create a dummy filedef for the example g_sourceFileDef = new FileDef("",exName); } if (g_sourceFileDef) { setCurrentDoc(g_sourceFileDef->name(),g_sourceFileDef->getSourceFileBase()); } g_currentDefinition = 0; g_currentMemberDef = 0; if (!g_exampleName.isEmpty()) { g_exampleFile = convertNameToFile(g_exampleName+"-example"); } g_includeCodeFragment = inlineFragment; startCodeLine(); g_parmName.resize(0); g_parmType.resize(0); fcodeYYrestart( fcodeYYin ); BEGIN( Start ); fcodeYYlex(); if (g_needsTermination) { endFontClass(); g_code->endCodeLine(); } if (exBlock && g_sourceFileDef) { // delete the temporary file definition used for this example delete g_sourceFileDef; g_sourceFileDef=0; } return; } #if !defined(YY_FLEX_SUBMINOR_VERSION) extern "C" { // some bogus code to keep the compiler happy void fcodeYYdummy() { yy_flex_realloc(0,0); } } #elif YY_FLEX_SUBMINOR_VERSION<33 #error "You seem to be using a version of flex newer than 2.5.4 but older than 2.5.33. These versions do NOT work with doxygen! Please use version <=2.5.4 or >=2.5.33 or expect things to be parsed wrongly!" #endif