1 #line 2 "frontends/ilang/ilang_lexer.cc"
3 #line 4 "frontends/ilang/ilang_lexer.cc"
5 #define YY_INT_ALIGNED short int
9 #define yy_create_buffer rtlil_frontend_ilang_yy_create_buffer
10 #define yy_delete_buffer rtlil_frontend_ilang_yy_delete_buffer
11 #define yy_flex_debug rtlil_frontend_ilang_yy_flex_debug
12 #define yy_init_buffer rtlil_frontend_ilang_yy_init_buffer
13 #define yy_flush_buffer rtlil_frontend_ilang_yy_flush_buffer
14 #define yy_load_buffer_state rtlil_frontend_ilang_yy_load_buffer_state
15 #define yy_switch_to_buffer rtlil_frontend_ilang_yy_switch_to_buffer
16 #define yyin rtlil_frontend_ilang_yyin
17 #define yyleng rtlil_frontend_ilang_yyleng
18 #define yylex rtlil_frontend_ilang_yylex
19 #define yylineno rtlil_frontend_ilang_yylineno
20 #define yyout rtlil_frontend_ilang_yyout
21 #define yyrestart rtlil_frontend_ilang_yyrestart
22 #define yytext rtlil_frontend_ilang_yytext
23 #define yywrap rtlil_frontend_ilang_yywrap
24 #define yyalloc rtlil_frontend_ilang_yyalloc
25 #define yyrealloc rtlil_frontend_ilang_yyrealloc
26 #define yyfree rtlil_frontend_ilang_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 rtlil_frontend_ilang_yyrestart(rtlil_frontend_ilang_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 < rtlil_frontend_ilang_yyleng; ++yyl )\
203 if ( rtlil_frontend_ilang_yytext[yyl] == '\n' )\
204 --rtlil_frontend_ilang_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 rtlil_frontend_ilang_yy_flush_buffer(YY_CURRENT_BUFFER )
350 #define yy_new_buffer rtlil_frontend_ilang_yy_create_buffer
352 #define yy_set_interactive(is_interactive) \
354 if ( ! YY_CURRENT_BUFFER ){ \
355 rtlil_frontend_ilang_yyensure_buffer_stack (); \
356 YY_CURRENT_BUFFER_LVALUE = \
357 rtlil_frontend_ilang_yy_create_buffer(rtlil_frontend_ilang_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 rtlil_frontend_ilang_yyensure_buffer_stack (); \
366 YY_CURRENT_BUFFER_LVALUE = \
367 rtlil_frontend_ilang_yy_create_buffer(rtlil_frontend_ilang_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 rtlil_frontend_ilang_yywrap(n) 1
377 #define YY_SKIP_YYWRAP
387 int rtlil_frontend_ilang_yylineno = 1;
390 #define yytext_ptr rtlil_frontend_ilang_yytext
400 #define YY_DO_BEFORE_ACTION \
401 (yytext_ptr) = yy_bp; \
402 (yytext_ptr) -= (yy_more_len); \
403 rtlil_frontend_ilang_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 45
409 #define YY_END_OF_BUFFER 46
419 0, 0, 0, 0, 46, 44, 42, 43, 43, 37,
420 41, 44, 44, 44, 36, 44, 31, 31, 31, 31,
421 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
422 40, 45, 39, 40, 43, 41, 33, 36, 34, 35,
423 36, 32, 31, 31, 31, 31, 31, 31, 31, 31,
424 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
425 31, 31, 31, 31, 31, 31, 31, 31, 38, 35,
426 31, 31, 31, 31, 31, 31, 31, 31, 30, 31,
427 31, 31, 31, 21, 31, 31, 31, 31, 31, 31,
428 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
430 31, 31, 31, 31, 18, 15, 31, 25, 22, 27,
431 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
432 31, 11, 31, 20, 31, 9, 31, 6, 31, 31,
433 31, 31, 31, 14, 12, 31, 31, 31, 31, 31,
434 31, 31, 31, 31, 31, 31, 8, 26, 19, 31,
435 31, 31, 7, 2, 31, 10, 13, 31, 31, 31,
436 5, 17, 28, 31, 1, 16, 24, 31, 23, 29,
442 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
443 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
444 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
445 1, 2, 1, 5, 6, 7, 1, 1, 8, 1,
446 1, 1, 1, 1, 9, 10, 1, 11, 11, 12,
447 12, 12, 12, 12, 12, 12, 12, 1, 1, 1,
448 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
449 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
450 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
451 1, 13, 1, 1, 1, 1, 14, 15, 16, 17,
453 18, 19, 20, 21, 22, 23, 23, 24, 25, 26,
454 27, 28, 23, 29, 30, 31, 32, 23, 33, 34,
455 35, 36, 1, 1, 1, 1, 1, 1, 1, 1,
456 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
457 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
458 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
459 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
460 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
461 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
462 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,
474 1, 2, 3, 2, 1, 1, 1, 1, 1, 1,
475 1, 1, 1, 4, 4, 4, 4, 4, 4, 4,
476 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
482 0, 0, 34, 35, 217, 218, 218, 38, 40, 218,
483 0, 0, 34, 38, 43, 0, 28, 0, 39, 39,
484 194, 189, 187, 43, 195, 43, 49, 46, 184, 189,
485 218, 218, 218, 0, 68, 0, 0, 62, 71, 75,
486 77, 0, 0, 177, 179, 177, 176, 176, 181, 178,
487 183, 185, 181, 65, 167, 174, 181, 177, 177, 164,
488 165, 163, 165, 44, 169, 164, 60, 73, 218, 85,
489 175, 166, 158, 159, 167, 160, 157, 164, 0, 160,
490 149, 147, 146, 0, 150, 144, 157, 144, 145, 158,
491 153, 154, 143, 150, 136, 150, 151, 137, 132, 144,
493 126, 140, 137, 136, 0, 0, 139, 0, 0, 0,
494 125, 124, 125, 129, 135, 133, 118, 124, 131, 129,
495 128, 0, 129, 0, 113, 0, 122, 0, 112, 114,
496 121, 118, 116, 0, 0, 96, 110, 100, 87, 86,
497 98, 95, 84, 96, 91, 90, 0, 0, 0, 75,
498 72, 74, 0, 0, 86, 0, 0, 72, 83, 69,
499 0, 0, 0, 67, 0, 0, 0, 79, 0, 0,
500 77, 40, 0, 0, 218, 121, 125, 129, 133, 63,
506 175, 1, 176, 176, 175, 175, 175, 175, 175, 175,
507 177, 178, 175, 175, 175, 179, 180, 180, 180, 180,
508 180, 180, 180, 180, 180, 180, 180, 180, 180, 180,
509 175, 175, 175, 181, 175, 177, 178, 175, 175, 175,
510 175, 179, 180, 180, 180, 180, 180, 180, 180, 180,
511 180, 180, 180, 180, 180, 180, 180, 180, 180, 180,
512 180, 180, 180, 180, 180, 180, 180, 180, 175, 175,
513 180, 180, 180, 180, 180, 180, 180, 180, 180, 180,
514 180, 180, 180, 180, 180, 180, 180, 180, 180, 180,
515 180, 180, 180, 180, 180, 180, 180, 180, 180, 180,
517 180, 180, 180, 180, 180, 180, 180, 180, 180, 180,
518 180, 180, 180, 180, 180, 180, 180, 180, 180, 180,
519 180, 180, 180, 180, 180, 180, 180, 180, 180, 180,
520 180, 180, 180, 180, 180, 180, 180, 180, 180, 180,
521 180, 180, 180, 180, 180, 180, 180, 180, 180, 180,
522 180, 180, 180, 180, 180, 180, 180, 180, 180, 180,
523 180, 180, 180, 180, 180, 180, 180, 180, 180, 180,
524 180, 180, 180, 180, 0, 175, 175, 175, 175, 175,
530 6, 7, 8, 9, 10, 11, 12, 6, 13, 14,
531 15, 15, 16, 17, 18, 19, 18, 20, 18, 18,
532 21, 22, 18, 23, 24, 25, 26, 27, 18, 28,
533 18, 29, 30, 18, 18, 18, 32, 32, 33, 33,
534 35, 35, 35, 35, 38, 38, 34, 34, 39, 39,
535 40, 44, 48, 41, 41, 51, 49, 45, 46, 47,
536 56, 59, 61, 93, 52, 50, 43, 64, 174, 57,
537 35, 35, 38, 38, 60, 62, 97, 63, 65, 94,
538 66, 39, 39, 70, 40, 70, 81, 41, 41, 99,
539 98, 82, 83, 70, 173, 70, 172, 171, 170, 70,
541 169, 100, 168, 167, 166, 165, 164, 163, 70, 70,
542 70, 162, 161, 160, 159, 158, 157, 156, 70, 155,
543 70, 31, 31, 31, 31, 36, 36, 154, 36, 37,
544 153, 152, 37, 42, 151, 150, 42, 69, 69, 149,
545 69, 148, 147, 146, 145, 144, 143, 142, 141, 140,
546 139, 138, 137, 136, 135, 134, 133, 132, 131, 130,
547 129, 128, 127, 126, 125, 124, 123, 122, 121, 120,
548 119, 118, 117, 116, 115, 114, 113, 112, 111, 110,
549 109, 108, 107, 106, 105, 104, 103, 102, 101, 96,
550 95, 92, 91, 90, 89, 88, 87, 86, 85, 84,
552 80, 79, 78, 77, 76, 75, 74, 73, 72, 71,
553 68, 67, 58, 55, 54, 53, 175, 5, 175, 175,
554 175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
555 175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
556 175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
562 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
563 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
564 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
565 1, 1, 1, 1, 1, 1, 3, 4, 3, 4,
566 8, 8, 9, 9, 13, 13, 3, 4, 14, 14,
567 15, 17, 19, 15, 15, 20, 19, 17, 17, 17,
568 24, 26, 27, 64, 20, 19, 180, 28, 172, 24,
569 35, 35, 38, 38, 26, 27, 67, 27, 28, 64,
570 28, 39, 39, 40, 41, 40, 54, 41, 41, 68,
571 67, 54, 54, 70, 171, 70, 168, 164, 160, 40,
573 159, 68, 158, 155, 152, 151, 150, 146, 40, 70,
574 40, 145, 144, 143, 142, 141, 140, 139, 70, 138,
575 70, 176, 176, 176, 176, 177, 177, 137, 177, 178,
576 136, 133, 178, 179, 132, 131, 179, 181, 181, 130,
577 181, 129, 127, 125, 123, 121, 120, 119, 118, 117,
578 116, 115, 114, 113, 112, 111, 107, 104, 103, 102,
579 101, 100, 99, 98, 97, 96, 95, 94, 93, 92,
580 91, 90, 89, 88, 87, 86, 85, 83, 82, 81,
581 80, 78, 77, 76, 75, 74, 73, 72, 71, 66,
582 65, 63, 62, 61, 60, 59, 58, 57, 56, 55,
584 53, 52, 51, 50, 49, 48, 47, 46, 45, 44,
585 30, 29, 25, 23, 22, 21, 5, 175, 175, 175,
586 175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
587 175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
588 175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
595 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
596 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
603 int rtlil_frontend_ilang_yy_flex_debug = 0;
608 #define REJECT reject_used_but_not_detected
611 #define yymore() ((yy_more_flag) = 1)
612 #define YY_MORE_ADJ (yy_more_len)
613 #define YY_RESTORE_YY_MORE_OFFSET
615 #line 1 "frontends/ilang/ilang_lexer.l"
639 #line 26 "frontends/ilang/ilang_lexer.l"
643 #pragma clang diagnostic ignored "-Wdeprecated-register"
651 #define YY_INPUT(buf,result,max_size) \
652 result = readsome(*ILANG_FRONTEND::lexin, buf, max_size)
655 #line 656 "frontends/ilang/ilang_lexer.cc"
660 #ifndef YY_NO_UNISTD_H
668 #ifndef YY_EXTRA_TYPE
669 #define YY_EXTRA_TYPE void *
707 #ifndef YY_SKIP_YYWRAP
716 static void yy_flex_strncpy (
char *,
yyconst char *,
int );
719 #ifdef YY_NEED_STRLEN
720 static int yy_flex_strlen (
yyconst char * );
726 static int yyinput (
void );
728 static int input (
void );
734 #ifndef YY_READ_BUF_SIZE
737 #define YY_READ_BUF_SIZE 16384
739 #define YY_READ_BUF_SIZE 8192
748 #define ECHO do { if (fwrite( rtlil_frontend_ilang_yytext, rtlil_frontend_ilang_yyleng, 1, rtlil_frontend_ilang_yyout )) {} } while (0)
755 #define YY_INPUT(buf,result,max_size) \
756 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
760 for ( n = 0; n < max_size && \
761 (c = getc( rtlil_frontend_ilang_yyin )) != EOF && c != '\n'; ++n ) \
764 buf[n++] = (char) c; \
765 if ( c == EOF && ferror( rtlil_frontend_ilang_yyin ) ) \
766 YY_FATAL_ERROR( "input in flex scanner failed" ); \
772 while ( (result = fread(buf, 1, max_size, rtlil_frontend_ilang_yyin))==0 && ferror(rtlil_frontend_ilang_yyin)) \
774 if( errno != EINTR) \
776 YY_FATAL_ERROR( "input in flex scanner failed" ); \
780 clearerr(rtlil_frontend_ilang_yyin); \
792 #define yyterminate() return YY_NULL
796 #ifndef YY_START_STACK_INCR
797 #define YY_START_STACK_INCR 25
801 #ifndef YY_FATAL_ERROR
802 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
811 #define YY_DECL_IS_OURS 1
815 #define YY_DECL int rtlil_frontend_ilang_yylex (void)
821 #ifndef YY_USER_ACTION
822 #define YY_USER_ACTION
827 #define YY_BREAK break;
830 #define YY_RULE_SETUP \
837 register yy_state_type yy_current_state;
841 #line 49 "frontends/ilang/ilang_lexer.l"
844 #line 845 "frontends/ilang/ilang_lexer.cc"
875 if ( (yy_more_flag) )
895 if ( yy_accept[yy_current_state] )
900 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
902 yy_current_state = (int) yy_def[yy_current_state];
903 if ( yy_current_state >= 176 )
904 yy_c = yy_meta[(
unsigned int) yy_c];
906 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
909 while ( yy_base[yy_current_state] != 218 );
912 yy_act = yy_accept[yy_current_state];
917 yy_act = yy_accept[yy_current_state];
926 if ( rtlil_frontend_ilang_yytext[yyl] ==
'\n' )
928 rtlil_frontend_ilang_yylineno++;
945 #line 51 "frontends/ilang/ilang_lexer.l"
950 #line 52 "frontends/ilang/ilang_lexer.l"
955 #line 53 "frontends/ilang/ilang_lexer.l"
960 #line 54 "frontends/ilang/ilang_lexer.l"
965 #line 55 "frontends/ilang/ilang_lexer.l"
970 #line 56 "frontends/ilang/ilang_lexer.l"
975 #line 57 "frontends/ilang/ilang_lexer.l"
980 #line 58 "frontends/ilang/ilang_lexer.l"
985 #line 59 "frontends/ilang/ilang_lexer.l"
990 #line 60 "frontends/ilang/ilang_lexer.l"
995 #line 61 "frontends/ilang/ilang_lexer.l"
1000 #line 62 "frontends/ilang/ilang_lexer.l"
1005 #line 63 "frontends/ilang/ilang_lexer.l"
1010 #line 64 "frontends/ilang/ilang_lexer.l"
1015 #line 65 "frontends/ilang/ilang_lexer.l"
1020 #line 66 "frontends/ilang/ilang_lexer.l"
1025 #line 67 "frontends/ilang/ilang_lexer.l"
1030 #line 68 "frontends/ilang/ilang_lexer.l"
1035 #line 69 "frontends/ilang/ilang_lexer.l"
1040 #line 70 "frontends/ilang/ilang_lexer.l"
1045 #line 71 "frontends/ilang/ilang_lexer.l"
1050 #line 72 "frontends/ilang/ilang_lexer.l"
1055 #line 73 "frontends/ilang/ilang_lexer.l"
1060 #line 74 "frontends/ilang/ilang_lexer.l"
1065 #line 75 "frontends/ilang/ilang_lexer.l"
1070 #line 76 "frontends/ilang/ilang_lexer.l"
1075 #line 77 "frontends/ilang/ilang_lexer.l"
1080 #line 78 "frontends/ilang/ilang_lexer.l"
1085 #line 79 "frontends/ilang/ilang_lexer.l"
1090 #line 80 "frontends/ilang/ilang_lexer.l"
1095 #line 82 "frontends/ilang/ilang_lexer.l"
1100 #line 84 "frontends/ilang/ilang_lexer.l"
1105 #line 85 "frontends/ilang/ilang_lexer.l"
1110 #line 86 "frontends/ilang/ilang_lexer.l"
1115 #line 88 "frontends/ilang/ilang_lexer.l"
1120 #line 89 "frontends/ilang/ilang_lexer.l"
1125 #line 91 "frontends/ilang/ilang_lexer.l"
1130 #line 92 "frontends/ilang/ilang_lexer.l"
1135 #line 93 "frontends/ilang/ilang_lexer.l"
1138 char *yystr = strdup(rtlil_frontend_ilang_yytext);
1139 yystr[strlen(rtlil_frontend_ilang_yytext) - 1] = 0;
1142 if (yystr[i] ==
'\\' && yystr[i + 1]) {
1144 if (yystr[i] ==
'n')
1146 else if (yystr[i] ==
't')
1148 else if (
'0' <= yystr[i] && yystr[i] <=
'7') {
1149 yystr[i] = yystr[i] -
'0';
1150 if (
'0' <= yystr[i + 1] && yystr[i + 1] <=
'7') {
1151 yystr[i + 1] = yystr[i] * 8 + yystr[i + 1] -
'0';
1154 if (
'0' <= yystr[i + 1] && yystr[i + 1] <=
'7') {
1155 yystr[i + 1] = yystr[i] * 8 + yystr[i + 1] -
'0';
1160 yystr[j++] = yystr[i++];
1169 #line 123 "frontends/ilang/ilang_lexer.l"
1174 #line 125 "frontends/ilang/ilang_lexer.l"
1179 #line 126 "frontends/ilang/ilang_lexer.l"
1185 #line 127 "frontends/ilang/ilang_lexer.l"
1190 #line 129 "frontends/ilang/ilang_lexer.l"
1195 #line 131 "frontends/ilang/ilang_lexer.l"
1198 #line 1199 "frontends/ilang/ilang_lexer.cc"
1206 int yy_amount_of_matched_text = (int) (yy_cp - (
yytext_ptr)) - 1;
1237 yy_state_type yy_next_state;
1256 if ( yy_next_state )
1260 yy_current_state = yy_next_state;
1267 goto yy_find_action;
1320 goto yy_find_action;
1327 "fatal flex scanner internal error--no action found" );
1343 register int number_to_move, i;
1348 "fatal flex scanner internal error--end of buffer missed" );
1374 for ( i = 0; i < number_to_move; ++i )
1375 *(dest++) = *(source++);
1388 while ( num_to_read <= 0 )
1394 int yy_c_buf_p_offset =
1401 if ( new_size <= 0 )
1416 "fatal error - scanner input buffer overflow" );
1459 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1475 register yy_state_type yy_current_state;
1476 register char *
yy_cp;
1483 if ( yy_accept[yy_current_state] )
1488 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1490 yy_current_state = (int) yy_def[yy_current_state];
1491 if ( yy_current_state >= 176 )
1492 yy_c = yy_meta[(
unsigned int) yy_c];
1494 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1497 return yy_current_state;
1507 register int yy_is_jam;
1511 if ( yy_accept[yy_current_state] )
1516 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1518 yy_current_state = (int) yy_def[yy_current_state];
1519 if ( yy_current_state >= 176 )
1520 yy_c = yy_meta[(
unsigned int) yy_c];
1522 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1523 yy_is_jam = (yy_current_state == 175);
1525 return yy_is_jam ? 0 : yy_current_state;
1530 static int yyinput (
void)
1600 rtlil_frontend_ilang_yylineno++;
1680 YY_FATAL_ERROR(
"out of dynamic memory in rtlil_frontend_ilang_yy_create_buffer()" );
1689 YY_FATAL_ERROR(
"out of dynamic memory in rtlil_frontend_ilang_yy_create_buffer()" );
1718 extern int isatty (
int );
1784 if (new_buffer ==
NULL)
1835 if (!(yy_buffer_stack)) {
1845 if ( ! (yy_buffer_stack) )
1846 YY_FATAL_ERROR(
"out of dynamic memory in rtlil_frontend_ilang_yyensure_buffer_stack()" );
1848 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
1865 if ( ! (yy_buffer_stack) )
1866 YY_FATAL_ERROR(
"out of dynamic memory in rtlil_frontend_ilang_yyensure_buffer_stack()" );
1892 YY_FATAL_ERROR(
"out of dynamic memory in rtlil_frontend_ilang_yy_scan_buffer()" );
1938 n = _yybytes_len + 2;
1941 YY_FATAL_ERROR(
"out of dynamic memory in rtlil_frontend_ilang_yy_scan_bytes()" );
1943 for ( i = 0; i < _yybytes_len; ++i )
1944 buf[i] = yybytes[i];
1950 YY_FATAL_ERROR(
"bad buffer in rtlil_frontend_ilang_yy_scan_bytes()" );
1960 #ifndef YY_EXIT_FAILURE
1961 #define YY_EXIT_FAILURE 2
1966 (void) fprintf( stderr,
"%s\n", msg );
1977 int yyless_macro_arg = (n); \
1978 YY_LESS_LINENO(yyless_macro_arg);\
1979 rtlil_frontend_ilang_yytext[rtlil_frontend_ilang_yyleng] = (yy_hold_char); \
1980 (yy_c_buf_p) = rtlil_frontend_ilang_yytext + yyless_macro_arg; \
1981 (yy_hold_char) = *(yy_c_buf_p); \
1982 *(yy_c_buf_p) = '\0'; \
1983 rtlil_frontend_ilang_yyleng = yyless_macro_arg; \
2038 rtlil_frontend_ilang_yylineno = line_number;
2064 rtlil_frontend_ilang_yy_flex_debug = bdebug ;
2074 rtlil_frontend_ilang_yylineno = 1;
2125 static void yy_flex_strncpy (
char* s1,
yyconst char * s2,
int n )
2128 for ( i = 0; i <
n; ++i )
2133 #ifdef YY_NEED_STRLEN
2134 static int yy_flex_strlen (
yyconst char * s )
2137 for ( n = 0; s[
n]; ++
n )
2146 return (
void *)
malloc( size );
2158 return (
void *) realloc( (
char *) ptr, size );
2163 free( (
char *) ptr );
2166 #define YYTABLES_NAME "yytables"
2168 #line 131 "frontends/ilang/ilang_lexer.l"
2174 return (
void*)&yyinput;
static int yy_did_buffer_switch_on_eof
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
#define YY_BUFFER_EOF_PENDING
#define YY_INPUT(buf, result, max_size)
void rtlil_frontend_ilang_yy_switch_to_buffer(YY_BUFFER_STATE new_buffer)
static void yy_fatal_error(yyconst char msg[])
#define YY_STATE_EOF(state)
void rtlil_frontend_ilang_yyset_extra(YY_EXTRA_TYPE user_defined)
FILE * rtlil_frontend_ilang_yyget_in(void)
YY_BUFFER_STATE rtlil_frontend_ilang_yy_scan_buffer(char *base, yy_size_t size)
static char * yy_last_accepting_cpos
char * rtlil_frontend_ilang_yyget_text(void)
static yyconst flex_int32_t yy_meta[37]
static YY_BUFFER_STATE * yy_buffer_stack
void rtlil_frontend_ilang_yyrestart(FILE *input_file)
static yyconst flex_int16_t yy_base[182]
#define YY_FATAL_ERROR(msg)
static yyconst flex_int16_t yy_chk[255]
int rtlil_frontend_ilang_yy_flex_debug
unsigned int flex_uint32_t
static yyconst flex_int16_t yy_accept[176]
void rtlil_frontend_ilang_yyset_in(FILE *in_str)
int rtlil_frontend_ilang_yyget_debug(void)
#define EOB_ACT_END_OF_FILE
int rtlil_frontend_ilang_yyleng
char * rtlil_frontend_ilang_yytext
void rtlil_frontend_ilang_yy_flush_buffer(YY_BUFFER_STATE b)
int rtlil_frontend_ilang_yylex_destroy(void)
#define YY_RESTORE_YY_MORE_OFFSET
#define EOB_ACT_LAST_MATCH
static size_t yy_buffer_stack_max
struct yy_buffer_state * YY_BUFFER_STATE
static yyconst flex_int32_t yy_ec[256]
void rtlil_frontend_ilang_yy_delete_buffer(YY_BUFFER_STATE b)
int rtlil_frontend_ilang_yyget_leng(void)
YY_EXTRA_TYPE rtlil_frontend_ilang_yyget_extra(void)
static void rtlil_frontend_ilang_yyensure_buffer_stack(void)
void rtlil_frontend_ilang_yyset_out(FILE *out_str)
void rtlil_frontend_ilang_yypush_buffer_state(YY_BUFFER_STATE new_buffer)
unsigned char flex_uint8_t
static yy_state_type yy_last_accepting_state
static int yy_get_next_buffer(void)
YYSTYPE rtlil_frontend_ilang_yylval
void rtlil_frontend_ilang_yypop_buffer_state(void)
unsigned short int flex_uint16_t
#define rtlil_frontend_ilang_yywrap(n)
static yyconst flex_int16_t yy_def[182]
void rtlil_frontend_ilang_yyfree(void *)
void * rtlil_frontend_ilang_yyrealloc(void *, yy_size_t)
void rtlil_frontend_ilang_yyset_debug(int debug_flag)
#define USING_YOSYS_NAMESPACE
static size_t yy_buffer_stack_top
static void rtlil_frontend_ilang_yy_load_buffer_state(void)
int rtlil_frontend_ilang_yyget_lineno(void)
YY_BUFFER_STATE rtlil_frontend_ilang_yy_scan_bytes(yyconst char *bytes, int len)
YY_BUFFER_STATE rtlil_frontend_ilang_yy_create_buffer(FILE *file, int size)
void * rtlil_frontend_ilang_avoid_input_warnings()
int rtlil_frontend_ilang_yylineno
static yy_state_type yy_get_previous_state(void)
static yyconst flex_int16_t yy_nxt[255]
FILE * rtlil_frontend_ilang_yyout
FILE * rtlil_frontend_ilang_yyget_out(void)
#define YY_END_OF_BUFFER_CHAR
#define YY_CURRENT_BUFFER
static void rtlil_frontend_ilang_yy_init_buffer(YY_BUFFER_STATE b, FILE *file)
static void input_file(std::istream &f, std::string filename)
#define EOB_ACT_CONTINUE_SCAN
FILE * rtlil_frontend_ilang_yyin
static yyconst flex_int32_t yy_rule_can_match_eol[46]
static int yy_init_globals(void)
#define YY_CURRENT_BUFFER_LVALUE
YY_BUFFER_STATE rtlil_frontend_ilang_yy_scan_string(yyconst char *yy_str)
void rtlil_frontend_ilang_yyset_lineno(int line_number)
void * rtlil_frontend_ilang_yyalloc(yy_size_t)
#define YY_DO_BEFORE_ACTION
int rtlil_frontend_ilang_yylex(void)