#define yy_create_buffer preYY_create_buffer #define yy_delete_buffer preYY_delete_buffer #define yy_scan_buffer preYY_scan_buffer #define yy_scan_string preYY_scan_string #define yy_scan_bytes preYY_scan_bytes #define yy_flex_debug preYY_flex_debug #define yy_init_buffer preYY_init_buffer #define yy_flush_buffer preYY_flush_buffer #define yy_load_buffer_state preYY_load_buffer_state #define yy_switch_to_buffer preYY_switch_to_buffer #define yyin preYYin #define yyleng preYYleng #define yylex preYYlex #define yyout preYYout #define yyrestart preYYrestart #define yytext preYYtext /* 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 155 #define YY_END_OF_BUFFER 156 static yyconst short int yy_acclist[1104] = { 0, 138, 138, 156, 154, 155, 1, 154, 155, 153, 155, 3, 154, 155, 154, 155, 154, 155, 2, 154, 155, 6, 154, 155, 1, 6, 154, 155, 6, 154, 155, 6, 153, 155, 3, 6, 154, 155, 5, 154, 155, 6, 154, 155, 6, 154, 155, 6, 154, 155, 2, 6, 154, 155, 52, 154, 155, 1, 52, 154, 155, 48, 153, 155, 3, 52, 154, 155, 52, 154, 155, 52, 154, 155, 49, 52, 154, 155, 49, 52, 154, 155, 49, 52, 154, 155, 49, 52, 154, 155, 49, 52, 154, 155, 2, 52, 154, 155, 76, 154, 155, 1, 76, 154, 155, 74, 153, 155, 3, 76, 154, 155, 76, 154, 155, 76, 154, 155, 75, 76, 154, 155, 75, 76, 154, 155, 75, 76, 154, 155, 2, 76, 154, 155, 77, 78, 154, 155, 1, 77, 78, 154, 155, 81, 153, 155, 3, 77, 78, 154, 155, 78, 154, 155, 77, 78, 154, 155, 2, 77, 78, 154, 155, 22, 154, 155, 1, 22, 154, 155, 23, 153, 155, 3, 22, 154, 155, 15, 22, 154, 155, 22, 154, 155, 22, 154, 155, 22, 154, 155, 20, 22, 154, 155,16403, 22, 154, 155, 20, 22, 154, 155,16403, 10, 22, 154, 155, 11, 22, 154, 155, 2, 22, 154, 155, 16, 154, 155, 1, 16, 154, 155, 18, 154, 155, 16, 154, 155, 16, 154, 155, 154, 155, 2, 16, 154, 155, 154, 155, 1, 154, 155, 3, 154, 155, 154, 155, 154, 155, 2, 154, 155, 83, 154, 155, 87, 154, 155, 1, 87, 154, 155, 85, 153, 155, 3, 87, 154, 155, 87, 154, 155, 87, 154, 155, 87, 154, 155, 2, 87, 154, 155, 8281, 154, 155,16473,16474, 154, 155, 92, 154, 155, 93, 154, 155, 91, 154, 155, 154, 155, 95, 154, 155, 150, 154, 155, 1, 150, 154, 155, 138, 150, 154, 155, 137, 153, 155, 3, 150, 154, 155, 141, 150, 154, 155, 134, 150, 154, 155, 142, 150, 154, 155, 150, 154, 155, 150, 154, 155, 140, 150, 154, 155, 135, 150, 154, 155, 150, 154, 155, 2, 150, 154, 155, 69, 154, 155, 1, 69, 154, 155, 68, 153, 155, 3, 69, 154, 155, 69, 154, 155, 69, 154, 155, 2, 69, 154, 155, 67, 69, 154, 155, 1, 67, 69, 154, 155, 67, 69, 154, 155, 67, 68, 153, 155, 3, 67, 69, 154, 155, 66, 69, 154, 155, 67, 69, 154, 155, 67, 69, 154, 155, 2, 67, 69, 154, 155, 111, 113, 154, 155, 1, 113, 154, 155, 112, 153, 155, 3, 111, 113, 154, 155, 113, 154, 155, 113, 154, 155, 111, 113, 154, 155, 113, 154, 155, 2, 111, 113, 154, 155, 114, 117, 154, 155, 1, 114, 117, 154, 155, 114, 116, 153, 155, 3, 114, 117, 154, 155, 117, 154, 155, 114, 117, 154, 155, 114, 117, 154, 155, 2, 114, 117, 154, 155, 113, 154, 155, 113, 154, 155, 113, 154, 155, 124, 128, 129, 154, 155, 1, 124, 129, 154, 155, 125, 153, 155, 3, 124, 128, 129, 154, 155, 128, 129, 154, 155, 124, 128, 129, 154, 155, 129, 154, 155, 2, 124, 128, 129, 154, 155, 121, 123, 154, 155, 1, 123, 154, 155, 122, 153, 155, 3, 121, 123, 154, 155, 123, 154, 155, 121, 123, 154, 155, 121, 123, 154, 155, 2, 121, 123, 154, 155, 132, 133, 154, 155, 1, 133, 154, 155, 3, 132, 133, 154, 155, 132, 133, 154, 155, 132, 133, 154, 155, 2, 132, 133, 154, 155, 58, 154, 155, 1, 58, 154, 155, 59, 153, 155, 3, 58, 154, 155, 58, 154, 155, 58, 154, 155, 57, 58, 154, 155, 58, 154, 155, 57, 58, 154, 155, 2, 58, 154, 155, 65, 154, 155, 1, 65, 154, 155, 63, 153, 155, 3, 65, 154, 155, 65, 154, 155, 65, 154, 155, 61, 65, 154, 155, 65, 154, 155, 2, 65, 154, 155, 64, 65, 154, 155, 62, 65, 154, 155, 148, 154, 155, 1, 148, 154, 155, 3, 148, 154, 155, 145, 148, 154, 155, 148, 154, 155, 148, 154, 155, 148, 154, 155, 2, 148, 154, 155, 149, 154, 155, 1, 149, 154, 155, 3, 149, 154, 155, 147, 149, 154, 155, 149, 154, 155, 149, 154, 155, 149, 154, 155, 2, 149, 154, 155, 53, 154, 155, 51, 154, 155, 1, 51, 154, 155, 3, 51, 154, 155, 51, 154, 155, 51, 154, 155, 51, 154, 155, 2, 51, 154, 155, 30, 154, 155, 1, 30, 154, 155, 28, 153, 155, 3, 30, 154, 155, 27, 30, 154, 155, 30, 154, 155, 24, 30, 154, 155, 25, 30, 154, 155, 30, 154, 155, 30, 154, 155, 29, 30, 154, 155, 2, 30, 154, 155, 34, 154, 155, 1, 34, 154, 155, 3, 34, 154, 155, 31, 34, 154, 155, 34, 154, 155, 34, 154, 155, 34, 154, 155, 2, 34, 154, 155, 107, 154, 155, 1, 107, 154, 155, 3, 107, 154, 155, 107, 154, 155, 107, 154, 155, 105, 107, 154, 155, 2, 107, 154, 155, 151, 152, 6, 6, 5, 6, 49, 49, 49, 49, 49, 49, 49, 49, 80, 151, 79, 152, 75, 75, 75, 75, 77, 77, 8211, 20,16403, 21, 20, 16403, 16, 16, 151, 16, 152, 16, 17, 84, 151, 152, 82, 83, 85, 151, 152, 86, 8281, 8282, 88, 8281,16473,16474, 93, 92, 93, 91, 95, 95, 138, 139, 96, 151, 97, 152, 135, 136, 67, 67, 66, 111, 98, 100, 151, 99, 152, 111, 114, 115, 114, 152, 114, 110, 110, 151, 124, 128, 124, 128, 126, 128, 151, 127, 128, 152, 124, 128, 121, 118, 120, 151, 119, 121, 152, 121, 132, 130, 132, 151, 131, 132, 152, 132, 57, 54, 57, 61, 60, 62, 144, 151, 143, 152, 146, 53, 50, 32, 151, 32, 152, 33, 105, 4,16391, 49, 49, 49, 49, 42, 49, 49, 49, 49, 49, 75, 75, 75, 70, 75, 75, 4, 77, 14, 14, 20,16403, 4, 16, 4, 4, 84, 4, 94, 139, 4, 111, 4, 114, 109, 4, 124, 128, 4, 128, 4, 121, 4, 132, 57, 26, 8, 8199, 49, 49, 49, 49, 49, 49, 49, 49, 49, 75, 71, 75, 75, 75, 13, 12, 13, 20, 16403, 95, 101, 57, 26, 8, 8, 49, 43, 46, 44, 44, 49, 49, 49, 49, 49, 49, 49, 72, 75, 73, 75, 75, 12, 20,16403, 103, 57, 8, 49, 47, 39, 38, 49, 49, 49, 45, 20,16403, 102, 104, 106, 57, 8, 37, 41, 40,16419, 36, 9, 57, 8, 8227, 56, 55, 8, 8227, 108, 8, 8, 8, 8 } ; static yyconst short int yy_accept[1056] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4, 6, 9, 11, 14, 16, 18, 21, 24, 28, 31, 34, 38, 41, 44, 47, 50, 54, 57, 61, 64, 68, 71, 74, 78, 82, 86, 90, 94, 98, 101, 105, 108, 112, 115, 118, 122, 126, 130, 134, 138, 143, 146, 151, 154, 158, 163, 166, 170, 173, 177, 181, 184, 187, 190, 195, 198, 203, 207, 211, 215, 218, 222, 225, 228, 231, 233, 237, 239, 242, 245, 247, 249, 252, 255, 258, 262, 265, 269, 272, 275, 278, 282, 287, 289, 292, 295, 298, 300, 303, 306, 310, 314, 317, 321, 325, 329, 333, 336, 339, 343, 347, 350, 354, 357, 361, 364, 368, 371, 374, 378, 382, 387, 391, 395, 400, 404, 408, 412, 417, 421, 425, 428, 433, 436, 439, 443, 446, 451, 455, 460, 464, 469, 472, 476, 480, 485, 488, 491, 494, 499, 504, 507, 513, 517, 522, 525, 531, 535, 539, 542, 547, 550, 554, 558, 563, 567, 571, 576, 580, 584, 589, 592, 596, 599, 603, 606, 609, 613, 616, 620, 624, 627, 631, 634, 638, 641, 644, 648, 651, 655, 659, 663, 666, 670, 674, 678, 681, 684, 687, 691, 694, 698, 702, 706, 709, 712, 715, 719, 722, 725, 729, 733, 736, 739, 742, 746, 749, 753, 756, 760, 764, 767, 771, 775, 778, 781, 785, 789, 792, 796, 800, 804, 807, 810, 813, 817, 820, 824, 828, 831, 834, 838, 842, 843, 844, 844, 845, 846, 847, 848, 848, 848, 848, 849, 850, 851, 852, 853, 854, 855, 856, 858, 860, 861, 862, 863, 864, 865, 866, 866, 866, 866, 867, 869, 870, 870, 872, 873, 875, 877, 878, 879, 879, 880, 881, 882, 882, 882, 883, 884, 884, 885, 886, 887, 887, 888, 888, 889, 890, 891, 894, 894, 895, 896, 897, 898, 898, 899, 899, 900, 901, 901, 902, 904, 906, 907, 908, 908, 909, 910, 911, 912, 913, 915, 917, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 918, 919, 920, 922, 923, 924, 926, 926, 926, 928, 929, 930, 933, 936, 938, 938, 939, 940, 942, 945, 946, 947, 950, 953, 954, 955, 956, 956, 957, 958, 959, 960, 962, 964, 965, 966, 967, 967, 967, 967, 969, 971, 972, 973, 974, 974, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 993, 994, 994, 995, 995, 995, 997, 999, 1000, 1002, 1003, 1004, 1004, 1005, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1007, 1009, 1009, 1010, 1013, 1015, 1015, 1017, 1019, 1020, 1020, 1021, 1021, 1021, 1021, 1021, 1021, 1022, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1035, 1036, 1037, 1038, 1040, 1040, 1040, 1042, 1043, 1043, 1043, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1044, 1045, 1045, 1046, 1046, 1046, 1047, 1047, 1048, 1048, 1049, 1051, 1052, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1061, 1062, 1064, 1065, 1066, 1066, 1066, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1070, 1070, 1070, 1070, 1071, 1071, 1072, 1072, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1079, 1079, 1081, 1082, 1082, 1082, 1082, 1082, 1082, 1082, 1083, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1084, 1085, 1085, 1086, 1086, 1087, 1087, 1088, 1089, 1090, 1091, 1091, 1091, 1091, 1091, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1093, 1093, 1094, 1094, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1095, 1096, 1097, 1097, 1098, 1098, 1099, 1099, 1099, 1099, 1099, 1099, 1099, 1100, 1100, 1100, 1100, 1100, 1100, 1100, 1100, 1100, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1102, 1102, 1102, 1102, 1102, 1102, 1102, 1102, 1102, 1103, 1103, 1103, 1103, 1103, 1103, 1103, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104 } ; static yyconst int yy_ec[256] = { 0, 1, 1, 1, 1, 1, 2, 1, 1, 3, 4, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 6, 7, 8, 9, 1, 1, 10, 11, 12, 13, 1, 14, 15, 16, 17, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 20, 1, 21, 22, 23, 24, 25, 26, 26, 27, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 28, 29, 30, 1, 26, 1, 31, 32, 33, 34, 35, 36, 37, 38, 39, 37, 37, 40, 41, 42, 43, 44, 37, 45, 46, 47, 48, 49, 37, 50, 51, 37, 52, 1, 53, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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[55] = { 0, 1, 2, 3, 4, 5, 6, 7, 1, 1, 8, 9, 6, 10, 1, 11, 12, 13, 14, 14, 1, 15, 6, 6, 1, 16, 17, 17, 1, 18, 1, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 1, 1, 1 } ; static yyconst short int yy_base[1114] = { 0, 0, 4, 8, 61, 115, 0, 169, 0, 14, 18, 223, 0, 32, 276, 280, 284, 338, 0, 391, 395, 424, 0, 475, 0, 529, 0, 43, 399, 582, 586, 590, 596, 649, 702, 613, 644, 755, 808, 667, 684, 712, 728, 738, 746, 862, 0, 916, 0, 959, 0, 769, 800, 1009, 1013, 1042, 0, 1041, 1092, 1145, 1198, 1100, 1106, 1252, 0, 2451, 4362, 4362, 4362, 4362, 13, 2426, 4362, 4362, 4362, 47, 4362, 4362, 4362, 16, 2424, 72, 4362, 4362, 4362, 4362, 4362, 27, 2423, 0, 2409, 1, 10, 2397, 4362, 4362, 4362, 4362, 4362, 40, 2414, 0, 37, 2400, 4362, 0, 0, 4362, 0, 63, 2411, 0, 4362, 4362, 4362, 4362, 4362, 2397, 76, 2401, 91, 10, 620, 4362, 4362, 4362, 0, 0, 4362, 87, 2386, 0, 0, 4, 85, 272, 289, 287, 291, 98, 2405, 2391, 4362, 2390, 305, 295, 66, 2376, 102, 100, 2373, 2360, 2359, 2344, 310, 4362, 4362, 312, 4362, 4362, 4362, 2348, 4362, 94, 2330, 4362, 0, 77, 4362, 4362, 4362, 4362, 4362, 97, 2328, 4362, 4362, 4362, 313, 4362, 4362, 4362, 310, 2327, 4362, 0, 4362, 4362, 0, 2332, 311, 2324, 1282, 0, 0, 0, 0, 0, 2323, 312, 2315, 0, 2320, 318, 297, 392, 0, 4362, 396, 393, 409, 257, 412, 0, 4362, 4362, 0, 2319, 404, 2305, 0, 0, 4362, 0, 405, 2271, 0, 4362, 4362, 4362, 4362, 414, 2265, 0, 332, 2246, 4362, 4362, 4362, 4362, 4362, 415, 2255, 0, 2273, 4362, 4362, 0, 4362, 4362, 4362, 4362, 417, 2243, 0, 4362, 4362, 4362, 4362, 4362, 422, 2229, 0, 4362, 0, 4362, 4362, 4362, 423, 2223, 433, 4362, 4362, 4362, 4362, 4362, 4362, 2217, 4362, 4362, 429, 2220, 4362, 4362, 4362, 4362, 4362, 4362, 430, 2216, 0, 4362, 4362, 4362, 4362, 431, 2214, 0, 4362, 4362, 4362, 0, 4362, 601, 4362, 800, 582, 2225, 817, 0, 2199, 550, 2184, 605, 2167, 2177, 2174, 4362, 4362, 0, 566, 2170, 653, 0, 1327, 2187, 611, 630, 4362, 672, 4362, 2184, 707, 0, 0, 0, 1345, 4362, 418, 4362, 615, 635, 1363, 649, 4362, 652, 2179, 4362, 2178, 2176, 1383, 4362, 2175, 676, 4362, 4362, 774, 678, 2174, 2164, 2158, 2144, 2129, 616, 2128, 719, 594, 2124, 2122, 4362, 4362, 0, 4362, 2116, 4362, 691, 4362, 0, 4362, 2102, 4362, 1401, 1392, 2069, 2057, 2051, 2036, 2050, 2048, 2031, 2041, 2034, 0, 4362, 0, 1437, 4362, 4362, 2025, 693, 680, 0, 0, 0, 0, 1459, 2023, 0, 4362, 4362, 0, 1477, 0, 0, 0, 1495, 0, 4362, 2060, 2027, 0, 4362, 0, 4362, 4362, 4362, 0, 4362, 2033, 2006, 1990, 4362, 4362, 4362, 0, 4362, 1994, 1987, 786, 1947, 1944, 1922, 1915, 4362, 1912, 1911, 1901, 1899, 1902, 1899, 1895, 1890, 4362, 1892, 1881, 0, 4362, 1893, 1892, 675, 811, 977, 0, 721, 4362, 1892, 4362, 1870, 1882, 0, 1839, 1822, 1007, 1817, 1831, 1830, 1806, 1817, 1808, 705, 1790, 1802, 1793, 1786, 1789, 1794, 1783, 1787, 0, 1790, 4362, 703, 0, 1770, 0, 0, 1772, 1799, 4362, 1798, 743, 1793, 761, 969, 1046, 1051, 4362, 1762, 828, 1518, 1766, 1763, 1763, 1751, 1744, 1744, 839, 755, 1743, 1737, 4362, 4362, 757, 844, 1122, 4362, 1733, 1709, 4362, 1714, 1707, 1710, 1715, 1704, 1708, 1711, 1710, 792, 1710, 1700, 1703, 1689, 1688, 1687, 1670, 991, 1665, 1687, 4362, 841, 784, 4362, 1133, 1138, 1160, 1659, 4362, 4362, 981, 1656, 1572, 849, 1648, 1636, 1646, 1675, 4362, 1025, 1641, 0, 850, 4362, 1664, 972, 1171, 1625, 1057, 1619, 1622, 1613, 1610, 1620, 1607, 1096, 1115, 1587, 1472, 1464, 1471, 1467, 1477, 1460, 1448, 1447, 1439, 1454, 1453, 1431, 1442, 1434, 1438, 1457, 1456, 1168, 1174, 1309, 1450, 1109, 1415, 4362, 976, 4362, 1036, 1180, 1415, 1437, 1402, 1193, 1624, 1188, 1392, 1384, 1389, 1387, 1396, 1375, 1213, 4362, 1224, 1373, 1372, 1367, 1368, 1359, 1350, 1356, 1354, 1335, 1340, 1332, 1335, 1340, 1327, 1319, 1324, 1416, 1452, 1459, 1351, 1128, 1041, 4362, 1204, 4362, 1178, 1227, 1629, 1325, 4362, 1301, 1298, 1300, 1290, 1279, 1284, 1285, 1270, 1267, 1257, 1200, 1208, 1168, 1179, 1166, 1160, 1143, 1125, 1134, 1118, 1103, 1634, 1638, 1641, 0, 1230, 1644, 1152, 1111, 1103, 1093, 1077, 1083, 1064, 0, 1021, 1017, 1012, 1005, 984, 985, 980, 947, 816, 1129, 4362, 1659, 1662, 1665, 0, 1239, 1684, 1668, 806, 806, 800, 4362, 789, 788, 765, 761, 759, 736, 741, 1695, 1698, 1701, 1342, 1705, 1331, 718, 709, 682, 649, 614, 606, 592, 1719, 1722, 1725, 1360, 1730, 1387, 403, 412, 364, 1755, 1758, 1761, 1398, 1765, 1441, 266, 1780, 1783, 1786, 1492, 1790, 1811, 1815, 1818, 1836, 1840, 1843, 1852, 1855, 1864, 1869, 1873, 1876, 1886, 1889, 1894, 1903, 1906, 1915, 1909, 1920, 1929, 1938, 1945, 1955, 1948, 1960, 1965, 1970, 1974, 1984, 1979, 1993, 1998, 1989, 2007, 2016, 2010, 2021, 2035, 2025, 2040, 2049, 2030, 2044, 2054, 2066, 2069, 2081, 2086, 2091, 2100, 2094, 2105, 2110, 2119, 2123, 2132, 2126, 2137, 2146, 2151, 2155, 2165, 2160, 2170, 2182, 2187, 2191, 2202, 2196, 2211, 2216, 2221, 2225, 2238, 2228, 2247, 2252, 2257, 2261, 2271, 2266, 2280, 2289, 2283, 2294, 2303, 2298, 2308, 2317, 2312, 2322, 2327, 2339, 2342, 2354, 2363, 2367, 2370, 2379, 2382, 2385, 2394, 2397, 2400, 2409, 2413, 2416, 2425, 2429, 2438, 2450, 2453, 2462, 2467, 2471, 2476, 2481, 2488, 2493, 2502, 2505, 2518, 2508, 2527, 2532, 2537, 2544, 2554, 2547, 2563, 2568, 2559, 2577, 2587, 2573, 2582, 2597, 2592, 2610, 2619, 2613, 2624, 2629, 2638, 2642, 2647, 2652, 2656, 2659, 2669, 2672, 2675, 2684, 2689, 2698, 2692, 2703, 2712, 2721, 2726, 2735, 2729, 2744, 2749, 2754, 2758, 2763, 2772, 2775, 2785, 2779, 2794, 2805, 2790, 2814, 2823, 2799, 2818, 2836, 2841, 2845, 2855, 2849, 2860, 2865, 2874, 2878, 2887, 2881, 2892, 2901, 2906, 2910, 2920, 2915, 2925, 2937, 2942, 2946, 2957, 2951, 73, 2966, 2971, 2975, 2980, 2988, 2993, 2997, 3002, 3008, 3017, 3026, 3021, 3031, 3038, 3043, 3047, 3052, 7, 3058, 3061, 3067, 3071, 3076, 3081, 3084, 3088, 3093, 3097, 3102, 3111, 3117, 3121, 3126, 3134, 3138, 3143, 3147, 3152, 3155, 3161, 3167, 3171, 3176, 3179, 3184, 3188, 3193, 3197, 3205, 3211, 3217, 3221, 3229, 3234, 3238, 3243, 3247, 3250, 3255, 3261, 3267, 3271, 3274, 3279, 3284, 3288, 3293, 3300, 3305, 3311, 3317, 3324, 3329, 3334, 3338, 3343, 3346, 3350, 3355, 3361, 3367, 3370, 3374, 3379, 3384, 3388, 3396, 3400, 3405, 3411, 3420, 3424, 3429, 3434, 4362, 3486, 3504, 3522, 3540, 3558, 3576, 3594, 3612, 3630, 3648, 3666, 3684, 3702, 3720, 3738, 3756, 3774, 3792, 3810, 720, 1207, 3828, 3846, 3862, 3879, 3896, 3914, 3930, 3947, 3962, 3977, 1222, 3994, 4012, 4029, 4047, 4064, 4081, 4098, 4116, 1223, 1231, 1232, 4134, 1304, 4152, 4170, 4178, 4190, 4205, 4223, 4241, 4258, 4276, 4294, 4311, 4326, 1311, 4343 } ; static yyconst short int yy_def[1114] = { 0, 1055, 1055, 1055, 1056, 1054, 5, 1054, 7, 1057, 1057, 1054, 11, 1058, 1058, 1059, 1059, 1054, 17, 1060, 1060, 17, 21, 1054, 23, 1054, 25, 1061, 1062, 1055, 1055, 1055, 1055, 1063, 1063, 1064, 1064, 1063, 1063, 1065, 1065, 1066, 1066, 1067, 1067, 1054, 45, 1054, 47, 47, 49, 1068, 1068, 1069, 1069, 21, 55, 1070, 1070, 1071, 1071, 1072, 1072, 1054, 63, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1073, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1074, 1074, 1074, 1074, 1074, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1075, 1075, 1075, 1054, 1076, 1076, 1054, 1076, 1054, 1076, 1076, 1054, 1054, 1054, 1054, 1054, 1077, 1054, 1054, 1078, 1054, 1078, 1054, 1054, 1054, 1079, 1079, 1054, 1079, 1079, 1080, 1079, 1081, 1081, 1081, 1081, 1081, 1081, 1082, 1083, 1083, 1054, 1083, 1083, 1083, 1054, 1083, 1084, 1054, 1054, 1054, 1054, 1054, 1085, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1086, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1087, 1054, 1054, 1054, 1054, 1054, 1054, 1088, 1054, 1054, 1088, 1054, 1054, 1088, 1054, 1088, 1089, 1089, 1089, 1089, 1054, 1089, 1089, 1089, 1054, 1054, 1054, 1090, 1091, 1054, 1090, 1092, 1090, 1054, 1090, 1093, 1054, 1054, 1093, 1054, 1093, 1093, 1093, 1094, 1054, 1094, 1094, 1094, 1094, 1054, 1054, 1054, 1054, 1054, 1054, 1095, 1054, 1095, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1096, 1054, 1054, 1054, 1097, 1054, 1054, 1054, 1054, 1054, 1054, 1098, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1098, 1054, 1099, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1100, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1101, 1054, 1054, 1054, 1054, 1054, 1054, 1102, 1054, 1054, 1054, 1103, 1054, 1073, 1054, 1054, 1054, 1104, 1054, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1074, 1054, 1054, 1075, 1075, 1075, 1075, 1076, 1076, 1054, 1105, 1054, 1054, 1078, 1054, 1054, 1078, 1079, 1079, 1079, 1079, 1054, 1081, 1054, 1081, 1081, 1081, 1054, 1054, 1082, 1083, 1054, 1083, 1083, 1083, 1054, 1054, 1054, 1054, 1054, 1084, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1085, 1054, 1054, 1054, 1054, 1054, 1086, 1054, 1054, 1054, 1087, 1054, 1088, 1054, 1054, 1054, 1088, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1089, 1054, 1089, 1089, 1054, 1054, 1054, 1054, 1090, 1091, 1092, 1092, 1092, 1090, 1054, 1093, 1054, 1054, 1093, 1093, 1094, 1094, 1094, 1094, 1095, 1054, 1054, 1095, 1096, 1054, 1097, 1054, 1054, 1054, 1099, 1054, 1054, 1106, 1107, 1054, 1054, 1054, 1102, 1054, 1108, 1104, 1054, 1074, 1074, 1074, 1074, 1054, 1074, 1074, 1074, 1074, 1074, 1075, 1075, 1075, 1054, 1075, 1075, 1076, 1054, 1054, 1054, 1054, 1054, 1078, 1079, 1081, 1054, 1083, 1054, 1054, 1054, 1088, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1089, 1054, 1054, 1090, 1092, 1054, 1093, 1094, 1095, 1109, 1054, 1054, 1054, 1108, 1054, 1054, 1054, 1054, 1054, 1074, 1074, 1054, 1074, 1074, 1074, 1074, 1074, 1074, 1075, 1075, 1075, 1075, 1054, 1054, 1054, 1054, 1078, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1095, 1110, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1074, 1054, 1054, 1054, 1074, 1054, 1074, 1074, 1074, 1074, 1074, 1054, 1054, 1075, 1075, 1075, 1054, 1054, 1054, 1078, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1095, 1054, 1054, 1054, 1054, 1054, 1074, 1054, 1054, 1054, 1054, 1054, 1074, 1074, 1074, 1054, 1054, 1054, 1078, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1095, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1111, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1095, 1054, 1054, 1054, 1112, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1113, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1112, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 0, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054 } ; static yyconst short int yy_nxt[4417] = { 0, 1054, 67, 1054, 68, 69, 67, 1054, 68, 69, 67, 339, 68, 69, 330, 331, 106, 70, 107, 108, 106, 70, 107, 108, 71, 70, 299, 339, 71, 299, 300, 109, 71, 300, 127, 109, 68, 69, 110, 128, 299, 311, 110, 312, 300, 170, 313, 171, 172, 129, 303, 314, 315, 317, 72, 304, 130, 318, 72, 658, 173, 131, 72, 74, 75, 76, 77, 174, 111, 78, 351, 352, 111, 305, 305, 306, 317, 320, 79, 321, 318, 372, 373, 307, 328, 80, 132, 81, 81, 299, 308, 308, 339, 300, 327, 327, 327, 175, 308, 308, 334, 343, 328, 357, 335, 353, 354, 369, 339, 344, 317, 370, 358, 355, 318, 82, 83, 84, 83, 85, 86, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 83, 87, 83, 83, 83, 83, 83, 83, 88, 83, 89, 89, 83, 83, 83, 89, 89, 89, 90, 91, 89, 89, 89, 92, 89, 89, 89, 89, 89, 89, 89, 89, 93, 89, 89, 89, 83, 83, 94, 95, 96, 95, 97, 98, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 95, 99, 95, 95, 95, 95, 95, 95, 100, 95, 101, 101, 95, 95, 95, 101, 101, 101, 101, 102, 101, 101, 101, 103, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 95, 95, 104, 112, 113, 112, 114, 115, 112, 116, 112, 112, 117, 112, 112, 112, 112, 112, 112, 118, 112, 112, 112, 112, 112, 112, 119, 112, 120, 120, 112, 121, 112, 120, 120, 120, 120, 122, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 120, 123, 124, 125, 127, 339, 68, 69, 134, 128, 68, 135, 134, 66, 68, 135, 406, 66, 385, 129, 339, 339, 339, 136, 339, 347, 130, 136, 340, 66, 137, 131, 341, 66, 137, 347, 339, 342, 339, 363, 339, 366, 375, 490, 348, 350, 367, 376, 349, 317, 379, 299, 364, 318, 380, 394, 132, 397, 398, 399, 138, 300, 417, 418, 138, 66, 67, 66, 68, 69, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 70, 66, 66, 66, 66, 66, 66, 71, 66, 139, 139, 66, 66, 66, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 139, 66, 66, 72, 141, 401, 142, 143, 141, 401, 142, 143, 177, 178, 179, 180, 490, 403, 181, 144, 402, 404, 401, 144, 402, 401, 145, 182, 409, 413, 145, 146, 410, 414, 183, 146, 339, 402, 299, 299, 402, 423, 300, 300, 405, 424, 299, 299, 427, 428, 300, 300, 339, 299, 431, 299, 147, 300, 432, 300, 147, 148, 148, 751, 184, 490, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 66, 67, 149, 68, 69, 66, 66, 66, 66, 66, 150, 151, 66, 152, 66, 153, 70, 66, 66, 66, 66, 66, 66, 71, 66, 154, 154, 66, 66, 66, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 154, 66, 66, 72, 155, 156, 157, 158, 159, 155, 160, 161, 155, 162, 155, 155, 155, 155, 155, 155, 163, 155, 155, 155, 155, 155, 155, 164, 165, 166, 166, 155, 167, 155, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 166, 155, 155, 168, 67, 306, 68, 69, 67, 440, 68, 69, 67, 436, 68, 69, 441, 366, 67, 70, 68, 69, 367, 70, 303, 449, 71, 70, 443, 304, 71, 443, 450, 70, 71, 195, 443, 196, 197, 363, 71, 458, 339, 327, 327, 327, 198, 305, 305, 459, 199, 328, 364, 460, 460, 460, 72, 200, 339, 444, 72, 328, 339, 490, 72, 744, 195, 445, 196, 197, 72, 186, 343, 187, 188, 343, 452, 198, 339, 452, 344, 199, 189, 344, 452, 490, 190, 201, 200, 206, 332, 207, 208, 191, 192, 327, 327, 327, 192, 353, 354, 357, 401, 328, 209, 521, 206, 453, 207, 208, 358, 210, 211, 522, 375, 454, 211, 402, 201, 376, 490, 209, 490, 193, 186, 401, 187, 188, 210, 211, 327, 327, 327, 211, 214, 189, 215, 216, 328, 190, 402, 212, 363, 490, 743, 217, 191, 192, 339, 218, 214, 192, 215, 216, 309, 364, 219, 309, 212, 535, 222, 217, 207, 223, 339, 218, 490, 536, 222, 742, 207, 223, 219, 548, 461, 224, 193, 186, 567, 187, 188, 549, 225, 224, 550, 551, 220, 571, 202, 576, 225, 249, 203, 68, 250, 572, 251, 353, 354, 191, 204, 735, 220, 734, 204, 355, 252, 550, 551, 503, 504, 505, 226, 253, 568, 584, 584, 584, 254, 733, 226, 732, 249, 306, 68, 250, 506, 251, 731, 193, 186, 307, 187, 188, 523, 523, 523, 252, 308, 308, 306, 202, 328, 255, 253, 203, 308, 308, 307, 254, 730, 556, 191, 204, 556, 308, 308, 204, 506, 556, 537, 576, 566, 308, 308, 566, 729, 573, 573, 573, 566, 498, 610, 452, 255, 328, 452, 576, 722, 602, 611, 452, 193, 227, 228, 227, 229, 230, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 227, 231, 227, 227, 227, 227, 227, 227, 232, 227, 233, 233, 227, 234, 227, 233, 233, 233, 235, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 233, 227, 227, 236, 237, 238, 237, 239, 240, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 237, 241, 237, 237, 237, 237, 237, 237, 242, 237, 243, 243, 237, 244, 237, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 243, 237, 237, 245, 246, 552, 553, 554, 617, 617, 617, 721, 610, 327, 327, 327, 328, 607, 247, 247, 611, 328, 506, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 247, 257, 524, 68, 258, 257, 528, 68, 258, 259, 608, 506, 720, 259, 592, 593, 260, 719, 567, 594, 260, 595, 596, 261, 718, 528, 597, 261, 262, 650, 598, 599, 262, 266, 650, 85, 267, 651, 717, 554, 554, 554, 651, 537, 554, 554, 554, 716, 268, 528, 619, 619, 619, 263, 616, 269, 506, 263, 264, 264, 270, 506, 537, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 264, 266, 271, 85, 267, 506, 626, 627, 628, 285, 506, 68, 286, 703, 287, 285, 268, 68, 286, 607, 287, 704, 576, 269, 288, 584, 584, 584, 270, 714, 288, 289, 327, 327, 327, 576, 290, 289, 556, 703, 328, 556, 290, 603, 604, 605, 556, 704, 605, 605, 605, 576, 713, 271, 273, 608, 274, 275, 712, 276, 506, 291, 277, 278, 279, 506, 711, 291, 702, 280, 605, 605, 605, 701, 574, 700, 281, 282, 645, 646, 647, 327, 327, 327, 647, 647, 647, 506, 566, 328, 652, 566, 506, 699, 653, 506, 566, 506, 619, 619, 619, 506, 698, 655, 655, 655, 283, 273, 653, 274, 275, 328, 276, 697, 652, 277, 278, 279, 653, 506, 618, 490, 280, 626, 627, 628, 537, 506, 319, 281, 282, 319, 653, 506, 628, 627, 628, 684, 684, 684, 709, 709, 709, 371, 416, 328, 371, 416, 328, 726, 726, 726, 420, 422, 696, 420, 422, 328, 537, 283, 292, 293, 292, 68, 294, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, 295, 292, 292, 292, 292, 292, 292, 296, 292, 297, 297, 292, 292, 292, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 297, 292, 292, 298, 382, 537, 695, 694, 382, 647, 647, 647, 383, 384, 385, 426, 693, 386, 426, 387, 388, 692, 708, 691, 389, 708, 506, 690, 390, 391, 455, 741, 741, 741, 455, 455, 455, 689, 688, 455, 687, 435, 739, 739, 739, 455, 455, 455, 462, 686, 328, 648, 462, 462, 462, 679, 678, 462, 506, 462, 748, 748, 748, 462, 462, 462, 463, 339, 328, 677, 463, 463, 463, 676, 675, 463, 674, 463, 673, 490, 658, 463, 463, 464, 347, 672, 465, 750, 750, 750, 465, 465, 465, 671, 670, 465, 669, 465, 755, 755, 755, 465, 465, 465, 469, 668, 328, 667, 469, 469, 469, 666, 665, 469, 664, 435, 680, 681, 682, 469, 469, 469, 470, 471, 663, 472, 662, 473, 661, 474, 475, 660, 659, 506, 476, 654, 658, 615, 477, 478, 488, 757, 757, 757, 488, 488, 488, 613, 649, 488, 648, 488, 682, 682, 682, 488, 488, 488, 401, 682, 682, 682, 491, 498, 498, 506, 491, 491, 491, 506, 644, 491, 643, 492, 642, 641, 506, 491, 491, 491, 494, 640, 639, 638, 494, 494, 494, 637, 636, 494, 658, 494, 758, 758, 758, 494, 494, 494, 495, 635, 328, 506, 495, 495, 495, 634, 633, 495, 506, 495, 632, 631, 630, 495, 495, 495, 557, 557, 558, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 557, 309, 309, 557, 557, 557, 557, 557, 557, 309, 309, 557, 557, 557, 309, 309, 309, 309, 309, 309, 309, 309, 559, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 557, 557, 557, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 609, 309, 309, 609, 609, 609, 609, 609, 609, 309, 309, 609, 609, 609, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 309, 609, 609, 609, 656, 656, 656, 629, 657, 685, 685, 685, 328, 657, 705, 706, 707, 328, 707, 707, 707, 707, 707, 707, 710, 710, 710, 625, 657, 624, 623, 506, 328, 622, 621, 506, 620, 576, 506, 723, 724, 725, 725, 725, 725, 725, 725, 725, 728, 728, 728, 571, 657, 658, 516, 615, 506, 614, 658, 506, 613, 612, 506, 506, 727, 727, 727, 506, 657, 508, 506, 606, 328, 658, 498, 736, 737, 738, 738, 738, 738, 738, 738, 738, 600, 740, 740, 740, 506, 657, 591, 506, 506, 328, 506, 506, 590, 658, 506, 745, 746, 747, 747, 747, 747, 747, 747, 747, 589, 588, 749, 749, 749, 658, 657, 587, 506, 586, 328, 506, 585, 583, 506, 537, 506, 582, 581, 506, 580, 579, 506, 578, 577, 576, 658, 752, 753, 754, 754, 754, 754, 754, 754, 754, 575, 756, 756, 756, 506, 657, 570, 506, 506, 328, 506, 506, 569, 565, 506, 658, 752, 753, 754, 754, 754, 754, 754, 754, 754, 564, 759, 759, 759, 563, 657, 562, 561, 506, 328, 560, 506, 555, 502, 506, 506, 498, 498, 506, 546, 536, 506, 760, 760, 760, 658, 761, 761, 761, 762, 762, 762, 545, 657, 328, 544, 543, 328, 542, 541, 506, 540, 539, 506, 538, 537, 506, 763, 763, 763, 658, 764, 764, 764, 765, 765, 765, 534, 657, 328, 533, 532, 328, 766, 766, 766, 767, 767, 767, 531, 530, 658, 529, 527, 328, 768, 768, 768, 658, 657, 769, 769, 769, 328, 770, 770, 770, 771, 771, 771, 526, 657, 328, 468, 525, 328, 658, 772, 772, 772, 773, 773, 773, 658, 347, 774, 774, 774, 328, 657, 520, 520, 658, 328, 775, 775, 775, 776, 776, 776, 778, 778, 778, 453, 658, 328, 777, 777, 777, 658, 657, 779, 779, 779, 328, 519, 658, 518, 517, 328, 780, 780, 780, 516, 657, 515, 658, 514, 328, 781, 781, 781, 513, 512, 658, 511, 782, 782, 782, 784, 784, 784, 510, 658, 328, 509, 783, 783, 783, 658, 657, 785, 785, 785, 328, 658, 786, 786, 786, 328, 657, 787, 787, 787, 328, 788, 788, 788, 508, 658, 790, 790, 790, 328, 507, 789, 789, 789, 658, 657, 793, 793, 793, 328, 791, 791, 791, 438, 658, 792, 792, 792, 328, 657, 502, 658, 500, 328, 794, 794, 794, 796, 796, 796, 498, 658, 328, 795, 795, 795, 658, 657, 797, 797, 797, 328, 799, 799, 799, 658, 328, 802, 802, 802, 658, 427, 798, 798, 798, 658, 657, 800, 800, 800, 328, 803, 803, 803, 658, 328, 801, 801, 801, 328, 657, 804, 804, 804, 328, 657, 658, 496, 417, 328, 493, 489, 658, 805, 805, 805, 806, 806, 806, 487, 486, 658, 485, 484, 328, 483, 658, 482, 807, 807, 807, 658, 657, 808, 808, 808, 328, 481, 809, 809, 809, 811, 811, 811, 480, 658, 328, 810, 810, 810, 658, 657, 812, 812, 812, 328, 479, 813, 813, 813, 328, 657, 658, 378, 372, 328, 814, 814, 814, 468, 815, 815, 815, 817, 817, 817, 368, 658, 328, 816, 816, 816, 658, 657, 818, 818, 818, 328, 467, 466, 658, 361, 328, 819, 819, 819, 658, 657, 820, 820, 820, 328, 821, 821, 821, 360, 658, 823, 823, 823, 328, 359, 822, 822, 822, 658, 657, 824, 824, 824, 328, 360, 658, 351, 347, 328, 347, 347, 658, 825, 825, 825, 330, 657, 826, 826, 826, 328, 827, 827, 827, 456, 658, 829, 829, 829, 328, 658, 451, 828, 828, 828, 448, 657, 447, 446, 658, 328, 830, 830, 830, 658, 442, 831, 831, 831, 328, 657, 832, 832, 832, 328, 833, 833, 833, 835, 835, 835, 658, 439, 328, 438, 301, 658, 301, 834, 834, 834, 301, 657, 430, 301, 658, 328, 836, 836, 836, 301, 658, 837, 837, 837, 328, 657, 838, 838, 838, 328, 839, 839, 839, 301, 658, 841, 841, 841, 328, 658, 840, 840, 840, 421, 657, 301, 658, 419, 328, 842, 842, 842, 844, 844, 844, 301, 658, 328, 843, 843, 843, 415, 657, 845, 845, 845, 328, 847, 847, 847, 658, 328, 846, 846, 846, 658, 657, 848, 848, 848, 328, 850, 850, 850, 658, 328, 849, 849, 849, 658, 657, 851, 851, 851, 328, 411, 852, 852, 852, 328, 657, 658, 408, 396, 328, 395, 393, 658, 853, 853, 853, 854, 854, 854, 381, 378, 658, 301, 301, 328, 301, 658, 368, 855, 855, 855, 362, 657, 361, 360, 658, 328, 856, 856, 856, 658, 857, 857, 857, 858, 858, 858, 359, 657, 328, 658, 347, 328, 859, 859, 859, 860, 860, 860, 861, 861, 861, 658, 657, 328, 347, 347, 328, 862, 862, 862, 863, 863, 863, 864, 864, 864, 658, 657, 328, 347, 336, 328, 865, 865, 865, 658, 866, 866, 866, 867, 867, 867, 658, 657, 328, 301, 326, 328, 868, 868, 868, 658, 869, 869, 869, 324, 322, 658, 301, 316, 328, 870, 870, 870, 310, 657, 658, 301, 301, 328, 301, 1054, 658, 871, 871, 871, 872, 872, 872, 1054, 1054, 658, 1054, 1054, 328, 873, 873, 873, 658, 657, 874, 874, 874, 328, 875, 875, 875, 658, 1054, 876, 876, 876, 328, 657, 877, 877, 877, 328, 1054, 1054, 658, 878, 878, 878, 1054, 1054, 879, 879, 879, 328, 657, 1054, 658, 1054, 328, 880, 880, 880, 881, 881, 881, 883, 883, 883, 658, 1054, 328, 1054, 1054, 658, 1054, 882, 882, 882, 1054, 657, 1054, 1054, 658, 328, 884, 884, 884, 658, 1054, 885, 885, 885, 328, 657, 886, 886, 886, 328, 1054, 658, 1054, 887, 887, 887, 889, 889, 889, 1054, 658, 328, 1054, 888, 888, 888, 658, 657, 892, 892, 892, 328, 890, 890, 890, 1054, 658, 891, 891, 891, 328, 657, 895, 895, 895, 328, 893, 893, 893, 1054, 658, 896, 896, 896, 328, 658, 894, 894, 894, 328, 657, 898, 898, 898, 328, 658, 897, 897, 897, 1054, 657, 1054, 658, 1054, 328, 1054, 1054, 658, 1054, 899, 899, 899, 901, 901, 901, 1054, 658, 328, 900, 900, 900, 658, 657, 902, 902, 902, 328, 1054, 903, 903, 903, 328, 657, 1054, 1054, 658, 328, 904, 904, 904, 658, 905, 905, 905, 1054, 658, 906, 906, 906, 328, 657, 907, 907, 907, 328, 908, 908, 908, 909, 909, 909, 658, 657, 328, 1054, 1054, 328, 658, 910, 910, 910, 911, 911, 911, 912, 912, 912, 658, 657, 328, 1054, 1054, 328, 913, 913, 913, 658, 1054, 914, 914, 914, 916, 916, 916, 1054, 658, 328, 915, 915, 915, 658, 657, 917, 917, 917, 328, 1054, 658, 1054, 1054, 328, 918, 918, 918, 1054, 657, 1054, 658, 1054, 328, 919, 919, 919, 658, 1054, 920, 920, 920, 922, 922, 922, 1054, 658, 328, 921, 921, 921, 1054, 657, 1054, 658, 1054, 328, 923, 923, 923, 658, 1054, 924, 924, 924, 328, 657, 925, 925, 925, 328, 926, 926, 926, 658, 1054, 927, 927, 927, 328, 657, 1054, 1054, 658, 328, 928, 928, 928, 929, 929, 929, 658, 931, 931, 931, 1054, 328, 658, 930, 930, 930, 1054, 657, 934, 934, 934, 328, 932, 932, 932, 1054, 658, 937, 937, 937, 328, 658, 1054, 933, 933, 933, 1054, 657, 1054, 1054, 658, 328, 935, 935, 935, 1054, 938, 938, 938, 658, 328, 936, 936, 936, 328, 657, 658, 1054, 1054, 328, 1054, 1054, 658, 1054, 939, 939, 939, 658, 657, 940, 940, 940, 328, 941, 941, 941, 658, 943, 943, 943, 1054, 328, 658, 942, 942, 942, 1054, 657, 944, 944, 944, 328, 1054, 945, 945, 945, 328, 657, 1054, 1054, 658, 328, 946, 946, 946, 1054, 947, 947, 947, 949, 949, 949, 1054, 658, 328, 948, 948, 948, 658, 657, 950, 950, 950, 328, 1054, 1054, 658, 1054, 328, 951, 951, 951, 658, 657, 952, 952, 952, 328, 953, 953, 953, 1054, 658, 955, 955, 955, 328, 1054, 954, 954, 954, 658, 657, 956, 956, 956, 328, 1054, 658, 1054, 1054, 328, 1054, 1054, 658, 957, 957, 957, 1054, 657, 958, 958, 958, 328, 959, 959, 959, 1054, 658, 961, 961, 961, 328, 658, 1054, 960, 960, 960, 1054, 657, 1054, 1054, 658, 328, 962, 962, 962, 658, 657, 963, 963, 963, 328, 964, 964, 964, 1054, 657, 965, 965, 965, 328, 1054, 1054, 658, 1054, 966, 966, 966, 658, 657, 967, 967, 967, 328, 968, 968, 968, 658, 657, 969, 969, 969, 328, 658, 1054, 970, 970, 970, 1054, 657, 1054, 1054, 658, 328, 971, 971, 971, 658, 973, 973, 973, 658, 1054, 972, 972, 972, 658, 657, 974, 974, 974, 328, 1054, 1054, 658, 975, 975, 975, 1054, 658, 976, 976, 976, 658, 977, 977, 977, 1054, 658, 978, 978, 978, 1054, 1054, 658, 979, 979, 979, 980, 980, 980, 1054, 1054, 658, 981, 981, 981, 658, 982, 982, 982, 1054, 658, 983, 983, 983, 1054, 658, 984, 984, 984, 985, 985, 985, 658, 986, 986, 986, 1054, 658, 987, 987, 987, 658, 988, 988, 988, 1054, 658, 989, 989, 989, 1054, 1054, 658, 1054, 1054, 658, 990, 990, 990, 1054, 1054, 658, 991, 991, 991, 658, 992, 992, 992, 1054, 658, 993, 993, 993, 1054, 658, 1054, 1054, 658, 994, 994, 994, 658, 995, 995, 995, 1054, 658, 996, 996, 996, 658, 997, 997, 997, 1054, 658, 998, 998, 998, 999, 999, 999, 1054, 1054, 658, 1000, 1000, 1000, 1054, 1054, 658, 1001, 1001, 1001, 658, 1002, 1002, 1002, 1054, 658, 1003, 1003, 1003, 1004, 1004, 1004, 1054, 658, 1005, 1005, 1005, 658, 1006, 1006, 1006, 1054, 658, 1007, 1007, 1007, 658, 1008, 1008, 1008, 1054, 658, 1054, 1054, 658, 1009, 1009, 1009, 1054, 1054, 658, 1010, 1010, 1010, 1054, 1054, 658, 1011, 1011, 1011, 658, 1012, 1012, 1012, 1054, 658, 1054, 1054, 658, 1013, 1013, 1013, 1054, 658, 1014, 1014, 1014, 658, 1015, 1015, 1015, 1054, 658, 1016, 1016, 1016, 658, 1017, 1017, 1017, 1018, 1018, 1018, 1054, 658, 1019, 1019, 1019, 1054, 1054, 658, 1020, 1020, 1020, 1054, 1054, 658, 1021, 1021, 1021, 658, 1022, 1022, 1022, 1023, 1023, 1023, 1054, 658, 1024, 1024, 1024, 1054, 658, 1025, 1025, 1025, 658, 1026, 1026, 1026, 1054, 658, 1027, 1027, 1027, 658, 1054, 1054, 658, 1028, 1028, 1028, 1054, 658, 1029, 1029, 1029, 1054, 1054, 658, 1030, 1030, 1030, 1054, 1054, 658, 1031, 1031, 1031, 658, 1054, 1054, 658, 1032, 1032, 1032, 1054, 658, 1033, 1033, 1033, 1054, 658, 1034, 1034, 1034, 658, 1035, 1035, 1035, 1054, 658, 1036, 1036, 1036, 1037, 1037, 1037, 658, 1038, 1038, 1038, 1054, 658, 1039, 1039, 1039, 1054, 1054, 658, 1040, 1040, 1040, 1054, 1054, 658, 1041, 1041, 1041, 1042, 1042, 1042, 658, 1043, 1043, 1043, 1054, 658, 1044, 1044, 1044, 1054, 658, 1045, 1045, 1045, 658, 1046, 1046, 1046, 1054, 658, 1054, 1054, 658, 1047, 1047, 1047, 658, 1048, 1048, 1048, 1054, 658, 1049, 1049, 1049, 1054, 1054, 658, 1050, 1050, 1050, 1054, 1054, 658, 1054, 1054, 658, 1051, 1051, 1051, 658, 1052, 1052, 1052, 1054, 658, 1053, 1053, 1053, 1054, 658, 977, 977, 977, 658, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 658, 1054, 1054, 1054, 658, 1054, 1054, 1054, 1054, 658, 1054, 1054, 1054, 1054, 1054, 658, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 658, 1054, 1054, 1054, 658, 1054, 1054, 1054, 1054, 658, 1054, 1054, 1054, 1054, 658, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 105, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 126, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 133, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 140, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 169, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 176, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 205, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 213, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 221, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 265, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 272, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 302, 323, 323, 323, 1054, 323, 323, 323, 323, 323, 323, 323, 323, 1054, 323, 323, 323, 323, 323, 325, 325, 325, 1054, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 325, 329, 329, 329, 1054, 1054, 1054, 329, 1054, 1054, 1054, 1054, 329, 1054, 1054, 329, 333, 333, 333, 1054, 1054, 333, 1054, 333, 333, 333, 333, 333, 333, 333, 333, 333, 333, 337, 337, 337, 1054, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, 338, 338, 338, 1054, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, 345, 1054, 1054, 1054, 1054, 1054, 345, 1054, 1054, 1054, 1054, 345, 1054, 1054, 345, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 346, 356, 356, 1054, 1054, 1054, 1054, 356, 1054, 1054, 1054, 1054, 356, 1054, 1054, 356, 365, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 365, 1054, 365, 1054, 1054, 365, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 374, 377, 1054, 377, 1054, 377, 377, 377, 377, 377, 1054, 377, 377, 1054, 377, 377, 1054, 377, 392, 392, 392, 392, 392, 392, 392, 392, 392, 1054, 392, 392, 392, 392, 392, 392, 392, 392, 400, 400, 400, 1054, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 1054, 400, 401, 401, 401, 1054, 401, 401, 401, 401, 401, 401, 401, 401, 1054, 401, 401, 1054, 401, 402, 1054, 402, 1054, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 402, 1054, 402, 407, 1054, 407, 1054, 407, 407, 407, 407, 407, 1054, 407, 407, 407, 407, 407, 407, 407, 407, 412, 1054, 412, 1054, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 412, 425, 425, 425, 1054, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 425, 429, 429, 429, 1054, 429, 429, 429, 1054, 429, 429, 429, 429, 429, 429, 429, 429, 429, 429, 433, 433, 433, 1054, 433, 433, 433, 433, 433, 433, 433, 433, 433, 433, 433, 433, 433, 433, 434, 434, 1054, 434, 1054, 1054, 434, 435, 1054, 435, 435, 1054, 435, 1054, 435, 1054, 435, 437, 437, 437, 1054, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 437, 457, 457, 457, 1054, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 457, 497, 497, 497, 1054, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, 499, 499, 499, 1054, 499, 499, 499, 499, 499, 499, 499, 499, 499, 499, 499, 499, 499, 499, 501, 501, 501, 1054, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 501, 547, 547, 547, 1054, 547, 547, 547, 547, 547, 547, 547, 547, 547, 547, 547, 547, 547, 601, 601, 601, 1054, 601, 601, 601, 601, 601, 601, 601, 601, 601, 601, 601, 601, 601, 683, 1054, 1054, 1054, 683, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 683, 1054, 683, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 715, 1054, 715, 715, 1054, 715, 65, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054 } ; static yyconst short int yy_chk[4417] = { 0, 0, 1, 0, 1, 1, 2, 0, 2, 2, 3, 133, 3, 3, 121, 121, 9, 1, 9, 9, 10, 2, 10, 10, 1, 3, 70, 133, 2, 79, 70, 9, 3, 79, 13, 10, 13, 13, 9, 13, 87, 91, 10, 91, 87, 27, 92, 27, 27, 13, 75, 92, 92, 99, 1, 75, 13, 99, 2, 977, 27, 13, 3, 4, 4, 4, 4, 27, 9, 4, 146, 146, 10, 75, 75, 81, 109, 102, 4, 102, 109, 167, 167, 81, 959, 4, 13, 4, 4, 118, 81, 81, 134, 118, 120, 120, 120, 27, 81, 81, 129, 139, 120, 149, 129, 148, 148, 163, 134, 139, 173, 163, 149, 148, 173, 4, 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, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 14, 135, 14, 14, 15, 14, 15, 15, 16, 15, 16, 16, 211, 16, 211, 14, 137, 135, 136, 15, 138, 145, 14, 16, 136, 15, 15, 14, 136, 16, 16, 144, 137, 137, 136, 154, 138, 157, 178, 751, 144, 145, 157, 178, 144, 182, 190, 199, 154, 182, 190, 199, 14, 203, 204, 204, 15, 203, 234, 234, 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, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 19, 205, 19, 19, 20, 208, 20, 20, 28, 28, 28, 28, 744, 209, 28, 19, 205, 209, 210, 20, 208, 212, 19, 28, 218, 224, 20, 19, 218, 224, 28, 20, 338, 210, 231, 241, 212, 252, 231, 241, 210, 252, 260, 268, 270, 270, 260, 268, 338, 280, 288, 295, 19, 280, 288, 295, 20, 21, 21, 743, 28, 742, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 29, 306, 29, 29, 30, 311, 30, 30, 31, 306, 31, 31, 311, 366, 32, 29, 32, 32, 366, 30, 303, 320, 29, 31, 313, 303, 30, 313, 320, 32, 31, 35, 313, 35, 35, 363, 32, 326, 340, 122, 122, 122, 35, 303, 303, 326, 35, 122, 363, 327, 327, 327, 29, 35, 340, 313, 30, 327, 341, 735, 31, 734, 36, 313, 36, 36, 32, 33, 343, 33, 33, 345, 322, 36, 341, 322, 343, 36, 33, 345, 322, 733, 33, 35, 36, 39, 122, 39, 39, 33, 33, 329, 329, 329, 33, 353, 353, 357, 400, 329, 39, 459, 40, 322, 40, 40, 357, 39, 39, 459, 375, 322, 39, 400, 36, 375, 732, 40, 399, 33, 34, 491, 34, 34, 40, 40, 332, 332, 332, 40, 41, 34, 41, 41, 332, 34, 491, 39, 365, 399, 731, 41, 34, 34, 463, 41, 42, 34, 42, 42, 1074, 365, 41, 1074, 40, 479, 43, 42, 43, 43, 463, 42, 399, 479, 44, 730, 44, 44, 42, 500, 332, 43, 34, 37, 517, 37, 37, 500, 43, 44, 502, 502, 41, 522, 37, 729, 44, 51, 37, 51, 51, 522, 51, 356, 356, 37, 37, 722, 42, 721, 37, 356, 51, 550, 550, 438, 438, 438, 43, 51, 517, 537, 537, 537, 51, 720, 44, 719, 52, 305, 52, 52, 438, 52, 718, 37, 38, 305, 38, 38, 460, 460, 460, 52, 305, 305, 308, 38, 460, 51, 52, 38, 305, 305, 308, 52, 717, 508, 38, 38, 508, 308, 308, 38, 438, 508, 716, 714, 516, 308, 308, 516, 713, 523, 523, 523, 516, 549, 561, 570, 52, 523, 570, 712, 702, 549, 561, 570, 38, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 47, 49, 503, 503, 503, 573, 573, 573, 701, 610, 461, 461, 461, 573, 558, 49, 49, 610, 461, 503, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 49, 53, 461, 53, 53, 54, 472, 54, 54, 53, 558, 503, 700, 54, 545, 545, 53, 699, 567, 545, 54, 545, 545, 53, 698, 472, 545, 54, 53, 612, 545, 545, 54, 57, 650, 57, 57, 612, 697, 504, 504, 504, 650, 696, 505, 505, 505, 695, 57, 472, 576, 576, 576, 53, 567, 57, 504, 54, 55, 55, 57, 505, 694, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 55, 58, 57, 58, 58, 504, 583, 583, 583, 61, 505, 61, 61, 679, 61, 62, 58, 62, 62, 607, 62, 679, 692, 58, 61, 584, 584, 584, 58, 691, 62, 61, 524, 524, 524, 690, 61, 62, 649, 703, 524, 649, 62, 552, 552, 552, 649, 703, 553, 553, 553, 689, 688, 58, 59, 607, 59, 59, 687, 59, 552, 61, 59, 59, 59, 553, 686, 62, 678, 59, 554, 554, 554, 677, 524, 676, 59, 59, 603, 603, 603, 574, 574, 574, 604, 604, 604, 554, 654, 574, 613, 654, 552, 675, 613, 603, 654, 553, 619, 619, 619, 604, 674, 617, 617, 617, 59, 60, 613, 60, 60, 617, 60, 673, 652, 60, 60, 60, 652, 554, 574, 672, 60, 626, 626, 626, 671, 603, 1075, 60, 60, 1075, 652, 604, 628, 628, 628, 655, 655, 655, 684, 684, 684, 1086, 1095, 655, 1086, 1095, 684, 709, 709, 709, 1096, 1097, 670, 1096, 1097, 709, 669, 60, 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, 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, 63, 63, 63, 63, 192, 668, 667, 666, 192, 605, 605, 605, 192, 192, 192, 1099, 665, 192, 1099, 192, 192, 664, 1112, 663, 192, 1112, 605, 662, 192, 192, 324, 728, 728, 728, 324, 324, 324, 661, 660, 324, 659, 324, 726, 726, 726, 324, 324, 324, 336, 657, 726, 648, 336, 336, 336, 644, 643, 336, 605, 336, 739, 739, 739, 336, 336, 336, 342, 342, 739, 642, 342, 342, 342, 641, 640, 342, 639, 342, 638, 637, 728, 342, 342, 342, 350, 636, 350, 741, 741, 741, 350, 350, 350, 635, 634, 350, 633, 350, 748, 748, 748, 350, 350, 350, 381, 632, 748, 631, 381, 381, 381, 630, 629, 381, 625, 381, 645, 645, 645, 381, 381, 381, 382, 382, 624, 382, 623, 382, 622, 382, 382, 621, 620, 645, 382, 616, 741, 615, 382, 382, 395, 750, 750, 750, 395, 395, 395, 614, 608, 395, 606, 395, 646, 646, 646, 395, 395, 395, 405, 647, 647, 647, 405, 602, 601, 645, 405, 405, 405, 646, 600, 405, 599, 405, 598, 597, 647, 405, 405, 405, 411, 596, 595, 594, 411, 411, 411, 593, 592, 411, 750, 411, 755, 755, 755, 411, 411, 411, 415, 591, 755, 646, 415, 415, 415, 590, 589, 415, 647, 415, 588, 587, 586, 415, 415, 415, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 560, 618, 618, 618, 585, 618, 656, 656, 656, 618, 656, 680, 680, 680, 656, 681, 681, 681, 682, 682, 682, 685, 685, 685, 582, 685, 581, 580, 680, 685, 579, 578, 681, 577, 575, 682, 705, 705, 705, 706, 706, 706, 707, 707, 707, 711, 711, 711, 572, 711, 618, 568, 565, 705, 564, 656, 706, 563, 562, 707, 680, 710, 710, 710, 681, 710, 559, 682, 555, 710, 685, 547, 723, 723, 723, 724, 724, 724, 725, 725, 725, 546, 727, 727, 727, 705, 727, 544, 706, 723, 727, 707, 724, 543, 711, 725, 736, 736, 736, 737, 737, 737, 738, 738, 738, 542, 541, 740, 740, 740, 710, 740, 540, 736, 539, 740, 737, 538, 536, 738, 535, 723, 534, 533, 724, 532, 531, 725, 530, 529, 527, 727, 745, 745, 745, 746, 746, 746, 747, 747, 747, 526, 749, 749, 749, 736, 749, 519, 737, 745, 749, 738, 746, 518, 515, 747, 740, 752, 752, 752, 753, 753, 753, 754, 754, 754, 514, 756, 756, 756, 513, 756, 512, 511, 752, 756, 510, 753, 507, 501, 754, 745, 499, 497, 746, 496, 493, 747, 757, 757, 757, 749, 758, 758, 758, 759, 759, 759, 489, 759, 758, 487, 486, 759, 485, 484, 752, 483, 482, 753, 481, 480, 754, 760, 760, 760, 756, 761, 761, 761, 762, 762, 762, 478, 762, 761, 477, 476, 762, 763, 763, 763, 764, 764, 764, 475, 474, 757, 473, 471, 764, 765, 765, 765, 759, 765, 766, 766, 766, 765, 767, 767, 767, 768, 768, 768, 470, 768, 767, 468, 467, 768, 760, 769, 769, 769, 770, 770, 770, 762, 465, 771, 771, 771, 770, 771, 458, 457, 763, 771, 772, 772, 772, 773, 773, 773, 775, 775, 775, 454, 765, 773, 774, 774, 774, 766, 774, 776, 776, 776, 774, 453, 768, 451, 450, 776, 777, 777, 777, 449, 777, 448, 769, 447, 777, 778, 778, 778, 446, 445, 771, 444, 779, 779, 779, 781, 781, 781, 442, 772, 779, 441, 780, 780, 780, 775, 780, 782, 782, 782, 780, 774, 783, 783, 783, 782, 783, 784, 784, 784, 783, 785, 785, 785, 440, 777, 787, 787, 787, 785, 439, 786, 786, 786, 778, 786, 790, 790, 790, 786, 788, 788, 788, 437, 781, 789, 789, 789, 788, 789, 436, 780, 430, 789, 791, 791, 791, 793, 793, 793, 429, 783, 791, 792, 792, 792, 784, 792, 794, 794, 794, 792, 796, 796, 796, 787, 794, 799, 799, 799, 786, 428, 795, 795, 795, 790, 795, 797, 797, 797, 795, 800, 800, 800, 789, 797, 798, 798, 798, 800, 798, 801, 801, 801, 798, 801, 793, 419, 418, 801, 406, 398, 792, 802, 802, 802, 803, 803, 803, 391, 390, 796, 389, 388, 803, 387, 799, 386, 804, 804, 804, 795, 804, 805, 805, 805, 804, 385, 806, 806, 806, 808, 808, 808, 384, 798, 806, 807, 807, 807, 801, 807, 809, 809, 809, 807, 383, 810, 810, 810, 809, 810, 802, 379, 373, 810, 811, 811, 811, 368, 812, 812, 812, 814, 814, 814, 367, 804, 812, 813, 813, 813, 805, 813, 815, 815, 815, 813, 364, 362, 808, 361, 815, 816, 816, 816, 807, 816, 817, 817, 817, 816, 818, 818, 818, 360, 810, 820, 820, 820, 818, 359, 819, 819, 819, 811, 819, 821, 821, 821, 819, 358, 814, 352, 349, 821, 348, 346, 813, 822, 822, 822, 331, 822, 823, 823, 823, 822, 824, 824, 824, 325, 816, 826, 826, 826, 824, 817, 321, 825, 825, 825, 316, 825, 315, 314, 820, 825, 827, 827, 827, 819, 312, 828, 828, 828, 827, 828, 829, 829, 829, 828, 830, 830, 830, 832, 832, 832, 822, 310, 830, 307, 296, 823, 289, 831, 831, 831, 281, 831, 277, 269, 826, 831, 833, 833, 833, 261, 825, 834, 834, 834, 833, 834, 835, 835, 835, 834, 836, 836, 836, 253, 828, 838, 838, 838, 836, 829, 837, 837, 837, 244, 837, 242, 832, 235, 837, 839, 839, 839, 841, 841, 841, 232, 831, 839, 840, 840, 840, 225, 840, 842, 842, 842, 840, 844, 844, 844, 834, 842, 843, 843, 843, 835, 843, 845, 845, 845, 843, 847, 847, 847, 838, 845, 846, 846, 846, 837, 846, 848, 848, 848, 846, 219, 849, 849, 849, 848, 849, 841, 217, 202, 849, 200, 198, 840, 850, 850, 850, 851, 851, 851, 191, 189, 844, 183, 174, 851, 164, 843, 161, 852, 852, 852, 153, 852, 152, 151, 847, 852, 853, 853, 853, 846, 854, 854, 854, 855, 855, 855, 150, 855, 854, 849, 147, 855, 856, 856, 856, 857, 857, 857, 858, 858, 858, 850, 858, 857, 143, 141, 858, 859, 859, 859, 860, 860, 860, 861, 861, 861, 852, 861, 860, 140, 130, 861, 862, 862, 862, 853, 863, 863, 863, 864, 864, 864, 855, 864, 863, 119, 117, 864, 865, 865, 865, 856, 866, 866, 866, 110, 103, 858, 100, 93, 866, 867, 867, 867, 90, 867, 859, 88, 80, 867, 71, 65, 861, 868, 868, 868, 869, 869, 869, 0, 0, 862, 0, 0, 869, 870, 870, 870, 864, 870, 871, 871, 871, 870, 872, 872, 872, 865, 0, 873, 873, 873, 872, 873, 874, 874, 874, 873, 0, 0, 867, 875, 875, 875, 0, 0, 876, 876, 876, 875, 876, 0, 868, 0, 876, 877, 877, 877, 878, 878, 878, 880, 880, 880, 870, 0, 878, 0, 0, 871, 0, 879, 879, 879, 0, 879, 0, 0, 873, 879, 881, 881, 881, 874, 0, 882, 882, 882, 881, 882, 883, 883, 883, 882, 0, 876, 0, 884, 884, 884, 886, 886, 886, 0, 877, 884, 0, 885, 885, 885, 880, 885, 889, 889, 889, 885, 887, 887, 887, 0, 879, 888, 888, 888, 887, 888, 892, 892, 892, 888, 890, 890, 890, 0, 882, 893, 893, 893, 890, 883, 891, 891, 891, 893, 891, 895, 895, 895, 891, 886, 894, 894, 894, 0, 894, 0, 885, 0, 894, 0, 0, 889, 0, 896, 896, 896, 898, 898, 898, 0, 888, 896, 897, 897, 897, 892, 897, 899, 899, 899, 897, 0, 900, 900, 900, 899, 900, 0, 0, 891, 900, 901, 901, 901, 895, 902, 902, 902, 0, 894, 903, 903, 903, 902, 903, 904, 904, 904, 903, 905, 905, 905, 906, 906, 906, 898, 906, 905, 0, 0, 906, 897, 907, 907, 907, 908, 908, 908, 909, 909, 909, 900, 909, 908, 0, 0, 909, 910, 910, 910, 901, 0, 911, 911, 911, 913, 913, 913, 0, 903, 911, 912, 912, 912, 904, 912, 914, 914, 914, 912, 0, 906, 0, 0, 914, 915, 915, 915, 0, 915, 0, 907, 0, 915, 916, 916, 916, 909, 0, 917, 917, 917, 919, 919, 919, 0, 910, 917, 918, 918, 918, 0, 918, 0, 913, 0, 918, 920, 920, 920, 912, 0, 921, 921, 921, 920, 921, 922, 922, 922, 921, 923, 923, 923, 915, 0, 924, 924, 924, 923, 924, 0, 0, 916, 924, 925, 925, 925, 926, 926, 926, 919, 928, 928, 928, 0, 926, 918, 927, 927, 927, 0, 927, 931, 931, 931, 927, 929, 929, 929, 0, 921, 934, 934, 934, 929, 922, 0, 930, 930, 930, 0, 930, 0, 0, 924, 930, 932, 932, 932, 0, 935, 935, 935, 925, 932, 933, 933, 933, 935, 933, 928, 0, 0, 933, 0, 0, 927, 0, 936, 936, 936, 931, 936, 937, 937, 937, 936, 938, 938, 938, 934, 940, 940, 940, 0, 938, 930, 939, 939, 939, 0, 939, 941, 941, 941, 939, 0, 942, 942, 942, 941, 942, 0, 0, 933, 942, 943, 943, 943, 0, 944, 944, 944, 946, 946, 946, 0, 936, 944, 945, 945, 945, 937, 945, 947, 947, 947, 945, 0, 0, 940, 0, 947, 948, 948, 948, 939, 948, 949, 949, 949, 948, 950, 950, 950, 0, 942, 952, 952, 952, 950, 0, 951, 951, 951, 943, 951, 953, 953, 953, 951, 0, 946, 0, 0, 953, 0, 0, 945, 954, 954, 954, 0, 954, 955, 955, 955, 954, 956, 956, 956, 0, 948, 958, 958, 958, 956, 949, 0, 957, 957, 957, 0, 957, 0, 0, 952, 957, 960, 960, 960, 951, 960, 961, 961, 961, 960, 962, 962, 962, 0, 962, 963, 963, 963, 962, 0, 0, 954, 0, 964, 964, 964, 955, 964, 965, 965, 965, 964, 966, 966, 966, 958, 966, 967, 967, 967, 966, 957, 0, 968, 968, 968, 0, 968, 0, 0, 960, 968, 969, 969, 969, 961, 971, 971, 971, 962, 0, 970, 970, 970, 963, 970, 972, 972, 972, 970, 0, 0, 964, 973, 973, 973, 0, 965, 974, 974, 974, 966, 975, 975, 975, 0, 967, 976, 976, 976, 0, 0, 968, 978, 978, 978, 979, 979, 979, 0, 0, 969, 980, 980, 980, 971, 981, 981, 981, 0, 970, 982, 982, 982, 0, 972, 983, 983, 983, 984, 984, 984, 973, 985, 985, 985, 0, 974, 986, 986, 986, 975, 987, 987, 987, 0, 976, 988, 988, 988, 0, 0, 978, 0, 0, 979, 989, 989, 989, 0, 0, 980, 990, 990, 990, 981, 991, 991, 991, 0, 982, 992, 992, 992, 0, 983, 0, 0, 984, 993, 993, 993, 985, 994, 994, 994, 0, 986, 995, 995, 995, 987, 996, 996, 996, 0, 988, 997, 997, 997, 998, 998, 998, 0, 0, 989, 999, 999, 999, 0, 0, 990, 1000, 1000, 1000, 991, 1001, 1001, 1001, 0, 992, 1002, 1002, 1002, 1003, 1003, 1003, 0, 993, 1004, 1004, 1004, 994, 1005, 1005, 1005, 0, 995, 1006, 1006, 1006, 996, 1007, 1007, 1007, 0, 997, 0, 0, 998, 1008, 1008, 1008, 0, 0, 999, 1009, 1009, 1009, 0, 0, 1000, 1010, 1010, 1010, 1001, 1011, 1011, 1011, 0, 1002, 0, 0, 1003, 1012, 1012, 1012, 0, 1004, 1013, 1013, 1013, 1005, 1014, 1014, 1014, 0, 1006, 1015, 1015, 1015, 1007, 1016, 1016, 1016, 1017, 1017, 1017, 0, 1008, 1018, 1018, 1018, 0, 0, 1009, 1019, 1019, 1019, 0, 0, 1010, 1020, 1020, 1020, 1011, 1021, 1021, 1021, 1022, 1022, 1022, 0, 1012, 1023, 1023, 1023, 0, 1013, 1024, 1024, 1024, 1014, 1025, 1025, 1025, 0, 1015, 1026, 1026, 1026, 1016, 0, 0, 1017, 1027, 1027, 1027, 0, 1018, 1028, 1028, 1028, 0, 0, 1019, 1029, 1029, 1029, 0, 0, 1020, 1030, 1030, 1030, 1021, 0, 0, 1022, 1031, 1031, 1031, 0, 1023, 1032, 1032, 1032, 0, 1024, 1033, 1033, 1033, 1025, 1034, 1034, 1034, 0, 1026, 1035, 1035, 1035, 1036, 1036, 1036, 1027, 1037, 1037, 1037, 0, 1028, 1038, 1038, 1038, 0, 0, 1029, 1039, 1039, 1039, 0, 0, 1030, 1040, 1040, 1040, 1041, 1041, 1041, 1031, 1042, 1042, 1042, 0, 1032, 1043, 1043, 1043, 0, 1033, 1044, 1044, 1044, 1034, 1045, 1045, 1045, 0, 1035, 0, 0, 1036, 1046, 1046, 1046, 1037, 1047, 1047, 1047, 0, 1038, 1048, 1048, 1048, 0, 0, 1039, 1049, 1049, 1049, 0, 0, 1040, 0, 0, 1041, 1050, 1050, 1050, 1042, 1051, 1051, 1051, 0, 1043, 1052, 1052, 1052, 0, 1044, 1053, 1053, 1053, 1045, 0, 0, 0, 0, 0, 0, 0, 1046, 0, 0, 0, 1047, 0, 0, 0, 0, 1048, 0, 0, 0, 0, 0, 1049, 0, 0, 0, 0, 0, 0, 0, 0, 1050, 0, 0, 0, 1051, 0, 0, 0, 0, 1052, 0, 0, 0, 0, 1053, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1055, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1057, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1058, 1059, 1059, 1059, 1059, 1059, 1059, 1059, 1059, 1059, 1059, 1059, 1059, 1059, 1059, 1059, 1059, 1059, 1059, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1060, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1061, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1062, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1063, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1064, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1065, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1066, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1067, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1068, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1069, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1070, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1071, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1072, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1073, 1076, 1076, 1076, 0, 1076, 1076, 1076, 1076, 1076, 1076, 1076, 1076, 0, 1076, 1076, 1076, 1076, 1076, 1077, 1077, 1077, 0, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1077, 1078, 1078, 1078, 0, 0, 0, 1078, 0, 0, 0, 0, 1078, 0, 0, 1078, 1079, 1079, 1079, 0, 0, 1079, 0, 1079, 1079, 1079, 1079, 1079, 1079, 1079, 1079, 1079, 1079, 1080, 1080, 1080, 0, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1080, 1081, 1081, 1081, 0, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1081, 1082, 0, 0, 0, 0, 0, 1082, 0, 0, 0, 0, 1082, 0, 0, 1082, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1083, 1084, 1084, 0, 0, 0, 0, 1084, 0, 0, 0, 0, 1084, 0, 0, 1084, 1085, 0, 0, 0, 0, 0, 0, 0, 0, 1085, 0, 1085, 0, 0, 1085, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1087, 1088, 0, 1088, 0, 1088, 1088, 1088, 1088, 1088, 0, 1088, 1088, 0, 1088, 1088, 0, 1088, 1089, 1089, 1089, 1089, 1089, 1089, 1089, 1089, 1089, 0, 1089, 1089, 1089, 1089, 1089, 1089, 1089, 1089, 1090, 1090, 1090, 0, 1090, 1090, 1090, 1090, 1090, 1090, 1090, 1090, 1090, 1090, 1090, 0, 1090, 1091, 1091, 1091, 0, 1091, 1091, 1091, 1091, 1091, 1091, 1091, 1091, 0, 1091, 1091, 0, 1091, 1092, 0, 1092, 0, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 1092, 0, 1092, 1093, 0, 1093, 0, 1093, 1093, 1093, 1093, 1093, 0, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1093, 1094, 0, 1094, 0, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1094, 1098, 1098, 1098, 0, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1098, 1100, 1100, 1100, 0, 1100, 1100, 1100, 0, 1100, 1100, 1100, 1100, 1100, 1100, 1100, 1100, 1100, 1100, 1101, 1101, 1101, 0, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1101, 1102, 1102, 0, 1102, 0, 0, 1102, 1103, 0, 1103, 1103, 0, 1103, 0, 1103, 0, 1103, 1104, 1104, 1104, 0, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1104, 1105, 1105, 1105, 0, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1105, 1106, 1106, 1106, 0, 1106, 1106, 1106, 1106, 1106, 1106, 1106, 1106, 1106, 1106, 1106, 1106, 1106, 1107, 1107, 1107, 0, 1107, 1107, 1107, 1107, 1107, 1107, 1107, 1107, 1107, 1107, 1107, 1107, 1107, 1107, 1108, 1108, 1108, 0, 1108, 1108, 1108, 1108, 1108, 1108, 1108, 1108, 1108, 1108, 1108, 1108, 1108, 1108, 1109, 1109, 1109, 0, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1109, 1110, 1110, 1110, 0, 1110, 1110, 1110, 1110, 1110, 1110, 1110, 1110, 1110, 1110, 1110, 1110, 1110, 1111, 0, 0, 0, 1111, 0, 0, 0, 0, 0, 0, 0, 1111, 0, 1111, 1113, 1113, 1113, 1113, 1113, 1113, 1113, 1113, 1113, 1113, 1113, 1113, 1113, 0, 1113, 1113, 0, 1113, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054, 1054 } ; 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 "pre.l" #define INITIAL 0 /****************************************************************************** * * * * Copyright (C) 1997-2007 by 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. * */ #line 19 "pre.l" /* * includes */ #include #include #include #include "qtbc.h" #include #include #include #include #include #include #include #include #include "pre.h" #include "constexp.h" #include "define.h" #include "doxygen.h" #include "message.h" #include "util.h" #include "defargs.h" #include "debug.h" #include "bufstr.h" #include "portable.h" #define YY_NEVER_INTERACTIVE 1 struct FileState { int lineNr; FILE *filePtr; YY_BUFFER_STATE bufState; QCString fileName; }; /* ----------------------------------------------------------------- * * scanner's state */ static int g_yyLineNr = 1; static QCString g_yyFileName; static FileDef *g_yyFileDef; static FileDef *g_inputFileDef; static int g_ifcount = 0; static QStrList *g_pathList = 0; static QStack g_includeStack; static QDict *g_argDict; static int g_defArgs = -1; static QCString g_defName; static QCString g_defText; static QCString g_defLitText; static QCString g_defArgsStr; static bool g_defVarArgs; static int g_level; static int g_lastCContext; static int g_lastCPPContext; static QArray g_levelGuard; static BufStr *g_outputBuf; static int g_roundCount; static bool g_quoteArg; static DefineDict *g_fileDefineDict; static DefineDict *g_expandedDict; static int g_findDefArgContext; static QCString g_lastGuardName; static QCString g_incName; static QCString g_guardExpr; static int g_curlyCount; static bool g_nospaces; // add extra spaces during macro expansion static bool g_macroExpansion; // from the configuration static bool g_expandOnlyPredef; // from the configuration static int g_commentCount; static bool g_insideComment; static bool g_isImported; static QCString g_blockName; static int g_condCtx; static bool g_skip; static QStack g_condStack; static bool g_lexInit = FALSE; DefineDict* getFileDefineDict() { return g_fileDefineDict; } static void setFileName(const char *name) { bool ambig; g_yyFileName=name; g_yyFileDef=findFileDef(Doxygen::inputNameDict,g_yyFileName,ambig); if (g_yyFileDef && g_yyFileDef->isReference()) g_yyFileDef=0; } static void incrLevel() { g_level++; g_levelGuard.resize(g_level); g_levelGuard[g_level-1]=FALSE; //printf("%s line %d: incrLevel %d\n",g_yyFileName.data(),g_yyLineNr,g_level); } static void decrLevel() { //printf("%s line %d: decrLevel %d\n",g_yyFileName.data(),g_yyLineNr,g_level); if (g_level > 0) { g_level--; g_levelGuard.resize(g_level); } else { err("%s:%d: Error: More #endif's than #if's found.\n", g_yyFileName.data(),g_yyLineNr); } } static bool otherCaseDone() { if (g_level==0) { err("%s:%d: Error: Found an #else without a preceding #if.\n", g_yyFileName.data(),g_yyLineNr); return TRUE; } else { return g_levelGuard[g_level-1]; } } static void setCaseDone(bool value) { g_levelGuard[g_level-1]=value; } static Define *isDefined(const char *name) { if (name) { Define *def; //if ((def=fileDefineCache->findDefine(g_yyFileName,name)) && !def->undef) // return def; if ((def=g_fileDefineDict->find(name)) && !def->undef) return def; } return 0; } static FILE *checkAndOpenFile(const QCString &absName) { FILE *f = 0; //printf("checkAndOpenFile(%s)\n",absName.data()); QFileInfo fi(absName); if (fi.exists() && fi.isFile()) { // check include stack for absFileName QStack tmpStack; g_includeStack.setAutoDelete(FALSE); FileState *fs; bool alreadyIncluded=FALSE; while ((fs=g_includeStack.pop())) { if (fs->fileName==absName) alreadyIncluded=TRUE; tmpStack.push(fs); } while ((fs=tmpStack.pop())) { g_includeStack.push(fs); } g_includeStack.setAutoDelete(TRUE); if (alreadyIncluded) return 0; QCString filterName = getFileFilter(absName); if (!filterName.isEmpty()) { QCString cmd = filterName+" \""+absName+"\""; f=portable_popen(cmd,"r"); if (!f) err("Error: could not execute filter %s\n",cmd.data()); } else { f=fopen(absName,"r"); if (!f) err("Error: could not open file %s for reading\n",absName.data()); } } return f; } static FILE *findFile(const char *fileName,bool localInclude) { if (localInclude && g_yyFileDef) { QCString absName = g_yyFileDef->getPath()+"/"+fileName; FILE *f = checkAndOpenFile(absName); if (f) { setFileName(absName); g_yyLineNr=1; return f; } } if (g_pathList==0) { return 0; } char *s=g_pathList->first(); while (s) { QCString absName = (QCString)s+"/"+fileName; FILE *f = checkAndOpenFile(absName); if (f) { setFileName(absName); g_yyLineNr=1; return f; } s=g_pathList->next(); } return 0; } static QCString extractTrailingComment(const char *s) { if (s==0) return ""; int i=strlen(s)-1; while (i>=0) { char c=s[i]; switch (c) { case '/': { i--; if (i>=0 && s[i]=='*') // end of a comment block { i--; while (i>0 && !(s[i-1]=='/' && s[i]=='*')) i--; if (i==0) return s; else return &s[i-1]; } else { return ""; } } break; // whitespace or line-continuation case ' ': case '\t': case '\r': case '\n': case '\\': break; default: return ""; } i--; } return ""; } static int getNextChar(const QCString &expr,QCString *rest,uint &pos); static int getCurrentChar(const QCString &expr,QCString *rest,uint pos); static void unputChar(const QCString &expr,QCString *rest,uint &pos,char c); static void expandExpression(QCString &expr,QCString *rest,int pos); static QCString stringize(const QCString &s) { QCString result; uint i=0; bool inString=FALSE; bool inChar=FALSE; char c,pc; while (i`%s'\n",s.data(),result.data()); return result; } /*! Execute all ## operators in expr. * If the macro name before or after the operator contains a no-rescan * marker (@-) then this is removed (before the concatenated macro name * may be expanded again. */ static void processConcatOperators(QCString &expr) { //printf("processConcatOperators: in=`%s'\n",expr.data()); QRegExp r("[ \\t\\n]*##[ \\t\\n]*"); int l,n,i=0; if (expr.isEmpty()) return; while ((n=r.match(expr,i,&l))!=-1) { //printf("Match: `%s'\n",expr.data()+i); if (n+l+1<(int)expr.length() && expr.at(n+l)=='@' && expr.at(n+l+1)=='-') { // remove no-rescan marker after ID l+=2; } //printf("found `%s'\n",expr.mid(n,l).data()); // remove the ## operator and the surrounding whitespace expr=expr.left(n)+expr.right(expr.length()-n-l); int k=n-1; while (k>=0 && isId(expr.at(k))) k--; if (k>0 && expr.at(k)=='-' && expr.at(k-1)=='@') { // remove no-rescan marker before ID expr=expr.left(k-1)+expr.right(expr.length()-k-1); n-=2; } i=n; } //printf("processConcatOperators: out=`%s'\n",expr.data()); } static void yyunput (int c,char *buf_ptr ); static void returnCharToStream(char c) { unput(c); } static inline void addTillEndOfString(const QCString &expr,QCString *rest, uint &pos,char term,QCString &arg) { int cc; while ((cc=getNextChar(expr,rest,pos))!=EOF) { if (cc=='\\') arg+=(char)cc,cc=getNextChar(expr,rest,pos); else if (cc==term) return; arg+=(char)cc; } } /*! replaces the function macro \a def whose argument list starts at * \a pos in expression \a expr. * Notice that this routine may scan beyond the \a expr string if needed. * In that case the characters will be read from the input file. * The replacement string will be returned in \a result and the * length of the (unexpanded) argument list is stored in \a len. */ static bool replaceFunctionMacro(const QCString &expr,QCString *rest,int pos,int &len,const Define *def,QCString &result) { //printf("replaceFunctionMacro(expr=%s,rest=%s,pos=%d,def=%s) level=%d\n",expr.data(),rest ? rest->data() : 0,pos,def->name.data(),g_level); uint j=pos; len=0; result.resize(0); int cc; while ((cc=getCurrentChar(expr,rest,j))!=EOF && cc==' ') { len++; getNextChar(expr,rest,j); } if (cc!='(') { unputChar(expr,rest,j,' '); return FALSE; } getNextChar(expr,rest,j); // eat the `(' character QDict argTable; // list of arguments argTable.setAutoDelete(TRUE); QCString arg; int argCount=0; bool done=FALSE; // PHASE 1: read the macro arguments if (def->nargs==0) { while ((cc=getNextChar(expr,rest,j))!=EOF) { char c = (char)cc; if (c==')') break; } } else { while (!done && (argCountnargs || def->varArgs) && ((cc=getNextChar(expr,rest,j))!=EOF) ) { char c=(char)cc; if (c=='(') // argument is a function => search for matching ) { int level=1; arg+=c; //char term='\0'; while ((cc=getNextChar(expr,rest,j))!=EOF) { char c=(char)cc; //printf("processing %c: term=%c (%d)\n",c,term,term); if (c=='\'' || c=='\"') // skip ('s and )'s inside strings { arg+=c; addTillEndOfString(expr,rest,j,c,arg); } if (c==')') { level--; arg+=c; if (level==0) break; } else if (c=='(') { level++; arg+=c; } else arg+=c; } } else if (c==')' || c==',') // last or next argument found { if (c==',' && argCount==def->nargs-1 && def->varArgs) { arg=arg.stripWhiteSpace(); arg+=','; } else { QCString argKey; argKey.sprintf("@%d",argCount++); // key name arg=arg.stripWhiteSpace(); // add argument to the lookup table argTable.insert(argKey, new QCString(arg)); arg.resize(0); if (c==')') // end of the argument list { done=TRUE; } } } else if (c=='\"') // append literal strings { arg+=c; bool found=FALSE; while (!found && (cc=getNextChar(expr,rest,j))!=EOF) { found = cc=='"'; if (cc=='\\') { c=(char)cc; arg+=c; if ((cc=getNextChar(expr,rest,j))==EOF) break; } c=(char)cc; arg+=c; } } else if (c=='\'') // append literal characters { arg+=c; bool found=FALSE; while (!found && (cc=getNextChar(expr,rest,j))!=EOF) { found = cc=='\''; if (cc=='\\') { c=(char)cc; arg+=c; if ((cc=getNextChar(expr,rest,j))==EOF) break; } c=(char)cc; arg+=c; } } else // append other characters { arg+=c; } } } // PHASE 2: apply the macro function if (argCount==def->nargs || (argCount>def->nargs && def->varArgs)) // matching parameters lists { uint k=0; // substitution of all formal arguments QCString resExpr; const QCString d=def->definition.stripWhiteSpace(); //printf("Macro definition: %s\n",d.data()); bool inString=FALSE; while (k copy it (is unescaped later) { k+=2; resExpr+="@@"; // we unescape these later } else if (d.at(k+1)=='-') // no-rescan marker { k+=2; resExpr+="@-"; } else // argument marker => read the argument number { QCString key="@"; QCString *subst=0; bool hash=FALSE; int l=k-1; // search for ## backward if (l>=0 && d.at(l)=='"') l--; while (l>=0 && d.at(l)==' ') l--; if (l>0 && d.at(l)=='#' && d.at(l-1)=='#') hash=TRUE; k++; // scan the number while (k='0' && d.at(k)<='9') key+=d.at(k++); if (!hash) { // search for ## forward l=k; if (l<(int)d.length() && d.at(l)=='"') l++; while (l<(int)d.length() && d.at(l)==' ') l++; if (l<(int)d.length()-1 && d.at(l)=='#' && d.at(l+1)=='#') hash=TRUE; } //printf("request key %s result %s\n",key.data(),argTable[key]->data()); if (key.length()>1 && (subst=argTable[key])) { QCString substArg=*subst; //printf("substArg=`%s'\n",substArg.data()); // only if no ## operator is before or after the argument // marker we do macro expansion. if (!hash) expandExpression(substArg,0,0); if (inString) { //printf("`%s'=stringize(`%s')\n",stringize(*subst).data(),subst->data()); // if the marker is inside a string (because a # was put // before the macro name) we must escape " and \ characters resExpr+=stringize(substArg); } else { if (hash && substArg.isEmpty()) { resExpr+="@E"; // empty argument will be remove later on } else if (g_nospaces) { resExpr+=substArg; } else { resExpr+=" "+substArg+" "; } } } } } else // no marker, just copy { if (!inString && d.at(k)=='\"') { inString=TRUE; // entering a literal string } else if (inString && d.at(k)=='\"' && (d.at(k-1)!='\\' || d.at(k-2)=='\\')) { inString=FALSE; // leaving a literal string } resExpr+=d.at(k++); } } len=j-pos; result=resExpr; //printf("result after substitution `%s' expr=`%s'\n", // result.data(),expr.mid(pos,len).data()); return TRUE; } return FALSE; } /*! returns the next identifier in string \a expr by starting at position \a p. * The position of the identifier is returned (or -1 if nothing is found) * and \a l is its length. Any quoted strings are skipping during the search. */ static int getNextId(const QCString &expr,int p,int *l) { int n; while (p<(int)expr.length()) { char c=expr.at(p++); if (isalpha(c) || c=='_') // read id { n=p-1; while (p<(int)expr.length() && isId(expr.at(p)) ) p++; *l=p-n; return n; } else if (c=='"') // skip string { char ppc=0,pc=c; if (p<(int)expr.length()) c=expr.at(p); while (p<(int)expr.length() && (c!='"' || (pc=='\\' && ppc!='\\'))) // continue as long as no " is found, but ignoring \", but not \\" { ppc=pc; pc=c; c=expr.at(p); p++; } } else if (c=='/') // skip C Comment { char pc=c; if (p<(int)expr.length()) { c=expr.at(++p); if (c=='*') // Start of C comment { while (p<(int)expr.length() && !(pc=='*' && c=='/')) { pc=c; c=expr.at(++p); } p++; } } } } return -1; } /*! preforms recursive macro expansion on the string \a expr * starting at position \a pos. * May read additional characters from the input while re-scanning! * If \a expandAll is \c TRUE then all macros in the expression are * expanded, otherwise only the first is expanded. */ static void expandExpression(QCString &expr,QCString *rest,int pos) { //printf("expandExpression(%s,%s)\n",expr.data(),rest ? rest->data() : 0); QCString macroName; QCString expMacro; int i=pos,l,p,len; while ((p=getNextId(expr,i,&l))!=-1) // search for an macro name { bool replaced=FALSE; macroName=expr.mid(p,l); //printf("macroName %s found\n",macroName.data()); if (p<2 || !(expr.at(p-2)=='@' && expr.at(p-1)=='-')) // no-rescan marker? { if (g_expandedDict->find(macroName)==0) // expand macro { Define *def=isDefined(macroName); if (def && def->nargs==-1) // simple macro { // substitute the definition of the macro //printf("macro `%s'->`%s'\n",macroName.data(),def->definition.data()); if (g_nospaces) { expMacro=def->definition.stripWhiteSpace(); } else { expMacro=" "+def->definition.stripWhiteSpace()+" "; } //expMacro=def->definition.stripWhiteSpace(); replaced=TRUE; len=l; //printf("simple macro expansion=`%s'->`%s'\n",macroName.data(),expMacro.data()); } else if (def && def->nargs>=0) // function macro { replaced=replaceFunctionMacro(expr,rest,p+l,len,def,expMacro); len+=l; } if (replaced) // expand the macro and rescan the expression { //printf("replacing `%s'->`%s'\n",expr.mid(p,len).data(),expMacro.data()); QCString resultExpr=expMacro; QCString restExpr=expr.right(expr.length()-len-p); processConcatOperators(resultExpr); if (!def->nonRecursive) { g_expandedDict->insert(macroName,def); expandExpression(resultExpr,&restExpr,0); g_expandedDict->remove(macroName); } expr=expr.left(p)+resultExpr+restExpr; i=p; //printf("new expression: %s\n",expr.data()); } else // move to the next macro name { //printf("moving to the next macro old=%d new=%d\n",i,p+l); i=p+l; } } else // move to the next macro name { expr=expr.left(p)+"@-"+expr.right(expr.length()-p); //printf("macro already expanded, moving to the next macro expr=%s\n",expr.data()); i=p+l+2; //i=p+l; } } else // no re-scan marker found, skip the macro name { //printf("skipping marked macro\n"); i=p+l; } } } /*! replaces all occurrences of @@@@ in \a s by @@ * and removes all occurrences of @@E. * All identifiers found are replaced by 0L */ QCString removeIdsAndMarkers(const char *s) { //printf("removeIdsAndMarkers(%s)\n",s); const char *p=s; char c; bool inNum=FALSE; QCString result; if (p) { while ((c=*p)) { if (c=='@') // replace @@ with @ and remove @E { if (*(p+1)=='@') { result+=c; } else if (*(p+1)=='E') { // skip } p+=2; } else if (isdigit(c)) // number { result+=c; p++; inNum=TRUE; } else if (c=='d' && !inNum) // identifier starting with a `d' { if (strncmp(p,"defined ",8)==0 || strncmp(p,"defined(",8)==0) // defined keyword { p+=7; // skip defined } else { result+="0L"; p++; while ((c=*p) && isId(c)) p++; } } else if ((isalpha(c) || c=='_') && !inNum) // replace identifier with 0L { result+="0L"; p++; while ((c=*p) && isId(c)) p++; } else if (c=='/') // skip C comments { char pc=c; c=*++p; if (c=='*') // start of C comment { while (*p && !(pc=='*' && c=='/')) // search end of comment { pc=c; c=*++p; } p++; } else // oops, not comment but division { result+=pc; goto nextChar; } } else { nextChar: result+=c; char lc=tolower(c); if (!isId(lc) && lc!='.' && lc!='-' && lc!='+') inNum=FALSE; p++; } } } //printf("removeIdsAndMarkers(%s)=%s\n",s,result.data()); return result; } /*! replaces all occurrences of @@ in \a s by @ * \par assumption: * \a s only contains pairs of @@'s */ QCString removeMarkers(const char *s) { const char *p=s; char c; QCString result; if (p) { while ((c=*p)) { switch(c) { case '@': // replace @@ with @ { if (*(p+1)=='@') { result+=c; } p+=2; } break; case '/': // skip C comments { result+=c; char pc=c; c=*++p; if (c=='*') // start of C comment { while (*p && !(pc=='*' && c=='/')) // search end of comment { if (*p=='@' && *(p+1)=='@') result+=c,p++; else result+=c; pc=c; c=*++p; } if (*p) { result+=c; p++; } } } break; case '"': // skip string literals { result+=c; char pc=c; c=*++p; while (*p && (c!='"' || pc=='\\')) // no end quote { result+=c; c=*++p; } } break; case '\'': // skip char literals { result+=c; char pc=c; c=*++p; while (*p && (c!='\'' || pc=='\\')) // no end quote { result+=c; c=*++p; } } break; default: { result+=c; p++; } break; } } } //printf("RemoveMarkers(%s)=%s\n",s,result.data()); return result; } /*! compute the value of the expression in string \a expr. * If needed the function may read additional characters from the input. */ bool computeExpression(const QCString &expr) { QCString e=expr; expandExpression(e,0,0); //printf("after expansion `%s'\n",e.data()); e = removeIdsAndMarkers(e); if (e.isEmpty()) return FALSE; //printf("parsing `%s'\n",e.data()); return parseCppExpression(g_yyFileName,g_yyLineNr,e); } /*! expands the macro definition in \a name * If needed the function may read additional characters from the input */ QCString expandMacro(const QCString &name) { QCString n=name; expandExpression(n,0,0); n=removeMarkers(n); //printf("expandMacro `%s'->`%s'\n",name.data(),n.data()); return n; } Define *newDefine() { Define *def=new Define; def->name = g_defName; def->definition = g_defText.stripWhiteSpace(); def->nargs = g_defArgs; def->fileName = g_yyFileName; def->lineNr = g_yyLineNr; def->varArgs = g_defVarArgs; //printf("newDefine: `%s'->`%s'\n",def->name.data(),def->definition.data()); if (!def->name.isEmpty() && Doxygen::expandAsDefinedDict[def->name]) { def->isPredefined=TRUE; } return def; } void addDefine() { if (g_skip) return; // do not add this define as it is inside a // conditional section (cond command) that is disabled. if (!Doxygen::gatherDefines) return; //printf("addDefine %s %s\n",g_defName.data(),g_defArgsStr.data()); //ArgumentList *al = new ArgumentList; //stringToArgumentList(g_defArgsStr,al); MemberDef *md=new MemberDef( g_yyFileName,g_yyLineNr, "#define",g_defName,g_defArgsStr,0, Public,Normal,FALSE,FALSE,MemberDef::Define,0,0); if (!g_defArgsStr.isEmpty()) { ArgumentList *argList = new ArgumentList; //printf("addDefine() g_defName=`%s' g_defArgsStr=`%s'\n",g_defName.data(),g_defArgsStr.data()); stringToArgumentList(g_defArgsStr,argList); md->setArgumentList(argList); } //printf("Setting initializer for `%s' to `%s'\n",g_defName.data(),g_defText.data()); int l=g_defLitText.find('\n'); if (l>0 && g_defLitText.left(l).stripWhiteSpace()=="\\") { // strip first line if it only contains a slash g_defLitText = g_defLitText.right(g_defLitText.length()-l-1); } else if (l>0) { // align the items on the first line with the items on the second line int k=l+1; const char *p=g_defLitText.data()+k; char c; while ((c=*p++) && (c==' ' || c=='\t')) k++; g_defLitText=g_defLitText.mid(l+1,k-l-1)+g_defLitText.stripWhiteSpace(); } md->setInitializer(g_defLitText.stripWhiteSpace()); md->setFileDef(g_inputFileDef); md->setDefinition("#define "+g_defName); MemberName *mn=Doxygen::functionNameSDict->find(g_defName); if (mn==0) { mn = new MemberName(g_defName); Doxygen::functionNameSDict->append(g_defName,mn); } mn->append(md); if (g_yyFileDef) g_yyFileDef->insertMember(md); //Define *d; //if ((d=defineDict[g_defName])==0) defineDict.insert(g_defName,newDefine()); } static inline void outputChar(char c) { if (g_includeStack.isEmpty() || g_curlyCount>0) g_outputBuf->addChar(c); } static inline void outputArray(const char *a,int len) { if (g_includeStack.isEmpty() || g_curlyCount>0) g_outputBuf->addArray(a,len); } static void readIncludeFile(const QCString &inc) { if (!Config_getBool("SEARCH_INCLUDES")) return; // do not read include files uint i=0; // find the start of the include file name while (i0 && inc.at(s-1)=='"'; // find the end of the include file name while (is) // valid include file name found { // extract include path+name QCString incFileName=inc.mid(s,i-s).stripWhiteSpace(); FILE *f; QCString oldFileName = g_yyFileName.copy(); FileDef *oldFileDef = g_yyFileDef; int oldLineNr = g_yyLineNr; //printf("Searching for `%s'\n",incFileName.data()); // findFile will overwrite g_yyFileDef if found if ((f=findFile(incFileName,localInclude))) // see if the include file can be found { //printf("Found include file!\n"); if (Debug::isFlagSet(Debug::Preprocessor)) { for (i=0;iaddIncludeDependency(g_yyFileDef,incFileName,localInclude,g_isImported); // add included by dependency if (g_yyFileDef) { //printf("Adding include dependency %s->%s\n",oldFileDef->name().data(),incFileName.data()); g_yyFileDef->addIncludedByDependency(oldFileDef,oldFileDef->docName(),localInclude,g_isImported); } } FileState *fs=new FileState; fs->bufState=YY_CURRENT_BUFFER; fs->lineNr=oldLineNr; fs->fileName=oldFileName; fs->filePtr=f; // push the state on the stack g_includeStack.push(fs); // set the scanner to the include file // Deal with file changes due to // #include's within { .. } blocks QCString lineStr; lineStr.sprintf("# 1 \"%s\" 1\n",g_yyFileName.data()); outputArray(lineStr.data(),lineStr.length()); //fprintf(stderr,"Switching to include file %s\n",incFileName.data()); preYYin=f; yy_switch_to_buffer(yy_create_buffer(preYYin, YY_BUF_SIZE)); } else { if (oldFileDef) { bool ambig; FileDef *fd = findFileDef(Doxygen::inputNameDict,incFileName,ambig); //printf("findFileDef(%s)=%p\n",incFileName.data(),fd); // add include dependency to the file in which the #include was found oldFileDef->addIncludeDependency(fd,incFileName,localInclude,g_isImported); // add included by dependency if (fd) { //printf("Adding include dependency (2) %s->%s ambig=%d\n",oldFileDef->name().data(),fd->name().data(),ambig); fd->addIncludedByDependency(oldFileDef,oldFileDef->docName(),localInclude,g_isImported); } } if (Debug::isFlagSet(Debug::Preprocessor)) { msg("#include %s: not found or already included! skipping...\n",incFileName.data()); //printf("Error: include file %s not found\n",yytext); } if (g_curlyCount>0) // failed to find #include inside { ... } { warn(g_yyFileName,g_yyLineNr,"Warning: include file %s not found, perhaps you forgot to add its directory to INCLUDE_PATH?",incFileName.data()); } } } } /* ----------------------------------------------------------------- */ static void startCondSection(const char *sectId) { g_condStack.push(new bool(g_skip)); if (Config_getList("ENABLED_SECTIONS").find(sectId)==-1) { g_skip=TRUE; } } static void endCondSection() { if (g_condStack.isEmpty()) { g_skip=FALSE; } else { bool *ctx = g_condStack.pop(); g_skip=*ctx; } } static QCString escapeAt(const char *text) { QCString result; if (text) { char c; const char *p=text; while ((c=*p++)) { if (c=='@') result+="@@"; else result+=c; } } return result; } static char resolveTrigraph(char c) { switch (c) { case '=': return '#'; case '/': return '\\'; case '\'': return '^'; case '(': return '['; case ')': return ']'; case '!': return '|'; case '<': return '{'; case '>': return '}'; case '-': return '~'; } return '?'; } /* ----------------------------------------------------------------- */ #undef YY_INPUT #define YY_INPUT(buf,result,max_size) result=yyread(buf,max_size); static int yyread(char *buf,int max_size) { int len = fread( buf, 1, max_size, yyin ); if (len==0 && ferror( yyin )) { yy_fatal_error( "input in flex scanner failed" ); return len; } return filterCRLF(buf,len); } /* ----------------------------------------------------------------- */ #define Start 1 #define Command 2 #define SkipCommand 3 #define SkipLine 4 #define CopyLine 5 #define CopyString 6 #define Include 7 #define IncludeID 8 #define EndImport 9 #define DefName 10 #define DefineArg 11 #define DefineText 12 #define SkipCPPBlock 13 #define Ifdef 14 #define Ifndef 15 #define SkipCComment 16 #define CopyCComment 17 #define SkipVerbatim 18 #define SkipCPPComment 19 #define RemoveCComment 20 #define RemoveCPPComment 21 #define Guard 22 #define DefinedExpr1 23 #define DefinedExpr2 24 #define SkipDoubleQuote 25 #define SkipSingleQuote 26 #define UndefName 27 #define IgnoreLine 28 #define FindDefineArgs 29 #define ReadString 30 #define CondLine 31 /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int yywrap YY_PROTO(( void )); #else extern int yywrap YY_PROTO(( void )); #endif #endif #ifndef YY_NO_UNPUT static void yyunput YY_PROTO(( int c, char *buf_ptr )); #endif #ifndef yytext_ptr static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen YY_PROTO(( yyconst char * )); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput YY_PROTO(( void )); #else static int input YY_PROTO(( void )); #endif #endif #if YY_STACK_USED static int yy_start_stack_ptr = 0; static int yy_start_stack_depth = 0; static int *yy_start_stack = 0; #ifndef YY_NO_PUSH_STATE static void yy_push_state YY_PROTO(( int new_state )); #endif #ifndef YY_NO_POP_STATE static void yy_pop_state YY_PROTO(( void )); #endif #ifndef YY_NO_TOP_STATE static int yy_top_state YY_PROTO(( void )); #endif #else #define YY_NO_PUSH_STATE 1 #define YY_NO_POP_STATE 1 #define YY_NO_TOP_STATE 1 #endif #ifdef YY_MALLOC_DECL YY_MALLOC_DECL #else #if __STDC__ #ifndef __cplusplus #include #endif #else /* Just try to get by without declaring the routines. This will fail * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) * or sizeof(void*) != sizeof(int). */ #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #define YY_READ_BUF_SIZE 8192 #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( yy_current_buffer->yy_is_interactive ) \ { \ int c = '*', n; \ for ( n = 0; n < max_size && \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ && ferror( yyin ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL int yylex YY_PROTO(( void )) #endif /* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ if ( yyleng > 0 ) \ yy_current_buffer->yy_at_bol = \ (yytext[yyleng - 1] == '\n'); \ YY_USER_ACTION YY_DECL { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; #line 1288 "pre.l" if ( yy_init ) { yy_init = 0; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! yy_start ) yy_start = 1; /* first start state */ if ( ! yyin ) yyin = stdin; if ( ! yyout ) yyout = stdout; if ( ! yy_current_buffer ) yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); yy_load_buffer_state(); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = yy_c_buf_p; /* Support of yytext. */ *yy_cp = yy_hold_char; /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = yy_start; yy_current_state += YY_AT_BOL(); yy_state_ptr = yy_state_buf; *yy_state_ptr++ = yy_current_state; yy_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 1055 ) 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] != 4362 ); 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; } 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 1290 "pre.l" YY_BREAK case 2: YY_RULE_SETUP #line 1291 "pre.l" YY_BREAK case 3: YY_RULE_SETUP #line 1292 "pre.l" YY_BREAK case 4: YY_RULE_SETUP #line 1293 "pre.l" { // Trigraph unput(resolveTrigraph(yytext[2])); } YY_BREAK case 5: YY_RULE_SETUP #line 1296 "pre.l" { BEGIN(Command); } YY_BREAK case 6: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 1297 "pre.l" { outputArray(yytext,yyleng); BEGIN(CopyLine); } YY_BREAK case 7: YY_RULE_SETUP #line 1301 "pre.l" { // constructors? int i; for (i=yyleng-1;i>=0;i--) { unput(yytext[i]); } BEGIN(CopyLine); } YY_BREAK case 8: YY_RULE_SETUP #line 1309 "pre.l" { // function like macro static bool skipFuncMacros = Config_getBool("SKIP_FUNCTION_MACROS"); QCString name(yytext); name=name.left(name.find('(')).stripWhiteSpace(); Define *def=0; if (skipFuncMacros && name!="Q_PROPERTY" && !( (g_includeStack.isEmpty() || g_curlyCount>0) && g_macroExpansion && (def=g_fileDefineDict->find(name)) && (!g_expandOnlyPredef || def->isPredefined) ) ) { outputChar('\n'); g_yyLineNr++; } else // don't skip { int i; for (i=yyleng-1;i>=0;i--) { unput(yytext[i]); } BEGIN(CopyLine); } } YY_BREAK case 9: YY_RULE_SETUP #line 1338 "pre.l" { QCString text=yytext; g_yyLineNr+=text.contains('\n'); outputArray(yytext,yyleng); } YY_BREAK case 10: YY_RULE_SETUP #line 1343 "pre.l" { // count brackets inside the main file if (g_includeStack.isEmpty()) { g_curlyCount++; } outputChar(*yytext); } YY_BREAK case 11: YY_RULE_SETUP #line 1350 "pre.l" { // count brackets inside the main file if (g_includeStack.isEmpty() && g_curlyCount>0) { g_curlyCount--; } outputChar(*yytext); } YY_BREAK case 12: YY_RULE_SETUP #line 1357 "pre.l" { outputArray(yytext,yyleng); } YY_BREAK case 13: YY_RULE_SETUP #line 1360 "pre.l" { outputArray(yytext,yyleng); } YY_BREAK case 14: YY_RULE_SETUP #line 1363 "pre.l" { outputArray(yytext,yyleng); } YY_BREAK case 15: YY_RULE_SETUP #line 1366 "pre.l" { outputChar(*yytext); BEGIN( CopyString ); } YY_BREAK case 16: YY_RULE_SETUP #line 1370 "pre.l" { outputArray(yytext,yyleng); } YY_BREAK case 17: YY_RULE_SETUP #line 1373 "pre.l" { outputArray(yytext,yyleng); } YY_BREAK case 18: YY_RULE_SETUP #line 1376 "pre.l" { outputChar(*yytext); BEGIN( CopyLine ); } YY_BREAK case 19: YY_RULE_SETUP #line 1380 "pre.l" { Define *def=0; //def=g_fileDefineDict->find(yytext); //printf("Search for define %s found=%d g_includeStack.isEmpty()=%d " // "g_curlyCount=%d g_macroExpansion=%d g_expandOnlyPredef=%d " // "isPreDefined=%d\n",yytext,def ? 1 : 0, // g_includeStack.isEmpty(),g_curlyCount,g_macroExpansion,g_expandOnlyPredef, // def ? def->isPredefined : -1 // ); if ((g_includeStack.isEmpty() || g_curlyCount>0) && g_macroExpansion && (def=g_fileDefineDict->find(yytext)) && (!g_expandOnlyPredef || def->isPredefined) ) { //printf("Found it!\n"); g_roundCount=0; g_defArgsStr=yytext; if (def->nargs==-1) // no function macro { QCString result = expandMacro(g_defArgsStr); outputArray(result,result.length()); } else // zero or more arguments { g_findDefArgContext = CopyLine; BEGIN(FindDefineArgs); } } else { outputArray(yytext,yyleng); } } YY_BREAK case 20: YY_RULE_SETUP #line 1414 "pre.l" { Define *def=0; //printf("Search for define %s\n",yytext); if ((g_includeStack.isEmpty() || g_curlyCount>0) && g_macroExpansion && (def=g_fileDefineDict->find(yytext)) && def->nargs==-1 && (!g_expandOnlyPredef || def->isPredefined) ) { //printf("Found it!\n"); QCString name=yytext; QCString result=expandMacro(name); //printf("result=`%s'\n",result.data()); outputArray(result,result.length()); } else { outputArray(yytext,yyleng); } } YY_BREAK case 21: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp -= 1; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 1435 "pre.l" { // strip line continuation characters } YY_BREAK case 22: YY_RULE_SETUP #line 1437 "pre.l" { outputChar(*yytext); } YY_BREAK case 23: YY_RULE_SETUP #line 1440 "pre.l" { outputChar('\n'); BEGIN(Start); g_yyLineNr++; } YY_BREAK case 24: YY_RULE_SETUP #line 1445 "pre.l" { g_defArgsStr+='('; g_roundCount++; } YY_BREAK case 25: YY_RULE_SETUP #line 1449 "pre.l" { g_defArgsStr+=')'; g_roundCount--; if (g_roundCount==0) { QCString result=expandMacro(g_defArgsStr); //printf("g_defArgsStr=`%s'->`%s'\n",g_defArgsStr.data(),result.data()); if (g_findDefArgContext==CopyLine) { outputArray(result,result.length()); BEGIN(g_findDefArgContext); } else // g_findDefArgContext==IncludeID { readIncludeFile(result); g_nospaces=FALSE; BEGIN(Start); } } } YY_BREAK /* ")"{B}*"(" { g_defArgsStr+=yytext; } */ case 26: YY_RULE_SETUP #line 1474 "pre.l" { g_defArgsStr+=yytext; } YY_BREAK case 27: YY_RULE_SETUP #line 1477 "pre.l" { g_defArgsStr+=*yytext; BEGIN(ReadString); } YY_BREAK case 28: YY_RULE_SETUP #line 1481 "pre.l" { g_yyLineNr++; outputChar('\n'); } YY_BREAK case 29: YY_RULE_SETUP #line 1485 "pre.l" { g_defArgsStr+="@@"; } YY_BREAK case 30: YY_RULE_SETUP #line 1488 "pre.l" { g_defArgsStr+=*yytext; } YY_BREAK case 31: YY_RULE_SETUP #line 1491 "pre.l" { g_defArgsStr+=*yytext; BEGIN(FindDefineArgs); } YY_BREAK case 32: YY_RULE_SETUP #line 1495 "pre.l" { g_defArgsStr+=yytext; } YY_BREAK case 33: YY_RULE_SETUP #line 1498 "pre.l" { g_defArgsStr+=yytext; } YY_BREAK case 34: YY_RULE_SETUP #line 1501 "pre.l" { g_defArgsStr+=*yytext; } YY_BREAK case 35: YY_RULE_SETUP #line 1504 "pre.l" { g_isImported = yytext[1]=='m'; if (g_macroExpansion) BEGIN(IncludeID); } YY_BREAK case 36: YY_RULE_SETUP #line 1509 "pre.l" { g_isImported = yytext[1]=='m'; char c[2]; c[0]=yytext[yyleng-1];c[1]='\0'; g_incName=c; BEGIN(Include); } YY_BREAK case 37: YY_RULE_SETUP #line 1516 "pre.l" { //printf("!!!DefName\n"); BEGIN(DefName); } YY_BREAK case 38: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 5; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 1520 "pre.l" { incrLevel(); g_guardExpr.resize(0); BEGIN(DefinedExpr2); } YY_BREAK case 39: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 5; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 1525 "pre.l" { //printf("Pre.l: ifdef\n"); incrLevel(); g_guardExpr.resize(0); BEGIN(DefinedExpr1); } YY_BREAK case 40: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 6; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 1531 "pre.l" { incrLevel(); g_guardExpr="! "; BEGIN(DefinedExpr2); } YY_BREAK case 41: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 6; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 1536 "pre.l" { incrLevel(); g_guardExpr="! "; BEGIN(DefinedExpr1); } YY_BREAK case 42: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 2; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 1541 "pre.l" { incrLevel(); g_guardExpr.resize(0); BEGIN(Guard); } YY_BREAK case 43: *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 1546 "pre.l" { if (!otherCaseDone()) { g_guardExpr.resize(0); BEGIN(Guard); } else { g_ifcount=0; BEGIN(SkipCPPBlock); } } YY_BREAK case 44: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 4; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 1558 "pre.l" { //printf("else g_levelGuard[%d]=%d\n",g_level-1,g_levelGuard[g_level-1]); if (otherCaseDone()) { g_ifcount=0; BEGIN(SkipCPPBlock); } else { setCaseDone(TRUE); //g_levelGuard[g_level-1]=TRUE; } } YY_BREAK case 45: YY_RULE_SETUP #line 1571 "pre.l" { BEGIN(UndefName); } YY_BREAK case 46: *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 1574 "pre.l" { if (!otherCaseDone()) { g_guardExpr.resize(0); BEGIN(Guard); } } YY_BREAK case 47: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 5; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 1581 "pre.l" { //printf("Pre.l: #endif\n"); decrLevel(); } YY_BREAK case 48: YY_RULE_SETUP #line 1585 "pre.l" { outputChar('\n'); BEGIN(Start); g_yyLineNr++; } YY_BREAK case 49: YY_RULE_SETUP #line 1590 "pre.l" { // unknown directive BEGIN(IgnoreLine); } YY_BREAK case 50: YY_RULE_SETUP #line 1593 "pre.l" { outputChar('\n'); g_yyLineNr++; } YY_BREAK case 51: YY_RULE_SETUP #line 1597 "pre.l" YY_BREAK case 52: YY_RULE_SETUP #line 1598 "pre.l" YY_BREAK case 53: YY_RULE_SETUP #line 1599 "pre.l" { Define *def; if ((def=isDefined(yytext)) /*&& !def->isPredefined*/ && !def->nonRecursive ) { //printf("undefining %s\n",yytext); def->undef=TRUE; } BEGIN(Start); } YY_BREAK case 54: YY_RULE_SETUP #line 1611 "pre.l" { outputChar('\n'); g_guardExpr+=' '; g_yyLineNr++; } YY_BREAK case 55: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 7; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 1616 "pre.l" { BEGIN(DefinedExpr2); } YY_BREAK case 56: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 7; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 1619 "pre.l" { BEGIN(DefinedExpr1); } YY_BREAK case 57: YY_RULE_SETUP #line 1622 "pre.l" { g_guardExpr+=yytext; } YY_BREAK case 58: YY_RULE_SETUP #line 1623 "pre.l" { g_guardExpr+=*yytext; } YY_BREAK case 59: YY_RULE_SETUP #line 1624 "pre.l" { unput(*yytext); //printf("Guard: `%s'\n", // g_guardExpr.data()); bool guard=computeExpression(g_guardExpr); setCaseDone(guard); //printf("if g_levelGuard[%d]=%d\n",g_level-1,g_levelGuard[g_level-1]); if (guard) { BEGIN(Start); } else { g_ifcount=0; BEGIN(SkipCPPBlock); } } YY_BREAK case 60: YY_RULE_SETUP #line 1641 "pre.l" { g_yyLineNr++; outputChar('\n'); } YY_BREAK case 61: YY_RULE_SETUP #line 1642 "pre.l" { if (isDefined(yytext)) g_guardExpr+=" 1L "; else g_guardExpr+=" 0L "; g_lastGuardName=yytext; BEGIN(Guard); } YY_BREAK case 62: YY_RULE_SETUP #line 1650 "pre.l" { if (isDefined(yytext)) g_guardExpr+=" 1L "; else g_guardExpr+=" 0L "; g_lastGuardName.resize(0); } YY_BREAK case 63: YY_RULE_SETUP #line 1657 "pre.l" { // should not happen, handle anyway g_yyLineNr++; g_ifcount=0; BEGIN(SkipCPPBlock); } YY_BREAK case 64: YY_RULE_SETUP #line 1662 "pre.l" { BEGIN(Guard); } YY_BREAK case 65: YY_RULE_SETUP #line 1665 "pre.l" YY_BREAK case 66: YY_RULE_SETUP #line 1666 "pre.l" { BEGIN(SkipCommand); } YY_BREAK case 67: *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 1667 "pre.l" { BEGIN(SkipLine); } YY_BREAK case 68: YY_RULE_SETUP #line 1668 "pre.l" { g_yyLineNr++; } YY_BREAK case 69: YY_RULE_SETUP #line 1669 "pre.l" YY_BREAK case 70: *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 1670 "pre.l" { incrLevel(); g_ifcount++; //printf("#if... depth=%d\n",g_ifcount); } YY_BREAK case 71: YY_RULE_SETUP #line 1675 "pre.l" { //printf("Else! g_ifcount=%d otherCaseDone=%d\n",g_ifcount,otherCaseDone()); if (g_ifcount==0 && !otherCaseDone()) { setCaseDone(TRUE); //outputChar('\n'); BEGIN(Start); } } YY_BREAK case 72: *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 1684 "pre.l" { if (g_ifcount==0) { if (!otherCaseDone()) { g_guardExpr.resize(0); g_lastGuardName.resize(0); BEGIN(Guard); } else { BEGIN(SkipCPPBlock); } } } YY_BREAK case 73: YY_RULE_SETUP #line 1699 "pre.l" { decrLevel(); if (--g_ifcount<0) { //outputChar('\n'); BEGIN(Start); } } YY_BREAK case 74: YY_RULE_SETUP #line 1707 "pre.l" { outputChar('\n'); g_yyLineNr++; BEGIN(SkipCPPBlock); } YY_BREAK case 75: YY_RULE_SETUP #line 1712 "pre.l" { // unknown directive BEGIN(SkipLine); } YY_BREAK case 76: YY_RULE_SETUP #line 1715 "pre.l" YY_BREAK case 77: YY_RULE_SETUP #line 1716 "pre.l" YY_BREAK case 78: YY_RULE_SETUP #line 1717 "pre.l" YY_BREAK case 79: YY_RULE_SETUP #line 1718 "pre.l" { g_lastCPPContext=YY_START; BEGIN(RemoveCPPComment); } YY_BREAK case 80: YY_RULE_SETUP #line 1722 "pre.l" { g_lastCContext=YY_START; BEGIN(RemoveCComment); } YY_BREAK case 81: YY_RULE_SETUP #line 1726 "pre.l" { outputChar('\n'); g_yyLineNr++; BEGIN(SkipCPPBlock); } YY_BREAK case 82: *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 1731 "pre.l" { g_nospaces=TRUE; g_roundCount=0; g_defArgsStr=yytext; g_findDefArgContext = IncludeID; BEGIN(FindDefineArgs); } YY_BREAK case 83: YY_RULE_SETUP #line 1738 "pre.l" { g_nospaces=TRUE; readIncludeFile(expandMacro(yytext)); BEGIN(Start); } YY_BREAK case 84: YY_RULE_SETUP #line 1743 "pre.l" { g_incName+=yytext; readIncludeFile(g_incName); if (g_isImported) { BEGIN(EndImport); } else { BEGIN(Start); } } YY_BREAK case 85: *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 1755 "pre.l" { BEGIN(Start); } YY_BREAK case 86: YY_RULE_SETUP #line 1758 "pre.l" { outputChar('\n'); } YY_BREAK case 87: YY_RULE_SETUP #line 1761 "pre.l" { } YY_BREAK case 88: *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 1763 "pre.l" { //printf("Define() `%s'\n",yytext); g_argDict = new QDict(31); g_argDict->setAutoDelete(TRUE); g_defArgs = 0; g_defArgsStr.resize(0); g_defText.resize(0); g_defLitText.resize(0); g_defName = yytext; g_defVarArgs = FALSE; BEGIN(DefineArg); } YY_BREAK case 89: YY_RULE_SETUP #line 1775 "pre.l" { //printf("Define `%s'\n",yytext); g_argDict = 0; g_defArgs = -1; g_defArgsStr.resize(0); g_defText.resize(0); g_defLitText.resize(0); g_defName = yytext; g_defVarArgs = FALSE; QCString tmp=(QCString)"#define "+g_defName+g_defArgsStr; outputArray(tmp.data(),tmp.length()); g_quoteArg=FALSE; g_insideComment=FALSE; BEGIN(DefineText); } YY_BREAK case 90: YY_RULE_SETUP #line 1790 "pre.l" { g_argDict = 0; g_defArgs = -1; g_defName = yytext; g_defArgsStr.resize(0); g_defText.resize(0); g_defLitText.resize(0); g_defVarArgs = FALSE; if ( g_defName!=g_lastGuardName ) { // define may appear in the output QCString tmp=(QCString)"#define "+g_defName; outputArray(tmp.data(),tmp.length()); g_quoteArg=FALSE; g_insideComment=FALSE; BEGIN(DefineText); } else // define is a guard => hide { //printf("Found a guard %s\n",yytext); Define *def=g_fileDefineDict->find(g_defName); //if (g_includeStack.isEmpty()) //{ // addDefine(); //} if (def==0) // new define name for this file { g_fileDefineDict->insert(g_defName,newDefine()); } else // name already exists { if (def->undef) // undefined name { def->undef = FALSE; def->name = g_defName; def->definition = g_defText.stripWhiteSpace(); def->nargs = g_defArgs; def->fileName = g_yyFileName.copy(); def->lineNr = g_yyLineNr; } else { //printf("Error: define %s is defined more than once!\n",g_defName.data()); } } g_lastGuardName.resize(0); BEGIN(Start); } } YY_BREAK case 91: YY_RULE_SETUP #line 1838 "pre.l" { g_defArgsStr+=yytext; } YY_BREAK case 92: YY_RULE_SETUP #line 1839 "pre.l" { g_defArgsStr+=yytext; } YY_BREAK case 93: YY_RULE_SETUP #line 1840 "pre.l" { g_defArgsStr+=yytext; QCString tmp=(QCString)"#define "+g_defName+g_defArgsStr; outputArray(tmp.data(),tmp.length()); g_quoteArg=FALSE; g_insideComment=FALSE; BEGIN(DefineText); } YY_BREAK case 94: YY_RULE_SETUP #line 1848 "pre.l" { // Variadic macro g_defVarArgs = TRUE; g_defArgsStr+=yytext; g_argDict->insert("__VA_ARGS__",new int(g_defArgs)); g_defArgs++; } YY_BREAK case 95: YY_RULE_SETUP #line 1854 "pre.l" { //printf("Define addArg(%s)\n",yytext); QCString argName=yytext; g_defVarArgs = yytext[yyleng-1]=='.'; if (g_defVarArgs) // strip ellipsis { argName=argName.left(argName.length()-3); } argName = argName.stripWhiteSpace(); g_defArgsStr+=yytext; g_argDict->insert(argName,new int(g_defArgs)); g_defArgs++; } YY_BREAK /* "/ **"|"/ *!" { g_defText+=yytext; g_defLitText+=yytext; g_insideComment=TRUE; } "* /" { g_defText+=yytext; g_defLitText+=yytext; g_insideComment=FALSE; } */ case 96: YY_RULE_SETUP #line 1879 "pre.l" { g_defText+=yytext; g_defLitText+=yytext; g_lastCContext=YY_START; g_commentCount=1; BEGIN(CopyCComment); } YY_BREAK case 97: YY_RULE_SETUP #line 1886 "pre.l" { outputChar('/');outputChar('/'); g_lastCPPContext=YY_START; g_defLitText+=' '; BEGIN(SkipCPPComment); } YY_BREAK case 98: YY_RULE_SETUP #line 1892 "pre.l" { if (yytext[0]=='/') outputChar('/'); outputChar('*');outputChar('/'); if (--g_commentCount<=0) { BEGIN(g_lastCContext); } } YY_BREAK case 99: YY_RULE_SETUP #line 1900 "pre.l" { outputChar('/');outputChar('/'); } YY_BREAK case 100: YY_RULE_SETUP #line 1903 "pre.l" { outputChar('/');outputChar('*'); //g_commentCount++; } YY_BREAK case 101: YY_RULE_SETUP #line 1907 "pre.l" { outputArray(yytext,yyleng); } YY_BREAK case 102: YY_RULE_SETUP #line 1910 "pre.l" { outputArray(yytext,yyleng); g_yyLineNr+=QCString(yytext).contains('\n'); } YY_BREAK case 103: YY_RULE_SETUP #line 1914 "pre.l" { outputArray(yytext,yyleng); g_yyLineNr+=QCString(yytext).contains('\n'); if (yytext[1]=='f') { g_blockName="f"; } else { g_blockName=QCString(&yytext[1]).stripWhiteSpace(); } BEGIN(SkipVerbatim); } YY_BREAK case 104: YY_RULE_SETUP #line 1927 "pre.l" { // conditional section g_condCtx = YY_START; outputArray(yytext,yyleng); BEGIN(CondLine); } YY_BREAK case 105: YY_RULE_SETUP #line 1932 "pre.l" { startCondSection(yytext); outputArray(yytext,yyleng); BEGIN(g_condCtx); } YY_BREAK case 106: #line 1938 "pre.l" case 107: YY_RULE_SETUP #line 1938 "pre.l" { outputArray(yytext,yyleng); g_yyLineNr+=QCString(yytext).contains('\n'); startCondSection(" "); if (YY_START==CondLine) BEGIN(g_condCtx); } YY_BREAK case 108: *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ yy_c_buf_p = yy_cp = yy_bp + 8; YY_DO_BEFORE_ACTION; /* set up yytext again */ YY_RULE_SETUP #line 1944 "pre.l" { outputArray(yytext,yyleng); endCondSection(); } YY_BREAK case 109: YY_RULE_SETUP #line 1948 "pre.l" { /* end of verbatim block */ outputArray(yytext,yyleng); if (yytext[1]=='f' && g_blockName=="f") { BEGIN(SkipCComment); } else if (&yytext[4]==g_blockName) { BEGIN(SkipCComment); } } YY_BREAK case 110: YY_RULE_SETUP #line 1959 "pre.l" { outputArray(yytext,yyleng); } YY_BREAK case 111: YY_RULE_SETUP #line 1962 "pre.l" { outputArray(yytext,yyleng); } YY_BREAK case 112: YY_RULE_SETUP #line 1965 "pre.l" { g_yyLineNr++; outputChar('\n'); } YY_BREAK case 113: YY_RULE_SETUP #line 1969 "pre.l" { outputChar(*yytext); } YY_BREAK case 114: YY_RULE_SETUP #line 1972 "pre.l" { g_defLitText+=yytext; g_defText+=escapeAt(yytext); } YY_BREAK case 115: YY_RULE_SETUP #line 1976 "pre.l" { g_defLitText+=yytext; g_defText+=yytext; BEGIN(g_lastCContext); } YY_BREAK case 116: YY_RULE_SETUP #line 1981 "pre.l" { g_yyLineNr++; g_defLitText+=yytext; g_defText+=yytext; } YY_BREAK case 117: YY_RULE_SETUP #line 1986 "pre.l" { g_defLitText+=yytext; g_defText+=yytext; } YY_BREAK case 118: YY_RULE_SETUP #line 1990 "pre.l" { BEGIN(g_lastCContext); } YY_BREAK case 119: YY_RULE_SETUP #line 1991 "pre.l" YY_BREAK case 120: YY_RULE_SETUP #line 1992 "pre.l" YY_BREAK case 121: YY_RULE_SETUP #line 1993 "pre.l" YY_BREAK case 122: YY_RULE_SETUP #line 1994 "pre.l" { g_yyLineNr++; outputChar('\n'); } YY_BREAK case 123: YY_RULE_SETUP #line 1995 "pre.l" YY_BREAK case 124: YY_RULE_SETUP #line 1996 "pre.l" { outputArray(yytext,yyleng); } YY_BREAK case 125: YY_RULE_SETUP #line 1999 "pre.l" { unput(*yytext); BEGIN(g_lastCPPContext); } YY_BREAK case 126: YY_RULE_SETUP #line 2003 "pre.l" { outputChar('/');outputChar('*'); } YY_BREAK case 127: YY_RULE_SETUP #line 2006 "pre.l" { outputChar('/');outputChar('/'); } YY_BREAK case 128: YY_RULE_SETUP #line 2009 "pre.l" { outputArray(yytext,yyleng); } YY_BREAK case 129: YY_RULE_SETUP #line 2012 "pre.l" { outputChar(*yytext); } YY_BREAK case 130: YY_RULE_SETUP #line 2015 "pre.l" YY_BREAK case 131: YY_RULE_SETUP #line 2016 "pre.l" YY_BREAK case 132: YY_RULE_SETUP #line 2017 "pre.l" YY_BREAK case 133: YY_RULE_SETUP #line 2018 "pre.l" YY_BREAK case 134: YY_RULE_SETUP #line 2019 "pre.l" { g_quoteArg=TRUE; g_defLitText+=yytext; } YY_BREAK case 135: YY_RULE_SETUP #line 2023 "pre.l" { g_defLitText+=yytext; if (g_quoteArg) { g_defText+="\""; } if (g_defArgs>0) { int *n; if ((n=(*g_argDict)[yytext])) { //if (!g_quoteArg) g_defText+=' '; g_defText+='@'; QCString numStr; numStr.sprintf("%d",*n); g_defText+=numStr; //if (!g_quoteArg) g_defText+=' '; } else { g_defText+=yytext; } } else { g_defText+=yytext; } if (g_quoteArg) { g_defText+="\""; } g_quoteArg=FALSE; } YY_BREAK case 136: YY_RULE_SETUP #line 2056 "pre.l" { g_defLitText+=yytext; outputChar('\n'); g_defText += ' '; g_yyLineNr++; } YY_BREAK case 137: YY_RULE_SETUP #line 2061 "pre.l" { QCString comment=extractTrailingComment(g_defLitText); g_defLitText+=yytext; if (!comment.isEmpty()) { outputArray(comment,comment.length()); g_defLitText=g_defLitText.left(g_defLitText.length()-comment.length()-1); } outputChar('\n'); Define *def=0; //printf("Define name=`%s' text=`%s' litTexti=`%s'\n",g_defName.data(),g_defText.data(),g_defLitText.data()); if (g_includeStack.isEmpty() || g_curlyCount>0) { addDefine(); } def=g_fileDefineDict->find(g_defName); if (def==0) // new define { //printf("new define!\n"); g_fileDefineDict->insert(g_defName,newDefine()); } else if (def)// name already exists { //printf("existing define!\n"); //printf("define found\n"); if (def->undef) // undefined name { def->undef = FALSE; def->name = g_defName; def->definition = g_defText.stripWhiteSpace(); def->nargs = g_defArgs; def->fileName = g_yyFileName.copy(); def->lineNr = g_yyLineNr; } else { //printf("Error: define %s is defined more than once!\n",g_defName.data()); } } delete g_argDict; g_argDict=0; g_yyLineNr++; g_lastGuardName.resize(0); BEGIN(Start); } YY_BREAK case 138: YY_RULE_SETUP #line 2105 "pre.l" { g_defText += ' '; g_defLitText+=yytext; } YY_BREAK case 139: YY_RULE_SETUP #line 2106 "pre.l" { g_defText += "##"; g_defLitText+=yytext; } YY_BREAK case 140: YY_RULE_SETUP #line 2107 "pre.l" { g_defText += "@@"; g_defLitText+=yytext; } YY_BREAK case 141: YY_RULE_SETUP #line 2108 "pre.l" { g_defText += *yytext; g_defLitText+=yytext; if (!g_insideComment) { BEGIN(SkipDoubleQuote); } } YY_BREAK case 142: YY_RULE_SETUP #line 2116 "pre.l" { g_defText += *yytext; g_defLitText+=yytext; if (!g_insideComment) { BEGIN(SkipSingleQuote); } } YY_BREAK case 143: YY_RULE_SETUP #line 2123 "pre.l" { g_defText += yytext; g_defLitText+=yytext; } YY_BREAK case 144: YY_RULE_SETUP #line 2124 "pre.l" { g_defText += yytext; g_defLitText+=yytext; } YY_BREAK case 145: YY_RULE_SETUP #line 2125 "pre.l" { g_defText += *yytext; g_defLitText+=yytext; BEGIN(DefineText); } YY_BREAK case 146: YY_RULE_SETUP #line 2129 "pre.l" { g_defText += yytext; g_defLitText+=yytext; } YY_BREAK case 147: YY_RULE_SETUP #line 2132 "pre.l" { g_defText += *yytext; g_defLitText+=yytext; BEGIN(DefineText); } YY_BREAK case 148: YY_RULE_SETUP #line 2136 "pre.l" { g_defText += *yytext; g_defLitText+=yytext; } YY_BREAK case 149: YY_RULE_SETUP #line 2137 "pre.l" { g_defText += *yytext; g_defLitText+=yytext; } YY_BREAK case 150: YY_RULE_SETUP #line 2138 "pre.l" { g_defText += *yytext; g_defLitText+=yytext; } YY_BREAK case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(Start): case YY_STATE_EOF(Command): case YY_STATE_EOF(SkipCommand): case YY_STATE_EOF(SkipLine): case YY_STATE_EOF(CopyLine): case YY_STATE_EOF(CopyString): case YY_STATE_EOF(Include): case YY_STATE_EOF(IncludeID): case YY_STATE_EOF(EndImport): case YY_STATE_EOF(DefName): case YY_STATE_EOF(DefineArg): case YY_STATE_EOF(DefineText): case YY_STATE_EOF(SkipCPPBlock): case YY_STATE_EOF(Ifdef): case YY_STATE_EOF(Ifndef): case YY_STATE_EOF(SkipCComment): case YY_STATE_EOF(CopyCComment): case YY_STATE_EOF(SkipVerbatim): case YY_STATE_EOF(SkipCPPComment): case YY_STATE_EOF(RemoveCComment): case YY_STATE_EOF(RemoveCPPComment): case YY_STATE_EOF(Guard): case YY_STATE_EOF(DefinedExpr1): case YY_STATE_EOF(DefinedExpr2): case YY_STATE_EOF(SkipDoubleQuote): case YY_STATE_EOF(SkipSingleQuote): case YY_STATE_EOF(UndefName): case YY_STATE_EOF(IgnoreLine): case YY_STATE_EOF(FindDefineArgs): case YY_STATE_EOF(ReadString): case YY_STATE_EOF(CondLine): #line 2139 "pre.l" { //fprintf(stderr,"End of include file\n"); //printf("Include stack depth=%d\n",g_includeStack.count()); if (g_includeStack.isEmpty()) { //fprintf(stderr,"Terminating scanner!\n"); yyterminate(); } else { FileState *fs=g_includeStack.pop(); //fileDefineCache->merge(g_yyFileName,fs->fileName); if (getFileFilter(fs->fileName.data()).isEmpty()) fclose(fs->filePtr); else portable_pclose(fs->filePtr); YY_BUFFER_STATE oldBuf = YY_CURRENT_BUFFER; yy_switch_to_buffer( fs->bufState ); yy_delete_buffer( oldBuf ); g_yyLineNr=fs->lineNr; setFileName(fs->fileName.copy()); //fprintf(stderr,"######## FileName %s\n",g_yyFileName.data()); // Deal with file changes due to // #include's within { .. } blocks QCString lineStr; lineStr.sprintf("# %d \"%s\" 2",g_yyLineNr,g_yyFileName.data()); outputArray(lineStr.data(),lineStr.length()); delete fs; fs=0; } } YY_BREAK case 151: YY_RULE_SETUP #line 2171 "pre.l" { outputChar('/');outputChar('*'); g_lastCContext=YY_START; g_commentCount=1; BEGIN(SkipCComment); } YY_BREAK case 152: YY_RULE_SETUP #line 2177 "pre.l" { outputChar('/');outputChar('/'); g_lastCPPContext=YY_START; BEGIN(SkipCPPComment); } YY_BREAK case 153: YY_RULE_SETUP #line 2182 "pre.l" { outputChar('\n'); g_yyLineNr++; } YY_BREAK case 154: YY_RULE_SETUP #line 2186 "pre.l" { outputChar(*yytext); } YY_BREAK case 155: YY_RULE_SETUP #line 2190 "pre.l" ECHO; YY_BREAK case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = yy_hold_char; YY_RESTORE_YY_MORE_OFFSET if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed yyin at a new source and called * yylex(). If so, then we have to assure * consistency between yy_current_buffer and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ yy_n_chars = yy_current_buffer->yy_n_chars; yy_current_buffer->yy_input_file = yyin; yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) { /* This was really a NUL. */ yy_state_type yy_next_state; yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state(); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = yytext_ptr + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++yy_c_buf_p; yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = yy_c_buf_p; goto yy_find_action; } } else switch ( yy_get_next_buffer() ) { case EOB_ACT_END_OF_FILE: { yy_did_buffer_switch_on_eof = 0; if ( yywrap() ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * yytext, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state(); yy_cp = yy_c_buf_p; yy_bp = yytext_ptr + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: yy_c_buf_p = &yy_current_buffer->yy_ch_buf[yy_n_chars]; yy_current_state = yy_get_previous_state(); yy_cp = yy_c_buf_p; yy_bp = yytext_ptr + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of yylex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer() { register char *dest = yy_current_buffer->yy_ch_buf; register char *source = yytext_ptr; register int number_to_move, i; int ret_val; if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( yy_current_buffer->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ yy_current_buffer->yy_n_chars = yy_n_chars = 0; else { int num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ #ifdef YY_USES_REJECT YY_FATAL_ERROR( "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); #else /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = yy_current_buffer; int yy_c_buf_p_offset = (int) (yy_c_buf_p - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { int new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ yy_flex_realloc( (void *) b->yy_ch_buf, b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = yy_current_buffer->yy_buf_size - number_to_move - 1; #endif } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), yy_n_chars, num_to_read ); yy_current_buffer->yy_n_chars = yy_n_chars; } if ( yy_n_chars == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; yyrestart( yyin ); } else { ret_val = EOB_ACT_LAST_MATCH; yy_current_buffer->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; yy_n_chars += number_to_move; yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state() { register yy_state_type yy_current_state; register char *yy_cp; yy_current_state = yy_start; yy_current_state += YY_AT_BOL(); yy_state_ptr = yy_state_buf; *yy_state_ptr++ = yy_current_state; for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) { register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 54); 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 >= 1055 ) 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 = 54; 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 >= 1055 ) 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 == 1054); if ( ! yy_is_jam ) *yy_state_ptr++ = yy_current_state; return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_UNPUT #ifdef YY_USE_PROTOS static void yyunput( int c, register char *yy_bp ) #else static void yyunput( c, yy_bp ) int c; register char *yy_bp; #endif { register char *yy_cp = yy_c_buf_p; /* undo effects of setting up yytext */ *yy_cp = yy_hold_char; if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) { /* need to shift things up to make room */ /* +2 for EOB chars. */ register int number_to_move = yy_n_chars + 2; register char *dest = &yy_current_buffer->yy_ch_buf[ yy_current_buffer->yy_buf_size + 2]; register char *source = &yy_current_buffer->yy_ch_buf[number_to_move]; while ( source > yy_current_buffer->yy_ch_buf ) *--dest = *--source; yy_cp += (int) (dest - source); yy_bp += (int) (dest - source); yy_current_buffer->yy_n_chars = yy_n_chars = yy_current_buffer->yy_buf_size; if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) YY_FATAL_ERROR( "flex scanner push-back overflow" ); } *--yy_cp = (char) c; yytext_ptr = yy_bp; yy_hold_char = *yy_cp; yy_c_buf_p = yy_cp; } #endif /* ifndef YY_NO_UNPUT */ #ifdef __cplusplus static int yyinput() #else static int input() #endif { int c; *yy_c_buf_p = yy_hold_char; if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) /* This was really a NUL. */ *yy_c_buf_p = '\0'; else { /* need more input */ int offset = yy_c_buf_p - yytext_ptr; ++yy_c_buf_p; switch ( yy_get_next_buffer() ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ yyrestart( yyin ); /* fall through */ case EOB_ACT_END_OF_FILE: { if ( yywrap() ) return EOF; if ( ! yy_did_buffer_switch_on_eof ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: yy_c_buf_p = yytext_ptr + offset; break; } } } c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ *yy_c_buf_p = '\0'; /* preserve yytext */ yy_hold_char = *++yy_c_buf_p; yy_current_buffer->yy_at_bol = (c == '\n'); return c; } #ifdef YY_USE_PROTOS void yyrestart( FILE *input_file ) #else void yyrestart( input_file ) FILE *input_file; #endif { if ( ! yy_current_buffer ) yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); yy_init_buffer( yy_current_buffer, input_file ); yy_load_buffer_state(); } #ifdef YY_USE_PROTOS void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) #else void yy_switch_to_buffer( new_buffer ) YY_BUFFER_STATE new_buffer; #endif { if ( yy_current_buffer == new_buffer ) return; if ( yy_current_buffer ) { /* Flush out information for old buffer. */ *yy_c_buf_p = yy_hold_char; yy_current_buffer->yy_buf_pos = yy_c_buf_p; yy_current_buffer->yy_n_chars = yy_n_chars; } yy_current_buffer = new_buffer; yy_load_buffer_state(); /* We don't actually know whether we did this switch during * EOF (yywrap()) processing, but the only time this flag * is looked at is after yywrap() is called, so it's safe * to go ahead and always set it. */ yy_did_buffer_switch_on_eof = 1; } #ifdef YY_USE_PROTOS void yy_load_buffer_state( void ) #else void yy_load_buffer_state() #endif { yy_n_chars = yy_current_buffer->yy_n_chars; yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; yyin = yy_current_buffer->yy_input_file; yy_hold_char = *yy_c_buf_p; } #ifdef YY_USE_PROTOS YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) #else YY_BUFFER_STATE yy_create_buffer( file, size ) FILE *file; int size; #endif { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); b->yy_is_our_buffer = 1; yy_init_buffer( b, file ); return b; } #ifdef YY_USE_PROTOS void yy_delete_buffer( YY_BUFFER_STATE b ) #else void yy_delete_buffer( b ) YY_BUFFER_STATE b; #endif { if ( ! b ) return; if ( b == yy_current_buffer ) yy_current_buffer = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) yy_flex_free( (void *) b->yy_ch_buf ); yy_flex_free( (void *) b ); } #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 2190 "pre.l" /*@ ---------------------------------------------------------------------------- */ static int getNextChar(const QCString &expr,QCString *rest,uint &pos) { //printf("getNextChar(%s,%s,%d)\n",expr.data(),rest ? rest->data() : 0,pos); if (posisEmpty()) { int cc=rest->at(0); *rest=rest->right(rest->length()-1); //printf("%c=rest\n",cc); return cc; } else { int cc=yyinput(); //printf("%c=yyinput()\n",cc); return cc; } } static int getCurrentChar(const QCString &expr,QCString *rest,uint pos) { //printf("getCurrentChar(%s,%s,%d)\n",expr.data(),rest ? rest->data() : 0,pos); if (posisEmpty()) { int cc=rest->at(0); //printf("%c=rest\n",cc); return cc; } else { int cc=yyinput(); returnCharToStream(cc); //unput((char)cc); //printf("%c=yyinput()\n",cc); return cc; } } static void unputChar(const QCString &expr,QCString *rest,uint &pos,char c) { //printf("unputChar(%s,%s,%d,%c)\n",expr.data(),rest ? rest->data() : 0,pos,c); if (posprepend(cs); } else { //unput(c); returnCharToStream(c); } //printf("result: unputChar(%s,%s,%d,%c)\n",expr.data(),rest ? rest->data() : 0,pos,c); } void addSearchDir(const char *dir) { QFileInfo fi(dir); if (fi.isDir()) g_pathList->append(fi.absFilePath()); } void initPreprocessor() { g_pathList = new QStrList; addSearchDir("."); //defineNameList.setAutoDelete(TRUE); //defineNameList.clear(); //defineDict.clear(); //fileDefineCache = new DefineCache(1009); g_expandedDict = new DefineDict(17); g_fileDefineDict = new DefineDict(1009); } void cleanUpPreprocessor() { //delete fileDefineCache; delete g_fileDefineDict; g_fileDefineDict=0; delete g_expandedDict; g_expandedDict=0; delete g_pathList; g_pathList=0; } void preprocessFile(const char *fileName,BufStr &output) { uint orgOffset=output.curPos(); g_macroExpansion = Config_getBool("MACRO_EXPANSION"); g_expandOnlyPredef = Config_getBool("EXPAND_ONLY_PREDEF"); g_curlyCount=0; g_nospaces=FALSE; g_outputBuf=&output; g_includeStack.setAutoDelete(TRUE); g_includeStack.clear(); g_fileDefineDict->setAutoDelete(TRUE); g_fileDefineDict->clear(); g_expandedDict->setAutoDelete(FALSE); g_expandedDict->clear(); g_condStack.clear(); g_condStack.setAutoDelete(TRUE); // add predefined macros char *defStr; QStrList &predefList = Config_getList("PREDEFINED"); QStrListIterator sli(predefList); for (sli.toFirst();(defStr=sli.current());++sli) { QCString ds = defStr; int i_equals=ds.find('='); int i_obrace=ds.find('('); int i_cbrace=ds.find(')'); bool nonRecursive = i_equals>0 && ds.at(i_equals-1)==':'; if (i_obrace==0) continue; // no define name if (i_obrace argDict(17); argDict.setAutoDelete(TRUE); int i=i_obrace+1,p,l,count=0; // gather the formal arguments in a dictionary while (ii) definition+=tmp.mid(i,p-i); int *argIndex; if ((argIndex=argDict[tmp.mid(p,l)])!=0) { QCString marker; marker.sprintf(" @%d ",*argIndex); definition+=marker; } else { definition+=tmp.mid(p,l); } i=p+l; } if (i<(int)tmp.length()) definition+=tmp.mid(i,tmp.length()-i); // add define definition to the dictionary of defines for this file QCString dname = ds.left(i_obrace); if (!dname.isEmpty()) { Define *def = new Define; def->name = dname; def->definition = definition; def->nargs = count; def->isPredefined = TRUE; def->nonRecursive = nonRecursive; g_fileDefineDict->insert(def->name,def); } //printf("#define `%s' `%s' #nargs=%d\n", // def->name.data(),def->definition.data(),def->nargs); } else if ((i_obrace==-1 || i_obrace>i_equals) && (i_cbrace==-1 || i_cbrace>i_equals) && !ds.isEmpty() && (int)ds.length()>i_equals ) // predefined non-function macro definition { Define *def = new Define; if (i_equals==-1) // simple define without argument { def->name = ds; def->definition = "1"; // substitute occurrences by 1 (true) } else // simple define with argument { int ine=i_equals - (nonRecursive ? 1 : 0); def->name = ds.left(ine); def->definition = ds.right(ds.length()-i_equals-1); } if (!def->name.isEmpty()) { def->nargs = -1; def->isPredefined = TRUE; def->nonRecursive = nonRecursive; g_fileDefineDict->insert(def->name,def); } else { delete def; } //printf("#define `%s' `%s' #nargs=%d\n", // def->name.data(),def->definition.data(),def->nargs); } } QCString inputFilter = getFileFilter(fileName); if (inputFilter.isEmpty()) { preYYin = fopen(fileName,"r"); if (!preYYin) { err("Error: could not open file %s\n",fileName); return; } } else { QCString cmd = inputFilter+" \""+fileName+"\""; Debug::print(Debug::ExtCmd,0,"Executing popen(`%s`)\n",cmd.data()); preYYin = portable_popen(cmd,"r"); if (!preYYin) { err("Error: could not execute filter %s\n",cmd.data()); return; } } g_yyLineNr = 1; g_level = 0; g_ifcount = 0; setFileName(fileName); g_inputFileDef = g_yyFileDef; BEGIN( Start ); g_lastGuardName.resize(0); g_guardExpr.resize(0); preYYlex(); g_lexInit=TRUE; if (inputFilter.isEmpty()) fclose(preYYin); else portable_pclose(preYYin); if (Debug::isFlagSet(Debug::Preprocessor)) { char *orgPos=output.data()+orgOffset; char *newPos=output.data()+output.curPos(); msg("Preprocessor output (size: %d bytes):\n",newPos-orgPos); int line=1; msg("---------\n00001 "); while (orgPos