1 | /* A lexical scanner generated by flex */ 2 | 3 | /* Scanner skeleton version: 4 | * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ 5 | */ 6 | 7 | #define FLEX_SCANNER 8 | #define YY_FLEX_MAJOR_VERSION 2 9 | #define YY_FLEX_MINOR_VERSION 5 10 | 11 | #include <stdio.h> 12 | 13 | 14 | /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ 15 | #ifdef c_plusplus 16 | #ifndef __cplusplus 17 | #define __cplusplus 18 | #endif 19 | #endif 20 | 21 | 22 | #ifdef __cplusplus 23 | 24 | #include <stdlib.h> 25 | #include <unistd.h> 26 | 27 | /* Use prototypes in function declarations. */ 28 | #define YY_USE_PROTOS 29 | 30 | /* The "const" storage-class-modifier is valid. */ 31 | #define YY_USE_CONST 32 | 33 | #else /* ! __cplusplus */ 34 | 35 | #if __STDC__ 36 | 37 | #define YY_USE_PROTOS 38 | #define YY_USE_CONST 39 | 40 | #endif /* __STDC__ */ 41 | #endif /* ! __cplusplus */ 42 | 43 | #ifdef __TURBOC__ 44 | #pragma warn -rch 45 | #pragma warn -use 46 | #include <io.h> 47 | #include <stdlib.h> 48 | #define YY_USE_CONST 49 | #define YY_USE_PROTOS 50 | #endif 51 | 52 | #ifdef YY_USE_CONST 53 | #define yyconst const 54 | #else 55 | #define yyconst 56 | #endif 57 | 58 | 59 | #ifdef YY_USE_PROTOS 60 | #define YY_PROTO(proto) proto 61 | #else 62 | #define YY_PROTO(proto) () 63 | #endif 64 | 65 | /* Returned upon end-of-file. */ 66 | #define YY_NULL 0 67 | 68 | /* Promotes a possibly negative, possibly signed char to an unsigned 69 | * integer for use as an array index. If the signed char is negative, 70 | * we want to instead treat it as an 8-bit unsigned char, hence the 71 | * double cast. 72 | */ 73 | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) 74 | 75 | /* Enter a start condition. This macro really ought to take a parameter, 76 | * but we do it the disgusting crufty way forced on us by the ()-less 77 | * definition of BEGIN. 78 | */ 79 | #define BEGIN yy_start = 1 + 2 * 80 | 81 | /* Translate the current start state into a value that can be later handed 82 | * to BEGIN to return to the state. The YYSTATE alias is for lex 83 | * compatibility. 84 | */ 85 | #define YY_START ((yy_start - 1) / 2) 86 | #define YYSTATE YY_START 87 | 88 | /* Action number for EOF rule of a given start state. */ 89 | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) 90 | 91 | /* Special action meaning "start processing a new file". */ 92 | #define YY_NEW_FILE yyrestart( yyin ) 93 | 94 | #define YY_END_OF_BUFFER_CHAR 0 95 | 96 | /* Size of default input buffer. */ 97 | #define YY_BUF_SIZE 16384 98 | 99 | typedef struct yy_buffer_state *YY_BUFFER_STATE; 100 | 101 | extern int yyleng; 102 | extern FILE *yyin, *yyout; 103 | 104 | #define EOB_ACT_CONTINUE_SCAN 0 105 | #define EOB_ACT_END_OF_FILE 1 106 | #define EOB_ACT_LAST_MATCH 2 107 | 108 | /* The funky do-while in the following #define is used to turn the definition 109 | * int a single C statement (which needs a semi-colon terminator). This 110 | * avoids problems with code like: 111 | * 112 | * if ( condition_holds ) 113 | * yyless( 5 ); 114 | * else 115 | * do_something_else(); 116 | * 117 | * Prior to using the do-while the compiler would get upset at the 118 | * "else" because it interpreted the "if" statement as being all 119 | * done when it reached the ';' after the yyless() call. 120 | */ 121 | 122 | /* Return all but the first 'n' matched characters back to the input stream. */ 123 | 124 | #define yyless(n) \ 125 | do \ 126 | { \ 127 | /* Undo effects of setting up yytext. */ \ 128 | *yy_cp = yy_hold_char; \ 129 | YY_RESTORE_YY_MORE_OFFSET \ 130 | yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \ 131 | YY_DO_BEFORE_ACTION; /* set up yytext again */ \ 132 | } \ 133 | while ( 0 ) 134 | 135 | #define unput(c) yyunput( c, yytext_ptr ) 136 | 137 | /* The following is because we cannot portably get our hands on size_t 138 | * (without autoconf's help, which isn't available because we want 139 | * flex-generated scanners to compile on their own). 140 | */ 141 | typedef unsigned int yy_size_t; 142 | 143 | 144 | struct yy_buffer_state 145 | { 146 | FILE *yy_input_file; 147 | 148 | char *yy_ch_buf; /* input buffer */ 149 | char *yy_buf_pos; /* current position in input buffer */ 150 | 151 | /* Size of input buffer in bytes, not including room for EOB 152 | * characters. 153 | */ 154 | yy_size_t yy_buf_size; 155 | 156 | /* Number of characters read into yy_ch_buf, not including EOB 157 | * characters. 158 | */ 159 | int yy_n_chars; 160 | 161 | /* Whether we "own" the buffer - i.e., we know we created it, 162 | * and can realloc() it to grow it, and should free() it to 163 | * delete it. 164 | */ 165 | int yy_is_our_buffer; 166 | 167 | /* Whether this is an "interactive" input source; if so, and 168 | * if we're using stdio for input, then we want to use getc() 169 | * instead of fread(), to make sure we stop fetching input after 170 | * each newline. 171 | */ 172 | int yy_is_interactive; 173 | 174 | /* Whether we're considered to be at the beginning of a line. 175 | * If so, '^' rules will be active on the next match, otherwise 176 | * not. 177 | */ 178 | int yy_at_bol; 179 | 180 | /* Whether to try to fill the input buffer when we reach the 181 | * end of it. 182 | */ 183 | int yy_fill_buffer; 184 | 185 | int yy_buffer_status; 186 | #define YY_BUFFER_NEW 0 187 | #define YY_BUFFER_NORMAL 1 188 | /* When an EOF's been seen but there's still some text to process 189 | * then we mark the buffer as YY_EOF_PENDING, to indicate that we 190 | * shouldn't try reading from the input source any more. We might 191 | * still have a bunch of tokens to match, though, because of 192 | * possible backing-up. 193 | * 194 | * When we actually see the EOF, we change the status to "new" 195 | * (via yyrestart()), so that the user can continue scanning by 196 | * just pointing yyin at a new input file. 197 | */ 198 | #define YY_BUFFER_EOF_PENDING 2 199 | }; 200 | 201 | static YY_BUFFER_STATE yy_current_buffer = 0; 202 | 203 | /* We provide macros for accessing buffer states in case in the 204 | * future we want to put the buffer states in a more general 205 | * "scanner state". 206 | */ 207 | #define YY_CURRENT_BUFFER yy_current_buffer 208 | 209 | 210 | /* yy_hold_char holds the character lost when yytext is formed. */ 211 | static char yy_hold_char; 212 | 213 | static int yy_n_chars; /* number of characters read into yy_ch_buf */ 214 | 215 | 216 | int yyleng; 217 | 218 | /* Points to current character in buffer. */ 219 | static char *yy_c_buf_p = (char *) 0; 220 | static int yy_init = 1; /* whether we need to initialize */ 221 | static int yy_start = 0; /* start state number */ 222 | 223 | /* Flag which is used to allow yywrap()'s to do buffer switches 224 | * instead of setting up a fresh yyin. A bit of a hack ... 225 | */ 226 | static int yy_did_buffer_switch_on_eof; 227 | 228 | void yyrestart YY_PROTO(( FILE *input_file )); 229 | 230 | void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); 231 | void yy_load_buffer_state YY_PROTO(( void )); 232 | YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); 233 | void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); 234 | void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); 235 | void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); 236 | #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) 237 | 238 | YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); 239 | YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); 240 | YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); 241 | 242 | static void *yy_flex_alloc YY_PROTO(( yy_size_t )); 243 | static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); 244 | static void yy_flex_free YY_PROTO(( void * )); 245 | 246 | #define yy_new_buffer yy_create_buffer 247 | 248 | #define yy_set_interactive(is_interactive) \ 249 | { \ 250 | if ( ! yy_current_buffer ) \ 251 | yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ 252 | yy_current_buffer->yy_is_interactive = is_interactive; \ 253 | } 254 | 255 | #define yy_set_bol(at_bol) \ 256 | { \ 257 | if ( ! yy_current_buffer ) \ 258 | yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ 259 | yy_current_buffer->yy_at_bol = at_bol; \ 260 | } 261 | 262 | #define YY_AT_BOL() (yy_current_buffer->yy_at_bol) 263 | 264 | 265 | #define YY_USES_REJECT 266 | typedef unsigned char YY_CHAR; 267 | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; 268 | typedef int yy_state_type; 269 | extern char *yytext; 270 | #define yytext_ptr yytext 271 | 272 | static yy_state_type yy_get_previous_state YY_PROTO(( void )); 273 | static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); 274 | static int yy_get_next_buffer YY_PROTO(( void )); 275 | static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); 276 | 277 | /* Done after the current pattern has been matched and before the 278 | * corresponding action - sets up yytext. 279 | */ 280 | #define YY_DO_BEFORE_ACTION \ 281 | yytext_ptr = yy_bp; \ 282 | yyleng = (int) (yy_cp - yy_bp); \ 283 | yy_hold_char = *yy_cp; \ 284 | *yy_cp = '\0'; \ 285 | yy_c_buf_p = yy_cp; 286 | 287 | #define YY_NUM_RULES 205 288 | #define YY_END_OF_BUFFER 206 289 | static yyconst short int yy_acclist[792] = 290 | { 0, 291 | 206, 204, 205, 203, 205, 204, 205, 180, 204, 205, 292 | 204, 205, 45, 204, 205, 192, 204, 205, 186, 204, 293 | 205, 179, 204, 205, 204, 205, 173, 204, 205, 175, 294 | 204, 205, 184, 204, 205, 183, 204, 205, 170, 204, 295 | 205, 182, 204, 205, 178, 204, 205, 185, 204, 205, 296 | 195, 204, 205, 195, 204, 205, 171, 204, 205, 164, 297 | 204, 205, 187, 204, 205, 172, 204, 205, 188, 204, 298 | 205, 191, 204, 205, 192, 204, 205, 176, 204, 205, 299 | 177, 204, 205, 189, 204, 205, 192, 204, 205, 192, 300 | 204, 205, 192, 204, 205, 192, 204, 205, 192, 204, 301 | 302 | 205, 192, 204, 205, 192, 204, 205, 192, 204, 205, 303 | 192, 204, 205, 192, 204, 205, 192, 204, 205, 192, 304 | 204, 205, 192, 204, 205, 192, 204, 205, 192, 204, 305 | 205, 192, 204, 205, 165, 204, 205, 190, 204, 205, 306 | 168, 204, 205, 181, 204, 205, 25, 205, 25, 205, 307 | 24, 25, 205, 25, 205, 21, 205, 22, 205, 31, 308 | 205, 30, 205, 31, 205, 31, 205, 31, 205, 37, 309 | 38, 205, 37, 38, 205, 35, 205, 38, 205, 38, 310 | 205, 38, 205, 29, 205, 28, 29, 205, 29, 205, 311 | 26, 205, 27, 205, 205, 34, 205, 205, 42, 43, 312 | 313 | 205, 42, 43, 205, 44, 205, 43, 205, 50, 205, 314 | 52, 205, 50, 205, 50, 205, 50, 205, 205, 205, 315 | 205, 49, 205, 49, 205, 49, 205, 79, 205, 81, 316 | 205, 79, 205, 79, 205, 79, 205, 79, 205, 205, 317 | 205, 205, 84, 205, 205, 205, 55, 205, 53, 205, 318 | 205, 205, 58, 205, 57, 205, 205, 56, 205, 58, 319 | 205, 58, 205, 75, 205, 77, 205, 75, 205, 75, 320 | 205, 66, 75, 205, 75, 205, 75, 205, 75, 205, 321 | 69, 75, 205, 69, 75, 205, 75, 205, 63, 205, 322 | 60, 205, 65, 205, 62, 205, 205, 205, 93, 205, 323 | 324 | 94, 205, 97, 205, 96, 205, 98, 205, 101, 205, 325 | 100, 205, 102, 205, 107, 205, 203, 162, 201, 45, 326 | 192, 192, 148, 157, 149, 146, 154, 144, 155, 145, 327 | 156, 199, 1, 11, 147, 200, 194, 195, 195, 195, 328 | 153, 159, 161, 160, 152, 150, 192, 192, 192, 192, 329 | 192, 192, 192, 192, 115, 192, 192, 192, 192, 192, 330 | 192, 192, 123, 192, 192, 192, 192, 192, 192, 192, 331 | 192, 192, 192, 192, 192, 151, 158, 24, 21, 23, 332 | 22, 30, 33, 37, 37,16420, 35, 41, 28, 26, 333 | 27, 34, 42, 42, 44, 52, 3, 13, 51, 2, 334 | 335 | 12, 46, 49, 49, 49, 81, 5, 15, 80, 9, 336 | 19, 84, 83, 10, 20, 55, 53, 53, 4, 14, 337 | 54, 57, 6, 16, 59, 77, 74, 66, 66, 73, 338 | 71, 8, 18, 72, 68, 69, 69, 69, 76, 63, 339 | 60, 7, 17, 64, 93, 97, 101, 196, 174, 169, 340 | 141, 199, 199, 200, 200, 194, 195, 198, 193, 163, 341 | 143, 142, 202, 192, 192, 192, 192, 192, 192, 192, 342 | 192, 192, 192, 192, 91, 192, 192, 192, 192, 192, 343 | 192, 192, 192, 192, 192, 192, 192, 121, 192, 192, 344 | 192, 124, 192, 192, 192, 192, 192, 192, 192, 192, 345 | 346 | 192, 192, 192, 192, 192, 192, 192, 192, 32, 8228, 347 | 39, 40, 49, 49, 78, 82, 74, 73, 71, 71, 348 | 72, 72, 68, 69, 70, 67, 199, 199, 200, 200, 349 | 198, 193, 197, 192, 192, 192, 192, 192, 192, 192, 350 | 192, 192, 192, 192, 192, 192, 108, 192, 192, 110, 351 | 192, 111, 192, 192, 192, 192, 192, 117, 192, 118, 352 | 192, 192, 192, 122, 192, 192, 126, 192, 192, 192, 353 | 192, 192, 192, 192, 192, 192, 192, 192, 192, 138, 354 | 192, 192, 192, 167, 166, 49, 49, 71, 71, 72, 355 | 72, 70, 67, 61, 199, 200, 192, 192, 91, 192, 356 | 357 | 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 358 | 109, 192, 192, 112, 192, 192, 192, 192, 192, 120, 359 | 192, 192, 192, 192, 129, 192, 192, 192, 192, 192, 360 | 192, 192, 192, 136, 192, 192, 192, 140, 192, 49, 361 | 49, 71, 72, 192, 192, 192, 192, 192, 192, 192, 362 | 192, 192, 192, 192, 192, 192, 192, 192, 192, 116, 363 | 192, 119, 192, 125, 192, 192, 128, 192, 130, 192, 364 | 131, 192, 132, 192, 133, 192, 134, 192, 192, 99, 365 | 192, 192, 192, 49, 49, 192, 192, 192, 89, 192, 366 | 192, 192, 192, 192, 192, 192, 192, 192, 192, 192, 367 | 368 | 114, 192, 192, 135, 192, 192, 192, 47, 49, 192, 369 | 192, 192, 192, 192, 90, 192, 192, 192, 86, 192, 370 | 99, 192, 192, 192, 192, 113, 192, 127, 192, 137, 371 | 192, 139, 192, 48, 192, 85, 192, 192, 89, 192, 372 | 192, 192, 92, 192, 192, 192, 192, 192, 192, 192, 373 | 192, 192, 192, 192, 90, 192, 104, 192, 86, 192, 374 | 87, 192, 88, 192, 192, 192, 85, 192, 95, 192, 375 | 192, 192, 192, 192, 192, 105, 192, 192, 192, 104, 376 | 192, 87, 192, 88, 192, 192, 95, 192, 103, 192, 377 | 106 378 | 379 | } ; 380 | 381 | static yyconst short int yy_accept[682] = 382 | { 0, 383 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 384 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 385 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 386 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 387 | 1, 1, 1, 2, 4, 6, 8, 11, 13, 16, 388 | 19, 22, 25, 27, 30, 33, 36, 39, 42, 45, 389 | 48, 51, 54, 57, 60, 63, 66, 69, 72, 75, 390 | 78, 81, 84, 87, 90, 93, 96, 99, 102, 105, 391 | 108, 111, 114, 117, 120, 123, 126, 129, 132, 135, 392 | 138, 141, 144, 147, 149, 151, 154, 156, 158, 160, 393 | 394 | 162, 164, 166, 168, 170, 173, 176, 178, 180, 182, 395 | 184, 186, 189, 191, 193, 195, 196, 198, 199, 202, 396 | 205, 207, 209, 211, 213, 215, 217, 219, 220, 221, 397 | 222, 224, 226, 228, 230, 232, 234, 236, 238, 240, 398 | 241, 242, 243, 245, 246, 247, 249, 251, 252, 253, 399 | 255, 257, 258, 260, 262, 264, 266, 268, 270, 272, 400 | 275, 277, 279, 281, 284, 287, 289, 291, 293, 295, 401 | 297, 298, 299, 301, 303, 305, 307, 309, 311, 313, 402 | 315, 317, 318, 318, 319, 319, 320, 320, 321, 322, 403 | 323, 324, 325, 326, 326, 326, 326, 326, 327, 328, 404 | 405 | 329, 329, 329, 330, 331, 332, 332, 333, 334, 335, 406 | 336, 337, 339, 339, 340, 340, 341, 341, 341, 342, 407 | 343, 344, 345, 346, 346, 346, 347, 348, 349, 350, 408 | 351, 352, 353, 354, 355, 357, 358, 359, 360, 361, 409 | 362, 363, 365, 366, 367, 368, 369, 370, 371, 372, 410 | 373, 374, 375, 376, 377, 378, 378, 378, 378, 378, 411 | 379, 379, 380, 381, 382, 383, 383, 383, 383, 384, 412 | 385, 386, 386, 386, 386, 387, 388, 388, 388, 389, 413 | 389, 390, 390, 391, 392, 392, 393, 393, 394, 395, 414 | 396, 396, 397, 397, 398, 399, 400, 400, 401, 402, 415 | 416 | 403, 403, 404, 405, 406, 407, 407, 407, 408, 409, 417 | 410, 410, 410, 411, 412, 412, 413, 413, 414, 415, 418 | 416, 417, 418, 419, 420, 421, 422, 422, 423, 423, 419 | 424, 425, 426, 426, 427, 427, 427, 428, 428, 429, 420 | 430, 430, 431, 431, 432, 433, 434, 435, 437, 437, 421 | 438, 438, 439, 440, 440, 441, 442, 442, 443, 444, 422 | 445, 445, 446, 447, 448, 449, 450, 451, 452, 452, 423 | 453, 455, 455, 456, 458, 458, 459, 460, 461, 462, 424 | 463, 463, 464, 464, 464, 464, 465, 466, 467, 468, 425 | 469, 470, 471, 472, 473, 474, 475, 477, 478, 479, 426 | 427 | 480, 481, 482, 483, 484, 485, 486, 487, 488, 490, 428 | 491, 492, 494, 495, 496, 497, 498, 499, 500, 501, 429 | 502, 503, 504, 505, 506, 507, 508, 509, 509, 509, 430 | 509, 509, 510, 511, 511, 512, 513, 514, 515, 516, 431 | 517, 517, 518, 518, 518, 519, 519, 519, 520, 522, 432 | 522, 523, 525, 525, 526, 527, 527, 527, 528, 528, 433 | 530, 530, 531, 532, 533, 534, 535, 536, 537, 538, 434 | 539, 540, 541, 542, 543, 544, 545, 546, 547, 549, 435 | 550, 552, 554, 555, 556, 557, 558, 560, 562, 563, 436 | 564, 566, 567, 569, 570, 571, 572, 573, 574, 575, 437 | 438 | 576, 577, 578, 579, 580, 582, 583, 584, 585, 586, 439 | 587, 588, 588, 589, 589, 591, 591, 592, 593, 594, 440 | 595, 595, 597, 598, 599, 601, 602, 603, 604, 605, 441 | 606, 607, 608, 609, 610, 611, 613, 614, 616, 617, 442 | 618, 619, 620, 622, 623, 624, 625, 627, 628, 629, 443 | 630, 631, 632, 633, 634, 636, 637, 638, 640, 641, 444 | 642, 642, 644, 645, 646, 647, 648, 649, 650, 651, 445 | 652, 653, 654, 655, 656, 657, 658, 659, 660, 662, 446 | 664, 666, 667, 669, 671, 673, 675, 677, 679, 680, 447 | 682, 683, 684, 685, 686, 687, 688, 689, 691, 692, 448 | 449 | 693, 694, 695, 696, 697, 698, 699, 700, 701, 703, 450 | 704, 706, 707, 708, 709, 710, 711, 712, 713, 714, 451 | 715, 717, 718, 719, 721, 723, 724, 725, 726, 728, 452 | 730, 732, 734, 735, 736, 738, 739, 741, 742, 743, 453 | 745, 746, 747, 748, 749, 750, 751, 752, 753, 754, 454 | 755, 757, 759, 761, 763, 765, 766, 767, 769, 771, 455 | 772, 773, 774, 775, 776, 778, 779, 780, 782, 784, 456 | 786, 787, 789, 791, 791, 791, 791, 791, 791, 792, 457 | 792 458 | } ; 459 | 460 | static yyconst int yy_ec[256] = 461 | { 0, 462 | 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 463 | 1, 1, 4, 1, 1, 1, 1, 1, 1, 1, 464 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 465 | 1, 2, 5, 6, 7, 8, 9, 10, 11, 12, 466 | 13, 14, 15, 16, 17, 18, 19, 20, 21, 21, 467 | 21, 21, 21, 21, 21, 21, 21, 22, 23, 24, 468 | 25, 26, 27, 1, 28, 28, 29, 28, 30, 31, 469 | 32, 32, 33, 32, 32, 34, 32, 35, 36, 32, 470 | 32, 32, 32, 37, 38, 32, 32, 39, 32, 32, 471 | 40, 41, 42, 43, 44, 1, 45, 46, 47, 48, 472 | 473 | 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 474 | 59, 60, 54, 61, 62, 63, 64, 65, 66, 67, 475 | 68, 69, 70, 71, 72, 73, 1, 1, 1, 1, 476 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 477 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 478 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 479 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 480 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 481 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 482 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 483 | 484 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 485 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 486 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 487 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 488 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 489 | 1, 1, 1, 1, 1 490 | } ; 491 | 492 | static yyconst int yy_meta[74] = 493 | { 0, 494 | 1, 1, 2, 3, 1, 4, 1, 5, 1, 1, 495 | 6, 7, 7, 8, 8, 1, 1, 9, 1, 10, 496 | 10, 1, 11, 1, 1, 12, 1, 10, 10, 10, 497 | 10, 5, 5, 5, 5, 5, 5, 5, 5, 1, 498 | 1, 1, 1, 5, 13, 13, 13, 13, 13, 13, 499 | 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 500 | 14, 14, 14, 14, 14, 14, 14, 14, 14, 1, 501 | 1, 1, 1 502 | } ; 503 | 504 | static yyconst short int yy_base[718] = 505 | { 0, 506 | 0, 0, 72, 75, 77, 79, 93, 96, 98, 100, 507 | 81, 102, 114, 117, 119, 121, 144, 195, 125, 129, 508 | 120, 124, 148, 152, 264, 0, 335, 337, 378, 0, 509 | 451, 0, 1982, 1981, 124, 129, 0, 0, 133, 145, 510 | 0, 0, 2003, 2006, 2006, 165, 1977, 141, 1999, 1992, 511 | 1974, 149, 1957, 2006, 159, 1972, 158, 215, 155, 166, 512 | 204, 507, 513, 2006, 217, 151, 1971, 195, 2006, 216, 513 | 2006, 2006, 1970, 521, 169, 171, 527, 524, 522, 528, 514 | 126, 180, 531, 518, 540, 530, 536, 532, 544, 2006, 515 | 517, 212, 2006, 2006, 343, 2006, 222, 346, 348, 2006, 516 | 517 | 2006, 339, 352, 337, 0, 593, 595, 365, 345, 358, 518 | 2006, 2006, 371, 1980, 1978, 546, 2006, 550, 0, 555, 519 | 2006, 557, 2006, 2006, 572, 585, 578, 2006, 586, 599, 520 | 0, 1943, 1933, 2006, 2006, 608, 0, 599, 611, 0, 521 | 602, 620, 2006, 622, 613, 1988, 1981, 614, 626, 2006, 522 | 2006, 631, 2006, 617, 634, 2006, 2006, 639, 633, 1980, 523 | 544, 624, 632, 657, 634, 644, 1985, 1968, 2006, 2006, 524 | 639, 646, 0, 2006, 0, 2006, 2006, 0, 2006, 2006, 525 | 2006, 2006, 653, 2006, 653, 2006, 1982, 1982, 1975, 1974, 526 | 2006, 2006, 2006, 651, 658, 351, 646, 2006, 2006, 2006, 527 | 528 | 661, 657, 2006, 2006, 2006, 1963, 680, 2006, 2006, 2006, 529 | 688, 705, 664, 648, 0, 728, 686, 683, 1955, 2006, 530 | 2006, 2006, 1954, 687, 1937, 2006, 785, 659, 707, 691, 531 | 665, 662, 695, 681, 709, 712, 724, 726, 737, 725, 532 | 734, 1969, 739, 733, 743, 742, 748, 759, 747, 749, 533 | 752, 755, 757, 2006, 2006, 757, 762, 810, 821, 2006, 534 | 768, 837, 2006, 813, 2006, 775, 768, 804, 2006, 0, 535 | 829, 1962, 807, 840, 855, 851, 857, 761, 2006, 1956, 536 | 2006, 860, 1960, 1946, 864, 2006, 866, 0, 872, 2006, 537 | 868, 2006, 874, 2006, 2006, 2006, 876, 2006, 2006, 1945, 538 | 539 | 879, 0, 1887, 1863, 2006, 879, 807, 2006, 2006, 2006, 540 | 881, 1890, 2006, 2006, 884, 2006, 886, 871, 2006, 2006, 541 | 1884, 1865, 1864, 2006, 2006, 2006, 890, 2006, 892, 2006, 542 | 2006, 2006, 894, 2006, 898, 762, 2006, 902, 1861, 1860, 543 | 796, 2006, 899, 895, 2006, 2006, 897, 903, 892, 898, 544 | 0, 940, 2006, 916, 1865, 1836, 1835, 2006, 2006, 2006, 545 | 931, 0, 0, 0, 2006, 2006, 2006, 2006, 948, 2006, 546 | 951, 971, 2006, 939, 918, 959, 949, 2006, 2006, 2006, 547 | 908, 2006, 1846, 953, 787, 968, 958, 940, 949, 967, 548 | 989, 777, 976, 934, 990, 1000, 1840, 1002, 1004, 1003, 549 | 550 | 1009, 1010, 1011, 556, 1014, 1018, 1015, 1020, 1838, 1019, 551 | 1016, 1837, 1023, 1024, 1022, 1027, 1025, 1030, 1028, 1029, 552 | 1031, 1032, 1033, 1034, 1036, 1035, 1039, 1043, 936, 1048, 553 | 1032, 2006, 2006, 1050, 2006, 2006, 1791, 1787, 2006, 2006, 554 | 1049, 1060, 1092, 1065, 1071, 1093, 1088, 2006, 1090, 1098, 555 | 2006, 1088, 1037, 1107, 1091, 1812, 1079, 1111, 1133, 2006, 556 | 1096, 1138, 2006, 1122, 2006, 1127, 1077, 1094, 1060, 1106, 557 | 1128, 1081, 1135, 1141, 1157, 1158, 1160, 1163, 1821, 1052, 558 | 1817, 1162, 1165, 1167, 1166, 1168, 1816, 1814, 1171, 1172, 559 | 1813, 1169, 1812, 1174, 1176, 1175, 1177, 1181, 1188, 80, 560 | 561 | 1182, 1185, 1184, 1192, 1811, 1187, 1190, 2006, 2006, 1749, 562 | 1737, 1181, 1225, 1190, 2006, 1192, 1227, 2006, 1215, 2006, 563 | 1194, 1234, 1196, 1201, 1179, 1208, 1189, 1213, 1223, 1249, 564 | 1209, 1252, 1255, 1256, 1258, 1785, 1226, 1770, 1259, 1262, 565 | 1265, 1266, 1769, 1270, 1272, 1274, 1747, 1277, 1278, 1279, 566 | 1280, 1281, 1285, 1286, 1742, 1284, 1287, 1741, 1690, 1683, 567 | 1276, 1281, 1292, 1291, 1297, 1298, 1299, 1300, 1303, 1308, 568 | 1305, 1314, 1312, 1319, 1313, 1315, 1322, 1330, 1722, 1720, 569 | 1719, 1331, 1718, 1717, 1503, 1502, 1499, 1498, 1337, 1496, 570 | 1336, 1338, 1501, 1450, 1339, 1340, 1342, 1345, 1344, 1346, 571 | 572 | 1347, 1348, 1349, 1357, 1351, 1359, 1360, 1361, 1476, 1365, 573 | 1467, 1366, 1367, 1466, 1455, 1369, 1370, 1371, 1373, 1374, 574 | 1375, 1384, 1376, 1388, 1390, 1382, 1392, 1394, 1421, 1191, 575 | 1063, 948, 928, 1395, 1396, 1400, 837, 1405, 1403, 821, 576 | 1407, 1410, 1414, 1417, 1425, 1416, 1428, 1429, 1430, 1431, 577 | 744, 1433, 562, 1434, 1436, 1435, 1437, 560, 1438, 1441, 578 | 1442, 1443, 1444, 1445, 558, 1447, 1448, 369, 338, 231, 579 | 1459, 229, 101, 1464, 1481, 1488, 1492, 342, 2006, 2006, 580 | 1513, 1527, 1541, 1555, 1569, 1583, 1597, 1611, 1625, 1639, 581 | 1653, 1667, 1681, 1695, 1709, 1719, 1733, 1747, 1761, 1775, 582 | 583 | 1446, 1789, 1803, 1813, 1827, 1837, 1851, 1861, 1875, 1889, 584 | 1903, 1485, 1917, 1931, 1945, 1959, 1487 585 | } ; 586 | 587 | static yyconst short int yy_def[718] = 588 | { 0, 589 | 680, 1, 681, 681, 682, 682, 683, 683, 684, 684, 590 | 685, 685, 686, 686, 687, 687, 688, 688, 689, 689, 591 | 688, 688, 688, 688, 680, 25, 690, 690, 680, 29, 592 | 680, 31, 691, 691, 692, 692, 688, 688, 693, 693, 593 | 694, 694, 680, 680, 680, 680, 680, 695, 680, 696, 594 | 680, 680, 697, 680, 680, 680, 680, 680, 680, 680, 595 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 696, 596 | 680, 680, 680, 696, 696, 696, 696, 696, 696, 696, 597 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 680, 598 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 599 | 600 | 680, 680, 680, 680, 698, 698, 680, 680, 680, 680, 601 | 680, 680, 680, 680, 680, 699, 680, 699, 700, 700, 602 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 603 | 701, 701, 701, 680, 680, 680, 702, 680, 680, 703, 604 | 680, 680, 680, 680, 680, 680, 704, 680, 680, 680, 605 | 680, 680, 680, 680, 680, 680, 680, 680, 705, 706, 606 | 707, 680, 680, 680, 680, 680, 680, 708, 680, 680, 607 | 680, 680, 709, 680, 710, 680, 680, 711, 680, 680, 608 | 680, 680, 680, 680, 695, 680, 695, 680, 696, 696, 609 | 680, 680, 680, 697, 697, 680, 680, 680, 680, 680, 610 | 611 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 612 | 680, 680, 680, 680, 712, 680, 680, 680, 680, 680, 613 | 680, 680, 680, 713, 714, 680, 696, 696, 696, 696, 614 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 615 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 616 | 696, 696, 696, 680, 680, 680, 680, 680, 680, 680, 617 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 698, 618 | 698, 680, 680, 680, 680, 680, 680, 680, 680, 680, 619 | 680, 680, 680, 680, 699, 680, 699, 700, 700, 680, 620 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 621 | 622 | 680, 701, 701, 701, 680, 680, 702, 680, 680, 680, 623 | 680, 703, 680, 680, 680, 680, 680, 680, 680, 680, 624 | 680, 704, 704, 680, 680, 680, 680, 680, 680, 680, 625 | 680, 680, 680, 680, 680, 705, 680, 715, 706, 706, 626 | 707, 680, 716, 680, 680, 680, 680, 680, 680, 680, 627 | 717, 680, 680, 680, 680, 708, 680, 680, 680, 680, 628 | 680, 709, 710, 711, 680, 680, 680, 680, 680, 680, 629 | 680, 680, 680, 680, 680, 680, 712, 680, 680, 680, 630 | 713, 680, 713, 714, 714, 696, 696, 696, 696, 696, 631 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 632 | 633 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 634 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 635 | 696, 696, 696, 696, 696, 696, 696, 680, 680, 680, 636 | 680, 680, 680, 680, 680, 680, 701, 701, 680, 680, 637 | 705, 705, 715, 707, 707, 716, 680, 680, 680, 680, 638 | 680, 680, 680, 680, 717, 680, 680, 680, 680, 680, 639 | 680, 680, 680, 680, 680, 696, 696, 696, 696, 696, 640 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 641 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 642 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 643 | 644 | 696, 696, 696, 696, 696, 696, 696, 680, 680, 701, 645 | 701, 680, 680, 680, 680, 680, 680, 680, 680, 680, 646 | 680, 680, 696, 696, 696, 696, 696, 696, 696, 696, 647 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 648 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 649 | 696, 696, 696, 696, 696, 696, 696, 696, 701, 701, 650 | 680, 680, 696, 696, 696, 696, 696, 696, 696, 696, 651 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 652 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 653 | 696, 696, 701, 701, 696, 696, 696, 696, 696, 696, 654 | 655 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 656 | 696, 696, 696, 680, 701, 696, 696, 696, 696, 696, 657 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 658 | 696, 696, 680, 696, 696, 696, 696, 696, 696, 696, 659 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 660 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 661 | 696, 696, 696, 696, 696, 696, 696, 696, 696, 696, 662 | 696, 696, 696, 680, 680, 680, 680, 680, 680, 0, 663 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 664 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 665 | 666 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 667 | 680, 680, 680, 680, 680, 680, 680 668 | } ; 669 | 670 | static yyconst short int yy_nxt[2080] = 671 | { 0, 672 | 44, 44, 45, 46, 47, 48, 49, 50, 51, 52, 673 | 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 674 | 63, 64, 65, 66, 67, 68, 69, 50, 50, 50, 675 | 50, 50, 50, 70, 50, 50, 50, 50, 50, 71, 676 | 44, 72, 73, 74, 75, 76, 77, 78, 79, 80, 677 | 81, 50, 82, 50, 50, 83, 50, 50, 50, 50, 678 | 84, 85, 86, 87, 88, 89, 50, 50, 50, 90, 679 | 91, 92, 93, 95, 96, 97, 95, 96, 97, 101, 680 | 102, 101, 102, 117, 118, 98, 99, 189, 98, 99, 681 | 103, 104, 103, 104, 106, 107, 108, 106, 107, 108, 682 | 683 | 112, 113, 112, 113, 117, 118, 109, 110, 189, 109, 684 | 110, 114, 115, 114, 115, 120, 121, 122, 120, 121, 685 | 122, 124, 125, 124, 125, 140, 551, 135, 136, 140, 686 | 137, 135, 136, 189, 137, 176, 177, 126, 141, 126, 687 | 176, 177, 141, 138, 179, 180, 186, 138, 137, 142, 688 | 143, 144, 137, 142, 143, 144, 179, 180, 192, 127, 689 | 196, 127, 129, 130, 130, 139, 145, 182, 183, 139, 690 | 145, 203, 199, 193, 219, 220, 189, 197, 189, 204, 691 | 205, 187, 200, 206, 241, 207, 207, 189, 131, 131, 692 | 131, 132, 131, 131, 131, 131, 133, 131, 131, 131, 693 | 694 | 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 695 | 131, 131, 131, 129, 130, 130, 201, 208, 217, 222, 696 | 223, 224, 209, 189, 260, 261, 225, 256, 210, 242, 697 | 228, 230, 229, 202, 257, 218, 189, 243, 189, 131, 698 | 131, 131, 132, 131, 131, 131, 131, 133, 131, 131, 699 | 131, 131, 131, 131, 131, 131, 131, 131, 131, 131, 700 | 131, 131, 131, 131, 128, 146, 128, 128, 128, 128, 701 | 128, 147, 128, 128, 128, 128, 128, 128, 128, 128, 702 | 128, 128, 148, 128, 128, 128, 128, 128, 128, 128, 703 | 128, 147, 147, 147, 147, 147, 147, 147, 147, 147, 704 | 705 | 147, 147, 147, 128, 149, 128, 128, 147, 147, 147, 706 | 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 707 | 147, 147, 147, 147, 147, 147, 147, 147, 147, 147, 708 | 147, 147, 147, 128, 128, 128, 128, 151, 152, 151, 709 | 152, 265, 266, 678, 258, 189, 153, 258, 153, 258, 710 | 267, 268, 196, 154, 679, 154, 259, 258, 278, 262, 711 | 258, 259, 264, 279, 263, 267, 268, 276, 277, 197, 712 | 269, 280, 273, 281, 282, 155, 189, 155, 156, 156, 713 | 157, 158, 156, 159, 156, 160, 156, 156, 161, 156, 714 | 156, 156, 156, 156, 156, 162, 163, 164, 165, 156, 715 | 716 | 156, 156, 156, 156, 156, 160, 160, 160, 160, 160, 717 | 160, 160, 160, 160, 160, 160, 160, 156, 166, 156, 718 | 156, 160, 160, 160, 160, 160, 160, 160, 160, 160, 719 | 160, 160, 160, 160, 160, 160, 160, 160, 160, 160, 720 | 160, 160, 160, 160, 160, 160, 160, 156, 156, 156, 721 | 156, 128, 167, 128, 128, 128, 128, 128, 168, 128, 722 | 128, 128, 128, 169, 128, 128, 170, 128, 128, 171, 723 | 128, 128, 128, 128, 128, 128, 128, 128, 168, 168, 724 | 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 725 | 128, 172, 128, 128, 168, 168, 168, 168, 168, 168, 726 | 727 | 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 728 | 168, 168, 168, 168, 168, 168, 168, 168, 168, 168, 729 | 128, 128, 128, 128, 211, 189, 212, 212, 189, 189, 730 | 211, 189, 216, 216, 189, 189, 213, 189, 189, 189, 731 | 214, 254, 213, 189, 214, 215, 214, 189, 286, 287, 732 | 214, 189, 286, 287, 342, 213, 289, 290, 291, 290, 733 | 291, 213, 214, 189, 227, 189, 245, 189, 214, 189, 734 | 214, 231, 234, 215, 292, 293, 214, 236, 232, 237, 735 | 296, 297, 235, 239, 343, 233, 240, 255, 238, 244, 736 | 252, 246, 247, 251, 271, 253, 274, 250, 294, 298, 737 | 738 | 300, 486, 248, 295, 299, 249, 272, 273, 275, 275, 739 | 305, 306, 308, 310, 311, 313, 275, 309, 301, 301, 740 | 314, 315, 316, 317, 316, 317, 319, 324, 326, 327, 741 | 330, 320, 325, 328, 329, 331, 332, 333, 337, 318, 742 | 318, 334, 335, 344, 344, 345, 353, 354, 360, 361, 743 | 346, 347, 358, 352, 352, 182, 183, 359, 186, 366, 744 | 680, 365, 201, 349, 366, 275, 189, 350, 194, 189, 745 | 367, 350, 189, 338, 347, 367, 348, 348, 375, 202, 746 | 375, 214, 349, 376, 376, 214, 349, 217, 189, 350, 747 | 350, 195, 382, 187, 350, 351, 378, 350, 189, 207, 748 | 749 | 207, 378, 189, 214, 218, 349, 401, 371, 371, 369, 750 | 370, 214, 350, 370, 189, 397, 189, 372, 373, 189, 751 | 350, 373, 211, 351, 212, 212, 400, 383, 369, 370, 752 | 403, 189, 189, 189, 213, 370, 372, 373, 374, 399, 753 | 189, 189, 374, 373, 189, 211, 189, 216, 216, 189, 754 | 189, 189, 402, 213, 189, 189, 189, 213, 428, 189, 755 | 374, 214, 189, 430, 189, 214, 189, 337, 374, 398, 756 | 260, 261, 404, 405, 278, 429, 213, 265, 266, 435, 757 | 431, 267, 268, 214, 189, 409, 432, 406, 407, 680, 758 | 413, 214, 189, 414, 411, 408, 410, 384, 417, 421, 759 | 760 | 416, 412, 338, 419, 423, 415, 342, 425, 422, 427, 761 | 426, 258, 439, 424, 258, 386, 418, 267, 268, 420, 762 | 280, 273, 258, 259, 258, 474, 259, 264, 189, 387, 763 | 271, 388, 439, 389, 259, 258, 343, 390, 258, 263, 764 | 391, 274, 272, 273, 189, 392, 393, 394, 395, 396, 765 | 262, 258, 274, 275, 275, 263, 433, 433, 434, 276, 766 | 277, 275, 281, 282, 275, 275, 286, 287, 286, 287, 767 | 290, 291, 275, 289, 290, 291, 292, 293, 296, 297, 768 | 300, 305, 306, 310, 311, 315, 316, 317, 316, 317, 769 | 318, 318, 326, 327, 328, 329, 332, 333, 301, 301, 770 | 771 | 334, 335, 341, 318, 318, 336, 453, 442, 453, 445, 772 | 275, 454, 454, 382, 344, 344, 449, 449, 353, 354, 773 | 347, 275, 348, 348, 447, 448, 450, 451, 448, 633, 774 | 451, 350, 349, 360, 361, 350, 452, 376, 376, 446, 775 | 452, 189, 443, 447, 448, 450, 451, 189, 383, 508, 776 | 448, 349, 451, 350, 508, 189, 189, 347, 452, 352, 777 | 352, 350, 457, 465, 457, 189, 452, 458, 458, 349, 778 | 371, 371, 374, 350, 189, 189, 374, 350, 376, 376, 779 | 459, 460, 464, 189, 460, 461, 464, 461, 349, 463, 780 | 462, 462, 463, 385, 374, 350, 189, 189, 470, 459, 781 | 782 | 460, 476, 374, 350, 464, 466, 460, 189, 463, 189, 783 | 189, 189, 464, 467, 463, 471, 189, 189, 189, 468, 784 | 469, 189, 189, 189, 472, 189, 189, 189, 475, 189, 785 | 189, 189, 189, 473, 189, 189, 189, 189, 189, 189, 786 | 189, 189, 189, 189, 428, 509, 189, 477, 480, 430, 787 | 509, 481, 433, 434, 337, 485, 454, 454, 478, 189, 788 | 479, 429, 487, 489, 490, 337, 431, 189, 492, 482, 789 | 189, 483, 484, 493, 488, 342, 494, 491, 498, 506, 790 | 502, 342, 497, 505, 189, 495, 504, 496, 189, 338, 791 | 499, 503, 500, 501, 507, 336, 341, 442, 458, 458, 792 | 793 | 338, 189, 512, 445, 512, 343, 536, 513, 513, 449, 794 | 449, 343, 516, 189, 516, 462, 462, 517, 517, 514, 795 | 515, 452, 526, 515, 519, 452, 454, 454, 519, 524, 796 | 458, 458, 443, 446, 189, 189, 529, 518, 514, 515, 797 | 518, 370, 189, 452, 370, 515, 519, 521, 189, 521, 798 | 525, 452, 522, 522, 519, 464, 518, 462, 462, 464, 799 | 370, 523, 518, 527, 189, 189, 370, 189, 373, 189, 800 | 189, 373, 189, 189, 189, 189, 189, 464, 189, 189, 801 | 530, 189, 189, 189, 189, 464, 189, 373, 189, 189, 802 | 528, 189, 189, 373, 189, 189, 189, 189, 189, 189, 803 | 804 | 513, 513, 531, 189, 561, 537, 561, 532, 189, 562, 805 | 562, 517, 517, 522, 522, 189, 189, 533, 535, 539, 806 | 189, 534, 565, 541, 563, 548, 544, 538, 552, 540, 807 | 189, 542, 553, 189, 543, 545, 546, 547, 558, 549, 808 | 550, 555, 556, 554, 513, 513, 517, 517, 519, 557, 809 | 567, 564, 519, 522, 522, 448, 189, 451, 448, 189, 810 | 451, 568, 189, 189, 460, 189, 189, 460, 566, 189, 811 | 519, 571, 189, 189, 448, 569, 451, 189, 519, 189, 812 | 448, 189, 451, 460, 189, 189, 189, 189, 189, 460, 813 | 576, 189, 189, 189, 189, 562, 562, 570, 189, 189, 814 | 815 | 562, 562, 575, 573, 189, 189, 189, 189, 574, 572, 816 | 189, 515, 189, 579, 515, 189, 577, 578, 581, 189, 817 | 189, 189, 189, 580, 584, 586, 189, 585, 595, 189, 818 | 515, 583, 588, 589, 582, 590, 515, 189, 189, 592, 819 | 397, 591, 587, 189, 189, 189, 189, 189, 596, 189, 820 | 597, 189, 189, 189, 189, 189, 189, 599, 189, 607, 821 | 600, 598, 603, 601, 189, 602, 189, 189, 189, 605, 822 | 604, 616, 189, 189, 189, 606, 189, 189, 189, 610, 823 | 189, 189, 189, 189, 612, 608, 611, 618, 619, 189, 824 | 622, 189, 609, 613, 621, 189, 624, 189, 617, 189, 825 | 826 | 623, 189, 189, 189, 634, 620, 625, 189, 626, 629, 827 | 189, 627, 189, 631, 189, 632, 637, 189, 639, 635, 828 | 628, 189, 641, 189, 189, 630, 638, 640, 189, 647, 829 | 644, 642, 189, 643, 636, 189, 189, 189, 189, 648, 830 | 189, 189, 189, 189, 189, 189, 651, 645, 189, 189, 831 | 189, 189, 189, 653, 189, 189, 633, 590, 302, 302, 832 | 674, 646, 649, 650, 654, 674, 189, 614, 656, 652, 833 | 675, 657, 658, 655, 189, 675, 661, 662, 659, 663, 834 | 665, 666, 676, 189, 667, 668, 669, 670, 660, 676, 835 | 672, 673, 664, 678, 377, 671, 455, 377, 615, 455, 836 | 837 | 677, 677, 614, 189, 679, 189, 189, 677, 677, 189, 838 | 189, 677, 677, 94, 94, 94, 94, 94, 94, 94, 839 | 94, 94, 94, 94, 94, 94, 94, 100, 100, 100, 840 | 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 841 | 100, 105, 105, 105, 105, 105, 105, 105, 105, 105, 842 | 105, 105, 105, 105, 105, 111, 111, 111, 111, 111, 843 | 111, 111, 111, 111, 111, 111, 111, 111, 111, 116, 844 | 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, 845 | 116, 116, 116, 119, 119, 119, 119, 119, 119, 119, 846 | 119, 119, 119, 119, 119, 119, 119, 123, 123, 123, 847 | 848 | 123, 123, 123, 123, 123, 123, 123, 123, 123, 123, 849 | 123, 128, 128, 128, 128, 128, 128, 128, 128, 128, 850 | 128, 128, 128, 128, 128, 134, 134, 134, 134, 134, 851 | 134, 134, 134, 134, 134, 134, 134, 134, 134, 150, 852 | 150, 150, 150, 150, 150, 150, 150, 150, 150, 150, 853 | 150, 150, 150, 173, 173, 173, 173, 173, 173, 173, 854 | 173, 173, 173, 173, 173, 173, 173, 175, 175, 175, 855 | 175, 175, 175, 175, 175, 175, 175, 175, 175, 175, 856 | 175, 178, 178, 178, 178, 178, 178, 178, 178, 178, 857 | 178, 178, 178, 178, 178, 181, 181, 181, 181, 181, 858 | 859 | 181, 181, 181, 181, 181, 181, 181, 181, 181, 185, 860 | 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 861 | 185, 185, 185, 190, 189, 189, 189, 189, 190, 189, 862 | 594, 190, 190, 194, 194, 194, 194, 194, 593, 194, 863 | 194, 194, 194, 194, 194, 194, 194, 270, 189, 189, 864 | 270, 270, 270, 270, 189, 270, 270, 270, 270, 270, 865 | 270, 285, 285, 285, 285, 285, 285, 285, 285, 285, 866 | 285, 285, 285, 285, 285, 288, 189, 189, 288, 288, 867 | 288, 288, 288, 288, 288, 288, 288, 288, 288, 307, 868 | 307, 307, 189, 307, 307, 307, 307, 307, 307, 307, 869 | 870 | 560, 307, 307, 312, 312, 312, 559, 312, 312, 312, 871 | 312, 312, 312, 312, 312, 312, 312, 323, 189, 189, 872 | 189, 189, 323, 189, 189, 323, 323, 336, 189, 520, 873 | 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, 874 | 336, 340, 511, 510, 189, 189, 340, 189, 680, 340, 875 | 340, 341, 456, 357, 341, 341, 341, 341, 341, 341, 876 | 341, 341, 341, 341, 341, 356, 355, 339, 339, 356, 877 | 356, 322, 322, 356, 356, 362, 362, 362, 362, 362, 878 | 362, 362, 362, 362, 362, 321, 362, 362, 362, 363, 879 | 363, 363, 363, 363, 363, 440, 363, 363, 363, 363, 880 | 881 | 363, 363, 363, 364, 364, 364, 364, 364, 364, 438, 882 | 364, 364, 364, 364, 364, 364, 364, 381, 381, 381, 883 | 381, 381, 381, 381, 381, 381, 381, 381, 381, 381, 884 | 381, 384, 384, 384, 384, 384, 437, 384, 384, 384, 885 | 384, 384, 384, 384, 384, 441, 300, 441, 441, 441, 886 | 441, 441, 441, 441, 441, 441, 441, 441, 441, 444, 887 | 284, 444, 444, 444, 444, 444, 444, 444, 444, 444, 888 | 444, 444, 444, 283, 436, 278, 189, 385, 380, 379, 889 | 368, 189, 189, 188, 680, 357, 355, 339, 322, 321, 890 | 304, 303, 284, 283, 226, 221, 198, 195, 191, 189, 891 | 892 | 188, 184, 680, 174, 174, 43, 680, 680, 680, 680, 893 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 894 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 895 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 896 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 897 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 898 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 899 | 680, 680, 680, 680, 680, 680, 680, 680, 680 900 | } ; 901 | 902 | static yyconst short int yy_chk[2080] = 903 | { 0, 904 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 905 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 906 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 907 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 908 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 909 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 910 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 911 | 1, 1, 1, 3, 3, 3, 4, 4, 4, 5, 912 | 5, 6, 6, 11, 11, 3, 3, 500, 4, 4, 913 | 5, 5, 6, 6, 7, 7, 7, 8, 8, 8, 914 | 915 | 9, 9, 10, 10, 12, 12, 7, 7, 673, 8, 916 | 8, 9, 9, 10, 10, 13, 13, 13, 14, 14, 917 | 14, 15, 15, 16, 16, 21, 500, 19, 19, 22, 918 | 19, 20, 20, 81, 20, 35, 35, 15, 21, 16, 919 | 36, 36, 22, 19, 39, 39, 48, 20, 19, 23, 920 | 23, 23, 20, 24, 24, 24, 40, 40, 52, 15, 921 | 55, 16, 17, 17, 17, 19, 23, 46, 46, 20, 922 | 24, 59, 57, 52, 66, 66, 75, 55, 76, 59, 923 | 59, 48, 57, 60, 81, 60, 60, 82, 17, 17, 924 | 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 925 | 926 | 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 927 | 17, 17, 17, 18, 18, 18, 58, 61, 65, 68, 928 | 68, 70, 61, 70, 97, 97, 70, 92, 61, 82, 929 | 75, 76, 75, 58, 92, 65, 672, 82, 670, 18, 930 | 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 931 | 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 932 | 18, 18, 18, 18, 25, 25, 25, 25, 25, 25, 933 | 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 934 | 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 935 | 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 936 | 937 | 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 938 | 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 939 | 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 940 | 25, 25, 25, 25, 25, 25, 25, 27, 27, 28, 941 | 28, 102, 102, 678, 95, 669, 27, 98, 28, 99, 942 | 104, 104, 196, 27, 678, 28, 95, 95, 109, 98, 943 | 98, 99, 99, 109, 98, 103, 103, 108, 108, 196, 944 | 103, 110, 110, 113, 113, 27, 668, 28, 29, 29, 945 | 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 946 | 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 947 | 948 | 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 949 | 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 950 | 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 951 | 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 952 | 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 953 | 29, 31, 31, 31, 31, 31, 31, 31, 31, 31, 954 | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 955 | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 956 | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 957 | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 958 | 959 | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 960 | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 961 | 31, 31, 31, 31, 62, 84, 62, 62, 74, 79, 962 | 63, 78, 63, 63, 77, 80, 62, 86, 83, 88, 963 | 62, 91, 63, 87, 62, 62, 63, 85, 116, 116, 964 | 63, 89, 118, 118, 161, 62, 120, 120, 120, 122, 965 | 122, 63, 62, 404, 74, 665, 84, 658, 63, 653, 966 | 62, 77, 78, 62, 125, 125, 63, 79, 77, 79, 967 | 127, 127, 78, 80, 161, 77, 80, 91, 79, 83, 968 | 88, 85, 85, 87, 106, 89, 107, 86, 126, 129, 969 | 970 | 130, 404, 85, 126, 129, 85, 106, 106, 107, 107, 971 | 136, 136, 138, 139, 139, 141, 107, 138, 130, 130, 972 | 141, 142, 142, 142, 144, 144, 145, 148, 149, 149, 973 | 154, 145, 148, 152, 152, 154, 155, 155, 159, 142, 974 | 142, 158, 158, 162, 162, 163, 166, 166, 172, 172, 975 | 163, 165, 171, 165, 165, 183, 183, 171, 185, 197, 976 | 195, 194, 201, 165, 197, 107, 228, 165, 195, 232, 977 | 202, 165, 231, 159, 164, 202, 164, 164, 213, 201, 978 | 213, 214, 165, 213, 213, 214, 164, 217, 234, 165, 979 | 164, 194, 224, 185, 164, 164, 218, 165, 230, 207, 980 | 981 | 207, 218, 233, 214, 217, 164, 232, 211, 211, 207, 982 | 207, 214, 164, 207, 229, 228, 235, 211, 211, 236, 983 | 164, 211, 212, 164, 212, 212, 231, 224, 207, 207, 984 | 234, 237, 240, 238, 212, 207, 211, 211, 212, 230, 985 | 244, 241, 212, 211, 239, 216, 243, 216, 216, 246, 986 | 245, 651, 233, 212, 249, 247, 250, 216, 256, 251, 987 | 212, 216, 252, 257, 253, 216, 248, 336, 212, 229, 988 | 261, 261, 235, 236, 278, 256, 216, 266, 266, 278, 989 | 257, 267, 267, 216, 392, 240, 267, 237, 238, 385, 990 | 244, 216, 227, 245, 243, 239, 241, 385, 247, 249, 991 | 992 | 246, 243, 336, 248, 251, 245, 341, 252, 250, 253, 993 | 252, 258, 307, 251, 264, 227, 247, 268, 268, 248, 994 | 273, 273, 259, 258, 258, 392, 264, 264, 640, 227, 995 | 271, 227, 307, 227, 259, 259, 341, 227, 262, 259, 996 | 227, 274, 271, 271, 637, 227, 227, 227, 227, 227, 997 | 262, 262, 276, 274, 274, 262, 275, 275, 275, 277, 998 | 277, 274, 282, 282, 276, 276, 285, 285, 287, 287, 999 | 291, 291, 276, 289, 289, 289, 293, 293, 297, 297, 1000 | 301, 306, 306, 311, 311, 315, 315, 315, 317, 317, 1001 | 318, 318, 327, 327, 329, 329, 333, 333, 301, 301, 1002 | 1003 | 335, 335, 343, 315, 315, 338, 349, 338, 349, 343, 1004 | 274, 349, 349, 381, 344, 344, 347, 347, 354, 354, 1005 | 348, 276, 348, 348, 344, 344, 347, 347, 344, 633, 1006 | 347, 350, 348, 361, 361, 350, 348, 375, 375, 343, 1007 | 348, 394, 338, 344, 344, 347, 347, 388, 381, 429, 1008 | 344, 348, 347, 350, 429, 632, 389, 352, 348, 352, 1009 | 352, 350, 369, 384, 369, 387, 348, 369, 369, 352, 1010 | 371, 371, 374, 352, 390, 386, 374, 352, 376, 376, 1011 | 371, 371, 377, 393, 371, 372, 377, 372, 352, 376, 1012 | 372, 372, 376, 384, 374, 352, 391, 395, 388, 371, 1013 | 1014 | 371, 394, 374, 352, 377, 386, 371, 396, 376, 398, 1015 | 400, 399, 377, 387, 376, 389, 401, 402, 403, 387, 1016 | 387, 405, 407, 411, 390, 406, 410, 408, 393, 415, 1017 | 413, 414, 417, 391, 416, 419, 420, 418, 421, 422, 1018 | 423, 424, 426, 425, 428, 431, 427, 395, 399, 430, 1019 | 431, 400, 434, 434, 441, 403, 453, 453, 396, 480, 1020 | 398, 428, 405, 407, 408, 442, 430, 469, 411, 401, 1021 | 631, 402, 402, 413, 406, 444, 414, 410, 418, 426, 1022 | 422, 445, 417, 425, 467, 415, 424, 416, 472, 441, 1023 | 419, 423, 420, 421, 427, 443, 446, 443, 457, 457, 1024 | 1025 | 442, 468, 447, 446, 447, 444, 480, 447, 447, 449, 1026 | 449, 445, 450, 470, 450, 461, 461, 450, 450, 449, 1027 | 449, 452, 469, 449, 455, 452, 454, 454, 455, 467, 1028 | 458, 458, 443, 446, 466, 471, 472, 454, 449, 449, 1029 | 454, 458, 473, 452, 458, 449, 455, 459, 474, 459, 1030 | 468, 452, 459, 459, 455, 464, 454, 462, 462, 464, 1031 | 458, 466, 454, 470, 475, 476, 458, 477, 462, 482, 1032 | 478, 462, 483, 485, 484, 486, 492, 464, 489, 490, 1033 | 473, 494, 496, 495, 497, 464, 525, 462, 498, 501, 1034 | 471, 503, 502, 462, 506, 499, 527, 507, 630, 504, 1035 | 1036 | 512, 512, 474, 523, 514, 482, 514, 475, 524, 514, 1037 | 514, 516, 516, 521, 521, 526, 531, 476, 478, 484, 1038 | 528, 477, 525, 486, 523, 497, 492, 483, 501, 485, 1039 | 529, 489, 502, 537, 490, 494, 495, 496, 507, 498, 1040 | 499, 503, 504, 502, 513, 513, 517, 517, 519, 506, 1041 | 527, 524, 519, 522, 522, 513, 530, 517, 513, 532, 1042 | 517, 528, 533, 534, 522, 535, 539, 522, 526, 540, 1043 | 519, 531, 541, 542, 513, 529, 517, 544, 519, 545, 1044 | 513, 546, 517, 522, 548, 549, 550, 551, 552, 522, 1045 | 537, 556, 553, 554, 557, 561, 561, 530, 564, 563, 1046 | 1047 | 562, 562, 535, 533, 565, 566, 567, 568, 534, 532, 1048 | 569, 562, 571, 541, 562, 570, 539, 540, 544, 573, 1049 | 575, 572, 576, 542, 548, 550, 574, 549, 563, 577, 1050 | 562, 546, 552, 553, 545, 554, 562, 578, 582, 557, 1051 | 565, 556, 551, 591, 589, 592, 595, 596, 564, 597, 1052 | 566, 599, 598, 600, 601, 602, 603, 568, 605, 576, 1053 | 569, 567, 572, 570, 604, 571, 606, 607, 608, 574, 1054 | 573, 595, 610, 612, 613, 575, 616, 617, 618, 582, 1055 | 619, 620, 621, 623, 591, 577, 589, 597, 598, 626, 1056 | 601, 622, 578, 592, 600, 624, 603, 625, 596, 627, 1057 | 1058 | 602, 628, 634, 635, 616, 599, 604, 636, 605, 608, 1059 | 639, 606, 638, 612, 641, 613, 619, 642, 621, 617, 1060 | 607, 643, 623, 646, 644, 610, 620, 622, 629, 634, 1061 | 626, 624, 645, 625, 618, 647, 648, 649, 650, 635, 1062 | 652, 654, 656, 655, 657, 659, 639, 627, 660, 661, 1063 | 662, 663, 664, 642, 666, 667, 615, 643, 701, 701, 1064 | 671, 628, 636, 638, 644, 674, 671, 614, 646, 641, 1065 | 671, 647, 648, 645, 611, 674, 652, 654, 649, 655, 1066 | 657, 659, 675, 609, 660, 661, 662, 663, 650, 676, 1067 | 666, 667, 656, 677, 712, 664, 717, 712, 594, 717, 1068 | 1069 | 675, 675, 593, 590, 677, 588, 587, 676, 676, 586, 1070 | 585, 677, 677, 681, 681, 681, 681, 681, 681, 681, 1071 | 681, 681, 681, 681, 681, 681, 681, 682, 682, 682, 1072 | 682, 682, 682, 682, 682, 682, 682, 682, 682, 682, 1073 | 682, 683, 683, 683, 683, 683, 683, 683, 683, 683, 1074 | 683, 683, 683, 683, 683, 684, 684, 684, 684, 684, 1075 | 684, 684, 684, 684, 684, 684, 684, 684, 684, 685, 1076 | 685, 685, 685, 685, 685, 685, 685, 685, 685, 685, 1077 | 685, 685, 685, 686, 686, 686, 686, 686, 686, 686, 1078 | 686, 686, 686, 686, 686, 686, 686, 687, 687, 687, 1079 | 1080 | 687, 687, 687, 687, 687, 687, 687, 687, 687, 687, 1081 | 687, 688, 688, 688, 688, 688, 688, 688, 688, 688, 1082 | 688, 688, 688, 688, 688, 689, 689, 689, 689, 689, 1083 | 689, 689, 689, 689, 689, 689, 689, 689, 689, 690, 1084 | 690, 690, 690, 690, 690, 690, 690, 690, 690, 690, 1085 | 690, 690, 690, 691, 691, 691, 691, 691, 691, 691, 1086 | 691, 691, 691, 691, 691, 691, 691, 692, 692, 692, 1087 | 692, 692, 692, 692, 692, 692, 692, 692, 692, 692, 1088 | 692, 693, 693, 693, 693, 693, 693, 693, 693, 693, 1089 | 693, 693, 693, 693, 693, 694, 694, 694, 694, 694, 1090 | 1091 | 694, 694, 694, 694, 694, 694, 694, 694, 694, 695, 1092 | 695, 695, 695, 695, 695, 695, 695, 695, 695, 695, 1093 | 695, 695, 695, 696, 584, 583, 581, 580, 696, 579, 1094 | 560, 696, 696, 697, 697, 697, 697, 697, 559, 697, 1095 | 697, 697, 697, 697, 697, 697, 697, 698, 558, 555, 1096 | 698, 698, 698, 698, 547, 698, 698, 698, 698, 698, 1097 | 698, 699, 699, 699, 699, 699, 699, 699, 699, 699, 1098 | 699, 699, 699, 699, 699, 700, 543, 538, 700, 700, 1099 | 700, 700, 700, 700, 700, 700, 700, 700, 700, 702, 1100 | 702, 702, 536, 702, 702, 702, 702, 702, 702, 702, 1101 | 1102 | 511, 702, 702, 703, 703, 703, 510, 703, 703, 703, 1103 | 703, 703, 703, 703, 703, 703, 703, 704, 505, 493, 1104 | 491, 488, 704, 487, 481, 704, 704, 705, 479, 456, 1105 | 705, 705, 705, 705, 705, 705, 705, 705, 705, 705, 1106 | 705, 706, 438, 437, 412, 409, 706, 397, 383, 706, 1107 | 706, 707, 357, 356, 707, 707, 707, 707, 707, 707, 1108 | 707, 707, 707, 707, 707, 708, 355, 340, 339, 708, 1109 | 708, 323, 322, 708, 708, 709, 709, 709, 709, 709, 1110 | 709, 709, 709, 709, 709, 321, 709, 709, 709, 710, 1111 | 710, 710, 710, 710, 710, 312, 710, 710, 710, 710, 1112 | 1113 | 710, 710, 710, 711, 711, 711, 711, 711, 711, 304, 1114 | 711, 711, 711, 711, 711, 711, 711, 713, 713, 713, 1115 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713, 1116 | 713, 714, 714, 714, 714, 714, 303, 714, 714, 714, 1117 | 714, 714, 714, 714, 714, 715, 300, 715, 715, 715, 1118 | 715, 715, 715, 715, 715, 715, 715, 715, 715, 716, 1119 | 284, 716, 716, 716, 716, 716, 716, 716, 716, 716, 1120 | 716, 716, 716, 283, 280, 272, 242, 225, 223, 219, 1121 | 206, 190, 189, 188, 187, 168, 167, 160, 147, 146, 1122 | 133, 132, 115, 114, 73, 67, 56, 53, 51, 50, 1123 | 1124 | 49, 47, 43, 34, 33, 680, 680, 680, 680, 680, 1125 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 1126 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 1127 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 1128 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 1129 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 1130 | 680, 680, 680, 680, 680, 680, 680, 680, 680, 680, 1131 | 680, 680, 680, 680, 680, 680, 680, 680, 680 1132 | } ; 1133 | 1134 | static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr; 1135 | static char *yy_full_match; 1136 | static int yy_lp; 1137 | static int yy_looking_for_trail_begin = 0; 1138 | static int yy_full_lp; 1139 | static int *yy_full_state; 1140 | #define YY_TRAILING_MASK 0x2000 1141 | #define YY_TRAILING_HEAD_MASK 0x4000 1142 | #define REJECT \ 1143 | { \ 1144 | *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \ 1145 | yy_cp = yy_full_match; /* restore poss. backed-over text */ \ 1146 | yy_lp = yy_full_lp; /* restore orig. accepting pos. */ \ 1147 | yy_state_ptr = yy_full_state; /* restore orig. state */ \ 1148 | yy_current_state = *yy_state_ptr; /* restore curr. state */ \ 1149 | ++yy_lp; \ 1150 | goto find_rule; \ 1151 | } 1152 | #define yymore() yymore_used_but_not_detected 1153 | #define YY_MORE_ADJ 0 1154 | #define YY_RESTORE_YY_MORE_OFFSET 1155 | char *yytext; 1156 | #line 1 "parse.l" 1157 | #define INITIAL 0 1158 | #define START_COMMENT 1 1159 | #define COMMENT 2 1160 | #define SPECIAL_COMMENT 3 1161 | 1162 | #define START_COMMENT_CPP 4 1163 | #define COMMENT_CPP 5 1164 | #define SPECIAL_COMMENT_CPP 6 1165 | 1166 | #define CPP 7 1167 | #define CPP_START 8 1168 | 1169 | #define CPP_INCLUDE 9 1170 | #define CPP_INC_FILE 10 1171 | #define CPP_INC_FLAGS 11 1172 | 1173 | #define CPP_DEFINE 12 1174 | #define CPP_DEFINE_ARGP 13 1175 | #define CPP_DEFINE_BODY 14 1176 | #define CPP_DEFINE_ARGS 15 1177 | 1178 | #define GNU_LABEL 16 1179 | #define GNU_ATTRIBUTE 17 1180 | #define GNU_EXTENSION 18 1181 | #define GNU_TYPEOF 19 1182 | 1183 | #define CHAR_VARYING 20 1184 | 1185 | #line 19 "parse.l" 1186 | /*************************************** 1187 | $Header: /home/amb/cxref/RCS/parse.l 1.33 1999/07/11 10:09:53 amb Exp $ 1188 | 1189 | C Cross Referencing & Documentation tool. Version 1.5b. 1190 | 1191 | C lexical analyser 1192 | CPP processing, including GNU extensions, using yylval as a string. 1193 | ******************/ /****************** 1194 | Written by Andrew M. Bishop 1195 | 1196 | This file Copyright 1995,96,97,98 Andrew M. Bishop 1197 | It may be distributed under the GNU Public License, version 2, or 1198 | any higher version. See section COPYING of the GNU Public license 1199 | for conditions under which this file may be redistributed. 1200 | ***************************************/ 1201 | 1202 | #include "parse-yy.h" 1203 | #include "parse-yacc.h" 1204 | #include "cxref.h" 1205 | #include "memory.h" 1206 | 1207 | /*+ The name of the current file. +*/ 1208 | char* parse_file=NULL; 1209 | 1210 | /*+ The current line number in the file. +*/ 1211 | int parse_line=0; 1212 | 1213 | 1214 | /*+ If we are in a header file then ignore the comments. +*/ 1215 | extern int in_header; 1216 | 1217 | /*+ One of the options controlling how comments are processed, +*/ 1218 | extern int option_all_comments, /*+ use all comments not just the specially formattted ones. +*/ 1219 | option_block_comments, /*+ remove the leading block comment marker. +*/ 1220 | option_no_comments; /*+ ignore all comments. +*/ 1221 | 1222 | /*+ Flag that indicates if the comment warnings are to be issued. +*/ 1223 | extern int option_warn; 1224 | 1225 | 1226 | /*+ The flags that come out of GCC when a file is included. +*/ 1227 | static int inc_file_flags=0; 1228 | 1229 | /*+ The name of a file seen in a CPP_INC_FILE state. +*/ 1230 | static char *inc_file=NULL; 1231 | 1232 | /*+ The value of the thing that is defined (but only if it is simple). +*/ 1233 | static char* define_value=NULL; 1234 | 1235 | /*+ The lex state at the time that a comment is seen. +*/ 1236 | static int comment_init_state=INITIAL; 1237 | 1238 | /*+ To get around the GCC __attribute__ keyword, skip over matched () counted by this. +*/ 1239 | static int gnu_att_depth=0; 1240 | 1241 | /*+ To get around the GCC __typeof__ keyword, skip over matched () counted by this. +*/ 1242 | static int gnu_typ_depth=0; 1243 | 1244 | /*+ If we see a comment immediately after a ',', ';', '};', '},' or ')' then push it before. +*/ 1245 | static int push_past=0; 1246 | 1247 | 1248 | /*++++++++++++++++++++++++++++++++++++++ 1249 | Reset the Lexer, ready for the next file. 1250 | ++++++++++++++++++++++++++++++++++++++*/ 1251 | 1252 | void ResetLexer(void) 1253 | { 1254 | parse_file=NULL; 1255 | parse_line=0; 1256 | inc_file_flags=0; 1257 | inc_file=NULL; 1258 | define_value=NULL; 1259 | comment_init_state=INITIAL; 1260 | gnu_att_depth=0; 1261 | gnu_typ_depth=0; 1262 | push_past=0; 1263 | BEGIN(INITIAL); 1264 | } 1265 | 1266 | #line 1267 "lex.yy.c" 1267 | 1268 | /* Macros after this point can all be overridden by user definitions in 1269 | * section 1. 1270 | */ 1271 | 1272 | #ifndef YY_SKIP_YYWRAP 1273 | #ifdef __cplusplus 1274 | extern "C" int yywrap YY_PROTO(( void )); 1275 | #else 1276 | extern int yywrap YY_PROTO(( void )); 1277 | #endif 1278 | #endif 1279 | 1280 | #ifndef YY_NO_UNPUT 1281 | static void yyunput YY_PROTO(( int c, char *buf_ptr )); 1282 | #endif 1283 | 1284 | #ifndef yytext_ptr 1285 | static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int )); 1286 | #endif 1287 | 1288 | #ifdef YY_NEED_STRLEN 1289 | static int yy_flex_strlen YY_PROTO(( yyconst char * )); 1290 | #endif 1291 | 1292 | #ifndef YY_NO_INPUT 1293 | #ifdef __cplusplus 1294 | static int yyinput YY_PROTO(( void )); 1295 | #else 1296 | static int input YY_PROTO(( void )); 1297 | #endif 1298 | #endif 1299 | 1300 | #if YY_STACK_USED 1301 | static int yy_start_stack_ptr = 0; 1302 | static int yy_start_stack_depth = 0; 1303 | static int *yy_start_stack = 0; 1304 | #ifndef YY_NO_PUSH_STATE 1305 | static void yy_push_state YY_PROTO(( int new_state )); 1306 | #endif 1307 | #ifndef YY_NO_POP_STATE 1308 | static void yy_pop_state YY_PROTO(( void )); 1309 | #endif 1310 | #ifndef YY_NO_TOP_STATE 1311 | static int yy_top_state YY_PROTO(( void )); 1312 | #endif 1313 | 1314 | #else 1315 | #define YY_NO_PUSH_STATE 1 1316 | #define YY_NO_POP_STATE 1 1317 | #define YY_NO_TOP_STATE 1 1318 | #endif 1319 | 1320 | #ifdef YY_MALLOC_DECL 1321 | YY_MALLOC_DECL 1322 | #else 1323 | #if __STDC__ 1324 | #ifndef __cplusplus 1325 | #include <stdlib.h> 1326 | #endif 1327 | #else 1328 | /* Just try to get by without declaring the routines. This will fail 1329 | * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) 1330 | * or sizeof(void*) != sizeof(int). 1331 | */ 1332 | #endif 1333 | #endif 1334 | 1335 | /* Amount of stuff to slurp up with each read. */ 1336 | #ifndef YY_READ_BUF_SIZE 1337 | #define YY_READ_BUF_SIZE 8192 1338 | #endif 1339 | 1340 | /* Copy whatever the last rule matched to the standard output. */ 1341 | 1342 | #ifndef ECHO 1343 | /* This used to be an fputs(), but since the string might contain NUL's, 1344 | * we now use fwrite(). 1345 | */ 1346 | #define ECHO (void) fwrite( yytext, yyleng, 1, yyout ) 1347 | #endif 1348 | 1349 | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, 1350 | * is returned in "result". 1351 | */ 1352 | #ifndef YY_INPUT 1353 | #define YY_INPUT(buf,result,max_size) \ 1354 | if ( yy_current_buffer->yy_is_interactive ) \ 1355 | { \ 1356 | int c = '*', n; \ 1357 | for ( n = 0; n < max_size && \ 1358 | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ 1359 | buf[n] = (char) c; \ 1360 | if ( c == '\n' ) \ 1361 | buf[n++] = (char) c; \ 1362 | if ( c == EOF && ferror( yyin ) ) \ 1363 | YY_FATAL_ERROR( "input in flex scanner failed" ); \ 1364 | result = n; \ 1365 | } \ 1366 | else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ 1367 | && ferror( yyin ) ) \ 1368 | YY_FATAL_ERROR( "input in flex scanner failed" ); 1369 | #endif 1370 | 1371 | /* No semi-colon after return; correct usage is to write "yyterminate();" - 1372 | * we don't want an extra ';' after the "return" because that will cause 1373 | * some compilers to complain about unreachable statements. 1374 | */ 1375 | #ifndef yyterminate 1376 | #define yyterminate() return YY_NULL 1377 | #endif 1378 | 1379 | /* Number of entries by which start-condition stack grows. */ 1380 | #ifndef YY_START_STACK_INCR 1381 | #define YY_START_STACK_INCR 25 1382 | #endif 1383 | 1384 | /* Report a fatal error. */ 1385 | #ifndef YY_FATAL_ERROR 1386 | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) 1387 | #endif 1388 | 1389 | /* Default declaration of generated scanner - a define so the user can 1390 | * easily add parameters. 1391 | */ 1392 | #ifndef YY_DECL 1393 | #define YY_DECL int yylex YY_PROTO(( void )) 1394 | #endif 1395 | 1396 | /* Code executed at the beginning of each rule, after yytext and yyleng 1397 | * have been set up. 1398 | */ 1399 | #ifndef YY_USER_ACTION 1400 | #define YY_USER_ACTION 1401 | #endif 1402 | 1403 | /* Code executed at the end of each rule. */ 1404 | #ifndef YY_BREAK 1405 | #define YY_BREAK break; 1406 | #endif 1407 | 1408 | #define YY_RULE_SETUP \ 1409 | YY_USER_ACTION 1410 | 1411 | YY_DECL 1412 | { 1413 | register yy_state_type yy_current_state; 1414 | register char *yy_cp, *yy_bp; 1415 | register int yy_act; 1416 | 1417 | #line 101 "parse.l" 1418 | 1419 | 1420 | /* Comments, could be embedded in a preprocessor directive. */ 1421 | 1422 | #line 1423 "lex.yy.c" 1423 | 1424 | if ( yy_init ) 1425 | { 1426 | yy_init = 0; 1427 | 1428 | #ifdef YY_USER_INIT 1429 | YY_USER_INIT; 1430 | #endif 1431 | 1432 | if ( ! yy_start ) 1433 | yy_start = 1; /* first start state */ 1434 | 1435 | if ( ! yyin ) 1436 | yyin = stdin; 1437 | 1438 | if ( ! yyout ) 1439 | yyout = stdout; 1440 | 1441 | if ( ! yy_current_buffer ) 1442 | yy_current_buffer = 1443 | yy_create_buffer( yyin, YY_BUF_SIZE ); 1444 | 1445 | yy_load_buffer_state(); 1446 | } 1447 | 1448 | while ( 1 ) /* loops until end-of-file is reached */ 1449 | { 1450 | yy_cp = yy_c_buf_p; 1451 | 1452 | /* Support of yytext. */ 1453 | *yy_cp = yy_hold_char; 1454 | 1455 | /* yy_bp points to the position in yy_ch_buf of the start of 1456 | * the current run. 1457 | */ 1458 | yy_bp = yy_cp; 1459 | 1460 | yy_current_state = yy_start; 1461 | yy_state_ptr = yy_state_buf; 1462 | *yy_state_ptr++ = yy_current_state; 1463 | yy_match: 1464 | do 1465 | { 1466 | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; 1467 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) 1468 | { 1469 | yy_current_state = (int) yy_def[yy_current_state]; 1470 | if ( yy_current_state >= 681 ) 1471 | yy_c = yy_meta[(unsigned int) yy_c]; 1472 | } 1473 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; 1474 | *yy_state_ptr++ = yy_current_state; 1475 | ++yy_cp; 1476 | } 1477 | while ( yy_base[yy_current_state] != 2006 ); 1478 | 1479 | yy_find_action: 1480 | yy_current_state = *--yy_state_ptr; 1481 | yy_lp = yy_accept[yy_current_state]; 1482 | find_rule: /* we branch to this label when backing up */ 1483 | for ( ; ; ) /* until we find what rule we matched */ 1484 | { 1485 | if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] ) 1486 | { 1487 | yy_act = yy_acclist[yy_lp]; 1488 | if ( yy_act & YY_TRAILING_HEAD_MASK || 1489 | yy_looking_for_trail_begin ) 1490 | { 1491 | if ( yy_act == yy_looking_for_trail_begin ) 1492 | { 1493 | yy_looking_for_trail_begin = 0; 1494 | yy_act &= ~YY_TRAILING_HEAD_MASK; 1495 | break; 1496 | } 1497 | } 1498 | else if ( yy_act & YY_TRAILING_MASK ) 1499 | { 1500 | yy_looking_for_trail_begin = yy_act & ~YY_TRAILING_MASK; 1501 | yy_looking_for_trail_begin |= YY_TRAILING_HEAD_MASK; 1502 | } 1503 | else 1504 | { 1505 | yy_full_match = yy_cp; 1506 | yy_full_state = yy_state_ptr; 1507 | yy_full_lp = yy_lp; 1508 | break; 1509 | } 1510 | ++yy_lp; 1511 | goto find_rule; 1512 | } 1513 | --yy_cp; 1514 | yy_current_state = *--yy_state_ptr; 1515 | yy_lp = yy_accept[yy_current_state]; 1516 | } 1517 | 1518 | YY_DO_BEFORE_ACTION; 1519 | 1520 | 1521 | do_action: /* This label is used only to access EOF actions. */ 1522 | 1523 | 1524 | switch ( yy_act ) 1525 | { /* beginning of action switch */ 1526 | case 1: 1527 | YY_RULE_SETUP 1528 | #line 105 "parse.l" 1529 | { comment_init_state = INITIAL ; BEGIN(START_COMMENT); } 1530 | YY_BREAK 1531 | case 2: 1532 | YY_RULE_SETUP 1533 | #line 106 "parse.l" 1534 | { comment_init_state = CPP_START ; BEGIN(START_COMMENT); } 1535 | YY_BREAK 1536 | case 3: 1537 | YY_RULE_SETUP 1538 | #line 107 "parse.l" 1539 | { comment_init_state = CPP ; BEGIN(START_COMMENT); } 1540 | YY_BREAK 1541 | case 4: 1542 | YY_RULE_SETUP 1543 | #line 108 "parse.l" 1544 | { comment_init_state = CPP_DEFINE ; BEGIN(START_COMMENT); } 1545 | YY_BREAK 1546 | case 5: 1547 | YY_RULE_SETUP 1548 | #line 109 "parse.l" 1549 | { comment_init_state = CPP_INCLUDE ; BEGIN(START_COMMENT); } 1550 | YY_BREAK 1551 | case 6: 1552 | YY_RULE_SETUP 1553 | #line 110 "parse.l" 1554 | { comment_init_state = CPP_DEFINE_ARGP; BEGIN(START_COMMENT); } 1555 | YY_BREAK 1556 | case 7: 1557 | YY_RULE_SETUP 1558 | #line 111 "parse.l" 1559 | { comment_init_state = CPP_DEFINE_ARGS; BEGIN(START_COMMENT); } 1560 | YY_BREAK 1561 | case 8: 1562 | YY_RULE_SETUP 1563 | #line 112 "parse.l" 1564 | { comment_init_state = CPP_DEFINE_BODY; BEGIN(START_COMMENT); } 1565 | YY_BREAK 1566 | case 9: 1567 | YY_RULE_SETUP 1568 | #line 113 "parse.l" 1569 | { comment_init_state = CPP_INC_FILE ; BEGIN(START_COMMENT); } 1570 | YY_BREAK 1571 | case 10: 1572 | YY_RULE_SETUP 1573 | #line 114 "parse.l" 1574 | { comment_init_state = CPP_INC_FLAGS ; BEGIN(START_COMMENT); } 1575 | YY_BREAK 1576 | case 11: 1577 | YY_RULE_SETUP 1578 | #line 116 "parse.l" 1579 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); } 1580 | YY_BREAK 1581 | case 12: 1582 | YY_RULE_SETUP 1583 | #line 117 "parse.l" 1584 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); } 1585 | YY_BREAK 1586 | case 13: 1587 | YY_RULE_SETUP 1588 | #line 118 "parse.l" 1589 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); } 1590 | YY_BREAK 1591 | case 14: 1592 | YY_RULE_SETUP 1593 | #line 119 "parse.l" 1594 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); } 1595 | YY_BREAK 1596 | case 15: 1597 | YY_RULE_SETUP 1598 | #line 120 "parse.l" 1599 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); } 1600 | YY_BREAK 1601 | case 16: 1602 | YY_RULE_SETUP 1603 | #line 121 "parse.l" 1604 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); } 1605 | YY_BREAK 1606 | case 17: 1607 | YY_RULE_SETUP 1608 | #line 122 "parse.l" 1609 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); } 1610 | YY_BREAK 1611 | case 18: 1612 | YY_RULE_SETUP 1613 | #line 123 "parse.l" 1614 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); } 1615 | YY_BREAK 1616 | case 19: 1617 | YY_RULE_SETUP 1618 | #line 124 "parse.l" 1619 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); } 1620 | YY_BREAK 1621 | case 20: 1622 | YY_RULE_SETUP 1623 | #line 125 "parse.l" 1624 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); } 1625 | YY_BREAK 1626 | case 21: 1627 | YY_RULE_SETUP 1628 | #line 127 "parse.l" 1629 | { BEGIN(SPECIAL_COMMENT); } 1630 | YY_BREAK 1631 | case 22: 1632 | YY_RULE_SETUP 1633 | #line 128 "parse.l" 1634 | { BEGIN(SPECIAL_COMMENT); } 1635 | YY_BREAK 1636 | case 23: 1637 | YY_RULE_SETUP 1638 | #line 129 "parse.l" 1639 | { BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} } 1640 | YY_BREAK 1641 | case 24: 1642 | YY_RULE_SETUP 1643 | #line 130 "parse.l" 1644 | { if(option_all_comments) SeenComment(yytext); parse_line++; 1645 | if(option_all_comments) BEGIN(SPECIAL_COMMENT); else BEGIN(COMMENT); } 1646 | YY_BREAK 1647 | case 25: 1648 | YY_RULE_SETUP 1649 | #line 132 "parse.l" 1650 | { if(option_all_comments) SeenComment(yytext); 1651 | if(option_all_comments) BEGIN(SPECIAL_COMMENT); else BEGIN(COMMENT); } 1652 | YY_BREAK 1653 | case 26: 1654 | YY_RULE_SETUP 1655 | #line 135 "parse.l" 1656 | { BEGIN(SPECIAL_COMMENT_CPP); } 1657 | YY_BREAK 1658 | case 27: 1659 | YY_RULE_SETUP 1660 | #line 136 "parse.l" 1661 | { BEGIN(SPECIAL_COMMENT_CPP); } 1662 | YY_BREAK 1663 | case 28: 1664 | YY_RULE_SETUP 1665 | #line 137 "parse.l" 1666 | { parse_line++; BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} } 1667 | YY_BREAK 1668 | case 29: 1669 | YY_RULE_SETUP 1670 | #line 138 "parse.l" 1671 | { if(option_all_comments) BEGIN(SPECIAL_COMMENT_CPP); else BEGIN(COMMENT_CPP); } 1672 | YY_BREAK 1673 | case 30: 1674 | YY_RULE_SETUP 1675 | #line 140 "parse.l" 1676 | { parse_line++; } 1677 | YY_BREAK 1678 | case 31: 1679 | YY_RULE_SETUP 1680 | #line 141 "parse.l" 1681 | { } 1682 | YY_BREAK 1683 | case 32: 1684 | *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ 1685 | yy_c_buf_p = yy_cp -= 2; 1686 | YY_DO_BEFORE_ACTION; /* set up yytext again */ 1687 | YY_RULE_SETUP 1688 | #line 142 "parse.l" 1689 | { if(option_warn&COMMENT) fprintf(stderr,"%s:%d: Warning unbalanced cxref comment; starts simple, ends special.\n",parse_file,parse_line); } 1690 | YY_BREAK 1691 | case 33: 1692 | YY_RULE_SETUP 1693 | #line 143 "parse.l" 1694 | { BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} } 1695 | YY_BREAK 1696 | case 34: 1697 | YY_RULE_SETUP 1698 | #line 145 "parse.l" 1699 | { if(comment_init_state==CPP_INCLUDE || comment_init_state==CPP_DEFINE) comment_init_state=INITIAL; 1700 | parse_line++; BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} } 1701 | YY_BREAK 1702 | case 35: 1703 | YY_RULE_SETUP 1704 | #line 148 "parse.l" 1705 | { if(!option_no_comments) SeenComment(yytext); parse_line++; } 1706 | YY_BREAK 1707 | case 36: 1708 | YY_RULE_SETUP 1709 | #line 149 "parse.l" 1710 | { parse_line++; 1711 | if(option_block_comments) yytext[0]='\n',yytext[1]=0; 1712 | if(!option_no_comments) SeenComment(yytext); } 1713 | YY_BREAK 1714 | case 37: 1715 | YY_RULE_SETUP 1716 | #line 152 "parse.l" 1717 | { if(!option_no_comments) SeenComment(yytext); } 1718 | YY_BREAK 1719 | case 38: 1720 | YY_RULE_SETUP 1721 | #line 153 "parse.l" 1722 | { if(!option_no_comments) SeenComment(yytext); } 1723 | YY_BREAK 1724 | case 39: 1725 | YY_RULE_SETUP 1726 | #line 155 "parse.l" 1727 | { if(!option_no_comments) SeenComment((char*)0); 1728 | BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} } 1729 | YY_BREAK 1730 | case 40: 1731 | YY_RULE_SETUP 1732 | #line 157 "parse.l" 1733 | { if(!option_no_comments) SeenComment((char*)1); 1734 | if(!in_header && comment_init_state==CPP_DEFINE_ARGS) SeenDefineFuncArgComment(); 1735 | if(!in_header && comment_init_state==CPP_DEFINE_BODY) SeenDefineComment(); 1736 | if(!in_header && comment_init_state==CPP_INCLUDE) SeenIncludeComment(); 1737 | BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} } 1738 | YY_BREAK 1739 | case 41: 1740 | YY_RULE_SETUP 1741 | #line 162 "parse.l" 1742 | { if(!option_all_comments && option_warn&COMMENT) 1743 | fprintf(stderr,"%s:%d: Warning unbalanced cxref comment; starts special, ends simple.\n",parse_file,parse_line); 1744 | if(option_all_comments) SeenComment((char*)2); else if(!option_no_comments) SeenComment((char*)1); 1745 | if(!in_header && comment_init_state==CPP_DEFINE_ARGS) SeenDefineFuncArgComment(); 1746 | if(!in_header && comment_init_state==CPP_DEFINE_BODY) SeenDefineComment(); 1747 | if(!in_header && comment_init_state==CPP_INCLUDE) SeenIncludeComment(); 1748 | BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} } 1749 | YY_BREAK 1750 | case 42: 1751 | YY_RULE_SETUP 1752 | #line 170 "parse.l" 1753 | { if(!option_no_comments) SeenComment(yytext); } 1754 | YY_BREAK 1755 | case 43: 1756 | YY_RULE_SETUP 1757 | #line 171 "parse.l" 1758 | { if(!option_no_comments) SeenComment(yytext); } 1759 | YY_BREAK 1760 | case 44: 1761 | YY_RULE_SETUP 1762 | #line 172 "parse.l" 1763 | { if(!option_no_comments) SeenComment((char*)1); 1764 | if(!in_header && comment_init_state==CPP_DEFINE_ARGS) SeenDefineFuncArgComment(); 1765 | if(!in_header && comment_init_state==CPP_DEFINE_BODY) SeenDefineComment(); 1766 | if(!in_header && comment_init_state==CPP_INCLUDE) SeenIncludeComment(); 1767 | parse_line++; BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} } 1768 | YY_BREAK 1769 | /* Preprocessor directives, only valid at the top level. */ 1770 | case 45: 1771 | YY_RULE_SETUP 1772 | #line 180 "parse.l" 1773 | { BEGIN(CPP_START); } 1774 | YY_BREAK 1775 | case 46: 1776 | YY_RULE_SETUP 1777 | #line 182 "parse.l" 1778 | { parse_line=atoi(yytext); BEGIN(CPP_INC_FILE);} 1779 | YY_BREAK 1780 | case 47: 1781 | YY_RULE_SETUP 1782 | #line 183 "parse.l" 1783 | { BEGIN(CPP_DEFINE); } 1784 | YY_BREAK 1785 | case 48: 1786 | YY_RULE_SETUP 1787 | #line 184 "parse.l" 1788 | { BEGIN(CPP_INCLUDE); } 1789 | YY_BREAK 1790 | case 49: 1791 | YY_RULE_SETUP 1792 | #line 185 "parse.l" 1793 | { BEGIN(CPP); } 1794 | YY_BREAK 1795 | case 50: 1796 | YY_RULE_SETUP 1797 | #line 187 "parse.l" 1798 | { } 1799 | YY_BREAK 1800 | case 51: 1801 | YY_RULE_SETUP 1802 | #line 188 "parse.l" 1803 | { parse_line++; } 1804 | YY_BREAK 1805 | case 52: 1806 | YY_RULE_SETUP 1807 | #line 189 "parse.l" 1808 | { parse_line++; BEGIN(INITIAL); } 1809 | YY_BREAK 1810 | case 53: 1811 | YY_RULE_SETUP 1812 | #line 191 "parse.l" 1813 | { if(!in_header) SeenDefine(yytext); BEGIN(CPP_DEFINE_ARGP); } 1814 | YY_BREAK 1815 | case 54: 1816 | YY_RULE_SETUP 1817 | #line 192 "parse.l" 1818 | { parse_line++; } 1819 | YY_BREAK 1820 | case 55: 1821 | YY_RULE_SETUP 1822 | #line 193 "parse.l" 1823 | { } 1824 | YY_BREAK 1825 | case 56: 1826 | YY_RULE_SETUP 1827 | #line 195 "parse.l" 1828 | { BEGIN(CPP_DEFINE_ARGS); } 1829 | YY_BREAK 1830 | case 57: 1831 | YY_RULE_SETUP 1832 | #line 196 "parse.l" 1833 | { parse_line++; BEGIN(INITIAL); } 1834 | YY_BREAK 1835 | case 58: 1836 | YY_RULE_SETUP 1837 | #line 197 "parse.l" 1838 | { define_value=NULL; BEGIN(CPP_DEFINE_BODY); } 1839 | YY_BREAK 1840 | case 59: 1841 | YY_RULE_SETUP 1842 | #line 198 "parse.l" 1843 | { parse_line++; } 1844 | YY_BREAK 1845 | case 60: 1846 | YY_RULE_SETUP 1847 | #line 200 "parse.l" 1848 | { if(!in_header) SeenDefineFunctionArg(yytext); } 1849 | YY_BREAK 1850 | case 61: 1851 | YY_RULE_SETUP 1852 | #line 201 "parse.l" 1853 | { if(!in_header) SeenDefineFunctionArg(yytext); } 1854 | YY_BREAK 1855 | case 62: 1856 | YY_RULE_SETUP 1857 | #line 202 "parse.l" 1858 | { } 1859 | YY_BREAK 1860 | case 63: 1861 | YY_RULE_SETUP 1862 | #line 203 "parse.l" 1863 | { } 1864 | YY_BREAK 1865 | case 64: 1866 | YY_RULE_SETUP 1867 | #line 204 "parse.l" 1868 | { parse_line++; } 1869 | YY_BREAK 1870 | case 65: 1871 | YY_RULE_SETUP 1872 | #line 205 "parse.l" 1873 | { define_value=(char*)1; BEGIN(CPP_DEFINE_BODY); } 1874 | YY_BREAK 1875 | case 66: 1876 | YY_RULE_SETUP 1877 | #line 207 "parse.l" 1878 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} } 1879 | YY_BREAK 1880 | case 67: 1881 | YY_RULE_SETUP 1882 | #line 208 "parse.l" 1883 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} } 1884 | YY_BREAK 1885 | case 68: 1886 | YY_RULE_SETUP 1887 | #line 209 "parse.l" 1888 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} } 1889 | YY_BREAK 1890 | case 69: 1891 | YY_RULE_SETUP 1892 | #line 210 "parse.l" 1893 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} } 1894 | YY_BREAK 1895 | case 70: 1896 | YY_RULE_SETUP 1897 | #line 211 "parse.l" 1898 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} } 1899 | YY_BREAK 1900 | case 71: 1901 | YY_RULE_SETUP 1902 | #line 212 "parse.l" 1903 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} } 1904 | YY_BREAK 1905 | case 72: 1906 | YY_RULE_SETUP 1907 | #line 213 "parse.l" 1908 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} } 1909 | YY_BREAK 1910 | case 73: 1911 | YY_RULE_SETUP 1912 | #line 214 "parse.l" 1913 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} } 1914 | YY_BREAK 1915 | case 74: 1916 | YY_RULE_SETUP 1917 | #line 215 "parse.l" 1918 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} } 1919 | YY_BREAK 1920 | case 75: 1921 | YY_RULE_SETUP 1922 | #line 216 "parse.l" 1923 | { } 1924 | YY_BREAK 1925 | case 76: 1926 | YY_RULE_SETUP 1927 | #line 217 "parse.l" 1928 | { parse_line++; } 1929 | YY_BREAK 1930 | case 77: 1931 | YY_RULE_SETUP 1932 | #line 218 "parse.l" 1933 | { parse_line++; if(define_value>(char*)1) SeenDefineValue(define_value); BEGIN(INITIAL); } 1934 | YY_BREAK 1935 | case 78: 1936 | YY_RULE_SETUP 1937 | #line 220 "parse.l" 1938 | { SeenInclude(yytext); } 1939 | YY_BREAK 1940 | case 79: 1941 | YY_RULE_SETUP 1942 | #line 221 "parse.l" 1943 | { } 1944 | YY_BREAK 1945 | case 80: 1946 | YY_RULE_SETUP 1947 | #line 222 "parse.l" 1948 | { parse_line++; } 1949 | YY_BREAK 1950 | case 81: 1951 | YY_RULE_SETUP 1952 | #line 223 "parse.l" 1953 | { parse_line++; BEGIN(INITIAL); } 1954 | YY_BREAK 1955 | case 82: 1956 | YY_RULE_SETUP 1957 | #line 225 "parse.l" 1958 | { inc_file=CopyString(yytext+1); inc_file[strlen(inc_file)-1]=0; 1959 | if(!parse_file) parse_file=inc_file; 1960 | GetCurrentComment(); 1961 | inc_file_flags=0; BEGIN(CPP_INC_FLAGS); } 1962 | YY_BREAK 1963 | case 83: 1964 | YY_RULE_SETUP 1965 | #line 229 "parse.l" 1966 | { inc_file_flags+=1<<atoi(yytext); } 1967 | YY_BREAK 1968 | case 84: 1969 | YY_RULE_SETUP 1970 | #line 230 "parse.l" 1971 | { if(inc_file_flags&6) parse_file=SeenFileChange(inc_file,inc_file_flags); 1972 | BEGIN(INITIAL); } 1973 | YY_BREAK 1974 | /* GNU C strangeness. */ 1975 | case 85: 1976 | YY_RULE_SETUP 1977 | #line 235 "parse.l" 1978 | { yylval="alignof" ; return(SIZEOF); } 1979 | YY_BREAK 1980 | case 86: 1981 | YY_RULE_SETUP 1982 | #line 237 "parse.l" 1983 | { yylval="signed" ; return(SIGNED); } 1984 | YY_BREAK 1985 | case 87: 1986 | YY_RULE_SETUP 1987 | #line 238 "parse.l" 1988 | { yylval="unsigned" ; return(UNSIGNED); } 1989 | YY_BREAK 1990 | case 88: 1991 | YY_RULE_SETUP 1992 | #line 240 "parse.l" 1993 | { yylval="volatile" ; return(VOLATILE); } 1994 | YY_BREAK 1995 | case 89: 1996 | YY_RULE_SETUP 1997 | #line 241 "parse.l" 1998 | { yylval="const" ; return(CONST); } 1999 | YY_BREAK 2000 | case 90: 2001 | YY_RULE_SETUP 2002 | #line 243 "parse.l" 2003 | { yylval="inline" ; return(INLINE); } 2004 | YY_BREAK 2005 | case 91: 2006 | YY_RULE_SETUP 2007 | #line 245 "parse.l" 2008 | { yylval="asm" ; return(ASM); } 2009 | YY_BREAK 2010 | case 92: 2011 | YY_RULE_SETUP 2012 | #line 247 "parse.l" 2013 | { BEGIN(GNU_LABEL); } 2014 | YY_BREAK 2015 | case 93: 2016 | YY_RULE_SETUP 2017 | #line 248 "parse.l" 2018 | { } 2019 | YY_BREAK 2020 | case 94: 2021 | YY_RULE_SETUP 2022 | #line 249 "parse.l" 2023 | { BEGIN(INITIAL); } 2024 | YY_BREAK 2025 | case 95: 2026 | YY_RULE_SETUP 2027 | #line 251 "parse.l" 2028 | { gnu_att_depth=0; BEGIN(GNU_ATTRIBUTE); } 2029 | YY_BREAK 2030 | case 96: 2031 | YY_RULE_SETUP 2032 | #line 252 "parse.l" 2033 | { gnu_att_depth++; } 2034 | YY_BREAK 2035 | case 97: 2036 | YY_RULE_SETUP 2037 | #line 253 "parse.l" 2038 | { } 2039 | YY_BREAK 2040 | case 98: 2041 | YY_RULE_SETUP 2042 | #line 254 "parse.l" 2043 | { if(--gnu_att_depth==0) BEGIN(INITIAL); } 2044 | YY_BREAK 2045 | case 99: 2046 | YY_RULE_SETUP 2047 | #line 256 "parse.l" 2048 | { gnu_typ_depth=0; BEGIN(GNU_TYPEOF); } 2049 | YY_BREAK 2050 | case 100: 2051 | YY_RULE_SETUP 2052 | #line 257 "parse.l" 2053 | { gnu_typ_depth++; } 2054 | YY_BREAK 2055 | case 101: 2056 | YY_RULE_SETUP 2057 | #line 258 "parse.l" 2058 | { } 2059 | YY_BREAK 2060 | case 102: 2061 | YY_RULE_SETUP 2062 | #line 259 "parse.l" 2063 | { if(--gnu_typ_depth==0) {BEGIN(INITIAL); yylval="typeof"; return(TYPE_NAME);} } 2064 | YY_BREAK 2065 | case 103: 2066 | YY_RULE_SETUP 2067 | #line 261 "parse.l" 2068 | { } 2069 | YY_BREAK 2070 | case 104: 2071 | YY_RULE_SETUP 2072 | #line 263 "parse.l" 2073 | { } 2074 | YY_BREAK 2075 | case 105: 2076 | YY_RULE_SETUP 2077 | #line 265 "parse.l" 2078 | { yylval="__FUNCTION__"; return(STRING_LITERAL); } 2079 | YY_BREAK 2080 | /* VOS char_varying type */ 2081 | case 106: 2082 | YY_RULE_SETUP 2083 | #line 269 "parse.l" 2084 | { yylval=CopyString(yytext); BEGIN(CHAR_VARYING); return(CHAR); } 2085 | YY_BREAK 2086 | case 107: 2087 | YY_RULE_SETUP 2088 | #line 270 "parse.l" 2089 | { unput(*yytext); yylval=""; BEGIN(INITIAL); return('*'); } 2090 | YY_BREAK 2091 | /* C language keywords. */ 2092 | case 108: 2093 | YY_RULE_SETUP 2094 | #line 274 "parse.l" 2095 | { yylval="auto" ; return(AUTO); } 2096 | YY_BREAK 2097 | case 109: 2098 | YY_RULE_SETUP 2099 | #line 275 "parse.l" 2100 | { yylval="break" ; return(BREAK); } 2101 | YY_BREAK 2102 | case 110: 2103 | YY_RULE_SETUP 2104 | #line 276 "parse.l" 2105 | { yylval="case" ; return(CASE); } 2106 | YY_BREAK 2107 | case 111: 2108 | YY_RULE_SETUP 2109 | #line 277 "parse.l" 2110 | { yylval="char" ; return(CHAR); } 2111 | YY_BREAK 2112 | case 112: 2113 | YY_RULE_SETUP 2114 | #line 278 "parse.l" 2115 | { yylval="const" ; return(CONST); } 2116 | YY_BREAK 2117 | case 113: 2118 | YY_RULE_SETUP 2119 | #line 279 "parse.l" 2120 | { yylval="continue"; return(CONTINUE); } 2121 | YY_BREAK 2122 | case 114: 2123 | YY_RULE_SETUP 2124 | #line 280 "parse.l" 2125 | { yylval="default" ; return(DEFAULT); } 2126 | YY_BREAK 2127 | case 115: 2128 | YY_RULE_SETUP 2129 | #line 281 "parse.l" 2130 | { yylval="do" ; return(DO); } 2131 | YY_BREAK 2132 | case 116: 2133 | YY_RULE_SETUP 2134 | #line 282 "parse.l" 2135 | { yylval="double" ; return(DOUBLE); } 2136 | YY_BREAK 2137 | case 117: 2138 | YY_RULE_SETUP 2139 | #line 283 "parse.l" 2140 | { yylval="else" ; return(ELSE); } 2141 | YY_BREAK 2142 | case 118: 2143 | YY_RULE_SETUP 2144 | #line 284 "parse.l" 2145 | { yylval="enum" ; return(ENUM); } 2146 | YY_BREAK 2147 | case 119: 2148 | YY_RULE_SETUP 2149 | #line 285 "parse.l" 2150 | { yylval="extern" ; return(EXTERN); } 2151 | YY_BREAK 2152 | case 120: 2153 | YY_RULE_SETUP 2154 | #line 286 "parse.l" 2155 | { yylval="float" ; return(FLOAT); } 2156 | YY_BREAK 2157 | case 121: 2158 | YY_RULE_SETUP 2159 | #line 287 "parse.l" 2160 | { yylval="for" ; return(FOR); } 2161 | YY_BREAK 2162 | case 122: 2163 | YY_RULE_SETUP 2164 | #line 288 "parse.l" 2165 | { yylval="goto" ; return(GOTO); } 2166 | YY_BREAK 2167 | case 123: 2168 | YY_RULE_SETUP 2169 | #line 289 "parse.l" 2170 | { yylval="if" ; return(IF); } 2171 | YY_BREAK 2172 | case 124: 2173 | YY_RULE_SETUP 2174 | #line 290 "parse.l" 2175 | { yylval="int" ; return(INT); } 2176 | YY_BREAK 2177 | case 125: 2178 | YY_RULE_SETUP 2179 | #line 291 "parse.l" 2180 | { yylval="inline" ; return(INLINE); } 2181 | YY_BREAK 2182 | case 126: 2183 | YY_RULE_SETUP 2184 | #line 292 "parse.l" 2185 | { yylval="long" ; return(LONG); } 2186 | YY_BREAK 2187 | case 127: 2188 | YY_RULE_SETUP 2189 | #line 293 "parse.l" 2190 | { yylval="register"; return(REGISTER); } 2191 | YY_BREAK 2192 | case 128: 2193 | YY_RULE_SETUP 2194 | #line 294 "parse.l" 2195 | { yylval="return" ; return(RETURN); } 2196 | YY_BREAK 2197 | case 129: 2198 | YY_RULE_SETUP 2199 | #line 295 "parse.l" 2200 | { yylval="short" ; return(SHORT); } 2201 | YY_BREAK 2202 | case 130: 2203 | YY_RULE_SETUP 2204 | #line 296 "parse.l" 2205 | { yylval="signed" ; return(SIGNED); } 2206 | YY_BREAK 2207 | case 131: 2208 | YY_RULE_SETUP 2209 | #line 297 "parse.l" 2210 | { yylval="sizeof" ; return(SIZEOF); } 2211 | YY_BREAK 2212 | case 132: 2213 | YY_RULE_SETUP 2214 | #line 298 "parse.l" 2215 | { yylval="static" ; return(STATIC); } 2216 | YY_BREAK 2217 | case 133: 2218 | YY_RULE_SETUP 2219 | #line 299 "parse.l" 2220 | { yylval="struct" ; return(STRUCT); } 2221 | YY_BREAK 2222 | case 134: 2223 | YY_RULE_SETUP 2224 | #line 300 "parse.l" 2225 | { yylval="switch" ; return(SWITCH); } 2226 | YY_BREAK 2227 | case 135: 2228 | YY_RULE_SETUP 2229 | #line 301 "parse.l" 2230 | { yylval="typedef" ; return(TYPEDEF); } 2231 | YY_BREAK 2232 | case 136: 2233 | YY_RULE_SETUP 2234 | #line 302 "parse.l" 2235 | { yylval="union" ; return(UNION); } 2236 | YY_BREAK 2237 | case 137: 2238 | YY_RULE_SETUP 2239 | #line 303 "parse.l" 2240 | { yylval="unsigned"; return(UNSIGNED); } 2241 | YY_BREAK 2242 | case 138: 2243 | YY_RULE_SETUP 2244 | #line 304 "parse.l" 2245 | { yylval="void" ; return(VOID); } 2246 | YY_BREAK 2247 | case 139: 2248 | YY_RULE_SETUP 2249 | #line 305 "parse.l" 2250 | { yylval="volatile"; return(VOLATILE); } 2251 | YY_BREAK 2252 | case 140: 2253 | YY_RULE_SETUP 2254 | #line 306 "parse.l" 2255 | { yylval="while" ; return(WHILE); } 2256 | YY_BREAK 2257 | /* C language operators. */ 2258 | case 141: 2259 | YY_RULE_SETUP 2260 | #line 310 "parse.l" 2261 | { yylval="..."; return(ELLIPSES); } 2262 | YY_BREAK 2263 | case 142: 2264 | YY_RULE_SETUP 2265 | #line 311 "parse.l" 2266 | { yylval=">>="; return(RIGHT_ASSIGN); } 2267 | YY_BREAK 2268 | case 143: 2269 | YY_RULE_SETUP 2270 | #line 312 "parse.l" 2271 | { yylval="<<="; return(LEFT_ASSIGN); } 2272 | YY_BREAK 2273 | case 144: 2274 | YY_RULE_SETUP 2275 | #line 313 "parse.l" 2276 | { yylval="+="; return(ADD_ASSIGN); } 2277 | YY_BREAK 2278 | case 145: 2279 | YY_RULE_SETUP 2280 | #line 314 "parse.l" 2281 | { yylval="-="; return(SUB_ASSIGN); } 2282 | YY_BREAK 2283 | case 146: 2284 | YY_RULE_SETUP 2285 | #line 315 "parse.l" 2286 | { yylval="*="; return(MUL_ASSIGN); } 2287 | YY_BREAK 2288 | case 147: 2289 | YY_RULE_SETUP 2290 | #line 316 "parse.l" 2291 | { yylval="/="; return(DIV_ASSIGN); } 2292 | YY_BREAK 2293 | case 148: 2294 | YY_RULE_SETUP 2295 | #line 317 "parse.l" 2296 | { yylval="%="; return(MOD_ASSIGN); } 2297 | YY_BREAK 2298 | case 149: 2299 | YY_RULE_SETUP 2300 | #line 318 "parse.l" 2301 | { yylval="&="; return(AND_ASSIGN); } 2302 | YY_BREAK 2303 | case 150: 2304 | YY_RULE_SETUP 2305 | #line 319 "parse.l" 2306 | { yylval="^="; return(XOR_ASSIGN); } 2307 | YY_BREAK 2308 | case 151: 2309 | YY_RULE_SETUP 2310 | #line 320 "parse.l" 2311 | { yylval="|="; return(OR_ASSIGN); } 2312 | YY_BREAK 2313 | case 152: 2314 | YY_RULE_SETUP 2315 | #line 321 "parse.l" 2316 | { yylval=">>"; return(RIGHT_SHIFT);} 2317 | YY_BREAK 2318 | case 153: 2319 | YY_RULE_SETUP 2320 | #line 322 "parse.l" 2321 | { yylval="<<"; return(LEFT_SHIFT); } 2322 | YY_BREAK 2323 | case 154: 2324 | YY_RULE_SETUP 2325 | #line 323 "parse.l" 2326 | { yylval="++"; return(INC_OP); } 2327 | YY_BREAK 2328 | case 155: 2329 | YY_RULE_SETUP 2330 | #line 324 "parse.l" 2331 | { yylval="--"; return(DEC_OP); } 2332 | YY_BREAK 2333 | case 156: 2334 | YY_RULE_SETUP 2335 | #line 325 "parse.l" 2336 | { yylval="->"; return(PTR_OP); } 2337 | YY_BREAK 2338 | case 157: 2339 | YY_RULE_SETUP 2340 | #line 326 "parse.l" 2341 | { yylval="&&"; return(AND_OP); } 2342 | YY_BREAK 2343 | case 158: 2344 | YY_RULE_SETUP 2345 | #line 327 "parse.l" 2346 | { yylval="||"; return(OR_OP); } 2347 | YY_BREAK 2348 | case 159: 2349 | YY_RULE_SETUP 2350 | #line 328 "parse.l" 2351 | { yylval="<="; return(LE_OP); } 2352 | YY_BREAK 2353 | case 160: 2354 | YY_RULE_SETUP 2355 | #line 329 "parse.l" 2356 | { yylval=">="; return(GE_OP); } 2357 | YY_BREAK 2358 | case 161: 2359 | YY_RULE_SETUP 2360 | #line 330 "parse.l" 2361 | { yylval="=="; return(EQ_OP); } 2362 | YY_BREAK 2363 | case 162: 2364 | YY_RULE_SETUP 2365 | #line 331 "parse.l" 2366 | { yylval="!="; return(NE_OP); } 2367 | YY_BREAK 2368 | case 163: 2369 | YY_RULE_SETUP 2370 | #line 332 "parse.l" 2371 | { yylval="; "; push_past=2; 2372 | comment_init_state=INITIAL; BEGIN(yytext[strlen(yytext)-1]=='*'?START_COMMENT:START_COMMENT_CPP); } 2373 | YY_BREAK 2374 | case 164: 2375 | YY_RULE_SETUP 2376 | #line 334 "parse.l" 2377 | { yylval=";"; return(';'); } 2378 | YY_BREAK 2379 | case 165: 2380 | YY_RULE_SETUP 2381 | #line 335 "parse.l" 2382 | { yylval="{"; return('{'); } 2383 | YY_BREAK 2384 | case 166: 2385 | YY_RULE_SETUP 2386 | #line 336 "parse.l" 2387 | { yylval="}; "; push_past=3; 2388 | comment_init_state=INITIAL; BEGIN(yytext[strlen(yytext)-1]=='*'?START_COMMENT:START_COMMENT_CPP); } 2389 | YY_BREAK 2390 | case 167: 2391 | YY_RULE_SETUP 2392 | #line 338 "parse.l" 2393 | { yylval="}, "; push_past=3; 2394 | comment_init_state=INITIAL; BEGIN(yytext[strlen(yytext)-1]=='*'?START_COMMENT:START_COMMENT_CPP); } 2395 | YY_BREAK 2396 | case 168: 2397 | YY_RULE_SETUP 2398 | #line 340 "parse.l" 2399 | { yylval="}"; return('}'); } 2400 | YY_BREAK 2401 | case 169: 2402 | YY_RULE_SETUP 2403 | #line 341 "parse.l" 2404 | { yylval=", "; push_past=2; 2405 | comment_init_state=INITIAL; BEGIN(yytext[strlen(yytext)-1]=='*'?START_COMMENT:START_COMMENT_CPP); } 2406 | YY_BREAK 2407 | case 170: 2408 | YY_RULE_SETUP 2409 | #line 343 "parse.l" 2410 | { yylval=","; return(','); } 2411 | YY_BREAK 2412 | case 171: 2413 | YY_RULE_SETUP 2414 | #line 344 "parse.l" 2415 | { yylval=":"; return(':'); } 2416 | YY_BREAK 2417 | case 172: 2418 | YY_RULE_SETUP 2419 | #line 345 "parse.l" 2420 | { yylval="="; return('='); } 2421 | YY_BREAK 2422 | case 173: 2423 | YY_RULE_SETUP 2424 | #line 346 "parse.l" 2425 | { yylval="("; return('('); } 2426 | YY_BREAK 2427 | case 174: 2428 | YY_RULE_SETUP 2429 | #line 347 "parse.l" 2430 | { yylval=") "; push_past=2; 2431 | comment_init_state=INITIAL; BEGIN(yytext[strlen(yytext)-1]=='*'?START_COMMENT:START_COMMENT_CPP); } 2432 | YY_BREAK 2433 | case 175: 2434 | YY_RULE_SETUP 2435 | #line 349 "parse.l" 2436 | { yylval=")"; return(')'); } 2437 | YY_BREAK 2438 | case 176: 2439 | YY_RULE_SETUP 2440 | #line 350 "parse.l" 2441 | { yylval="["; return('['); } 2442 | YY_BREAK 2443 | case 177: 2444 | YY_RULE_SETUP 2445 | #line 351 "parse.l" 2446 | { yylval="]"; return(']'); } 2447 | YY_BREAK 2448 | case 178: 2449 | YY_RULE_SETUP 2450 | #line 352 "parse.l" 2451 | { yylval="."; return('.'); } 2452 | YY_BREAK 2453 | case 179: 2454 | YY_RULE_SETUP 2455 | #line 353 "parse.l" 2456 | { yylval="&"; return('&'); } 2457 | YY_BREAK 2458 | case 180: 2459 | YY_RULE_SETUP 2460 | #line 354 "parse.l" 2461 | { yylval="!"; return('!'); } 2462 | YY_BREAK 2463 | case 181: 2464 | YY_RULE_SETUP 2465 | #line 355 "parse.l" 2466 | { yylval="~"; return('~'); } 2467 | YY_BREAK 2468 | case 182: 2469 | YY_RULE_SETUP 2470 | #line 356 "parse.l" 2471 | { yylval="-"; return('-'); } 2472 | YY_BREAK 2473 | case 183: 2474 | YY_RULE_SETUP 2475 | #line 357 "parse.l" 2476 | { yylval="+"; return('+'); } 2477 | YY_BREAK 2478 | case 184: 2479 | YY_RULE_SETUP 2480 | #line 358 "parse.l" 2481 | { yylval="*"; return('*'); } 2482 | YY_BREAK 2483 | case 185: 2484 | YY_RULE_SETUP 2485 | #line 359 "parse.l" 2486 | { yylval="/"; return('/'); } 2487 | YY_BREAK 2488 | case 186: 2489 | YY_RULE_SETUP 2490 | #line 360 "parse.l" 2491 | { yylval="%"; return('%'); } 2492 | YY_BREAK 2493 | case 187: 2494 | YY_RULE_SETUP 2495 | #line 361 "parse.l" 2496 | { yylval="<"; return('<'); } 2497 | YY_BREAK 2498 | case 188: 2499 | YY_RULE_SETUP 2500 | #line 362 "parse.l" 2501 | { yylval=">"; return('>'); } 2502 | YY_BREAK 2503 | case 189: 2504 | YY_RULE_SETUP 2505 | #line 363 "parse.l" 2506 | { yylval="^"; return('^'); } 2507 | YY_BREAK 2508 | case 190: 2509 | YY_RULE_SETUP 2510 | #line 364 "parse.l" 2511 | { yylval="|"; return('|'); } 2512 | YY_BREAK 2513 | case 191: 2514 | YY_RULE_SETUP 2515 | #line 365 "parse.l" 2516 | { yylval="?"; return('?'); } 2517 | YY_BREAK 2518 | /* Variable / Function / Type names */ 2519 | case 192: 2520 | YY_RULE_SETUP 2521 | #line 369 "parse.l" 2522 | { 2523 | yylval=CopyString(yytext); 2524 | if(IsAScopeVariable(yytext)) 2525 | return(IDENTIFIER); 2526 | else 2527 | if(IsATypeName(yytext)) 2528 | return(TYPE_NAME); 2529 | else 2530 | return(IDENTIFIER); 2531 | } 2532 | YY_BREAK 2533 | /* Literals */ 2534 | case 193: 2535 | YY_RULE_SETUP 2536 | #line 382 "parse.l" 2537 | { yylval=CopyString(yytext); return(LITERAL); } 2538 | YY_BREAK 2539 | case 194: 2540 | YY_RULE_SETUP 2541 | #line 383 "parse.l" 2542 | { yylval=CopyString(yytext); return(LITERAL); } 2543 | YY_BREAK 2544 | case 195: 2545 | YY_RULE_SETUP 2546 | #line 384 "parse.l" 2547 | { yylval=CopyString(yytext); return(LITERAL); } 2548 | YY_BREAK 2549 | case 196: 2550 | YY_RULE_SETUP 2551 | #line 385 "parse.l" 2552 | { yylval=CopyString(yytext); return(LITERAL); } 2553 | YY_BREAK 2554 | case 197: 2555 | YY_RULE_SETUP 2556 | #line 386 "parse.l" 2557 | { yylval=CopyString(yytext); return(LITERAL); } 2558 | YY_BREAK 2559 | case 198: 2560 | YY_RULE_SETUP 2561 | #line 388 "parse.l" 2562 | { yylval=CopyString(yytext); return(LITERAL); } 2563 | YY_BREAK 2564 | case 199: 2565 | YY_RULE_SETUP 2566 | #line 389 "parse.l" 2567 | { yylval=CopyString(yytext); return(LITERAL); } 2568 | YY_BREAK 2569 | case 200: 2570 | YY_RULE_SETUP 2571 | #line 390 "parse.l" 2572 | { yylval=CopyString(yytext); return(LITERAL); } 2573 | YY_BREAK 2574 | case 201: 2575 | YY_RULE_SETUP 2576 | #line 392 "parse.l" 2577 | { yylval=CopyString(yytext); return(STRING_LITERAL); } 2578 | YY_BREAK 2579 | case 202: 2580 | YY_RULE_SETUP 2581 | #line 393 "parse.l" 2582 | { yylval=CopyString(yytext); return(STRING_LITERAL); } 2583 | YY_BREAK 2584 | /* Other text. */ 2585 | case 203: 2586 | YY_RULE_SETUP 2587 | #line 397 "parse.l" 2588 | { parse_line++; } 2589 | YY_BREAK 2590 | case 204: 2591 | YY_RULE_SETUP 2592 | #line 398 "parse.l" 2593 | { /* Ignore bad characters */ } 2594 | YY_BREAK 2595 | case 205: 2596 | YY_RULE_SETUP 2597 | #line 400 "parse.l" 2598 | ECHO; 2599 | YY_BREAK 2600 | #line 2601 "lex.yy.c" 2601 | case YY_STATE_EOF(INITIAL): 2602 | case YY_STATE_EOF(START_COMMENT): 2603 | case YY_STATE_EOF(COMMENT): 2604 | case YY_STATE_EOF(SPECIAL_COMMENT): 2605 | case YY_STATE_EOF(START_COMMENT_CPP): 2606 | case YY_STATE_EOF(COMMENT_CPP): 2607 | case YY_STATE_EOF(SPECIAL_COMMENT_CPP): 2608 | case YY_STATE_EOF(CPP): 2609 | case YY_STATE_EOF(CPP_START): 2610 | case YY_STATE_EOF(CPP_INCLUDE): 2611 | case YY_STATE_EOF(CPP_INC_FILE): 2612 | case YY_STATE_EOF(CPP_INC_FLAGS): 2613 | case YY_STATE_EOF(CPP_DEFINE): 2614 | case YY_STATE_EOF(CPP_DEFINE_ARGP): 2615 | case YY_STATE_EOF(CPP_DEFINE_BODY): 2616 | case YY_STATE_EOF(CPP_DEFINE_ARGS): 2617 | case YY_STATE_EOF(GNU_LABEL): 2618 | case YY_STATE_EOF(GNU_ATTRIBUTE): 2619 | case YY_STATE_EOF(GNU_EXTENSION): 2620 | case YY_STATE_EOF(GNU_TYPEOF): 2621 | case YY_STATE_EOF(CHAR_VARYING): 2622 | yyterminate(); 2623 | 2624 | case YY_END_OF_BUFFER: 2625 | { 2626 | /* Amount of text matched not including the EOB char. */ 2627 | int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1; 2628 | 2629 | /* Undo the effects of YY_DO_BEFORE_ACTION. */ 2630 | *yy_cp = yy_hold_char; 2631 | YY_RESTORE_YY_MORE_OFFSET 2632 | 2633 | if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW ) 2634 | { 2635 | /* We're scanning a new file or input source. It's 2636 | * possible that this happened because the user 2637 | * just pointed yyin at a new source and called 2638 | * yylex(). If so, then we have to assure 2639 | * consistency between yy_current_buffer and our 2640 | * globals. Here is the right place to do so, because 2641 | * this is the first action (other than possibly a 2642 | * back-up) that will match for the new input source. 2643 | */ 2644 | yy_n_chars = yy_current_buffer->yy_n_chars; 2645 | yy_current_buffer->yy_input_file = yyin; 2646 | yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL; 2647 | } 2648 | 2649 | /* Note that here we test for yy_c_buf_p "<=" to the position 2650 | * of the first EOB in the buffer, since yy_c_buf_p will 2651 | * already have been incremented past the NUL character 2652 | * (since all states make transitions on EOB to the 2653 | * end-of-buffer state). Contrast this with the test 2654 | * in input(). 2655 | */ 2656 | if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] ) 2657 | { /* This was really a NUL. */ 2658 | yy_state_type yy_next_state; 2659 | 2660 | yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text; 2661 | 2662 | yy_current_state = yy_get_previous_state(); 2663 | 2664 | /* Okay, we're now positioned to make the NUL 2665 | * transition. We couldn't have 2666 | * yy_get_previous_state() go ahead and do it 2667 | * for us because it doesn't know how to deal 2668 | * with the possibility of jamming (and we don't 2669 | * want to build jamming into it because then it 2670 | * will run more slowly). 2671 | */ 2672 | 2673 | yy_next_state = yy_try_NUL_trans( yy_current_state ); 2674 | 2675 | yy_bp = yytext_ptr + YY_MORE_ADJ; 2676 | 2677 | if ( yy_next_state ) 2678 | { 2679 | /* Consume the NUL. */ 2680 | yy_cp = ++yy_c_buf_p; 2681 | yy_current_state = yy_next_state; 2682 | goto yy_match; 2683 | } 2684 | 2685 | else 2686 | { 2687 | yy_cp = yy_c_buf_p; 2688 | goto yy_find_action; 2689 | } 2690 | } 2691 | 2692 | else switch ( yy_get_next_buffer() ) 2693 | { 2694 | case EOB_ACT_END_OF_FILE: 2695 | { 2696 | yy_did_buffer_switch_on_eof = 0; 2697 | 2698 | if ( yywrap() ) 2699 | { 2700 | /* Note: because we've taken care in 2701 | * yy_get_next_buffer() to have set up 2702 | * yytext, we can now set up 2703 | * yy_c_buf_p so that if some total 2704 | * hoser (like flex itself) wants to 2705 | * call the scanner after we return the 2706 | * YY_NULL, it'll still work - another 2707 | * YY_NULL will get returned. 2708 | */ 2709 | yy_c_buf_p = yytext_ptr + YY_MORE_ADJ; 2710 | 2711 | yy_act = YY_STATE_EOF(YY_START); 2712 | goto do_action; 2713 | } 2714 | 2715 | else 2716 | { 2717 | if ( ! yy_did_buffer_switch_on_eof ) 2718 | YY_NEW_FILE; 2719 | } 2720 | break; 2721 | } 2722 | 2723 | case EOB_ACT_CONTINUE_SCAN: 2724 | yy_c_buf_p = 2725 | yytext_ptr + yy_amount_of_matched_text; 2726 | 2727 | yy_current_state = yy_get_previous_state(); 2728 | 2729 | yy_cp = yy_c_buf_p; 2730 | yy_bp = yytext_ptr + YY_MORE_ADJ; 2731 | goto yy_match; 2732 | 2733 | case EOB_ACT_LAST_MATCH: 2734 | yy_c_buf_p = 2735 | &yy_current_buffer->yy_ch_buf[yy_n_chars]; 2736 | 2737 | yy_current_state = yy_get_previous_state(); 2738 | 2739 | yy_cp = yy_c_buf_p; 2740 | yy_bp = yytext_ptr + YY_MORE_ADJ; 2741 | goto yy_find_action; 2742 | } 2743 | break; 2744 | } 2745 | 2746 | default: 2747 | YY_FATAL_ERROR( 2748 | "fatal flex scanner internal error--no action found" ); 2749 | } /* end of action switch */ 2750 | } /* end of scanning one token */ 2751 | } /* end of yylex */ 2752 | 2753 | 2754 | /* yy_get_next_buffer - try to read in a new buffer 2755 | * 2756 | * Returns a code representing an action: 2757 | * EOB_ACT_LAST_MATCH - 2758 | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position 2759 | * EOB_ACT_END_OF_FILE - end of file 2760 | */ 2761 | 2762 | static int yy_get_next_buffer() 2763 | { 2764 | register char *dest = yy_current_buffer->yy_ch_buf; 2765 | register char *source = yytext_ptr; 2766 | register int number_to_move, i; 2767 | int ret_val; 2768 | 2769 | if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] ) 2770 | YY_FATAL_ERROR( 2771 | "fatal flex scanner internal error--end of buffer missed" ); 2772 | 2773 | if ( yy_current_buffer->yy_fill_buffer == 0 ) 2774 | { /* Don't try to fill the buffer, so this is an EOF. */ 2775 | if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 ) 2776 | { 2777 | /* We matched a single character, the EOB, so 2778 | * treat this as a final EOF. 2779 | */ 2780 | return EOB_ACT_END_OF_FILE; 2781 | } 2782 | 2783 | else 2784 | { 2785 | /* We matched some text prior to the EOB, first 2786 | * process it. 2787 | */ 2788 | return EOB_ACT_LAST_MATCH; 2789 | } 2790 | } 2791 | 2792 | /* Try to read more data. */ 2793 | 2794 | /* First move last chars to start of buffer. */ 2795 | number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1; 2796 | 2797 | for ( i = 0; i < number_to_move; ++i ) 2798 | *(dest++) = *(source++); 2799 | 2800 | if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING ) 2801 | /* don't do the read, it's not guaranteed to return an EOF, 2802 | * just force an EOF 2803 | */ 2804 | yy_current_buffer->yy_n_chars = yy_n_chars = 0; 2805 | 2806 | else 2807 | { 2808 | int num_to_read = 2809 | yy_current_buffer->yy_buf_size - number_to_move - 1; 2810 | 2811 | while ( num_to_read <= 0 ) 2812 | { /* Not enough room in the buffer - grow it. */ 2813 | #ifdef YY_USES_REJECT 2814 | YY_FATAL_ERROR( 2815 | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" ); 2816 | #else 2817 | 2818 | /* just a shorter name for the current buffer */ 2819 | YY_BUFFER_STATE b = yy_current_buffer; 2820 | 2821 | int yy_c_buf_p_offset = 2822 | (int) (yy_c_buf_p - b->yy_ch_buf); 2823 | 2824 | if ( b->yy_is_our_buffer ) 2825 | { 2826 | int new_size = b->yy_buf_size * 2; 2827 | 2828 | if ( new_size <= 0 ) 2829 | b->yy_buf_size += b->yy_buf_size / 8; 2830 | else 2831 | b->yy_buf_size *= 2; 2832 | 2833 | b->yy_ch_buf = (char *) 2834 | /* Include room in for 2 EOB chars. */ 2835 | yy_flex_realloc( (void *) b->yy_ch_buf, 2836 | b->yy_buf_size + 2 ); 2837 | } 2838 | else 2839 | /* Can't grow it, we don't own it. */ 2840 | b->yy_ch_buf = 0; 2841 | 2842 | if ( ! b->yy_ch_buf ) 2843 | YY_FATAL_ERROR( 2844 | "fatal error - scanner input buffer overflow" ); 2845 | 2846 | yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset]; 2847 | 2848 | num_to_read = yy_current_buffer->yy_buf_size - 2849 | number_to_move - 1; 2850 | #endif 2851 | } 2852 | 2853 | if ( num_to_read > YY_READ_BUF_SIZE ) 2854 | num_to_read = YY_READ_BUF_SIZE; 2855 | 2856 | /* Read in more data. */ 2857 | YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]), 2858 | yy_n_chars, num_to_read ); 2859 | 2860 | yy_current_buffer->yy_n_chars = yy_n_chars; 2861 | } 2862 | 2863 | if ( yy_n_chars == 0 ) 2864 | { 2865 | if ( number_to_move == YY_MORE_ADJ ) 2866 | { 2867 | ret_val = EOB_ACT_END_OF_FILE; 2868 | yyrestart( yyin ); 2869 | } 2870 | 2871 | else 2872 | { 2873 | ret_val = EOB_ACT_LAST_MATCH; 2874 | yy_current_buffer->yy_buffer_status = 2875 | YY_BUFFER_EOF_PENDING; 2876 | } 2877 | } 2878 | 2879 | else 2880 | ret_val = EOB_ACT_CONTINUE_SCAN; 2881 | 2882 | yy_n_chars += number_to_move; 2883 | yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR; 2884 | yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR; 2885 | 2886 | yytext_ptr = &yy_current_buffer->yy_ch_buf[0]; 2887 | 2888 | return ret_val; 2889 | } 2890 | 2891 | 2892 | /* yy_get_previous_state - get the state just before the EOB char was reached */ 2893 | 2894 | static yy_state_type yy_get_previous_state() 2895 | { 2896 | register yy_state_type yy_current_state; 2897 | register char *yy_cp; 2898 | 2899 | yy_current_state = yy_start; 2900 | yy_state_ptr = yy_state_buf; 2901 | *yy_state_ptr++ = yy_current_state; 2902 | 2903 | for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp ) 2904 | { 2905 | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); 2906 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) 2907 | { 2908 | yy_current_state = (int) yy_def[yy_current_state]; 2909 | if ( yy_current_state >= 681 ) 2910 | yy_c = yy_meta[(unsigned int) yy_c]; 2911 | } 2912 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; 2913 | *yy_state_ptr++ = yy_current_state; 2914 | } 2915 | 2916 | return yy_current_state; 2917 | } 2918 | 2919 | 2920 | /* yy_try_NUL_trans - try to make a transition on the NUL character 2921 | * 2922 | * synopsis 2923 | * next_state = yy_try_NUL_trans( current_state ); 2924 | */ 2925 | 2926 | #ifdef YY_USE_PROTOS 2927 | static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) 2928 | #else 2929 | static yy_state_type yy_try_NUL_trans( yy_current_state ) 2930 | yy_state_type yy_current_state; 2931 | #endif 2932 | { 2933 | register int yy_is_jam; 2934 | 2935 | register YY_CHAR yy_c = 1; 2936 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) 2937 | { 2938 | yy_current_state = (int) yy_def[yy_current_state]; 2939 | if ( yy_current_state >= 681 ) 2940 | yy_c = yy_meta[(unsigned int) yy_c]; 2941 | } 2942 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; 2943 | yy_is_jam = (yy_current_state == 680); 2944 | if ( ! yy_is_jam ) 2945 | *yy_state_ptr++ = yy_current_state; 2946 | 2947 | return yy_is_jam ? 0 : yy_current_state; 2948 | } 2949 | 2950 | 2951 | #ifndef YY_NO_UNPUT 2952 | #ifdef YY_USE_PROTOS 2953 | static void yyunput( int c, register char *yy_bp ) 2954 | #else 2955 | static void yyunput( c, yy_bp ) 2956 | int c; 2957 | register char *yy_bp; 2958 | #endif 2959 | { 2960 | register char *yy_cp = yy_c_buf_p; 2961 | 2962 | /* undo effects of setting up yytext */ 2963 | *yy_cp = yy_hold_char; 2964 | 2965 | if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) 2966 | { /* need to shift things up to make room */ 2967 | /* +2 for EOB chars. */ 2968 | register int number_to_move = yy_n_chars + 2; 2969 | register char *dest = &yy_current_buffer->yy_ch_buf[ 2970 | yy_current_buffer->yy_buf_size + 2]; 2971 | register char *source = 2972 | &yy_current_buffer->yy_ch_buf[number_to_move]; 2973 | 2974 | while ( source > yy_current_buffer->yy_ch_buf ) 2975 | *--dest = *--source; 2976 | 2977 | yy_cp += (int) (dest - source); 2978 | yy_bp += (int) (dest - source); 2979 | yy_current_buffer->yy_n_chars = 2980 | yy_n_chars = yy_current_buffer->yy_buf_size; 2981 | 2982 | if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 ) 2983 | YY_FATAL_ERROR( "flex scanner push-back overflow" ); 2984 | } 2985 | 2986 | *--yy_cp = (char) c; 2987 | 2988 | 2989 | yytext_ptr = yy_bp; 2990 | yy_hold_char = *yy_cp; 2991 | yy_c_buf_p = yy_cp; 2992 | } 2993 | #endif /* ifndef YY_NO_UNPUT */ 2994 | 2995 | 2996 | #ifdef __cplusplus 2997 | static int yyinput() 2998 | #else 2999 | static int input() 3000 | #endif 3001 | { 3002 | int c; 3003 | 3004 | *yy_c_buf_p = yy_hold_char; 3005 | 3006 | if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR ) 3007 | { 3008 | /* yy_c_buf_p now points to the character we want to return. 3009 | * If this occurs *before* the EOB characters, then it's a 3010 | * valid NUL; if not, then we've hit the end of the buffer. 3011 | */ 3012 | if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] ) 3013 | /* This was really a NUL. */ 3014 | *yy_c_buf_p = '\0'; 3015 | 3016 | else 3017 | { /* need more input */ 3018 | int offset = yy_c_buf_p - yytext_ptr; 3019 | ++yy_c_buf_p; 3020 | 3021 | switch ( yy_get_next_buffer() ) 3022 | { 3023 | case EOB_ACT_LAST_MATCH: 3024 | /* This happens because yy_g_n_b() 3025 | * sees that we've accumulated a 3026 | * token and flags that we need to 3027 | * try matching the token before 3028 | * proceeding. But for input(), 3029 | * there's no matching to consider. 3030 | * So convert the EOB_ACT_LAST_MATCH 3031 | * to EOB_ACT_END_OF_FILE. 3032 | */ 3033 | 3034 | /* Reset buffer status. */ 3035 | yyrestart( yyin ); 3036 | 3037 | /* fall through */ 3038 | 3039 | case EOB_ACT_END_OF_FILE: 3040 | { 3041 | if ( yywrap() ) 3042 | return EOF; 3043 | 3044 | if ( ! yy_did_buffer_switch_on_eof ) 3045 | YY_NEW_FILE; 3046 | #ifdef __cplusplus 3047 | return yyinput(); 3048 | #else 3049 | return input(); 3050 | #endif 3051 | } 3052 | 3053 | case EOB_ACT_CONTINUE_SCAN: 3054 | yy_c_buf_p = yytext_ptr + offset; 3055 | break; 3056 | } 3057 | } 3058 | } 3059 | 3060 | c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ 3061 | *yy_c_buf_p = '\0'; /* preserve yytext */ 3062 | yy_hold_char = *++yy_c_buf_p; 3063 | 3064 | 3065 | return c; 3066 | } 3067 | 3068 | 3069 | #ifdef YY_USE_PROTOS 3070 | void yyrestart( FILE *input_file ) 3071 | #else 3072 | void yyrestart( input_file ) 3073 | FILE *input_file; 3074 | #endif 3075 | { 3076 | if ( ! yy_current_buffer ) 3077 | yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); 3078 | 3079 | yy_init_buffer( yy_current_buffer, input_file ); 3080 | yy_load_buffer_state(); 3081 | } 3082 | 3083 | 3084 | #ifdef YY_USE_PROTOS 3085 | void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) 3086 | #else 3087 | void yy_switch_to_buffer( new_buffer ) 3088 | YY_BUFFER_STATE new_buffer; 3089 | #endif 3090 | { 3091 | if ( yy_current_buffer == new_buffer ) 3092 | return; 3093 | 3094 | if ( yy_current_buffer ) 3095 | { 3096 | /* Flush out information for old buffer. */ 3097 | *yy_c_buf_p = yy_hold_char; 3098 | yy_current_buffer->yy_buf_pos = yy_c_buf_p; 3099 | yy_current_buffer->yy_n_chars = yy_n_chars; 3100 | } 3101 | 3102 | yy_current_buffer = new_buffer; 3103 | yy_load_buffer_state(); 3104 | 3105 | /* We don't actually know whether we did this switch during 3106 | * EOF (yywrap()) processing, but the only time this flag 3107 | * is looked at is after yywrap() is called, so it's safe 3108 | * to go ahead and always set it. 3109 | */ 3110 | yy_did_buffer_switch_on_eof = 1; 3111 | } 3112 | 3113 | 3114 | #ifdef YY_USE_PROTOS 3115 | void yy_load_buffer_state( void ) 3116 | #else 3117 | void yy_load_buffer_state() 3118 | #endif 3119 | { 3120 | yy_n_chars = yy_current_buffer->yy_n_chars; 3121 | yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; 3122 | yyin = yy_current_buffer->yy_input_file; 3123 | yy_hold_char = *yy_c_buf_p; 3124 | } 3125 | 3126 | 3127 | #ifdef YY_USE_PROTOS 3128 | YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) 3129 | #else 3130 | YY_BUFFER_STATE yy_create_buffer( file, size ) 3131 | FILE *file; 3132 | int size; 3133 | #endif 3134 | { 3135 | YY_BUFFER_STATE b; 3136 | 3137 | b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); 3138 | if ( ! b ) 3139 | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); 3140 | 3141 | b->yy_buf_size = size; 3142 | 3143 | /* yy_ch_buf has to be 2 characters longer than the size given because 3144 | * we need to put in 2 end-of-buffer characters. 3145 | */ 3146 | b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 ); 3147 | if ( ! b->yy_ch_buf ) 3148 | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); 3149 | 3150 | b->yy_is_our_buffer = 1; 3151 | 3152 | yy_init_buffer( b, file ); 3153 | 3154 | return b; 3155 | } 3156 | 3157 | 3158 | #ifdef YY_USE_PROTOS 3159 | void yy_delete_buffer( YY_BUFFER_STATE b ) 3160 | #else 3161 | void yy_delete_buffer( b ) 3162 | YY_BUFFER_STATE b; 3163 | #endif 3164 | { 3165 | if ( ! b ) 3166 | return; 3167 | 3168 | if ( b == yy_current_buffer ) 3169 | yy_current_buffer = (YY_BUFFER_STATE) 0; 3170 | 3171 | if ( b->yy_is_our_buffer ) 3172 | yy_flex_free( (void *) b->yy_ch_buf ); 3173 | 3174 | yy_flex_free( (void *) b ); 3175 | } 3176 | 3177 | 3178 | #ifndef YY_ALWAYS_INTERACTIVE 3179 | #ifndef YY_NEVER_INTERACTIVE 3180 | extern int isatty YY_PROTO(( int )); 3181 | #endif 3182 | #endif 3183 | 3184 | #ifdef YY_USE_PROTOS 3185 | void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) 3186 | #else 3187 | void yy_init_buffer( b, file ) 3188 | YY_BUFFER_STATE b; 3189 | FILE *file; 3190 | #endif 3191 | 3192 | 3193 | { 3194 | yy_flush_buffer( b ); 3195 | 3196 | b->yy_input_file = file; 3197 | b->yy_fill_buffer = 1; 3198 | 3199 | #if YY_ALWAYS_INTERACTIVE 3200 | b->yy_is_interactive = 1; 3201 | #else 3202 | #if YY_NEVER_INTERACTIVE 3203 | b->yy_is_interactive = 0; 3204 | #else 3205 | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; 3206 | #endif 3207 | #endif 3208 | } 3209 | 3210 | 3211 | #ifdef YY_USE_PROTOS 3212 | void yy_flush_buffer( YY_BUFFER_STATE b ) 3213 | #else 3214 | void yy_flush_buffer( b ) 3215 | YY_BUFFER_STATE b; 3216 | #endif 3217 | 3218 | { 3219 | if ( ! b ) 3220 | return; 3221 | 3222 | b->yy_n_chars = 0; 3223 | 3224 | /* We always need two end-of-buffer characters. The first causes 3225 | * a transition to the end-of-buffer state. The second causes 3226 | * a jam in that state. 3227 | */ 3228 | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; 3229 | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; 3230 | 3231 | b->yy_buf_pos = &b->yy_ch_buf[0]; 3232 | 3233 | b->yy_at_bol = 1; 3234 | b->yy_buffer_status = YY_BUFFER_NEW; 3235 | 3236 | if ( b == yy_current_buffer ) 3237 | yy_load_buffer_state(); 3238 | } 3239 | 3240 | 3241 | #ifndef YY_NO_SCAN_BUFFER 3242 | #ifdef YY_USE_PROTOS 3243 | YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) 3244 | #else 3245 | YY_BUFFER_STATE yy_scan_buffer( base, size ) 3246 | char *base; 3247 | yy_size_t size; 3248 | #endif 3249 | { 3250 | YY_BUFFER_STATE b; 3251 | 3252 | if ( size < 2 || 3253 | base[size-2] != YY_END_OF_BUFFER_CHAR || 3254 | base[size-1] != YY_END_OF_BUFFER_CHAR ) 3255 | /* They forgot to leave room for the EOB's. */ 3256 | return 0; 3257 | 3258 | b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) ); 3259 | if ( ! b ) 3260 | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); 3261 | 3262 | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ 3263 | b->yy_buf_pos = b->yy_ch_buf = base; 3264 | b->yy_is_our_buffer = 0; 3265 | b->yy_input_file = 0; 3266 | b->yy_n_chars = b->yy_buf_size; 3267 | b->yy_is_interactive = 0; 3268 | b->yy_at_bol = 1; 3269 | b->yy_fill_buffer = 0; 3270 | b->yy_buffer_status = YY_BUFFER_NEW; 3271 | 3272 | yy_switch_to_buffer( b ); 3273 | 3274 | return b; 3275 | } 3276 | #endif 3277 | 3278 | 3279 | #ifndef YY_NO_SCAN_STRING 3280 | #ifdef YY_USE_PROTOS 3281 | YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) 3282 | #else 3283 | YY_BUFFER_STATE yy_scan_string( yy_str ) 3284 | yyconst char *yy_str; 3285 | #endif 3286 | { 3287 | int len; 3288 | for ( len = 0; yy_str[len]; ++len ) 3289 | ; 3290 | 3291 | return yy_scan_bytes( yy_str, len ); 3292 | } 3293 | #endif 3294 | 3295 | 3296 | #ifndef YY_NO_SCAN_BYTES 3297 | #ifdef YY_USE_PROTOS 3298 | YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) 3299 | #else 3300 | YY_BUFFER_STATE yy_scan_bytes( bytes, len ) 3301 | yyconst char *bytes; 3302 | int len; 3303 | #endif 3304 | { 3305 | YY_BUFFER_STATE b; 3306 | char *buf; 3307 | yy_size_t n; 3308 | int i; 3309 | 3310 | /* Get memory for full buffer, including space for trailing EOB's. */ 3311 | n = len + 2; 3312 | buf = (char *) yy_flex_alloc( n ); 3313 | if ( ! buf ) 3314 | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); 3315 | 3316 | for ( i = 0; i < len; ++i ) 3317 | buf[i] = bytes[i]; 3318 | 3319 | buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; 3320 | 3321 | b = yy_scan_buffer( buf, n ); 3322 | if ( ! b ) 3323 | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); 3324 | 3325 | /* It's okay to grow etc. this buffer, and we should throw it 3326 | * away when we're done. 3327 | */ 3328 | b->yy_is_our_buffer = 1; 3329 | 3330 | return b; 3331 | } 3332 | #endif 3333 | 3334 | 3335 | #ifndef YY_NO_PUSH_STATE 3336 | #ifdef YY_USE_PROTOS 3337 | static void yy_push_state( int new_state ) 3338 | #else 3339 | static void yy_push_state( new_state ) 3340 | int new_state; 3341 | #endif 3342 | { 3343 | if ( yy_start_stack_ptr >= yy_start_stack_depth ) 3344 | { 3345 | yy_size_t new_size; 3346 | 3347 | yy_start_stack_depth += YY_START_STACK_INCR; 3348 | new_size = yy_start_stack_depth * sizeof( int ); 3349 | 3350 | if ( ! yy_start_stack ) 3351 | yy_start_stack = (int *) yy_flex_alloc( new_size ); 3352 | 3353 | else 3354 | yy_start_stack = (int *) yy_flex_realloc( 3355 | (void *) yy_start_stack, new_size ); 3356 | 3357 | if ( ! yy_start_stack ) 3358 | YY_FATAL_ERROR( 3359 | "out of memory expanding start-condition stack" ); 3360 | } 3361 | 3362 | yy_start_stack[yy_start_stack_ptr++] = YY_START; 3363 | 3364 | BEGIN(new_state); 3365 | } 3366 | #endif 3367 | 3368 | 3369 | #ifndef YY_NO_POP_STATE 3370 | static void yy_pop_state() 3371 | { 3372 | if ( --yy_start_stack_ptr < 0 ) 3373 | YY_FATAL_ERROR( "start-condition stack underflow" ); 3374 | 3375 | BEGIN(yy_start_stack[yy_start_stack_ptr]); 3376 | } 3377 | #endif 3378 | 3379 | 3380 | #ifndef YY_NO_TOP_STATE 3381 | static int yy_top_state() 3382 | { 3383 | return yy_start_stack[yy_start_stack_ptr - 1]; 3384 | } 3385 | #endif 3386 | 3387 | #ifndef YY_EXIT_FAILURE 3388 | #define YY_EXIT_FAILURE 2 3389 | #endif 3390 | 3391 | #ifdef YY_USE_PROTOS 3392 | static void yy_fatal_error( yyconst char msg[] ) 3393 | #else 3394 | static void yy_fatal_error( msg ) 3395 | char msg[]; 3396 | #endif 3397 | { 3398 | (void) fprintf( stderr, "%s\n", msg ); 3399 | exit( YY_EXIT_FAILURE ); 3400 | } 3401 | 3402 | 3403 | 3404 | /* Redefine yyless() so it works in section 3 code. */ 3405 | 3406 | #undef yyless 3407 | #define yyless(n) \ 3408 | do \ 3409 | { \ 3410 | /* Undo effects of setting up yytext. */ \ 3411 | yytext[yyleng] = yy_hold_char; \ 3412 | yy_c_buf_p = yytext + n; \ 3413 | yy_hold_char = *yy_c_buf_p; \ 3414 | *yy_c_buf_p = '\0'; \ 3415 | yyleng = n; \ 3416 | } \ 3417 | while ( 0 ) 3418 | 3419 | 3420 | /* Internal utility routines. */ 3421 | 3422 | #ifndef yytext_ptr 3423 | #ifdef YY_USE_PROTOS 3424 | static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) 3425 | #else 3426 | static void yy_flex_strncpy( s1, s2, n ) 3427 | char *s1; 3428 | yyconst char *s2; 3429 | int n; 3430 | #endif 3431 | { 3432 | register int i; 3433 | for ( i = 0; i < n; ++i ) 3434 | s1[i] = s2[i]; 3435 | } 3436 | #endif 3437 | 3438 | #ifdef YY_NEED_STRLEN 3439 | #ifdef YY_USE_PROTOS 3440 | static int yy_flex_strlen( yyconst char *s ) 3441 | #else 3442 | static int yy_flex_strlen( s ) 3443 | yyconst char *s; 3444 | #endif 3445 | { 3446 | register int n; 3447 | for ( n = 0; s[n]; ++n ) 3448 | ; 3449 | 3450 | return n; 3451 | } 3452 | #endif 3453 | 3454 | 3455 | #ifdef YY_USE_PROTOS 3456 | static void *yy_flex_alloc( yy_size_t size ) 3457 | #else 3458 | static void *yy_flex_alloc( size ) 3459 | yy_size_t size; 3460 | #endif 3461 | { 3462 | return (void *) malloc( size ); 3463 | } 3464 | 3465 | #ifdef YY_USE_PROTOS 3466 | static void *yy_flex_realloc( void *ptr, yy_size_t size ) 3467 | #else 3468 | static void *yy_flex_realloc( ptr, size ) 3469 | void *ptr; 3470 | yy_size_t size; 3471 | #endif 3472 | { 3473 | /* The cast to (char *) in the following accommodates both 3474 | * implementations that use char* generic pointers, and those 3475 | * that use void* generic pointers. It works with the latter 3476 | * because both ANSI C and C++ allow castless assignment from 3477 | * any pointer type to void*, and deal with argument conversions 3478 | * as though doing an assignment. 3479 | */ 3480 | return (void *) realloc( (char *) ptr, size ); 3481 | } 3482 | 3483 | #ifdef YY_USE_PROTOS 3484 | static void yy_flex_free( void *ptr ) 3485 | #else 3486 | static void yy_flex_free( ptr ) 3487 | void *ptr; 3488 | #endif 3489 | { 3490 | free( ptr ); 3491 | } 3492 | 3493 | #if YY_MAIN 3494 | int main() 3495 | { 3496 | yylex(); 3497 | return 0; 3498 | } 3499 | #endif 3500 | #line 400 "parse.l" 3501 |