lex.yy.c

来自「將Verilog設計轉成VHDL設計的程式」· C语言 代码 · 共 2,464 行 · 第 1/5 页

C
2,464
字号
       20,   20,   20,   20,   20,   20,   20,   21,   20,   22,       23,   24,   25,   26,   27,   20,   28,   29,   30,   20,       31,   32,   33,   34,   35,   36,   37,   38,   20,   39,       40,   41,   20,   20,   42,   43,   44,   44,   44,   44,       49,   50,   77,   51,   52,   55,   55,   55,   55,   49,       56,   50,  444,   57,   78,   51,   62,   63,   58,   67,       68,   59,   52,   60,   60,   60,   60,   64,   65,   66,       72,   75,   73,   79,   81,  443,   74,   80,   85,   88,       61,   92,   82,   86,   83,   93,   76,   89,   95,  101,       99,   84,   96,  100,  152,   94,  106,  129,  107,  153,       97,  102,   98,  103,  111,  104,  442,  108,  105,  109,      117,  174,  110,  175,  112,  126,  127,  113,  118,  130,      114,  115,  140,  116,  121,  212,  119,  197,  122,   44,       44,  123,  124,  133,  133,  198,  441,  287,  125,  288,      328,  133,  134,  134,  134,  134,  131,  329,  133,  136,      136,  136,  137,  137,  137,  137,  200,  136,  440,   49,       50,  201,   51,   52,  136,  234,  439,  222,   49,  138,       50,  235,  438,  133,   51,  133,  143,  143,  143,  143,       58,   52,  223,   59,  437,   60,   60,   60,   60,  136,       58,  136,  436,   59,  162,   60,   60,   60,   60,  183,      163,  164,   61,  435,  165,  184,  434,  208,  208,  337,      338,  433,   61,  432,  185,  208,  209,  209,  209,  209,      342,  343,  208,  431,  208,  430,  211,  211,  211,  137,      137,  137,  137,  209,  211,  137,  137,  137,  137,  272,      273,  211,  429,  211,  356,  357,  138,  208,  227,  208,      428,  228,  138,  213,  213,  213,  213,  274,  229,  208,      208,  230,  427,  231,  232,  426,  211,  208,  211,  423,      214,  275,  364,  365,  208,  422,  208,  209,  209,  209,      209,  211,  211,  211,  421,  213,  213,  213,  213,  211,      213,  213,  213,  213,  209,  420,  211,  419,  211,  208,      418,  208,  214,  317,  318,  406,  407,  214,  408,  409,      410,  411,  424,  425,  417,  416,  415,  414,  413,  412,      405,  211,  404,  211,  319,  403,  402,  401,  400,  399,      398,  397,  396,  395,  394,  393,  392,  391,  390,  389,      320,   46,   46,   46,   46,   46,   70,  388,   70,   70,      135,  135,  139,  139,  139,  139,  139,  141,  141,  141,      141,  141,  210,  210,  387,  210,  386,  385,  384,  383,      382,  381,  380,  379,  378,  377,  376,  375,  374,  373,      372,  371,  370,  369,  368,  367,  366,  363,  362,  361,      360,  359,  358,  355,  354,  353,  352,  351,  350,  349,      348,  347,  346,  345,  344,  341,  340,  339,  336,  335,      334,  333,  332,  331,  330,  327,  326,  325,  324,  323,      322,  321,  316,  315,  314,  313,  312,  311,  310,  309,      308,  307,  306,  305,  304,  303,  302,  301,  300,  299,      298,  297,  296,  295,  294,  293,  292,  291,  290,  289,      286,  285,  284,  283,  140,  282,  281,  280,  279,  278,      277,  276,  271,  270,  269,  268,  267,  266,  265,  264,      263,  262,  261,  260,  259,  258,  257,  256,  255,  254,      253,  252,  251,  250,  249,  248,  247,  246,  245,  244,      243,  242,  241,  240,  239,  238,  237,  236,  233,  226,      225,  224,  221,  220,  219,  218,  217,  216,  215,  142,      140,  207,  206,  205,  204,  203,  202,  199,  196,  195,      194,  193,  192,  191,  190,  189,  188,  187,  186,  182,      181,  180,  179,  178,  177,  176,  173,  172,  171,  170,      169,  168,  167,  166,  161,  160,  159,  158,  157,  156,      155,  154,  151,  150,  149,  148,  147,  146,  145,  144,      142,  140,   47,  132,  128,  120,   91,   90,   87,   71,       69,   54,   53,   48,   47,   45,  445,    3,  445,  445,      445,  445,  445,  445,  445,  445,  445,  445,  445,  445,      445,  445,  445,  445,  445,  445,  445,  445,  445,  445,      445,  445,  445,  445,  445,  445,  445,  445,  445,  445,      445,  445,  445,  445,  445,  445,  445,  445,  445,  445,      445,  445,  445,  445,  445,  445,  445,  445,  445,  445,      445,  445,  445,  445    } ;static yyconst short int yy_chk[655] =    {   0,        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,        1,    1,    1,    1,    1,    1,    1,    1,    1,    1,        1,    1,    1,    1,    1,    1,    5,    5,    6,    6,       10,   10,   24,   10,   10,   13,   13,   13,   13,   10,       14,   10,  442,   14,   24,   10,   16,   16,   15,   18,       18,   15,   10,   15,   15,   15,   15,   17,   17,   17,       22,   23,   22,   25,   26,  440,   22,   25,   27,   29,       15,   32,   26,   27,   26,   32,   23,   29,   33,   35,       34,   26,   33,   34,   79,   32,   36,   43,   36,   79,       33,   35,   33,   35,   37,   35,  438,   36,   35,   36,       38,   98,   36,   98,   37,   41,   41,   37,   38,   43,       37,   37,  140,   37,   40,  140,   38,  119,   40,   44,       44,   40,   40,   49,   49,  119,  437,  219,   40,  219,      265,   49,   50,   50,   50,   50,   43,  265,   49,   52,       52,   52,   55,   55,   55,   55,  121,   52,  433,   58,       58,  121,   58,   58,   52,  159,  432,  153,   58,   55,       58,  159,  431,   49,   58,   49,   59,   59,   59,   59,       60,   58,  153,   60,  429,   60,   60,   60,   60,   52,       61,   52,  427,   61,   89,   61,   61,   61,   61,  107,       89,   89,   60,  422,   89,  107,  421,  133,  133,  279,      279,  420,   61,  418,  107,  133,  134,  134,  134,  134,      286,  286,  133,  417,  133,  416,  136,  136,  136,  137,      137,  137,  137,  134,  136,  138,  138,  138,  138,  198,      198,  136,  415,  136,  302,  302,  137,  133,  157,  133,      412,  157,  138,  143,  143,  143,  143,  198,  157,  208,      208,  157,  405,  157,  157,  403,  136,  208,  136,  401,      143,  198,  312,  312,  208,  400,  208,  209,  209,  209,      209,  211,  211,  211,  398,  213,  213,  213,  213,  211,      214,  214,  214,  214,  209,  396,  211,  393,  211,  208,      390,  208,  213,  256,  256,  377,  377,  214,  378,  378,      379,  379,  402,  402,  389,  388,  387,  384,  382,  381,      376,  211,  375,  211,  256,  374,  373,  370,  369,  368,      367,  363,  360,  359,  358,  355,  354,  353,  352,  351,      256,  446,  446,  446,  446,  446,  447,  350,  447,  447,      448,  448,  449,  449,  449,  449,  449,  450,  450,  450,      450,  450,  451,  451,  349,  451,  348,  347,  346,  345,      344,  336,  334,  333,  331,  330,  329,  328,  326,  325,      322,  320,  319,  316,  315,  314,  313,  311,  310,  309,      308,  306,  303,  301,  300,  298,  297,  296,  295,  294,      293,  292,  291,  290,  289,  284,  283,  280,  276,  275,      274,  271,  268,  267,  266,  264,  263,  262,  261,  260,      259,  257,  255,  254,  252,  251,  250,  248,  246,  245,      244,  243,  241,  240,  239,  238,  237,  236,  234,  233,      232,  231,  230,  229,  228,  227,  224,  223,  222,  221,      218,  217,  216,  215,  212,  206,  204,  203,  202,  201,      200,  199,  197,  196,  195,  194,  193,  192,  191,  190,      189,  188,  187,  186,  185,  183,  182,  181,  180,  179,      178,  177,  176,  175,  173,  172,  171,  170,  169,  168,      167,  166,  165,  164,  163,  162,  161,  160,  158,  156,      155,  154,  152,  151,  150,  149,  148,  147,  145,  141,      139,  127,  126,  125,  124,  123,  122,  120,  118,  117,      116,  115,  114,  113,  112,  111,  110,  109,  108,  106,      105,  104,  103,  102,  101,  100,   97,   96,   95,   94,       93,   92,   91,   90,   87,   86,   85,   84,   83,   82,       81,   80,   78,   77,   76,   75,   74,   73,   72,   65,       57,   56,   46,   45,   42,   39,   31,   30,   28,   21,       19,   12,   11,    9,    8,    7,    3,  445,  445,  445,      445,  445,  445,  445,  445,  445,  445,  445,  445,  445,      445,  445,  445,  445,  445,  445,  445,  445,  445,  445,      445,  445,  445,  445,  445,  445,  445,  445,  445,  445,      445,  445,  445,  445,  445,  445,  445,  445,  445,  445,      445,  445,  445,  445,  445,  445,  445,  445,  445,  445,      445,  445,  445,  445    } ;static yy_state_type yy_last_accepting_state;static char *yy_last_accepting_cpos;/* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */#define REJECT reject_used_but_not_detected#define yymore() yymore_used_but_not_detected#define YY_MORE_ADJ 0#define YY_RESTORE_YY_MORE_OFFSETchar *yytext;#line 1 "verilog-lex"#define INITIAL 0#line 2 "verilog-lex"#include <string.h>#include "../classes/List.h"#include "../classes/IODecl.h"#include "../classes/Module.h"#include "../classes/Util.h"#include "../classes/BitVec.h"#include "verilog-y.tab.h"extern int yylineno;extern YYSTYPE yylval;void yy_char_ptr(char *string);#line 671 "lex.yy.c"/* Macros after this point can all be overridden by user definitions in * section 1. */#ifndef YY_SKIP_YYWRAP#ifdef __cplusplusextern "C" int yywrap YY_PROTO(( void ));#elseextern int yywrap YY_PROTO(( void ));#endif#endif#ifndef YY_NO_UNPUTstatic void yyunput YY_PROTO(( int c, char *buf_ptr ));#endif#ifndef yytext_ptrstatic void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));#endif#ifdef YY_NEED_STRLENstatic int yy_flex_strlen YY_PROTO(( yyconst char * ));#endif#ifndef YY_NO_INPUT#ifdef __cplusplusstatic int yyinput YY_PROTO(( void ));#elsestatic int input YY_PROTO(( void ));#endif#endif#if YY_STACK_USEDstatic int yy_start_stack_ptr = 0;static int yy_start_stack_depth = 0;static int *yy_start_stack = 0;#ifndef YY_NO_PUSH_STATEstatic void yy_push_state YY_PROTO(( int new_state ));#endif#ifndef YY_NO_POP_STATEstatic void yy_pop_state YY_PROTO(( void ));#endif#ifndef YY_NO_TOP_STATEstatic int yy_top_state YY_PROTO(( void ));#endif#else#define YY_NO_PUSH_STATE 1#define YY_NO_POP_STATE 1#define YY_NO_TOP_STATE 1#endif#ifdef YY_MALLOC_DECLYY_MALLOC_DECL#else#if __STDC__#ifndef __cplusplus#include <stdlib.h>#endif#else/* Just try to get by without declaring the routines.  This will fail * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) * or sizeof(void*) != sizeof(int). */#endif#endif/* Amount of stuff to slurp up with each read. */#ifndef YY_READ_BUF_SIZE#define YY_READ_BUF_SIZE 8192#endif/* Copy whatever the last rule matched to the standard output. */#ifndef ECHO/* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )#endif/* Gets input and stuffs it into "buf".  number of characters read, or YY_NULL, * is returned in "result". */#ifndef YY_INPUT#define YY_INPUT(buf,result,max_size) \	if ( yy_current_buffer->yy_is_interactive ) \		{ \		int c = '*', n; \		for ( n = 0; n < max_size && \			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \			buf[n] = (char) c; \		if ( c == '\n' ) \			buf[n++] = (char) c; \		if ( c == EOF && ferror( yyin ) ) \			YY_FATAL_ERROR( "input in flex scanner failed" ); \		result = n; \		} \	else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \		  && ferror( yyin ) ) \		YY_FATAL_ERROR( "input in flex scanner failed" );#endif/* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */#ifndef yyterminate#define yyterminate() return YY_NULL#endif/* Number of entries by which start-condition stack grows. */#ifndef YY_START_STACK_INCR#define YY_START_STACK_INCR 25#endif/* Report a fatal error. */#ifndef YY_FATAL_ERROR#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )#endif/* Default declaration of generated scanner - a define so the user can * easily add parameters. */#ifndef YY_DECL#define YY_DECL int yylex YY_PROTO(( void ))#endif/* Code executed at the beginning of each rule, after yytext and yyleng * have been set up. */#ifndef YY_USER_ACTION#define YY_USER_ACTION#endif/* Code executed at the end of each rule. */#ifndef YY_BREAK#define YY_BREAK break;#endif#define YY_RULE_SETUP \	YY_USER_ACTIONYY_DECL	{	register yy_state_type yy_current_state;	register char *yy_cp = NULL, *yy_bp = NULL;	register int yy_act;#line 31 "verilog-lex"#line 824 "lex.yy.c"	if ( yy_init )		{		yy_init = 0;#ifdef YY_USER_INIT		YY_USER_INIT;#endif		if ( ! yy_start )			yy_start = 1;	/* first start state */		if ( ! yyin )			yyin = stdin;		if ( ! yyout )			yyout = stdout;		if ( ! yy_current_buffer )			yy_current_buffer =				yy_create_buffer( yyin, YY_BUF_SIZE );		yy_load_buffer_state();		}	while ( 1 )		/* loops until end-of-file is reached */		{		yy_cp = yy_c_buf_p;		/* Support of yytext. */		*yy_cp = yy_hold_char;		/* yy_bp points to the position in yy_ch_buf of the start of		 * the current run.		 */		yy_bp = yy_cp;		yy_current_state = yy_start;yy_match:		do			{			register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];			if ( yy_accept[yy_current_state] )				{				yy_last_accepting_state = yy_current_state;				yy_last_accepting_cpos = yy_cp;				}			while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )				{				yy_current_state = (int) yy_def[yy_current_state];				if ( yy_current_state >= 446 )					yy_c = yy_meta[(unsigned int) yy_c];				}			yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];			++yy_cp;			}		while ( yy_base[yy_current_state] != 598 );yy_find_action:		yy_act = yy_accept[yy_current_state];		if ( yy_act == 0 )			{ /* have to back up */			yy_cp = yy_last_accepting_cpos;			yy_current_state = yy_last_accepting_state;			yy_act = yy_accept[yy_current_state];			}		YY_DO_BEFORE_ACTION;do_action:	/* This label is used only to access EOF actions. */		switch ( yy_act )	{ /* beginning of action switch */			case 0: /* must back up */			/* undo the effects of YY_DO_BEFORE_ACTION */			*yy_cp = yy_hold_char;			yy_cp = yy_last_accepting_cpos;			yy_current_state = yy_last_accepting_state;			goto yy_find_action;case 1:YY_RULE_SETUP#line 32 "verilog-lex"{ continue; }	YY_BREAKcase 2:YY_RULE_SETUP#line 33 "verilog-lex"{ continue; }	YY_BREAKcase 3:YY_RULE_SETUP#line 34 "verilog-lex"{ continue; }	YY_BREAKcase 4:YY_RULE_SETUP#line 35 "verilog-lex"{ return VL_GEQ;  }	YY_BREAKcase 5:YY_RULE_SETUP#line 36 "verilog-lex"{ return VL_LEQ;  }	YY_BREAKcase 6:YY_RULE_SETUP#line 37 "verilog-lex"{ return VL_LOGAND;    }	YY_BREAKcase 7:YY_RULE_SETUP#line 38 "verilog-lex"{ return VL_LOGOR;     }	YY_BREAKcase 8:YY_RULE_SETUP#line 39 "verilog-lex"{ return VL_CASEEQUALITY;  }	YY_BREAKcase 9:YY_RULE_SETUP#line 40 "verilog-lex"{ return VL_LOGEQUALITY;   }	YY_BREAKcase 10:YY_RULE_SETUP#line 41 "verilog-lex"{ return VL_CASEINEQUALITY; }	YY_BREAKcase 11:YY_RULE_SETUP#line 42 "verilog-lex"{ return VL_LOGINEQUALITY; }	YY_BREAKcase 12:YY_RULE_SETUP#line 43 "verilog-lex"{ return VL_LOGXNOR; }	YY_BREAKcase 13:YY_RULE_SETUP#line 44 "verilog-lex"{ return VL_LOGXNOR; }	YY_BREAKcase 14:YY_RULE_SETUP#line 45 "verilog-lex"{ return VL_LOGNAND;      }	YY_BREAKcase 15:YY_RULE_SETUP#line 46 "verilog-lex"{ return VL_LOGNOR;       }	YY_BREAKcase 16:YY_RULE_SETUP#line 47 "verilog-lex"{ return VL_LSHIFT;      }	YY_BREAKcase 17:

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?