5 #define YY_INT_ALIGNED short int
9 #define yy_create_buffer vcd__create_buffer
10 #define yy_delete_buffer vcd__delete_buffer
11 #define yy_flex_debug vcd__flex_debug
12 #define yy_init_buffer vcd__init_buffer
13 #define yy_flush_buffer vcd__flush_buffer
14 #define yy_load_buffer_state vcd__load_buffer_state
15 #define yy_switch_to_buffer vcd__switch_to_buffer
17 #define yyleng vcd_leng
19 #define yylineno vcd_lineno
21 #define yyrestart vcd_restart
22 #define yytext vcd_text
23 #define yywrap vcd_wrap
24 #define yyalloc vcd_alloc
25 #define yyrealloc vcd_realloc
26 #define yyfree vcd_free
29 #define YY_FLEX_MAJOR_VERSION 2
30 #define YY_FLEX_MINOR_VERSION 5
31 #define YY_FLEX_SUBMINOR_VERSION 35
32 #if YY_FLEX_SUBMINOR_VERSION > 0
53 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
58 #ifndef __STDC_LIMIT_MACROS
59 #define __STDC_LIMIT_MACROS 1
79 #define INT8_MIN (-128)
82 #define INT16_MIN (-32767-1)
85 #define INT32_MIN (-2147483647-1)
88 #define INT8_MAX (127)
91 #define INT16_MAX (32767)
94 #define INT32_MAX (2147483647)
97 #define UINT8_MAX (255U)
100 #define UINT16_MAX (65535U)
103 #define UINT32_MAX (4294967295U)
118 #if defined (__STDC__)
126 #define yyconst const
139 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
145 #define BEGIN (yy_start) = 1 + 2 *
151 #define YY_START (((yy_start) - 1) / 2)
152 #define YYSTATE YY_START
155 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
158 #define YY_NEW_FILE vcd_restart(vcd_in )
160 #define YY_END_OF_BUFFER_CHAR 0
169 #define YY_BUF_SIZE 32768
171 #define YY_BUF_SIZE 16384
177 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
179 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
180 #define YY_TYPEDEF_YY_BUFFER_STATE
188 #define EOB_ACT_CONTINUE_SCAN 0
189 #define EOB_ACT_END_OF_FILE 1
190 #define EOB_ACT_LAST_MATCH 2
199 #define YY_LESS_LINENO(n) \
202 for ( yyl = n; yyl < vcd_leng; ++yyl )\
203 if ( vcd_text[yyl] == '\n' )\
212 int yyless_macro_arg = (n); \
213 YY_LESS_LINENO(yyless_macro_arg);\
214 *yy_cp = (yy_hold_char); \
215 YY_RESTORE_YY_MORE_OFFSET \
216 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
217 YY_DO_BEFORE_ACTION; \
221 #define unput(c) yyunput( c, (yytext_ptr) )
223 #ifndef YY_TYPEDEF_YY_SIZE_T
224 #define YY_TYPEDEF_YY_SIZE_T
228 #ifndef YY_STRUCT_YY_BUFFER_STATE
229 #define YY_STRUCT_YY_BUFFER_STATE
276 #define YY_BUFFER_NEW 0
277 #define YY_BUFFER_NORMAL 1
288 #define YY_BUFFER_EOF_PENDING 2
294 static size_t yy_buffer_stack_top = 0;
295 static size_t yy_buffer_stack_max = 0;
296 static YY_BUFFER_STATE * yy_buffer_stack = 0;
304 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
305 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
311 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
314 static char yy_hold_char;
315 static int yy_n_chars;
319 static char *yy_c_buf_p = (
char *) 0;
320 static int yy_init = 0;
321 static int yy_start = 0;
326 static int yy_did_buffer_switch_on_eof;
336 static void vcd_ensure_buffer_stack (
void );
337 static void vcd__load_buffer_state (
void );
338 static void vcd__init_buffer (YY_BUFFER_STATE
b,FILE *file );
340 #define YY_FLUSH_BUFFER vcd__flush_buffer(YY_CURRENT_BUFFER )
350 #define yy_new_buffer vcd__create_buffer
352 #define yy_set_interactive(is_interactive) \
354 if ( ! YY_CURRENT_BUFFER ){ \
355 vcd_ensure_buffer_stack (); \
356 YY_CURRENT_BUFFER_LVALUE = \
357 vcd__create_buffer(vcd_in,YY_BUF_SIZE ); \
359 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
362 #define yy_set_bol(at_bol) \
364 if ( ! YY_CURRENT_BUFFER ){\
365 vcd_ensure_buffer_stack (); \
366 YY_CURRENT_BUFFER_LVALUE = \
367 vcd__create_buffer(vcd_in,YY_BUF_SIZE ); \
369 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
372 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
376 #define vcd_wrap(n) 1
377 #define YY_SKIP_YYWRAP
390 #define yytext_ptr vcd_text
392 static yy_state_type yy_get_previous_state (
void );
393 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
394 static int yy_get_next_buffer (
void );
395 static void yy_fatal_error (
yyconst char msg[] );
400 #define YY_DO_BEFORE_ACTION \
401 (yytext_ptr) = yy_bp; \
402 vcd_leng = (size_t) (yy_cp - yy_bp); \
403 (yy_hold_char) = *yy_cp; \
405 (yy_c_buf_p) = yy_cp;
407 #define YY_NUM_RULES 69
408 #define YY_END_OF_BUFFER 70
418 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
419 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
420 0, 0, 0, 0, 0, 0, 0, 0, 70, 68,
421 67, 67, 67, 54, 68, 36, 35, 41, 40, 37,
422 38, 66, 66, 66, 66, 68, 7, 68, 68, 68,
423 68, 10, 68, 55, 55, 55, 55, 55, 56, 68,
424 68, 68, 68, 68, 68, 68, 57, 58, 62, 63,
425 64, 61, 59, 60, 39, 65, 43, 68, 42, 67,
426 0, 0, 0, 0, 0, 0, 0, 0, 8, 15,
427 11, 13, 14, 12, 55, 55, 55, 55, 55, 55,
429 56, 0, 0, 0, 0, 0, 0, 0, 0, 0,
430 0, 57, 58, 64, 39, 65, 43, 42, 0, 0,
431 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
432 9, 55, 55, 55, 55, 55, 0, 0, 0, 0,
433 22, 0, 0, 26, 0, 0, 34, 42, 0, 42,
434 0, 0, 0, 1, 0, 0, 0, 17, 0, 1,
435 55, 52, 55, 55, 50, 0, 0, 0, 21, 0,
436 25, 30, 31, 0, 0, 0, 32, 33, 0, 3,
437 0, 0, 0, 0, 0, 0, 53, 55, 55, 18,
438 0, 0, 0, 0, 28, 0, 0, 0, 0, 0,
440 0, 5, 0, 0, 0, 55, 49, 0, 0, 0,
441 27, 29, 0, 0, 0, 47, 0, 0, 0, 0,
442 0, 55, 19, 0, 23, 24, 2, 45, 46, 0,
443 0, 0, 16, 44, 51, 0, 48, 0, 0, 20,
444 0, 6, 0, 0, 0, 0, 4, 0
449 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
450 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
451 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
452 1, 2, 5, 5, 6, 7, 5, 5, 5, 8,
453 9, 5, 10, 5, 11, 12, 5, 13, 14, 15,
454 15, 15, 15, 15, 15, 15, 15, 16, 5, 5,
455 5, 5, 5, 5, 17, 18, 17, 17, 19, 17,
456 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
457 17, 20, 17, 17, 17, 17, 17, 21, 17, 22,
458 23, 5, 24, 5, 17, 5, 25, 26, 27, 28,
460 29, 30, 31, 17, 32, 17, 33, 34, 35, 36,
461 37, 38, 17, 39, 40, 41, 42, 43, 44, 21,
462 45, 22, 5, 5, 5, 5, 1, 1, 1, 1,
463 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
464 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
465 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
466 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
467 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
468 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
469 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
471 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
472 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
473 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
474 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
475 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
481 1, 1, 1, 1, 2, 2, 2, 2, 2, 2,
482 3, 3, 3, 3, 3, 2, 3, 3, 3, 3,
483 3, 3, 2, 2, 3, 3, 3, 3, 3, 3,
484 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
490 0, 38, 8, 21, 76, 0, 118, 0, 27, 46,
491 162, 0, 34, 64, 206, 230, 253, 0, 2, 10,
492 59, 82, 90, 97, 276, 297, 318, 332, 461, 462,
493 462, 462, 457, 462, 321, 462, 462, 462, 462, 462,
494 462, 462, 462, 456, 429, 428, 443, 415, 414, 413,
495 412, 462, 411, 0, 421, 33, 412, 423, 74, 404,
496 410, 420, 415, 401, 15, 44, 0, 0, 462, 462,
497 89, 462, 462, 462, 94, 0, 157, 154, 168, 462,
498 405, 147, 405, 413, 407, 400, 88, 401, 423, 462,
499 462, 462, 462, 462, 0, 404, 395, 397, 404, 391,
501 171, 401, 388, 389, 2, 389, 391, 393, 388, 384,
502 383, 0, 0, 210, 213, 0, 237, 273, 234, 260,
503 386, 379, 384, 390, 380, 381, 375, 375, 374, 384,
504 462, 379, 377, 382, 366, 374, 370, 376, 379, 369,
505 462, 364, 372, 268, 372, 370, 462, 311, 250, 281,
506 363, 368, 358, 367, 356, 364, 365, 462, 351, 462,
507 354, 0, 348, 354, 0, 346, 355, 350, 462, 350,
508 462, 462, 462, 324, 320, 329, 462, 462, 328, 462,
509 266, 327, 326, 314, 316, 320, 0, 319, 315, 462,
510 312, 310, 293, 309, 462, 296, 287, 283, 160, 291,
512 285, 462, 287, 275, 275, 271, 0, 267, 263, 160,
513 462, 462, 243, 249, 242, 462, 213, 173, 179, 170,
514 162, 159, 462, 164, 462, 462, 462, 462, 462, 152,
515 152, 81, 462, 462, 0, 71, 462, 73, 53, 462,
516 30, 462, 25, 18, 10, 3, 462, 462, 364, 367,
517 370, 373, 376, 16, 378, 2, 380
522 249, 249, 250, 250, 249, 5, 248, 7, 250, 250,
523 249, 11, 251, 251, 252, 252, 249, 17, 2, 2,
524 249, 249, 253, 253, 249, 249, 249, 249, 248, 248,
525 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
526 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
527 248, 248, 248, 254, 254, 254, 254, 254, 248, 248,
528 248, 248, 248, 248, 248, 248, 255, 256, 248, 248,
529 248, 248, 248, 248, 248, 257, 248, 248, 248, 248,
530 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
531 248, 248, 248, 248, 254, 254, 254, 254, 254, 254,
533 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
534 248, 255, 256, 248, 248, 257, 248, 248, 248, 248,
535 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
536 248, 254, 254, 254, 254, 254, 248, 248, 248, 248,
537 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
538 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
539 254, 254, 254, 254, 254, 248, 248, 248, 248, 248,
540 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
541 248, 248, 248, 248, 248, 248, 254, 254, 254, 248,
542 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
544 248, 248, 248, 248, 248, 254, 254, 248, 248, 248,
545 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
546 248, 254, 248, 248, 248, 248, 248, 248, 248, 248,
547 248, 248, 248, 248, 254, 248, 248, 248, 248, 248,
548 248, 248, 248, 248, 248, 248, 248, 0, 248, 248,
549 248, 248, 248, 248, 248, 248, 248
554 248, 31, 32, 33, 113, 34, 35, 30, 46, 43,
555 32, 44, 36, 37, 45, 30, 46, 38, 95, 39,
556 40, 41, 43, 32, 44, 38, 140, 45, 43, 32,
557 44, 248, 141, 45, 30, 31, 32, 33, 39, 31,
558 32, 33, 247, 34, 35, 246, 107, 43, 32, 44,
559 36, 37, 45, 108, 245, 38, 244, 39, 40, 41,
560 31, 32, 33, 38, 30, 31, 32, 33, 109, 97,
561 243, 75, 75, 75, 98, 110, 39, 31, 32, 33,
562 111, 242, 46, 31, 32, 33, 101, 101, 101, 47,
563 30, 31, 32, 33, 75, 75, 75, 30, 31, 32,
565 33, 114, 114, 114, 241, 48, 115, 115, 115, 240,
566 49, 50, 128, 51, 239, 52, 129, 53, 30, 31,
567 32, 33, 30, 30, 46, 30, 30, 30, 30, 30,
568 30, 30, 30, 30, 54, 54, 54, 54, 54, 54,
569 30, 30, 54, 55, 54, 54, 54, 56, 54, 54,
570 54, 54, 57, 54, 54, 54, 54, 54, 58, 54,
571 54, 54, 54, 31, 32, 33, 118, 118, 118, 117,
572 117, 122, 225, 226, 59, 59, 59, 117, 117, 119,
573 118, 118, 118, 101, 101, 101, 120, 238, 123, 215,
574 60, 237, 236, 61, 235, 216, 120, 234, 233, 62,
576 63, 64, 65, 232, 231, 66, 30, 31, 32, 33,
577 30, 30, 30, 30, 30, 30, 30, 30, 30, 30,
578 30, 30, 114, 114, 114, 115, 115, 115, 30, 30,
579 30, 31, 32, 33, 30, 30, 30, 30, 30, 30,
580 30, 30, 30, 30, 30, 30, 148, 148, 148, 117,
581 117, 230, 30, 30, 31, 32, 33, 117, 117, 46,
582 69, 70, 150, 150, 150, 71, 71, 71, 72, 149,
583 149, 229, 150, 150, 150, 73, 74, 31, 32, 33,
584 172, 173, 228, 227, 119, 118, 118, 118, 77, 77,
585 198, 120, 174, 150, 150, 150, 77, 77, 31, 32,
587 33, 120, 199, 224, 175, 223, 176, 222, 200, 77,
588 77, 221, 220, 219, 218, 217, 214, 77, 77, 31,
589 32, 33, 213, 148, 148, 148, 212, 78, 78, 120,
590 79, 79, 79, 31, 32, 33, 211, 210, 209, 120,
591 208, 78, 78, 207, 79, 79, 79, 81, 82, 83,
592 206, 205, 204, 203, 202, 201, 197, 196, 195, 194,
593 84, 85, 86, 87, 30, 30, 30, 42, 42, 42,
594 67, 67, 67, 68, 68, 68, 76, 76, 76, 112,
595 112, 116, 116, 193, 192, 191, 190, 189, 188, 187,
596 186, 185, 184, 183, 182, 181, 180, 179, 178, 177,
598 171, 170, 169, 168, 167, 166, 165, 164, 163, 162,
599 161, 160, 159, 158, 157, 156, 155, 154, 153, 152,
600 151, 147, 146, 145, 144, 143, 142, 139, 138, 137,
601 136, 135, 134, 133, 132, 131, 130, 127, 126, 125,
602 124, 121, 106, 105, 104, 103, 102, 100, 99, 96,
603 94, 93, 92, 91, 90, 89, 88, 88, 80, 80,
604 248, 29, 248, 248, 248, 248, 248, 248, 248, 248,
605 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
606 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
607 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
609 248, 248, 248, 248, 248, 248, 248
614 0, 1, 1, 1, 256, 1, 1, 19, 19, 3,
615 3, 3, 1, 1, 3, 20, 20, 1, 254, 1,
616 1, 1, 4, 4, 4, 1, 105, 4, 9, 9,
617 9, 0, 105, 9, 13, 13, 13, 13, 1, 2,
618 2, 2, 246, 2, 2, 245, 65, 10, 10, 10,
619 2, 2, 10, 65, 244, 2, 243, 2, 2, 2,
620 21, 21, 21, 2, 14, 14, 14, 14, 66, 56,
621 241, 21, 21, 21, 56, 66, 2, 5, 5, 5,
622 66, 239, 5, 22, 22, 22, 59, 59, 59, 5,
623 23, 23, 23, 23, 22, 22, 22, 24, 24, 24,
625 24, 71, 71, 71, 238, 5, 75, 75, 75, 236,
626 5, 5, 87, 5, 232, 5, 87, 5, 7, 7,
627 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
628 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
629 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
630 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
631 7, 7, 7, 11, 11, 11, 78, 78, 78, 77,
632 77, 82, 210, 210, 11, 11, 11, 77, 77, 79,
633 79, 79, 79, 101, 101, 101, 79, 231, 82, 199,
634 11, 230, 224, 11, 222, 199, 79, 221, 220, 11,
636 11, 11, 11, 219, 218, 11, 15, 15, 15, 15,
637 15, 15, 15, 15, 15, 15, 15, 15, 15, 15,
638 15, 15, 114, 114, 114, 115, 115, 115, 15, 15,
639 16, 16, 16, 16, 16, 16, 16, 16, 16, 16,
640 16, 16, 16, 16, 16, 16, 119, 119, 119, 117,
641 117, 217, 16, 16, 17, 17, 17, 117, 117, 17,
642 17, 17, 149, 149, 149, 17, 17, 17, 17, 120,
643 120, 215, 120, 120, 120, 17, 17, 25, 25, 25,
644 144, 144, 214, 213, 118, 118, 118, 118, 25, 25,
645 181, 118, 144, 150, 150, 150, 25, 25, 26, 26,
647 26, 118, 181, 209, 144, 208, 144, 206, 181, 26,
648 26, 205, 204, 203, 201, 200, 198, 26, 26, 27,
649 27, 27, 197, 148, 148, 148, 196, 27, 27, 148,
650 27, 27, 27, 28, 28, 28, 194, 193, 192, 148,
651 191, 28, 28, 189, 28, 28, 28, 35, 35, 35,
652 188, 186, 185, 184, 183, 182, 179, 176, 175, 174,
653 35, 35, 35, 35, 249, 249, 249, 250, 250, 250,
654 251, 251, 251, 252, 252, 252, 253, 253, 253, 255,
655 255, 257, 257, 170, 168, 167, 166, 164, 163, 161,
656 159, 157, 156, 155, 154, 153, 152, 151, 146, 145,
658 143, 142, 140, 139, 138, 137, 136, 135, 134, 133,
659 132, 130, 129, 128, 127, 126, 125, 124, 123, 122,
660 121, 111, 110, 109, 108, 107, 106, 104, 103, 102,
661 100, 99, 98, 97, 96, 89, 88, 86, 85, 84,
662 83, 81, 64, 63, 62, 61, 60, 58, 57, 55,
663 53, 51, 50, 49, 48, 47, 46, 45, 44, 33,
664 29, 248, 248, 248, 248, 248, 248, 248, 248, 248,
665 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
666 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
667 248, 248, 248, 248, 248, 248, 248, 248, 248, 248,
669 248, 248, 248, 248, 248, 248, 248
675 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
676 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
677 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
678 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, };
680 static yy_state_type yy_last_accepting_state;
681 static char *yy_last_accepting_cpos;
684 int vcd__flex_debug = 0;
689 #define REJECT reject_used_but_not_detected
690 #define yymore() yymore_used_but_not_detected
691 #define YY_MORE_ADJ 0
692 #define YY_RESTORE_YY_MORE_OFFSET
743 # define strchr index
744 # define strrchr rindex
749 #line 750 "scan_vcd.cpp"
766 #ifndef YY_EXTRA_TYPE
767 #define YY_EXTRA_TYPE void *
770 static int yy_init_globals (
void );
805 #ifndef YY_SKIP_YYWRAP
814 static void yy_flex_strncpy (
char *,
yyconst char *,
int );
817 #ifdef YY_NEED_STRLEN
818 static int yy_flex_strlen (
yyconst char * );
824 static int yyinput (
void );
826 static int input (
void );
832 #ifndef YY_READ_BUF_SIZE
835 #define YY_READ_BUF_SIZE 16384
837 #define YY_READ_BUF_SIZE 8192
846 #define ECHO do { if (fwrite( vcd_text, vcd_leng, 1, vcd_out )) {} } while (0)
853 #define YY_INPUT(buf,result,max_size) \
854 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
858 for ( n = 0; n < max_size && \
859 (c = getc( vcd_in )) != EOF && c != '\n'; ++n ) \
862 buf[n++] = (char) c; \
863 if ( c == EOF && ferror( vcd_in ) ) \
864 YY_FATAL_ERROR( "input in flex scanner failed" ); \
870 while ( (result = fread(buf, 1, max_size, vcd_in))==0 && ferror(vcd_in)) \
872 if( errno != EINTR) \
874 YY_FATAL_ERROR( "input in flex scanner failed" ); \
890 #define yyterminate() return YY_NULL
894 #ifndef YY_START_STACK_INCR
895 #define YY_START_STACK_INCR 25
899 #ifndef YY_FATAL_ERROR
900 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
909 #define YY_DECL_IS_OURS 1
913 #define YY_DECL int vcd_lex (void)
919 #ifndef YY_USER_ACTION
920 #define YY_USER_ACTION
925 #define YY_BREAK break;
928 #define YY_RULE_SETUP \
935 register yy_state_type yy_current_state;
939 #line 72 "scan_vcd.l"
942 #line 943 "scan_vcd.cpp"
962 vcd_ensure_buffer_stack ();
967 vcd__load_buffer_state( );
972 yy_cp = (yy_c_buf_p);
975 *yy_cp = (yy_hold_char);
982 yy_current_state = (yy_start);
987 if ( yy_accept[yy_current_state] )
989 (yy_last_accepting_state) = yy_current_state;
990 (yy_last_accepting_cpos) = yy_cp;
992 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
994 yy_current_state = (int) yy_def[yy_current_state];
995 if ( yy_current_state >= 249 )
996 yy_c = yy_meta[(
unsigned int) yy_c];
998 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1001 while ( yy_base[yy_current_state] != 462 );
1004 yy_act = yy_accept[yy_current_state];
1007 yy_cp = (yy_last_accepting_cpos);
1008 yy_current_state = (yy_last_accepting_state);
1009 yy_act = yy_accept[yy_current_state];
1017 for ( yyl = 0; yyl <
vcd_leng; ++yyl )
1018 if ( vcd_text[yyl] ==
'\n' )
1030 *yy_cp = (yy_hold_char);
1031 yy_cp = (yy_last_accepting_cpos);
1032 yy_current_state = (yy_last_accepting_state);
1033 goto yy_find_action;
1037 #line 74 "scan_vcd.l"
1045 #line 79 "scan_vcd.l"
1053 #line 84 "scan_vcd.l"
1061 #line 89 "scan_vcd.l"
1068 #line 93 "scan_vcd.l"
1076 #line 98 "scan_vcd.l"
1084 #line 103 "scan_vcd.l"
1089 #line 104 "scan_vcd.l"
1094 #line 105 "scan_vcd.l"
1099 #line 107 "scan_vcd.l"
1104 #line 108 "scan_vcd.l"
1109 #line 109 "scan_vcd.l"
1114 #line 110 "scan_vcd.l"
1119 #line 111 "scan_vcd.l"
1124 #line 112 "scan_vcd.l"
1129 #line 114 "scan_vcd.l"
1136 #line 118 "scan_vcd.l"
1144 #line 123 "scan_vcd.l"
1149 #line 124 "scan_vcd.l"
1154 #line 125 "scan_vcd.l"
1159 #line 126 "scan_vcd.l"
1164 #line 127 "scan_vcd.l"
1169 #line 128 "scan_vcd.l"
1174 #line 129 "scan_vcd.l"
1179 #line 130 "scan_vcd.l"
1184 #line 131 "scan_vcd.l"
1189 #line 132 "scan_vcd.l"
1194 #line 133 "scan_vcd.l"
1199 #line 134 "scan_vcd.l"
1204 #line 135 "scan_vcd.l"
1209 #line 136 "scan_vcd.l"
1214 #line 137 "scan_vcd.l"
1219 #line 138 "scan_vcd.l"
1224 #line 139 "scan_vcd.l"
1229 #line 141 "scan_vcd.l"
1238 #line 147 "scan_vcd.l"
1247 #line 153 "scan_vcd.l"
1256 #line 159 "scan_vcd.l"
1265 #line 165 "scan_vcd.l"
1274 #line 171 "scan_vcd.l"
1282 #line 176 "scan_vcd.l"
1290 #line 181 "scan_vcd.l"
1299 #line 187 "scan_vcd.l"
1303 while (*p) { *p = toupper (*p); p++; }
1310 #line 195 "scan_vcd.l"
1318 #line 200 "scan_vcd.l"
1325 #line 204 "scan_vcd.l"
1332 #line 208 "scan_vcd.l"
1339 #line 212 "scan_vcd.l"
1347 #line 217 "scan_vcd.l"
1352 #line 218 "scan_vcd.l"
1357 #line 219 "scan_vcd.l"
1362 #line 220 "scan_vcd.l"
1367 #line 221 "scan_vcd.l"
1372 #line 223 "scan_vcd.l"
1380 #line 228 "scan_vcd.l"
1388 #line 233 "scan_vcd.l"
1397 #line 239 "scan_vcd.l"
1406 #line 245 "scan_vcd.l"
1415 #line 251 "scan_vcd.l"
1420 #line 252 "scan_vcd.l"
1425 #line 253 "scan_vcd.l"
1430 #line 254 "scan_vcd.l"
1435 #line 255 "scan_vcd.l"
1440 #line 257 "scan_vcd.l"
1448 #line 262 "scan_vcd.l"
1457 #line 268 "scan_vcd.l"
1463 #line 269 "scan_vcd.l"
1468 #line 271 "scan_vcd.l"
1471 "line %d: syntax error, unrecognized character: `%s'\n",
1472 vcd_lineno, vcd_text);
1478 #line 278 "scan_vcd.l"
1481 #line 1482 "scan_vcd.cpp"
1501 int yy_amount_of_matched_text = (int) (yy_cp - (
yytext_ptr)) - 1;
1504 *yy_cp = (yy_hold_char);
1532 yy_state_type yy_next_state;
1534 (yy_c_buf_p) = (
yytext_ptr) + yy_amount_of_matched_text;
1536 yy_current_state = yy_get_previous_state( );
1547 yy_next_state = yy_try_NUL_trans( yy_current_state );
1551 if ( yy_next_state )
1554 yy_cp = ++(yy_c_buf_p);
1555 yy_current_state = yy_next_state;
1561 yy_cp = (yy_c_buf_p);
1562 goto yy_find_action;
1566 else switch ( yy_get_next_buffer( ) )
1570 (yy_did_buffer_switch_on_eof) = 0;
1591 if ( ! (yy_did_buffer_switch_on_eof) )
1601 yy_current_state = yy_get_previous_state( );
1603 yy_cp = (yy_c_buf_p);
1611 yy_current_state = yy_get_previous_state( );
1613 yy_cp = (yy_c_buf_p);
1615 goto yy_find_action;
1622 "fatal flex scanner internal error--no action found" );
1634 static int yy_get_next_buffer (
void)
1638 register int number_to_move,
i;
1643 "fatal flex scanner internal error--end of buffer missed" );
1667 number_to_move = (int) ((yy_c_buf_p) - (
yytext_ptr)) - 1;
1669 for ( i = 0; i < number_to_move; ++
i )
1670 *(dest++) = *(source++);
1683 while ( num_to_read <= 0 )
1689 int yy_c_buf_p_offset =
1696 if ( new_size <= 0 )
1711 "fatal error - scanner input buffer overflow" );
1713 (yy_c_buf_p) = &b->
yy_ch_buf[yy_c_buf_p_offset];
1725 (yy_n_chars), (
size_t) num_to_read );
1730 if ( (yy_n_chars) == 0 )
1751 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1754 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1757 (yy_n_chars) += number_to_move;
1768 static yy_state_type yy_get_previous_state (
void)
1770 register yy_state_type yy_current_state;
1771 register char *
yy_cp;
1773 yy_current_state = (yy_start);
1778 if ( yy_accept[yy_current_state] )
1780 (yy_last_accepting_state) = yy_current_state;
1781 (yy_last_accepting_cpos) = yy_cp;
1783 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1785 yy_current_state = (int) yy_def[yy_current_state];
1786 if ( yy_current_state >= 249 )
1787 yy_c = yy_meta[(
unsigned int) yy_c];
1789 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1792 return yy_current_state;
1800 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1802 register int yy_is_jam;
1803 register char *yy_cp = (yy_c_buf_p);
1806 if ( yy_accept[yy_current_state] )
1808 (yy_last_accepting_state) = yy_current_state;
1809 (yy_last_accepting_cpos) = yy_cp;
1811 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1813 yy_current_state = (int) yy_def[yy_current_state];
1814 if ( yy_current_state >= 249 )
1815 yy_c = yy_meta[(
unsigned int) yy_c];
1817 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1818 yy_is_jam = (yy_current_state == 248);
1820 return yy_is_jam ? 0 : yy_current_state;
1825 static int yyinput (
void)
1827 static int input (
void)
1833 *(yy_c_buf_p) = (yy_hold_char);
1843 *(yy_c_buf_p) =
'\0';
1850 switch ( yy_get_next_buffer( ) )
1873 if ( ! (yy_did_buffer_switch_on_eof) )
1889 c = *(
unsigned char *) (yy_c_buf_p);
1890 *(yy_c_buf_p) =
'\0';
1891 (yy_hold_char) = *++(yy_c_buf_p);
1911 vcd_ensure_buffer_stack ();
1917 vcd__load_buffer_state( );
1932 vcd_ensure_buffer_stack ();
1939 *(yy_c_buf_p) = (yy_hold_char);
1945 vcd__load_buffer_state( );
1952 (yy_did_buffer_switch_on_eof) = 1;
1955 static void vcd__load_buffer_state (
void)
1960 (yy_hold_char) = *(yy_c_buf_p);
1975 YY_FATAL_ERROR(
"out of dynamic memory in vcd__create_buffer()" );
1984 YY_FATAL_ERROR(
"out of dynamic memory in vcd__create_buffer()" );
1988 vcd__init_buffer(b,file );
2013 extern int isatty (
int );
2020 static void vcd__init_buffer (YY_BUFFER_STATE b, FILE * file )
2068 vcd__load_buffer_state( );
2079 if (new_buffer == NULL)
2082 vcd_ensure_buffer_stack();
2088 *(yy_c_buf_p) = (yy_hold_char);
2095 (yy_buffer_stack_top)++;
2099 vcd__load_buffer_state( );
2100 (yy_did_buffer_switch_on_eof) = 1;
2114 if ((yy_buffer_stack_top) > 0)
2115 --(yy_buffer_stack_top);
2118 vcd__load_buffer_state( );
2119 (yy_did_buffer_switch_on_eof) = 1;
2126 static void vcd_ensure_buffer_stack (
void)
2130 if (!(yy_buffer_stack)) {
2140 if ( ! (yy_buffer_stack) )
2141 YY_FATAL_ERROR(
"out of dynamic memory in vcd_ensure_buffer_stack()" );
2143 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
2145 (yy_buffer_stack_max) = num_to_alloc;
2146 (yy_buffer_stack_top) = 0;
2150 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
2155 num_to_alloc = (yy_buffer_stack_max) + grow_size;
2160 if ( ! (yy_buffer_stack) )
2161 YY_FATAL_ERROR(
"out of dynamic memory in vcd_ensure_buffer_stack()" );
2164 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size *
sizeof(
struct yy_buffer_state*));
2165 (yy_buffer_stack_max) = num_to_alloc;
2233 n = _yybytes_len + 2;
2238 for ( i = 0; i < _yybytes_len; ++
i )
2239 buf[i] = yybytes[i];
2255 #ifndef YY_EXIT_FAILURE
2256 #define YY_EXIT_FAILURE 2
2259 static void yy_fatal_error (
yyconst char* msg )
2261 (void)
fprintf( stderr,
"%s\n", msg );
2272 int yyless_macro_arg = (n); \
2273 YY_LESS_LINENO(yyless_macro_arg);\
2274 vcd_text[vcd_leng] = (yy_hold_char); \
2275 (yy_c_buf_p) = vcd_text + yyless_macro_arg; \
2276 (yy_hold_char) = *(yy_c_buf_p); \
2277 *(yy_c_buf_p) = '\0'; \
2278 vcd_leng = yyless_macro_arg; \
2333 vcd_lineno = line_number;
2359 vcd__flex_debug = bdebug ;
2362 static int yy_init_globals (
void)
2371 (yy_buffer_stack) = 0;
2372 (yy_buffer_stack_top) = 0;
2373 (yy_buffer_stack_max) = 0;
2374 (yy_c_buf_p) = (
char *) 0;
2406 (yy_buffer_stack) = NULL;
2420 static void yy_flex_strncpy (
char* s1,
yyconst char * s2,
int n )
2423 for ( i = 0; i <
n; ++
i )
2428 #ifdef YY_NEED_STRLEN
2429 static int yy_flex_strlen (
yyconst char *
s )
2432 for ( n = 0; s[
n]; ++
n )
2441 return (
void *) malloc( size );
2453 return (
void *) realloc( (
char *) ptr, size );
2458 free( (
char *) ptr );
2461 #define YYTABLES_NAME "yytables"
2463 #line 278 "scan_vcd.l"