1 #line 2 "frontends/verilog/verilog_lexer.cc"
3 #line 4 "frontends/verilog/verilog_lexer.cc"
5 #define YY_INT_ALIGNED short int
9 #define yy_create_buffer frontend_verilog_yy_create_buffer
10 #define yy_delete_buffer frontend_verilog_yy_delete_buffer
11 #define yy_flex_debug frontend_verilog_yy_flex_debug
12 #define yy_init_buffer frontend_verilog_yy_init_buffer
13 #define yy_flush_buffer frontend_verilog_yy_flush_buffer
14 #define yy_load_buffer_state frontend_verilog_yy_load_buffer_state
15 #define yy_switch_to_buffer frontend_verilog_yy_switch_to_buffer
16 #define yyin frontend_verilog_yyin
17 #define yyleng frontend_verilog_yyleng
18 #define yylex frontend_verilog_yylex
19 #define yylineno frontend_verilog_yylineno
20 #define yyout frontend_verilog_yyout
21 #define yyrestart frontend_verilog_yyrestart
22 #define yytext frontend_verilog_yytext
23 #define yywrap frontend_verilog_yywrap
24 #define yyalloc frontend_verilog_yyalloc
25 #define yyrealloc frontend_verilog_yyrealloc
26 #define yyfree frontend_verilog_yyfree
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 frontend_verilog_yyrestart(frontend_verilog_yyin )
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 < frontend_verilog_yyleng; ++yyl )\
203 if ( frontend_verilog_yytext[yyl] == '\n' )\
204 --frontend_verilog_yylineno;\
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
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)]
340 #define YY_FLUSH_BUFFER frontend_verilog_yy_flush_buffer(YY_CURRENT_BUFFER )
350 #define yy_new_buffer frontend_verilog_yy_create_buffer
352 #define yy_set_interactive(is_interactive) \
354 if ( ! YY_CURRENT_BUFFER ){ \
355 frontend_verilog_yyensure_buffer_stack (); \
356 YY_CURRENT_BUFFER_LVALUE = \
357 frontend_verilog_yy_create_buffer(frontend_verilog_yyin,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 frontend_verilog_yyensure_buffer_stack (); \
366 YY_CURRENT_BUFFER_LVALUE = \
367 frontend_verilog_yy_create_buffer(frontend_verilog_yyin,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 frontend_verilog_yywrap(n) 1
377 #define YY_SKIP_YYWRAP
387 int frontend_verilog_yylineno = 1;
390 #define yytext_ptr frontend_verilog_yytext
400 #define YY_DO_BEFORE_ACTION \
401 (yytext_ptr) = yy_bp; \
402 (yytext_ptr) -= (yy_more_len); \
403 frontend_verilog_yyleng = (size_t) (yy_cp - (yytext_ptr)); \
404 (yy_hold_char) = *yy_cp; \
406 (yy_c_buf_p) = yy_cp;
408 #define YY_NUM_RULES 115
409 #define YY_END_OF_BUFFER 116
419 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
420 0, 0, 116, 114, 110, 110, 110, 114, 57, 114,
421 67, 114, 114, 114, 114, 114, 114, 114, 53, 114,
422 114, 114, 67, 114, 114, 114, 67, 67, 67, 67,
423 67, 67, 67, 67, 67, 67, 67, 67, 67, 67,
424 67, 67, 67, 67, 114, 114, 114, 107, 108, 107,
425 60, 115, 59, 60, 69, 70, 69, 69, 75, 75,
426 75, 75, 81, 79, 79, 78, 80, 0, 0, 91,
427 113, 67, 67, 67, 67, 67, 67, 89, 0, 0,
428 83, 84, 87, 86, 104, 105, 106, 112, 0, 53,
430 0, 0, 100, 92, 90, 93, 101, 82, 111, 99,
431 7, 7, 7, 7, 7, 67, 67, 67, 67, 67,
432 67, 67, 67, 67, 67, 67, 67, 67, 22, 67,
433 67, 67, 67, 67, 67, 67, 27, 67, 67, 67,
434 67, 67, 67, 67, 67, 67, 67, 67, 67, 85,
435 88, 96, 98, 97, 109, 58, 0, 0, 0, 76,
436 0, 0, 78, 95, 67, 67, 67, 67, 67, 67,
437 0, 54, 0, 0, 112, 55, 0, 56, 102, 94,
438 103, 7, 7, 7, 7, 7, 67, 61, 67, 67,
439 43, 61, 67, 67, 67, 21, 24, 67, 67, 67,
441 67, 67, 67, 67, 67, 67, 67, 67, 67, 61,
442 67, 67, 67, 67, 67, 48, 67, 67, 67, 67,
443 67, 67, 67, 0, 0, 0, 0, 0, 0, 67,
444 67, 67, 67, 67, 67, 0, 55, 0, 7, 7,
445 7, 7, 67, 67, 67, 67, 67, 28, 67, 67,
446 23, 67, 67, 67, 67, 67, 67, 67, 67, 67,
447 67, 67, 67, 67, 67, 67, 67, 67, 67, 67,
448 67, 67, 67, 52, 67, 67, 67, 12, 67, 47,
449 0, 0, 0, 0, 0, 67, 67, 67, 64, 67,
450 0, 0, 55, 7, 7, 7, 7, 67, 67, 67,
452 20, 67, 29, 30, 67, 67, 67, 67, 67, 67,
453 67, 67, 67, 67, 67, 67, 46, 44, 67, 67,
454 42, 67, 67, 67, 67, 67, 67, 67, 67, 67,
455 67, 35, 0, 0, 0, 0, 0, 67, 67, 67,
456 67, 0, 0, 7, 7, 0, 7, 18, 40, 17,
457 67, 67, 67, 67, 67, 67, 67, 67, 67, 51,
458 67, 67, 67, 67, 8, 67, 45, 67, 67, 67,
459 36, 50, 67, 0, 0, 0, 0, 0, 67, 65,
460 67, 0, 0, 7, 7, 7, 0, 7, 67, 32,
461 67, 31, 67, 67, 67, 13, 67, 67, 0, 19,
463 49, 67, 26, 67, 25, 67, 62, 63, 0, 0,
464 0, 0, 0, 67, 0, 0, 7, 7, 7, 7,
465 0, 7, 67, 67, 67, 16, 67, 67, 67, 10,
466 33, 0, 67, 67, 41, 0, 0, 0, 0, 0,
467 0, 66, 0, 0, 7, 7, 7, 7, 0, 7,
468 67, 38, 67, 67, 67, 9, 0, 67, 14, 0,
469 0, 0, 0, 73, 0, 0, 0, 7, 7, 0,
470 2, 7, 7, 0, 7, 67, 67, 67, 67, 0,
471 15, 0, 0, 0, 0, 72, 0, 7, 7, 1,
472 0, 0, 37, 67, 11, 34, 0, 0, 0, 0,
474 0, 7, 7, 1, 0, 3, 0, 0, 0, 39,
475 0, 0, 0, 0, 0, 7, 7, 0, 5, 0,
476 0, 0, 74, 0, 7, 7, 5, 5, 0, 0,
477 0, 7, 4, 0, 0, 0, 7, 4, 0, 0,
478 0, 0, 0, 0, 0, 6, 0, 0, 0, 0,
479 0, 0, 0, 0, 0, 0, 0, 0, 77, 0,
480 0, 0, 0, 0, 0, 71, 68, 0
485 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
486 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
487 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
488 1, 5, 6, 7, 8, 9, 1, 10, 11, 12,
489 13, 14, 15, 1, 16, 17, 18, 19, 20, 21,
490 21, 21, 21, 21, 21, 21, 21, 22, 23, 24,
491 25, 26, 27, 1, 28, 28, 29, 30, 31, 28,
492 32, 32, 33, 32, 32, 32, 32, 32, 32, 34,
493 32, 32, 32, 32, 32, 32, 32, 28, 32, 28,
494 1, 35, 1, 36, 37, 38, 39, 40, 41, 42,
496 43, 44, 45, 46, 47, 32, 48, 49, 50, 51,
497 52, 53, 32, 54, 55, 56, 57, 58, 59, 60,
498 61, 62, 63, 64, 65, 66, 1, 1, 1, 1,
499 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
500 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
501 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
502 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
503 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
504 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
505 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
507 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
508 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
509 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
510 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
511 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
517 1, 2, 3, 4, 5, 1, 1, 1, 6, 1,
518 1, 1, 1, 1, 1, 1, 7, 8, 9, 9,
519 9, 1, 1, 1, 1, 1, 10, 11, 11, 11,
520 11, 6, 6, 6, 1, 1, 11, 1, 11, 11,
521 11, 11, 11, 11, 6, 6, 6, 6, 6, 6,
522 6, 6, 6, 6, 6, 6, 6, 6, 6, 11,
528 0, 0, 64, 65, 66, 67, 68, 69, 74, 77,
529 130, 0, 1053, 1054, 79, 1054, 1054, 1027, 1054, 0,
530 41, 1041, 53, 1036, 184, 1027, 1026, 86, 248, 51,
531 1022, 84, 0, 108, 980, 73, 65, 156, 1006, 1001,
532 43, 67, 1000, 156, 990, 989, 162, 69, 163, 997,
533 56, 1000, 162, 159, 1024, 973, 194, 1054, 1054, 1018,
534 1054, 1054, 1054, 0, 1054, 1054, 1021, 172, 1054, 1016,
535 976, 993, 1054, 1054, 1054, 0, 1054, 217, 183, 1006,
536 0, 0, 983, 982, 171, 981, 976, 1054, 229, 199,
537 1054, 1054, 1054, 1054, 1054, 1054, 235, 0, 223, 0,
539 241, 255, 1002, 1054, 1000, 1054, 998, 243, 1054, 1054,
540 0, 980, 975, 974, 973, 960, 976, 962, 971, 959,
541 970, 958, 968, 956, 968, 955, 957, 956, 0, 953,
542 241, 179, 963, 953, 958, 198, 0, 946, 947, 945,
543 947, 242, 953, 944, 941, 948, 940, 941, 938, 1054,
544 1054, 1054, 1054, 1054, 1054, 1054, 261, 944, 943, 1054,
545 940, 934, 0, 1054, 932, 935, 940, 932, 933, 927,
546 297, 301, 268, 920, 0, 288, 291, 301, 1054, 1054,
547 1054, 0, 936, 930, 927, 927, 937, 0, 237, 928,
548 0, 927, 930, 173, 929, 285, 0, 930, 274, 918,
550 913, 911, 910, 923, 926, 917, 906, 920, 918, 913,
551 906, 919, 914, 903, 906, 0, 911, 902, 899, 903,
552 901, 906, 894, 313, 886, 897, 894, 895, 904, 889,
553 894, 889, 886, 895, 890, 885, 323, 330, 896, 891,
554 890, 889, 870, 876, 884, 877, 883, 274, 869, 886,
555 0, 885, 866, 879, 869, 881, 863, 864, 878, 862,
556 868, 858, 857, 867, 862, 869, 860, 866, 863, 849,
557 855, 862, 860, 0, 863, 858, 851, 0, 856, 0,
558 847, 854, 853, 858, 845, 844, 837, 848, 0, 845,
559 281, 336, 342, 832, 851, 123, 832, 831, 829, 833,
561 0, 263, 0, 0, 834, 828, 826, 829, 828, 836,
562 822, 829, 836, 820, 817, 833, 0, 0, 828, 817,
563 0, 826, 823, 294, 811, 823, 820, 810, 807, 820,
564 800, 0, 296, 823, 322, 818, 809, 818, 810, 813,
565 803, 800, 806, 802, 318, 370, 809, 812, 0, 0,
566 792, 808, 803, 804, 801, 786, 794, 789, 784, 0,
567 378, 790, 784, 798, 0, 793, 0, 779, 791, 777,
568 0, 0, 320, 779, 785, 777, 790, 785, 766, 0,
569 783, 770, 781, 767, 770, 301, 372, 782, 343, 0,
570 770, 0, 763, 764, 768, 0, 765, 772, 386, 0,
572 0, 760, 0, 770, 0, 751, 0, 0, 756, 767,
573 307, 754, 759, 765, 745, 750, 767, 747, 749, 746,
574 392, 751, 747, 754, 758, 0, 749, 756, 751, 0,
575 0, 763, 753, 737, 0, 729, 734, 735, 732, 743,
576 748, 0, 729, 736, 731, 737, 399, 734, 0, 736,
577 725, 0, 715, 718, 703, 0, 715, 698, 0, 683,
578 684, 724, 680, 1054, 675, 464, 649, 641, 631, 679,
579 1054, 0, 667, 664, 393, 627, 624, 613, 612, 621,
580 0, 465, 593, 642, 607, 466, 586, 582, 580, 0,
581 469, 473, 0, 581, 0, 0, 248, 475, 569, 567,
583 582, 564, 561, 0, 476, 1054, 606, 479, 483, 0,
584 487, 577, 565, 560, 549, 537, 508, 491, 492, 500,
585 542, 497, 1054, 488, 488, 535, 493, 505, 475, 464,
586 469, 474, 0, 463, 457, 461, 506, 0, 458, 448,
587 417, 510, 340, 330, 342, 511, 331, 333, 333, 313,
588 310, 244, 238, 225, 227, 521, 197, 192, 525, 531,
589 532, 533, 71, 537, 64, 1054, 1054, 1054, 551, 562,
590 573, 584, 590, 596, 607, 613, 624, 630, 640, 651,
591 657, 668, 679, 690, 701, 712, 723, 734, 745, 756,
598 568, 1, 569, 569, 570, 570, 571, 571, 572, 572,
599 568, 11, 568, 568, 568, 568, 568, 568, 568, 573,
600 574, 568, 568, 568, 568, 568, 568, 568, 568, 568,
601 568, 568, 574, 575, 568, 576, 574, 574, 574, 574,
602 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
603 574, 574, 574, 574, 568, 568, 568, 568, 568, 568,
604 568, 568, 568, 577, 568, 568, 568, 568, 568, 568,
605 568, 568, 568, 568, 568, 578, 568, 568, 568, 568,
606 573, 574, 574, 574, 574, 574, 574, 568, 579, 568,
607 568, 568, 568, 568, 568, 568, 568, 580, 568, 29,
609 568, 568, 568, 568, 568, 568, 568, 575, 568, 568,
610 581, 581, 581, 581, 581, 574, 574, 574, 574, 574,
611 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
612 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
613 574, 574, 574, 574, 574, 574, 574, 574, 574, 568,
614 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
615 568, 568, 578, 568, 574, 574, 574, 574, 574, 574,
616 579, 579, 568, 568, 580, 568, 568, 568, 568, 568,
617 568, 581, 581, 581, 581, 581, 574, 574, 574, 574,
618 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
620 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
621 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
622 574, 574, 574, 568, 568, 568, 568, 568, 568, 574,
623 574, 574, 574, 574, 574, 568, 568, 568, 581, 581,
624 581, 581, 574, 574, 574, 574, 574, 574, 574, 574,
625 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
626 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
627 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
628 568, 568, 568, 568, 568, 574, 574, 574, 574, 574,
629 568, 568, 568, 581, 581, 581, 581, 574, 574, 574,
631 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
632 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
633 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
634 574, 574, 568, 568, 568, 568, 568, 574, 574, 574,
635 574, 568, 568, 581, 581, 582, 581, 574, 574, 574,
636 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
637 574, 574, 574, 574, 574, 574, 574, 574, 574, 574,
638 574, 574, 574, 568, 568, 568, 568, 568, 574, 574,
639 574, 568, 568, 581, 581, 581, 582, 581, 574, 574,
640 574, 574, 574, 574, 574, 574, 574, 574, 568, 574,
642 574, 574, 574, 574, 574, 574, 574, 574, 568, 568,
643 568, 568, 568, 574, 568, 568, 581, 581, 581, 581,
644 568, 581, 574, 574, 574, 574, 574, 574, 574, 574,
645 574, 568, 574, 574, 574, 568, 568, 568, 568, 568,
646 568, 574, 568, 568, 581, 581, 568, 581, 583, 581,
647 574, 574, 574, 574, 574, 574, 568, 574, 574, 568,
648 568, 584, 568, 568, 568, 568, 568, 581, 581, 584,
649 568, 447, 581, 583, 581, 574, 574, 574, 574, 568,
650 574, 568, 568, 568, 568, 568, 568, 581, 581, 585,
651 586, 587, 574, 574, 574, 574, 568, 568, 568, 568,
653 568, 581, 581, 585, 586, 568, 588, 586, 587, 574,
654 568, 568, 568, 568, 568, 581, 581, 568, 589, 568,
655 568, 568, 568, 568, 581, 581, 589, 589, 568, 568,
656 568, 581, 590, 568, 568, 568, 581, 590, 568, 568,
657 568, 591, 568, 568, 568, 591, 568, 568, 568, 568,
658 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
659 568, 568, 568, 568, 568, 568, 568, 0, 568, 568,
660 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
661 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
668 14, 15, 16, 17, 15, 18, 19, 20, 21, 22,
669 23, 24, 14, 25, 26, 27, 14, 28, 29, 29,
670 29, 14, 14, 30, 31, 32, 14, 33, 33, 33,
671 33, 33, 33, 33, 34, 35, 33, 36, 37, 38,
672 39, 40, 41, 42, 43, 33, 44, 33, 45, 46,
673 47, 48, 49, 50, 51, 52, 33, 33, 53, 54,
674 33, 33, 55, 56, 14, 57, 59, 59, 62, 62,
675 66, 66, 63, 63, 103, 104, 62, 60, 60, 62,
676 78, 567, 83, 78, 84, 67, 67, 70, 566, 79,
677 70, 124, 89, 125, 89, 85, 86, 87, 89, 97,
679 64, 64, 143, 98, 89, 68, 68, 90, 106, 107,
680 109, 109, 144, 116, 112, 117, 113, 71, 126, 118,
681 71, 114, 137, 127, 346, 138, 72, 346, 115, 72,
682 73, 74, 75, 74, 74, 73, 73, 73, 76, 73,
683 73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
684 73, 73, 77, 73, 73, 73, 73, 76, 76, 76,
685 76, 76, 76, 76, 73, 73, 76, 73, 76, 76,
686 76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
687 76, 76, 76, 76, 76, 76, 76, 76, 76, 76,
688 76, 76, 73, 73, 73, 73, 92, 93, 119, 129,
690 134, 139, 120, 152, 135, 130, 131, 146, 147, 148,
691 149, 249, 121, 136, 140, 158, 141, 167, 78, 205,
692 159, 78, 89, 206, 89, 250, 168, 79, 89, 153,
693 171, 171, 171, 171, 89, 561, 173, 90, 89, 173,
694 89, 176, 176, 176, 89, 568, 568, 560, 94, 78,
695 89, 188, 78, 210, 511, 177, 177, 154, 79, 178,
696 178, 178, 224, 512, 99, 224, 100, 100, 100, 173,
697 558, 99, 173, 102, 102, 102, 557, 178, 101, 244,
698 215, 188, 188, 245, 102, 101, 216, 201, 556, 174,
699 101, 102, 202, 203, 217, 555, 204, 101, 171, 171,
701 171, 171, 568, 568, 568, 568, 237, 237, 237, 178,
702 178, 178, 188, 188, 224, 225, 258, 224, 238, 178,
703 178, 178, 174, 346, 237, 252, 346, 178, 253, 254,
704 238, 259, 342, 303, 255, 304, 343, 178, 407, 408,
705 256, 237, 237, 237, 292, 292, 554, 374, 293, 293,
706 293, 375, 419, 238, 293, 293, 293, 420, 438, 237,
707 293, 293, 293, 439, 553, 238, 293, 225, 385, 552,
708 386, 346, 293, 421, 346, 551, 421, 550, 293, 399,
709 399, 399, 399, 423, 549, 548, 424, 399, 399, 399,
710 399, 425, 432, 421, 492, 547, 421, 492, 449, 470,
712 470, 471, 470, 470, 470, 470, 470, 472, 470, 470,
713 470, 470, 470, 470, 470, 470, 470, 472, 472, 472,
714 470, 470, 470, 470, 470, 470, 472, 472, 472, 472,
715 472, 472, 472, 470, 470, 472, 470, 472, 472, 472,
716 472, 472, 472, 472, 472, 472, 472, 472, 472, 472,
717 472, 472, 472, 472, 472, 472, 472, 472, 472, 472,
718 472, 470, 470, 470, 470, 486, 498, 486, 486, 498,
719 486, 506, 545, 507, 492, 508, 498, 492, 506, 498,
720 507, 506, 508, 507, 518, 508, 544, 518, 520, 520,
721 520, 520, 518, 528, 568, 518, 528, 568, 543, 541,
723 519, 520, 520, 520, 520, 540, 528, 542, 519, 528,
724 542, 542, 568, 539, 542, 568, 537, 536, 535, 487,
725 499, 487, 559, 559, 559, 559, 559, 559, 559, 559,
726 499, 534, 562, 564, 562, 562, 564, 562, 564, 533,
727 532, 564, 531, 529, 563, 565, 563, 530, 511, 526,
728 565, 58, 58, 58, 58, 58, 58, 58, 58, 58,
729 58, 58, 61, 61, 61, 61, 61, 61, 61, 61,
730 61, 61, 61, 65, 65, 65, 65, 65, 65, 65,
731 65, 65, 65, 65, 69, 69, 69, 69, 69, 69,
732 69, 69, 69, 69, 69, 81, 81, 525, 81, 524,
734 81, 82, 523, 522, 82, 521, 82, 108, 506, 108,
735 108, 517, 108, 108, 108, 108, 108, 108, 111, 516,
736 515, 514, 513, 111, 156, 156, 510, 156, 156, 156,
737 156, 156, 156, 156, 156, 163, 503, 502, 163, 501,
738 163, 172, 172, 172, 172, 500, 490, 482, 172, 172,
739 172, 175, 175, 497, 496, 175, 175, 175, 175, 175,
740 175, 175, 182, 495, 494, 182, 493, 182, 387, 387,
741 491, 490, 387, 387, 387, 387, 387, 387, 387, 474,
742 474, 471, 489, 488, 474, 474, 474, 474, 474, 474,
743 470, 470, 470, 470, 470, 470, 470, 470, 470, 470,
745 470, 504, 504, 466, 504, 504, 504, 504, 504, 504,
746 504, 504, 505, 505, 505, 485, 505, 505, 505, 505,
747 505, 505, 505, 509, 509, 484, 471, 509, 509, 509,
748 483, 509, 509, 509, 507, 507, 507, 482, 507, 507,
749 507, 507, 507, 507, 507, 527, 527, 481, 480, 527,
750 527, 527, 527, 527, 527, 527, 538, 538, 479, 538,
751 538, 538, 538, 538, 538, 538, 538, 546, 546, 478,
752 477, 546, 546, 546, 476, 546, 546, 546, 475, 473,
753 469, 468, 467, 466, 465, 464, 463, 462, 461, 460,
754 459, 458, 457, 456, 455, 454, 453, 452, 451, 450,
756 448, 447, 446, 445, 444, 443, 442, 441, 440, 437,
757 436, 435, 434, 433, 431, 430, 429, 428, 427, 426,
758 422, 418, 417, 416, 415, 414, 289, 413, 412, 411,
759 410, 409, 406, 405, 404, 403, 402, 401, 400, 398,
760 397, 396, 395, 394, 393, 392, 391, 390, 389, 388,
761 384, 383, 382, 381, 380, 289, 379, 378, 377, 376,
762 373, 372, 371, 370, 369, 368, 367, 366, 365, 364,
763 363, 362, 361, 360, 359, 358, 357, 356, 355, 354,
764 353, 352, 351, 350, 349, 348, 347, 345, 344, 341,
765 340, 339, 338, 337, 336, 335, 334, 333, 332, 331,
767 330, 329, 328, 327, 326, 325, 324, 323, 322, 321,
768 320, 319, 318, 317, 316, 315, 314, 313, 312, 311,
769 310, 309, 308, 307, 306, 305, 302, 301, 300, 299,
770 298, 297, 296, 295, 294, 291, 290, 289, 289, 288,
771 287, 286, 285, 284, 283, 282, 281, 188, 280, 279,
772 278, 277, 276, 275, 274, 273, 272, 271, 270, 269,
773 268, 188, 267, 266, 265, 264, 263, 262, 261, 260,
774 257, 251, 248, 247, 246, 243, 242, 241, 240, 239,
775 236, 235, 234, 233, 232, 231, 230, 229, 228, 227,
776 226, 188, 223, 222, 221, 220, 219, 218, 214, 213,
778 212, 211, 209, 208, 207, 200, 199, 198, 197, 196,
779 195, 194, 193, 192, 191, 190, 189, 188, 187, 186,
780 185, 184, 183, 181, 180, 179, 170, 169, 166, 165,
781 164, 162, 161, 160, 157, 155, 151, 150, 145, 142,
782 133, 132, 128, 123, 122, 110, 105, 96, 95, 91,
783 88, 80, 568, 13, 568, 568, 568, 568, 568, 568,
784 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
785 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
786 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
787 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
789 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
790 568, 568, 568, 568, 568, 568, 568, 568, 568, 568
795 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
796 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
797 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
798 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
799 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
800 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
801 1, 1, 1, 1, 1, 1, 3, 4, 5, 6,
802 7, 8, 5, 6, 30, 30, 9, 3, 4, 10,
803 15, 565, 21, 15, 21, 7, 8, 9, 563, 15,
804 10, 41, 23, 41, 23, 21, 21, 21, 23, 28,
806 5, 6, 51, 28, 23, 7, 8, 23, 32, 32,
807 34, 34, 51, 37, 36, 37, 36, 9, 42, 37,
808 10, 36, 48, 42, 296, 48, 9, 296, 36, 10,
809 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
810 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
811 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
812 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
813 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
814 11, 11, 11, 11, 11, 11, 11, 11, 11, 11,
815 11, 11, 11, 11, 11, 11, 25, 25, 38, 44,
817 47, 49, 38, 57, 47, 44, 44, 53, 53, 54,
818 54, 194, 38, 47, 49, 68, 49, 85, 78, 132,
819 68, 78, 79, 132, 79, 194, 85, 78, 79, 57,
820 89, 89, 89, 89, 79, 558, 97, 79, 90, 97,
821 90, 99, 99, 99, 90, 108, 108, 557, 25, 29,
822 90, 136, 29, 136, 497, 101, 101, 57, 29, 101,
823 101, 101, 157, 497, 29, 157, 29, 29, 29, 173,
824 555, 102, 173, 102, 102, 102, 554, 101, 29, 189,
825 142, 302, 302, 189, 29, 102, 142, 131, 553, 97,
826 29, 102, 131, 131, 142, 552, 131, 102, 171, 171,
828 171, 171, 172, 172, 172, 172, 176, 176, 176, 177,
829 177, 177, 324, 324, 224, 157, 199, 224, 176, 178,
830 178, 178, 173, 335, 176, 196, 335, 177, 196, 196,
831 176, 199, 291, 248, 196, 248, 291, 178, 373, 373,
832 196, 237, 237, 237, 238, 238, 551, 333, 238, 238,
833 238, 333, 386, 237, 292, 292, 292, 386, 411, 237,
834 293, 293, 293, 411, 550, 237, 238, 224, 345, 549,
835 345, 346, 292, 387, 346, 548, 387, 547, 293, 361,
836 361, 361, 361, 389, 545, 544, 389, 399, 399, 399,
837 399, 389, 399, 421, 475, 543, 421, 475, 421, 447,
839 447, 447, 447, 447, 447, 447, 447, 447, 447, 447,
840 447, 447, 447, 447, 447, 447, 447, 447, 447, 447,
841 447, 447, 447, 447, 447, 447, 447, 447, 447, 447,
842 447, 447, 447, 447, 447, 447, 447, 447, 447, 447,
843 447, 447, 447, 447, 447, 447, 447, 447, 447, 447,
844 447, 447, 447, 447, 447, 447, 447, 447, 447, 447,
845 447, 447, 447, 447, 447, 466, 482, 486, 466, 482,
846 486, 491, 541, 491, 492, 491, 498, 492, 505, 498,
847 505, 508, 505, 508, 509, 508, 540, 509, 511, 511,
848 511, 511, 518, 519, 527, 518, 519, 527, 539, 536,
850 509, 520, 520, 520, 520, 535, 528, 537, 518, 528,
851 537, 542, 546, 534, 542, 546, 532, 531, 530, 466,
852 482, 486, 556, 556, 556, 556, 559, 559, 559, 559,
853 498, 529, 560, 561, 562, 560, 561, 562, 564, 526,
854 525, 564, 524, 520, 560, 561, 562, 522, 521, 517,
855 564, 569, 569, 569, 569, 569, 569, 569, 569, 569,
856 569, 569, 570, 570, 570, 570, 570, 570, 570, 570,
857 570, 570, 570, 571, 571, 571, 571, 571, 571, 571,
858 571, 571, 571, 571, 572, 572, 572, 572, 572, 572,
859 572, 572, 572, 572, 572, 573, 573, 516, 573, 515,
861 573, 574, 514, 513, 574, 512, 574, 575, 507, 575,
862 575, 503, 575, 575, 575, 575, 575, 575, 576, 502,
863 501, 500, 499, 576, 577, 577, 494, 577, 577, 577,
864 577, 577, 577, 577, 577, 578, 489, 488, 578, 487,
865 578, 579, 579, 579, 579, 485, 484, 483, 579, 579,
866 579, 580, 580, 480, 479, 580, 580, 580, 580, 580,
867 580, 580, 581, 478, 477, 581, 476, 581, 582, 582,
868 474, 473, 582, 582, 582, 582, 582, 582, 582, 583,
869 583, 470, 469, 468, 583, 583, 583, 583, 583, 583,
870 584, 584, 584, 584, 584, 584, 584, 584, 584, 584,
872 584, 585, 585, 467, 585, 585, 585, 585, 585, 585,
873 585, 585, 586, 586, 586, 465, 586, 586, 586, 586,
874 586, 586, 586, 587, 587, 463, 462, 587, 587, 587,
875 461, 587, 587, 587, 588, 588, 588, 460, 588, 588,
876 588, 588, 588, 588, 588, 589, 589, 458, 457, 589,
877 589, 589, 589, 589, 589, 589, 590, 590, 455, 590,
878 590, 590, 590, 590, 590, 590, 590, 591, 591, 454,
879 453, 591, 591, 591, 451, 591, 591, 591, 450, 448,
880 446, 445, 444, 443, 441, 440, 439, 438, 437, 436,
881 434, 433, 432, 429, 428, 427, 425, 424, 423, 422,
883 420, 419, 418, 417, 416, 415, 414, 413, 412, 410,
884 409, 406, 404, 402, 398, 397, 395, 394, 393, 391,
885 388, 385, 384, 383, 382, 381, 379, 378, 377, 376,
886 375, 374, 370, 369, 368, 366, 364, 363, 362, 359,
887 358, 357, 356, 355, 354, 353, 352, 351, 348, 347,
888 344, 343, 342, 341, 340, 339, 338, 337, 336, 334,
889 331, 330, 329, 328, 327, 326, 325, 323, 322, 320,
890 319, 316, 315, 314, 313, 312, 311, 310, 309, 308,
891 307, 306, 305, 300, 299, 298, 297, 295, 294, 290,
892 288, 287, 286, 285, 284, 283, 282, 281, 279, 277,
894 276, 275, 273, 272, 271, 270, 269, 268, 267, 266,
895 265, 264, 263, 262, 261, 260, 259, 258, 257, 256,
896 255, 254, 253, 252, 250, 249, 247, 246, 245, 244,
897 243, 242, 241, 240, 239, 236, 235, 234, 233, 232,
898 231, 230, 229, 228, 227, 226, 225, 223, 222, 221,
899 220, 219, 218, 217, 215, 214, 213, 212, 211, 210,
900 209, 208, 207, 206, 205, 204, 203, 202, 201, 200,
901 198, 195, 193, 192, 190, 187, 186, 185, 184, 183,
902 174, 170, 169, 168, 167, 166, 165, 162, 161, 159,
903 158, 149, 148, 147, 146, 145, 144, 143, 141, 140,
905 139, 138, 135, 134, 133, 130, 128, 127, 126, 125,
906 124, 123, 122, 121, 120, 119, 118, 117, 116, 115,
907 114, 113, 112, 107, 105, 103, 87, 86, 84, 83,
908 80, 72, 71, 70, 67, 60, 56, 55, 52, 50,
909 46, 45, 43, 40, 39, 35, 31, 27, 26, 24,
910 22, 18, 13, 568, 568, 568, 568, 568, 568, 568,
911 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
912 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
913 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
914 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
916 568, 568, 568, 568, 568, 568, 568, 568, 568, 568,
917 568, 568, 568, 568, 568, 568, 568, 568, 568, 568
923 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
924 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
925 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
926 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1,
927 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
928 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, };
934 int frontend_verilog_yy_flex_debug = 0;
939 #define REJECT reject_used_but_not_detected
942 #define yymore() ((yy_more_flag) = 1)
943 #define YY_MORE_ADJ (yy_more_len)
944 #define YY_RESTORE_YY_MORE_OFFSET
946 #line 1 "frontends/verilog/verilog_lexer.l"
980 #line 36 "frontends/verilog/verilog_lexer.l"
984 #pragma clang diagnostic ignored "-Wdeprecated-register"
994 using namespace VERILOG_FRONTEND;
997 namespace VERILOG_FRONTEND {
1003 #define SV_KEYWORD(_tok) \
1004 if (sv_mode) return _tok; \
1005 log("Lexer warning: The SystemVerilog keyword `%s' (at %s:%d) is not "\
1006 "recognized unless read_verilog is called with -sv!\n", frontend_verilog_yytext, \
1007 AST::current_filename.c_str(), frontend_verilog_yyget_lineno()); \
1008 frontend_verilog_yylval.string = new std::string(std::string("\\") + frontend_verilog_yytext); \
1011 #define YY_INPUT(buf,result,max_size) \
1012 result = readsome(*VERILOG_FRONTEND::lexin, buf, max_size)
1019 #line 1020 "frontends/verilog/verilog_lexer.cc"
1024 #define SYNOPSYS_TRANSLATE_OFF 3
1025 #define SYNOPSYS_FLAGS 4
1026 #define IMPORT_DPI 5
1028 #ifndef YY_NO_UNISTD_H
1036 #ifndef YY_EXTRA_TYPE
1037 #define YY_EXTRA_TYPE void *
1075 #ifndef YY_SKIP_YYWRAP
1084 static void yy_flex_strncpy (
char *,
yyconst char *,
int );
1087 #ifdef YY_NEED_STRLEN
1088 static int yy_flex_strlen (
yyconst char * );
1094 static int yyinput (
void );
1096 static int input (
void );
1102 #ifndef YY_READ_BUF_SIZE
1105 #define YY_READ_BUF_SIZE 16384
1107 #define YY_READ_BUF_SIZE 8192
1116 #define ECHO do { if (fwrite( frontend_verilog_yytext, frontend_verilog_yyleng, 1, frontend_verilog_yyout )) {} } while (0)
1123 #define YY_INPUT(buf,result,max_size) \
1124 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1128 for ( n = 0; n < max_size && \
1129 (c = getc( frontend_verilog_yyin )) != EOF && c != '\n'; ++n ) \
1130 buf[n] = (char) c; \
1132 buf[n++] = (char) c; \
1133 if ( c == EOF && ferror( frontend_verilog_yyin ) ) \
1134 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1140 while ( (result = fread(buf, 1, max_size, frontend_verilog_yyin))==0 && ferror(frontend_verilog_yyin)) \
1142 if( errno != EINTR) \
1144 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1148 clearerr(frontend_verilog_yyin); \
1160 #define yyterminate() return YY_NULL
1164 #ifndef YY_START_STACK_INCR
1165 #define YY_START_STACK_INCR 25
1169 #ifndef YY_FATAL_ERROR
1170 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1179 #define YY_DECL_IS_OURS 1
1183 #define YY_DECL int frontend_verilog_yylex (void)
1189 #ifndef YY_USER_ACTION
1190 #define YY_USER_ACTION
1195 #define YY_BREAK break;
1198 #define YY_RULE_SETUP \
1205 register yy_state_type yy_current_state;
1209 #line 82 "frontends/verilog/verilog_lexer.l"
1212 #line 1213 "frontends/verilog/verilog_lexer.cc"
1243 if ( (yy_more_flag) )
1263 if ( yy_accept[yy_current_state] )
1268 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1270 yy_current_state = (int) yy_def[yy_current_state];
1271 if ( yy_current_state >= 569 )
1272 yy_c = yy_meta[(
unsigned int) yy_c];
1274 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1277 while ( yy_base[yy_current_state] != 1054 );
1280 yy_act = yy_accept[yy_current_state];
1285 yy_act = yy_accept[yy_current_state];
1294 if ( frontend_verilog_yytext[yyl] ==
'\n' )
1296 frontend_verilog_yylineno++;
1309 goto yy_find_action;
1313 #line 84 "frontends/verilog/verilog_lexer.l"
1324 #line 91 "frontends/verilog/verilog_lexer.l"
1335 #line 98 "frontends/verilog/verilog_lexer.l"
1337 char *p = frontend_verilog_yytext + 5;
1338 while (*p ==
' ' || *p ==
'\t') p++;
1340 while (*p && *p !=
' ' && *p !=
'\t') p++;
1341 while (*p ==
' ' || *p ==
'\t') p++;
1342 char *q = *p ? p + 1 : p;
1343 while (*q && *q !=
'"') q++;
1349 #line 109 "frontends/verilog/verilog_lexer.l"
1351 log_error(
"Can't open include file `%s'!\n", frontend_verilog_yytext + 15);
1356 #line 113 "frontends/verilog/verilog_lexer.l"
1361 #line 115 "frontends/verilog/verilog_lexer.l"
1364 while (*p != 0 && *p !=
' ' && *p !=
'\t') p++;
1365 while (*p ==
' ' || *p ==
'\t') p++;
1366 if (!strcmp(p,
"none"))
1368 else if (!strcmp(p,
"wire"))
1376 #line 127 "frontends/verilog/verilog_lexer.l"
1383 #line 131 "frontends/verilog/verilog_lexer.l"
1388 #line 132 "frontends/verilog/verilog_lexer.l"
1393 #line 133 "frontends/verilog/verilog_lexer.l"
1398 #line 134 "frontends/verilog/verilog_lexer.l"
1403 #line 135 "frontends/verilog/verilog_lexer.l"
1408 #line 136 "frontends/verilog/verilog_lexer.l"
1413 #line 137 "frontends/verilog/verilog_lexer.l"
1418 #line 138 "frontends/verilog/verilog_lexer.l"
1423 #line 139 "frontends/verilog/verilog_lexer.l"
1428 #line 140 "frontends/verilog/verilog_lexer.l"
1433 #line 141 "frontends/verilog/verilog_lexer.l"
1438 #line 142 "frontends/verilog/verilog_lexer.l"
1443 #line 143 "frontends/verilog/verilog_lexer.l"
1448 #line 144 "frontends/verilog/verilog_lexer.l"
1453 #line 145 "frontends/verilog/verilog_lexer.l"
1458 #line 146 "frontends/verilog/verilog_lexer.l"
1463 #line 147 "frontends/verilog/verilog_lexer.l"
1468 #line 148 "frontends/verilog/verilog_lexer.l"
1473 #line 149 "frontends/verilog/verilog_lexer.l"
1478 #line 150 "frontends/verilog/verilog_lexer.l"
1483 #line 151 "frontends/verilog/verilog_lexer.l"
1488 #line 152 "frontends/verilog/verilog_lexer.l"
1493 #line 153 "frontends/verilog/verilog_lexer.l"
1498 #line 154 "frontends/verilog/verilog_lexer.l"
1503 #line 155 "frontends/verilog/verilog_lexer.l"
1508 #line 156 "frontends/verilog/verilog_lexer.l"
1513 #line 157 "frontends/verilog/verilog_lexer.l"
1518 #line 158 "frontends/verilog/verilog_lexer.l"
1523 #line 159 "frontends/verilog/verilog_lexer.l"
1528 #line 161 "frontends/verilog/verilog_lexer.l"
1533 #line 162 "frontends/verilog/verilog_lexer.l"
1538 #line 163 "frontends/verilog/verilog_lexer.l"
1543 #line 165 "frontends/verilog/verilog_lexer.l"
1548 #line 166 "frontends/verilog/verilog_lexer.l"
1553 #line 167 "frontends/verilog/verilog_lexer.l"
1558 #line 168 "frontends/verilog/verilog_lexer.l"
1563 #line 170 "frontends/verilog/verilog_lexer.l"
1568 #line 171 "frontends/verilog/verilog_lexer.l"
1573 #line 172 "frontends/verilog/verilog_lexer.l"
1578 #line 173 "frontends/verilog/verilog_lexer.l"
1583 #line 174 "frontends/verilog/verilog_lexer.l"
1588 #line 175 "frontends/verilog/verilog_lexer.l"
1593 #line 176 "frontends/verilog/verilog_lexer.l"
1598 #line 177 "frontends/verilog/verilog_lexer.l"
1603 #line 178 "frontends/verilog/verilog_lexer.l"
1608 #line 180 "frontends/verilog/verilog_lexer.l"
1617 #line 185 "frontends/verilog/verilog_lexer.l"
1625 #line 190 "frontends/verilog/verilog_lexer.l"
1633 #line 195 "frontends/verilog/verilog_lexer.l"
1641 #line 200 "frontends/verilog/verilog_lexer.l"
1646 #line 201 "frontends/verilog/verilog_lexer.l"
1651 #line 202 "frontends/verilog/verilog_lexer.l"
1654 char *yystr = strdup(frontend_verilog_yytext);
1655 yystr[strlen(frontend_verilog_yytext) - 1] = 0;
1658 if (yystr[i] ==
'\\' && yystr[i + 1]) {
1660 if (yystr[i] ==
'n')
1662 else if (yystr[i] ==
't')
1664 else if (
'0' <= yystr[i] && yystr[i] <=
'7') {
1665 yystr[i] = yystr[i] -
'0';
1666 if (
'0' <= yystr[i + 1] && yystr[i + 1] <=
'7') {
1667 yystr[i + 1] = yystr[i] * 8 + yystr[i + 1] -
'0';
1670 if (
'0' <= yystr[i + 1] && yystr[i + 1] <=
'7') {
1671 yystr[i + 1] = yystr[i] * 8 + yystr[i + 1] -
'0';
1676 yystr[j++] = yystr[i++];
1686 #line 233 "frontends/verilog/verilog_lexer.l"
1691 #line 235 "frontends/verilog/verilog_lexer.l"
1699 #line 240 "frontends/verilog/verilog_lexer.l"
1704 #line 241 "frontends/verilog/verilog_lexer.l"
1709 #line 243 "frontends/verilog/verilog_lexer.l"
1717 #line 248 "frontends/verilog/verilog_lexer.l"
1722 #line 249 "frontends/verilog/verilog_lexer.l"
1727 #line 251 "frontends/verilog/verilog_lexer.l"
1735 #line 256 "frontends/verilog/verilog_lexer.l"
1737 log(
"Warning: Found one of those horrible `(synopsys|synthesis) translate_off' comments.\n");
1738 log(
"It is strongly suggested to use `ifdef constructs instead!\n");
1744 #line 261 "frontends/verilog/verilog_lexer.l"
1750 #line 262 "frontends/verilog/verilog_lexer.l"
1755 #line 263 "frontends/verilog/verilog_lexer.l"
1760 #line 265 "frontends/verilog/verilog_lexer.l"
1767 #line 268 "frontends/verilog/verilog_lexer.l"
1769 log(
"Warning: Found one of those horrible `(synopsys|synthesis) full_case' comments.\n");
1770 log(
"It is strongly suggested to use verilog x-values and default branches instead!\n");
1776 #line 273 "frontends/verilog/verilog_lexer.l"
1778 log(
"Warning: Found one of those horrible `(synopsys|synthesis) parallel_case' comments.\n");
1779 log(
"It is strongly suggested to use verilog `parallel_case' attributes instead!\n");
1785 #line 278 "frontends/verilog/verilog_lexer.l"
1790 #line 279 "frontends/verilog/verilog_lexer.l"
1796 #line 281 "frontends/verilog/verilog_lexer.l"
1804 #line 286 "frontends/verilog/verilog_lexer.l"
1813 #line 291 "frontends/verilog/verilog_lexer.l"
1818 #line 293 "frontends/verilog/verilog_lexer.l"
1826 #line 298 "frontends/verilog/verilog_lexer.l"
1833 #line 302 "frontends/verilog/verilog_lexer.l"
1841 #line 307 "frontends/verilog/verilog_lexer.l"
1846 #line 308 "frontends/verilog/verilog_lexer.l"
1851 #line 310 "frontends/verilog/verilog_lexer.l"
1856 #line 311 "frontends/verilog/verilog_lexer.l"
1861 #line 313 "frontends/verilog/verilog_lexer.l"
1866 #line 314 "frontends/verilog/verilog_lexer.l"
1871 #line 315 "frontends/verilog/verilog_lexer.l"
1876 #line 316 "frontends/verilog/verilog_lexer.l"
1881 #line 317 "frontends/verilog/verilog_lexer.l"
1886 #line 318 "frontends/verilog/verilog_lexer.l"
1891 #line 319 "frontends/verilog/verilog_lexer.l"
1896 #line 321 "frontends/verilog/verilog_lexer.l"
1901 #line 322 "frontends/verilog/verilog_lexer.l"
1906 #line 324 "frontends/verilog/verilog_lexer.l"
1911 #line 325 "frontends/verilog/verilog_lexer.l"
1916 #line 326 "frontends/verilog/verilog_lexer.l"
1921 #line 327 "frontends/verilog/verilog_lexer.l"
1926 #line 329 "frontends/verilog/verilog_lexer.l"
1931 #line 330 "frontends/verilog/verilog_lexer.l"
1936 #line 331 "frontends/verilog/verilog_lexer.l"
1941 #line 332 "frontends/verilog/verilog_lexer.l"
1946 #line 334 "frontends/verilog/verilog_lexer.l"
1951 #line 335 "frontends/verilog/verilog_lexer.l"
1956 #line 337 "frontends/verilog/verilog_lexer.l"
1961 #line 338 "frontends/verilog/verilog_lexer.l"
1967 #line 339 "frontends/verilog/verilog_lexer.l"
1972 #line 340 "frontends/verilog/verilog_lexer.l"
1978 #line 342 "frontends/verilog/verilog_lexer.l"
1984 #line 343 "frontends/verilog/verilog_lexer.l"
1989 #line 344 "frontends/verilog/verilog_lexer.l"
1994 #line 345 "frontends/verilog/verilog_lexer.l"
1999 #line 347 "frontends/verilog/verilog_lexer.l"
2004 #line 349 "frontends/verilog/verilog_lexer.l"
2007 #line 2008 "frontends/verilog/verilog_lexer.cc"
2019 int yy_amount_of_matched_text = (int) (yy_cp - (
yytext_ptr)) - 1;
2050 yy_state_type yy_next_state;
2069 if ( yy_next_state )
2073 yy_current_state = yy_next_state;
2080 goto yy_find_action;
2133 goto yy_find_action;
2140 "fatal flex scanner internal error--no action found" );
2156 register int number_to_move, i;
2161 "fatal flex scanner internal error--end of buffer missed" );
2187 for ( i = 0; i < number_to_move; ++i )
2188 *(dest++) = *(source++);
2201 while ( num_to_read <= 0 )
2207 int yy_c_buf_p_offset =
2214 if ( new_size <= 0 )
2229 "fatal error - scanner input buffer overflow" );
2272 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
2288 register yy_state_type yy_current_state;
2289 register char *
yy_cp;
2296 if ( yy_accept[yy_current_state] )
2301 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2303 yy_current_state = (int) yy_def[yy_current_state];
2304 if ( yy_current_state >= 569 )
2305 yy_c = yy_meta[(
unsigned int) yy_c];
2307 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
2310 return yy_current_state;
2320 register int yy_is_jam;
2324 if ( yy_accept[yy_current_state] )
2329 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2331 yy_current_state = (int) yy_def[yy_current_state];
2332 if ( yy_current_state >= 569 )
2333 yy_c = yy_meta[(
unsigned int) yy_c];
2335 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
2336 yy_is_jam = (yy_current_state == 568);
2338 return yy_is_jam ? 0 : yy_current_state;
2343 static int yyinput (
void)
2413 frontend_verilog_yylineno++;
2493 YY_FATAL_ERROR(
"out of dynamic memory in frontend_verilog_yy_create_buffer()" );
2502 YY_FATAL_ERROR(
"out of dynamic memory in frontend_verilog_yy_create_buffer()" );
2531 extern int isatty (
int );
2597 if (new_buffer ==
NULL)
2648 if (!(yy_buffer_stack)) {
2658 if ( ! (yy_buffer_stack) )
2659 YY_FATAL_ERROR(
"out of dynamic memory in frontend_verilog_yyensure_buffer_stack()" );
2661 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
2678 if ( ! (yy_buffer_stack) )
2679 YY_FATAL_ERROR(
"out of dynamic memory in frontend_verilog_yyensure_buffer_stack()" );
2705 YY_FATAL_ERROR(
"out of dynamic memory in frontend_verilog_yy_scan_buffer()" );
2751 n = _yybytes_len + 2;
2754 YY_FATAL_ERROR(
"out of dynamic memory in frontend_verilog_yy_scan_bytes()" );
2756 for ( i = 0; i < _yybytes_len; ++i )
2757 buf[i] = yybytes[i];
2763 YY_FATAL_ERROR(
"bad buffer in frontend_verilog_yy_scan_bytes()" );
2773 #ifndef YY_EXIT_FAILURE
2774 #define YY_EXIT_FAILURE 2
2779 (void) fprintf( stderr,
"%s\n", msg );
2790 int yyless_macro_arg = (n); \
2791 YY_LESS_LINENO(yyless_macro_arg);\
2792 frontend_verilog_yytext[frontend_verilog_yyleng] = (yy_hold_char); \
2793 (yy_c_buf_p) = frontend_verilog_yytext + yyless_macro_arg; \
2794 (yy_hold_char) = *(yy_c_buf_p); \
2795 *(yy_c_buf_p) = '\0'; \
2796 frontend_verilog_yyleng = yyless_macro_arg; \
2851 frontend_verilog_yylineno = line_number;
2877 frontend_verilog_yy_flex_debug = bdebug ;
2887 frontend_verilog_yylineno = 1;
2938 static void yy_flex_strncpy (
char* s1,
yyconst char * s2,
int n )
2941 for ( i = 0; i <
n; ++i )
2946 #ifdef YY_NEED_STRLEN
2947 static int yy_flex_strlen (
yyconst char * s )
2950 for ( n = 0; s[
n]; ++
n )
2959 return (
void *)
malloc( size );
2971 return (
void *) realloc( (
char *) ptr, size );
2976 free( (
char *) ptr );
2979 #define YYTABLES_NAME "yytables"
2981 #line 349 "frontends/verilog/verilog_lexer.l"
2987 return (
void*)&yyinput;
static yyconst flex_int16_t yy_accept[569]
char * frontend_verilog_yytext
static size_t yy_buffer_stack_max
void frontend_verilog_yyset_debug(int debug_flag)
static yyconst flex_int16_t yy_chk[1121]
YYSTYPE frontend_verilog_yylval
bool default_nettype_wire
#define YY_RESTORE_YY_MORE_OFFSET
int frontend_verilog_yyleng
static yyconst flex_int16_t yy_def[592]
#define YY_CURRENT_BUFFER
#define frontend_verilog_yywrap(n)
int frontend_verilog_yy_flex_debug
static char * yy_last_accepting_cpos
unsigned int flex_uint32_t
#define YOSYS_NAMESPACE_END
FILE * frontend_verilog_yyout
YOSYS_NAMESPACE_END void frontend_verilog_yyerror(char const *fmt,...)
#define EOB_ACT_LAST_MATCH
static yyconst flex_int32_t yy_meta[67]
void log_error(const char *format,...)
YY_BUFFER_STATE frontend_verilog_yy_scan_bytes(yyconst char *bytes, int len)
void frontend_verilog_yyrestart(FILE *input_file)
void * frontend_verilog_avoid_input_warnings()
int frontend_verilog_yylineno
static yy_state_type yy_get_previous_state(void)
FILE * frontend_verilog_yyin
void * frontend_verilog_yyrealloc(void *, yy_size_t)
#define SYNOPSYS_TRANSLATE_OFF
int frontend_verilog_yyget_leng(void)
void frontend_verilog_yyset_out(FILE *out_str)
void * frontend_verilog_yyalloc(yy_size_t)
#define YY_END_OF_BUFFER_CHAR
#define YY_STATE_EOF(state)
static yyconst flex_int16_t yy_base[592]
#define YY_DO_BEFORE_ACTION
static YY_BUFFER_STATE * yy_buffer_stack
void frontend_verilog_yyset_lineno(int line_number)
static void frontend_verilog_yy_init_buffer(YY_BUFFER_STATE b, FILE *file)
static int yy_get_next_buffer(void)
void frontend_verilog_yy_flush_buffer(YY_BUFFER_STATE b)
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
void frontend_verilog_yyset_in(FILE *in_str)
static void yy_fatal_error(yyconst char msg[])
unsigned short int flex_uint16_t
static size_t yy_buffer_stack_top
void frontend_verilog_yypush_buffer_state(YY_BUFFER_STATE new_buffer)
#define EOB_ACT_CONTINUE_SCAN
#define USING_YOSYS_NAMESPACE
char * frontend_verilog_yyget_text(void)
int frontend_verilog_yylex(void)
std::string current_filename
struct yy_buffer_state * YY_BUFFER_STATE
static int yy_init_globals(void)
static int yy_did_buffer_switch_on_eof
#define YOSYS_NAMESPACE_BEGIN
YY_EXTRA_TYPE frontend_verilog_yyget_extra(void)
#define YY_INPUT(buf, result, max_size)
void log(const char *format,...)
static yyconst flex_int16_t yy_nxt[1121]
static yyconst flex_int32_t yy_ec[256]
int frontend_verilog_yyget_debug(void)
static yyconst flex_int32_t yy_rule_can_match_eol[116]
std::vector< int > ln_stack
#define EOB_ACT_END_OF_FILE
FILE * frontend_verilog_yyget_out(void)
#define YY_BUFFER_EOF_PENDING
void frontend_verilog_yyset_extra(YY_EXTRA_TYPE user_defined)
void frontend_verilog_yy_switch_to_buffer(YY_BUFFER_STATE new_buffer)
void frontend_verilog_yypop_buffer_state(void)
static void frontend_verilog_yy_load_buffer_state(void)
static yy_state_type yy_last_accepting_state
static void frontend_verilog_yyensure_buffer_stack(void)
FILE * frontend_verilog_yyget_in(void)
#define YY_FATAL_ERROR(msg)
YY_BUFFER_STATE frontend_verilog_yy_create_buffer(FILE *file, int size)
YY_BUFFER_STATE frontend_verilog_yy_scan_buffer(char *base, yy_size_t size)
static void input_file(std::istream &f, std::string filename)
void frontend_verilog_yy_delete_buffer(YY_BUFFER_STATE b)
YY_BUFFER_STATE frontend_verilog_yy_scan_string(yyconst char *yy_str)
unsigned char flex_uint8_t
int frontend_verilog_yylex_destroy(void)
std::vector< std::string > fn_stack
#define YY_CURRENT_BUFFER_LVALUE
void frontend_verilog_yyfree(void *)
int frontend_verilog_yyget_lineno(void)