📄 verilog-y.tab.c
字号:
/* A Bison parser, made from verilog-y by GNU bison 1.35. */#define YYBISON 1 /* Identify Bison output. */# define VL_ID 257# define VL_BNUMBER 258# define VL_INUMBER 259# define VL_ONUMBER 260# define VL_DNUMBER 261# define VL_HNUMBER 262# define VL_RNUMBER 263# define VL_STRING 264# define VL_ALLPATH 265# define VL_ALWAYS 266# define VL_AND 267# define VL_ASSIGN 268# define VL_BEGIN 269# define VL_BUF 270# define VL_BUFIF0 271# define VL_BUFIF1 272# define VL_CASE 273# define VL_CASEX 274# define VL_CASEZ 275# define VL_CMOS 276# define VL_CONDITIONAL 277# define VL_DEASSIGN 278# define VL_DEFAULT 279# define VL_DEFPARAM 280# define VL_DISABLE 281# define VL_ELSE 282# define VL_EDGE 283# define VL_END 284# define VL_ENDCASE 285# define VL_ENDMODULE 286# define VL_ENDFUNCTION 287# define VL_ENDPRIMITIVE 288# define VL_ENDSPECIFY 289# define VL_ENDTABLE 290# define VL_ENDTASK 291# define VL_EVENT 292# define VL_FOR 293# define VL_FOREVER 294# define VL_FORK 295# define VL_FUNCTION 296# define VL_GEQ 297# define VL_HIGHZ0 298# define VL_HIGHZ1 299# define VL_IF 300# define VL_INITIAL 301# define VL_INOUT 302# define VL_INPUT 303# define VL_INTEGER 304# define VL_JOIN 305# define VL_LARGE 306# define VL_LEADTO 307# define VL_LEQ 308# define VL_LOGAND 309# define VL_CASEEQUALITY 310# define VL_CASEINEQUALITY 311# define VL_LOGNAND 312# define VL_LOGNOR 313# define VL_LOGOR 314# define VL_LOGXNOR 315# define VL_LOGEQUALITY 316# define VL_LOGINEQUALITY 317# define VL_LSHIFT 318# define VL_MACROMODULE 319# define VL_MEDIUM 320# define VL_MODULE 321# define VL_NAND 322# define VL_NBASSIGN 323# define VL_NEGEDGE 324# define VL_NMOS 325# define VL_NOR 326# define VL_NOT 327# define VL_NOTIF0 328# define VL_NOTIF1 329# define VL_OR 330# define VL_OUTPUT 331# define VL_PARAMETER 332# define VL_PMOS 333# define VL_POSEDGE 334# define VL_PRIMITIVE 335# define VL_PULL0 336# define VL_PULL1 337# define VL_PULLUP 338# define VL_PULLDOWN 339# define VL_RCMOS 340# define VL_REAL 341# define VL_REG 342# define VL_REPEAT 343# define VL_RIGHTARROW 344# define VL_RNMOS 345# define VL_RPMOS 346# define VL_RSHIFT 347# define VL_RTRAN 348# define VL_RTRANIF0 349# define VL_RTRANIF1 350# define VL_SCALARED 351# define VL_SMALL 352# define VL_SPECIFY 353# define VL_SPECPARAM 354# define VL_STRONG0 355# define VL_STRONG1 356# define VL_SUPPLY0 357# define VL_SUPPLY1 358# define VL_SWIRE 359# define VL_TABLE 360# define VL_TASK 361# define VL_TIME 362# define VL_TRAN 363# define VL_TRANIF0 364# define VL_TRANIF1 365# define VL_TRI 366# define VL_TRI0 367# define VL_TRI1 368# define VL_TRIAND 369# define VL_TRIOR 370# define VL_TRIREG 371# define VL_VECTORED 372# define VL_WAIT 373# define VL_WAND 374# define VL_WEAK0 375# define VL_WEAK1 376# define VL_WHILE 377# define VL_WIRE 378# define VL_WOR 379# define VL_XNOR 380# define VL_XOR 381# define VL_sysSETUP 382# define VL_sysID 383# define VL_UNARYOPERATOR 384#line 1 "verilog-y"#include <stdio.h>#include <string.h>#include <stdlib.h>#include <unistd.h>#include "../classes/List.h"#include "../classes/Util.h"#include "../classes/IODecl.h"#include "../classes/Module.h"#include "../classes/BitVec.h"extern int yylex();extern int yylineno;extern int yyparse();void yyerror(const char*);char* beginproc();void endproc();extern FILE* yyin;FILE *debug;FILE *output;FILE *input;FILE *fp;Tab *t;extern FILE *output;extern FILE *debug;void *buggy;short shift_l = 0, shift_r = 0, unary_or = 0, unary_and = 0, unary_nor = 0, unary_nand = 0, unary_xor = 0, unary_nxor = 0;#line 45 "verilog-y"#ifndef YYSTYPEtypedef union { int number; double real; char* char_ptr; ListP list; IODeclP io_decl; MItemP m_item; ModuleP module; PDeclP p_decl; PBDeclP pb_decl; RVarP reg_var; BitVecP bit_vec; MDeclP m_decl; PortDeclP port_decl;} yystype;# define YYSTYPE yystype# define YYSTYPE_IS_TRIVIAL 1#endif#ifndef YYDEBUG# define YYDEBUG 0#endif#define YYFINAL 302#define YYFLAG -32768#define YYNTBASE 155/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */#define YYTRANSLATE(x) ((unsigned)(x) <= 384 ? yytranslate[x] : 224)/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */static const short yytranslate[] ={ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 143, 2, 153, 2, 141, 133, 2, 146, 147, 139, 137, 148, 138, 149, 140, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 131, 145, 135, 150, 136, 130, 154, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 151, 2, 152, 134, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 132, 2, 142, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 144};#if YYDEBUGstatic const short yyprhs[] ={ 0, 0, 1, 4, 11, 12, 16, 18, 22, 23, 25, 31, 33, 34, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 62, 66, 67, 68, 77, 79, 82, 84, 86, 88, 93, 98, 103, 108, 112, 116, 118, 122, 127, 132, 133, 137, 138, 142, 143, 148, 150, 152, 155, 157, 158, 163, 164, 172, 173, 184, 185, 189, 190, 197, 198, 202, 203, 207, 209, 213, 215, 219, 220, 224, 226, 230, 231, 238, 239, 244, 245, 248, 252, 254, 257, 258, 263, 264, 269, 272, 274, 278, 280, 287, 289, 291, 293, 295, 299, 300, 302, 308, 310, 315, 322, 324, 328, 330, 332, 335, 338, 341, 344, 347, 350, 353, 356, 359, 363, 367, 371, 375, 379, 383, 387, 391, 395, 399, 403, 407, 411, 415, 419, 423, 427, 431, 435, 439, 443, 447, 451, 453, 455, 457, 459, 461, 463, 465, 470, 477, 479, 482, 485, 488, 493, 495, 498, 501, 505};static const short yyrhs[] ={ -1, 155, 156, 0, 67, 3, 157, 145, 161, 32, 0, 0, 146, 158, 147, 0, 159, 0, 158, 148, 159, 0, 0, 214, 0, 149, 3, 146, 214, 147, 0, 3, 0, 0, 161, 162, 0, 174, 0, 171, 0, 172, 0, 173, 0, 177, 0, 178, 0, 170, 0, 179, 0, 181, 0, 183, 0, 165, 0, 163, 0, 0, 14, 164, 186, 0, 0, 0, 107, 3, 145, 166, 168, 167, 186, 37, 0, 169, 0, 168, 169, 0, 171, 0, 172, 0, 173, 0, 3, 3, 157, 145, 0, 49, 212, 211, 145, 0, 77, 212, 211, 145, 0, 48, 212, 211, 145, 0, 78, 176, 145, 0, 219, 150, 216, 0, 175, 0, 176, 148, 175, 0, 124, 212, 211, 145, 0, 88, 212, 207, 145, 0, 0, 47, 180, 186, 0, 0, 12, 182, 186, 0, 0, 12, 221, 184, 186, 0, 145, 0, 186, 0, 202, 145, 0, 197, 0, 0, 197, 28, 187, 185, 0, 0, 19, 146, 217, 147, 188, 203, 31, 0, 0, 39, 146, 202, 145, 217, 145, 202, 147, 189, 186, 0, 0, 40, 190, 186, 0, 0, 123, 146, 217, 147, 191, 186, 0, 0, 220, 192, 185, 0, 0, 221, 193, 185, 0, 199, 0, 14, 202, 145, 0, 194, 0, 3, 195, 145, 0, 0, 146, 196, 147, 0, 217, 0, 196, 148, 217, 0, 0, 46, 146, 217, 147, 198, 185, 0, 0, 15, 200, 201, 30, 0, 0, 201, 186, 0, 214, 150, 217, 0, 204, 0, 203, 204, 0, 0, 215, 131, 205, 185, 0, 0, 25, 131, 206, 185, 0, 25, 185, 0, 208, 0, 207, 148, 208, 0, 209, 0, 210, 151, 216, 131, 216, 152, 0, 3, 0, 3, 0, 3, 0, 160, 0, 211, 148, 160, 0, 0, 213, 0, 151, 216, 131, 216, 152, 0, 219, 0, 219, 151, 217, 152, 0, 219, 151, 216, 131, 216, 152, 0, 217, 0, 215, 148, 217, 0, 217, 0, 218, 0, 137, 217, 0, 138, 217, 0, 143, 217, 0, 142, 217, 0, 133, 217, 0, 132, 217, 0, 58, 217, 0, 59, 217, 0, 61, 217, 0, 217, 137, 217, 0, 217, 138, 217, 0, 217, 139, 217, 0, 217, 140, 217, 0, 217, 141, 217, 0, 217, 62, 217, 0, 217, 63, 217, 0, 217, 56, 217, 0, 217, 57, 217, 0, 217, 55, 217, 0, 217, 60, 217, 0, 217, 135, 217, 0, 217, 136, 217, 0, 217, 133, 217, 0, 217, 132, 217, 0, 217, 134, 217, 0, 217, 54, 217, 0, 217, 69, 217, 0, 217, 43, 217, 0, 217, 64, 217, 0, 217, 93, 217, 0, 217, 61, 217, 0, 146, 217, 147, 0, 5, 0, 4, 0, 9, 0, 6, 0, 7, 0, 8, 0, 219, 0, 219, 151, 217, 152, 0, 219, 151, 216, 131, 216, 152, 0, 3, 0, 153, 5, 0, 153, 9, 0, 154, 219, 0, 154, 146, 222, 147, 0, 217, 0, 80, 223, 0, 70, 223, 0, 222, 76, 222, 0, 217, 0};#endif#if YYDEBUG/* YYRLINE[YYN] -- source line where rule number YYN was defined. */static const short yyrline[] ={ 0, 251, 253, 258, 318, 324, 332, 340, 348, 355, 363, 375, 380, 385, 399, 406, 413, 420, 427, 434, 442, 449, 456, 463, 470, 477, 487, 487, 507, 507, 507, 529, 533, 540, 546, 552, 561, 579, 588, 597, 616, 622, 632, 637, 644, 651, 664, 664, 683, 683, 705, 705, 747, 752, 761, 767, 774, 774, 788, 788, 800, 800, 818, 818, 831, 831, 843, 843, 850, 850, 883, 887, 892, 899, 907, 911, 918, 922, 929, 929, 942, 942, 957, 962, 969, 977, 978, 982, 982, 1000, 1000, 1011, 1020, 1025, 1032, 1040, 1053, 1061, 1069, 1076, 1082, 1090, 1096, 1104, 1116, 1122, 1128, 1139, 1144, 1152, 1159, 1164, 1169, 1174, 1179, 1184, 1191, 1198, 1205, 1212, 1219, 1224, 1229, 1234, 1239, 1244, 1249, 1254, 1259, 1264, 1269, 1274, 1279, 1284, 1289, 1294, 1299, 1304, 1309, 1314, 1321, 1328, 1333, 1341, 1346, 1351, 1355, 1360, 1365, 1370, 1375, 1382, 1394, 1402, 1406, 1416, 1421, 1430, 1436, 1443, 1450, 1458};#endif#if (YYDEBUG) || defined YYERROR_VERBOSE/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */static const char *const yytname[] ={
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -