📄 cmdpars.cc
字号:
const int YY_cl_ucsim_parser_CLASS::UNARYMINUS=273;#line 341 "/usr/share/bison++/bison.cc" /* const YY_cl_ucsim_parser_CLASS::token */#endif/*apres const */YY_cl_ucsim_parser_CLASS::YY_cl_ucsim_parser_CLASS(YY_cl_ucsim_parser_CONSTRUCTOR_PARAM) YY_cl_ucsim_parser_CONSTRUCTOR_INIT{#if YY_cl_ucsim_parser_DEBUG != 0YY_cl_ucsim_parser_DEBUG_FLAG=0;#endifYY_cl_ucsim_parser_CONSTRUCTOR_CODE;};#endif #line 352 "/usr/share/bison++/bison.cc"#define YYFINAL 37#define YYFLAG -32768#define YYNTBASE 19#define YYTRANSLATE(x) ((unsigned)(x) <= 273 ? yytranslate[x] : 25)static const char 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, 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, 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, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18};#if YY_cl_ucsim_parser_DEBUG != 0static const short yyprhs[] = { 0, 0, 2, 6, 10, 12, 16, 20, 24, 28, 31, 33, 37, 39, 41, 43, 46, 49, 51, 56, 58};static const short yyrhs[] = { 21, 0, 23, 7, 21, 0, 24, 7, 21, 0, 20, 0, 21, 3, 21, 0, 21, 4, 21, 0, 21, 5, 21, 0, 21, 6, 21, 0, 4, 21, 0, 22, 0, 8, 21, 9, 0, 16, 0, 23, 0, 24, 0, 13, 23, 0, 13, 24, 0, 15, 0, 14, 10, 21, 11, 0, 17, 0, 23, 12, 21, 0};#endif#if (YY_cl_ucsim_parser_DEBUG != 0) || defined(YY_cl_ucsim_parser_ERROR_VERBOSE) static const short yyrline[] = { 0, 59, 63, 69, 86, 88, 89, 90, 91, 98, 99, 100, 101, 102, 103, 106, 108, 119, 121, 127, 129};static const char * const yytname[] = { "$","error","$illegal.","PTOK_PLUS","PTOK_MINUS","PTOK_ASTERIX","PTOK_SLASH","PTOK_EQUAL","PTOK_LEFT_PAREN","PTOK_RIGHT_PAREN","PTOK_LEFT_BRACKET","PTOK_RIGHT_BRACKET","PTOK_DOT","PTOK_AMPERSAND","PTOK_MEMORY_OBJECT","PTOK_MEMORY","PTOK_NUMBER","PTOK_BIT","UNARYMINUS","ucsim_grammar","assignment","expression","address_of_expression","memory","bit",""};#endifstatic const short yyr1[] = { 0, 19, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 23, 23, 24, 24};static const short yyr2[] = { 0, 1, 3, 3, 1, 3, 3, 3, 3, 2, 1, 3, 1, 1, 1, 2, 2, 1, 4, 1, 3};static const short yydefact[] = { 0, 0, 0, 0, 0, 17, 12, 19, 4, 1, 10, 13, 14, 9, 0, 15, 16, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 5, 6, 7, 8, 2, 20, 3, 18, 0, 0, 0};static const short yydefgoto[] = { 35, 8, 9, 10, 11, 12};static const short yypact[] = { -2, -2, -2, -10, 23,-32768,-32768,-32768,-32768, 32,-32768, -4, 33,-32768, 25, 27,-32768, -2, -2, -2, -2, -2, -2, -2, -2,-32768, 21, 4, 4,-32768,-32768, 32, 32, 32,-32768, 41, 42,-32768};static const short yypgoto[] = {-32768,-32768, -1,-32768, 40, 43};#define YYLAST 46static const short yytable[] = { 13, 14, 1, 22, 4, 5, 2, 7, 23, 20, 21, 3, 4, 5, 6, 7, 26, 27, 28, 29, 30, 31, 32, 33, 18, 19, 20, 21, 18, 19, 20, 21, 34, 17, 25, 18, 19, 20, 21, 23, 24, 36, 37, 15, 0, 0, 16};static const short yycheck[] = { 1, 2, 4, 7, 14, 15, 8, 17, 12, 5, 6, 13, 14, 15, 16, 17, 17, 18, 19, 20, 21, 22, 23, 24, 3, 4, 5, 6, 3, 4, 5, 6, 11, 10, 9, 3, 4, 5, 6, 12, 7, 0, 0, 3, -1, -1, 3};#line 352 "/usr/share/bison++/bison.cc" /* fattrs + tables *//* parser code folow *//* This is the parser code that is written into each bison parser when the %semantic_parser declaration is not specified in the grammar. It was written by Richard Stallman by simplifying the hairy parser used when %semantic_parser is specified. *//* Note: dollar marks section change the next is replaced by the list of actions, each action as one case of the switch. */ #if YY_cl_ucsim_parser_USE_GOTO != 0/* SUPRESSION OF GOTO : on some C++ compiler (sun c++) the goto is strictly forbidden if any constructor/destructor is used in the whole function (very stupid isn't it ?) so goto are to be replaced with a 'while/switch/case construct' here are the macro to keep some apparent compatibility*/#define YYGOTO(lb) {yy_gotostate=lb;continue;}#define YYBEGINGOTO enum yy_labels yy_gotostate=yygotostart; \ for(;;) switch(yy_gotostate) { case yygotostart: {#define YYLABEL(lb) } case lb: {#define YYENDGOTO } } #define YYBEGINDECLARELABEL enum yy_labels {yygotostart#define YYDECLARELABEL(lb) ,lb#define YYENDDECLARELABEL };#else/* macro to keep goto */#define YYGOTO(lb) goto lb#define YYBEGINGOTO #define YYLABEL(lb) lb:#define YYENDGOTO#define YYBEGINDECLARELABEL #define YYDECLARELABEL(lb)#define YYENDDECLARELABEL #endif/* LABEL DECLARATION */YYBEGINDECLARELABEL YYDECLARELABEL(yynewstate) YYDECLARELABEL(yybackup)/* YYDECLARELABEL(yyresume) */ YYDECLARELABEL(yydefault) YYDECLARELABEL(yyreduce) YYDECLARELABEL(yyerrlab) /* here on detecting error */ YYDECLARELABEL(yyerrlab1) /* here on error raised explicitly by an action */ YYDECLARELABEL(yyerrdefault) /* current state does not do anything special for the error token. */ YYDECLARELABEL(yyerrpop) /* pop the current state because it cannot handle the error token */ YYDECLARELABEL(yyerrhandle) YYENDDECLARELABEL/* ALLOCA SIMULATION *//* __HAVE_NO_ALLOCA */#ifdef __HAVE_NO_ALLOCAint __alloca_free_ptr(char *ptr,char *ref){if(ptr!=ref) free(ptr); return 0;}#define __ALLOCA_alloca(size) malloc(size)#define __ALLOCA_free(ptr,ref) __alloca_free_ptr((char *)ptr,(char *)ref)#ifdef YY_cl_ucsim_parser_LSP_NEEDED#define __ALLOCA_return(num) \ do { return( __ALLOCA_free(yyss,yyssa)+\ __ALLOCA_free(yyvs,yyvsa)+\ __ALLOCA_free(yyls,yylsa)+\ (num)); } while(0)#else#define __ALLOCA_return(num) \ do { return( __ALLOCA_free(yyss,yyssa)+\ __ALLOCA_free(yyvs,yyvsa)+\ (num)); } while(0)#endif#else#define __ALLOCA_return(num) do { return(num); } while(0)#define __ALLOCA_alloca(size) alloca(size)#define __ALLOCA_free(ptr,ref) #endif/* ENDALLOCA SIMULATION */#define yyerrok (yyerrstatus = 0)#define yyclearin (YY_cl_ucsim_parser_CHAR = YYEMPTY)#define YYEMPTY -2#define YYEOF 0#define YYACCEPT __ALLOCA_return(0)#define YYABORT __ALLOCA_return(1)#define YYERROR YYGOTO(yyerrlab1)/* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */#define YYFAIL YYGOTO(yyerrlab)#define YYRECOVERING() (!!yyerrstatus)#define YYBACKUP(token, value) \do \ if (YY_cl_ucsim_parser_CHAR == YYEMPTY && yylen == 1) \ { YY_cl_ucsim_parser_CHAR = (token), YY_cl_ucsim_parser_LVAL = (value); \ yychar1 = YYTRANSLATE (YY_cl_ucsim_parser_CHAR); \ YYPOPSTACK; \ YYGOTO(yybackup); \ } \ else \ { YY_cl_ucsim_parser_ERROR ("syntax error: cannot back up"); YYERROR; } \while (0)#define YYTERROR 1#define YYERRCODE 256#ifndef YY_cl_ucsim_parser_PURE/* UNPURE */#define YYLEX YY_cl_ucsim_parser_LEX()#ifndef YY_USE_CLASS/* If nonreentrant, and not class , generate the variables here */int YY_cl_ucsim_parser_CHAR; /* the lookahead symbol */YY_cl_ucsim_parser_STYPE YY_cl_ucsim_parser_LVAL; /* the semantic value of the */ /* lookahead symbol */int YY_cl_ucsim_parser_NERRS; /* number of parse errors so far */#ifdef YY_cl_ucsim_parser_LSP_NEEDEDYY_cl_ucsim_parser_LTYPE YY_cl_ucsim_parser_LLOC; /* location data for the lookahead */ /* symbol */#endif#endif#else/* PURE */#ifdef YY_cl_ucsim_parser_LSP_NEEDED#define YYLEX YY_cl_ucsim_parser_LEX(&YY_cl_ucsim_parser_LVAL, &YY_cl_ucsim_parser_LLOC)#else#define YYLEX YY_cl_ucsim_parser_LEX(&YY_cl_ucsim_parser_LVAL)#endif#endif#ifndef YY_USE_CLASS#if YY_cl_ucsim_parser_DEBUG != 0int YY_cl_ucsim_parser_DEBUG_FLAG; /* nonzero means print parse trace *//* Since this is uninitialized, it does not stop multiple parsers from coexisting. */#endif#endif/* YYINITDEPTH indicates the initial size of the parser's stacks */#ifndef YYINITDEPTH#define YYINITDEPTH 200#endif/* YYMAXDEPTH is the maximum size the stacks can grow to (effective only if the built-in stack extension method is used). */#if YYMAXDEPTH == 0#undef YYMAXDEPTH#endif#ifndef YYMAXDEPTH#define YYMAXDEPTH 10000#endif#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */#define __yy_bcopy(FROM,TO,COUNT) __builtin_memcpy(TO,FROM,COUNT)#else /* not GNU C or C++ *//* This is the most reliable way to avoid incompatibilities in available built-in functions on various systems. */#ifdef __cplusplusstatic void __yy_bcopy (char *from, char *to, int count)#else#ifdef __STDC__static void __yy_bcopy (char *from, char *to, int count)#elsestatic void __yy_bcopy (from, to, count) char *from; char *to; int count;#endif#endif{ register char *f = from; register char *t = to; register int i = count; while (i-- > 0) *t++ = *f++;}#endifint#ifdef YY_USE_CLASS YY_cl_ucsim_parser_CLASS::#endif YY_cl_ucsim_parser_PARSE(YY_cl_ucsim_parser_PARSE_PARAM)#ifndef __STDC__#ifndef __cplusplus#ifndef YY_USE_CLASS/* parameter definition without protypes */YY_cl_ucsim_parser_PARSE_PARAM_DEF#endif#endif#endif{ register int yystate; register int yyn; register short *yyssp; register YY_cl_ucsim_parser_STYPE *yyvsp; int yyerrstatus; /* number of tokens to shift before error messages enabled */ int yychar1=0; /* lookahead token as an internal (translated) token number */ short yyssa[YYINITDEPTH]; /* the state stack */ YY_cl_ucsim_parser_STYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */ short *yyss = yyssa; /* refer to the stacks thru separate pointers */ YY_cl_ucsim_parser_STYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */#ifdef YY_cl_ucsim_parser_LSP_NEEDED YY_cl_ucsim_parser_LTYPE yylsa[YYINITDEPTH]; /* the location stack */ YY_cl_ucsim_parser_LTYPE *yyls = yylsa; YY_cl_ucsim_parser_LTYPE *yylsp;#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)#else#define YYPOPSTACK (yyvsp--, yyssp--)#endif int yystacksize = YYINITDEPTH;#ifdef YY_cl_ucsim_parser_PURE int YY_cl_ucsim_parser_CHAR; YY_cl_ucsim_parser_STYPE YY_cl_ucsim_parser_LVAL; int YY_cl_ucsim_parser_NERRS;#ifdef YY_cl_ucsim_parser_LSP_NEEDED YY_cl_ucsim_parser_LTYPE YY_cl_ucsim_parser_LLOC;#endif#endif YY_cl_ucsim_parser_STYPE yyval; /* the variable used to return */ /* semantic values from the action */ /* routines */ int yylen;/* start loop, in which YYGOTO may be used. */YYBEGINGOTO#if YY_cl_ucsim_parser_DEBUG != 0 if (YY_cl_ucsim_parser_DEBUG_FLAG) fprintf(stderr, "Starting parse\n");#endif yystate = 0; yyerrstatus = 0; YY_cl_ucsim_parser_NERRS = 0; YY_cl_ucsim_parser_CHAR = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss - 1; yyvsp = yyvs;#ifdef YY_cl_ucsim_parser_LSP_NEEDED yylsp = yyls;#endif/* Push a new state, which is found in yystate . *//* In all cases, when you get here, the value and location stacks have just been pushed. so pushing a state here evens the stacks. */YYLABEL(yynewstate) *++yyssp = yystate; if (yyssp >= yyss + yystacksize - 1) { /* Give user a chance to reallocate the stack */ /* Use copies of these so that the &'s don't force the real ones into memory. */ YY_cl_ucsim_parser_STYPE *yyvs1 = yyvs; short *yyss1 = yyss;#ifdef YY_cl_ucsim_parser_LSP_NEEDED YY_cl_ucsim_parser_LTYPE *yyls1 = yyls;#endif /* Get the current used size of the three stacks, in elements. */ int size = yyssp - yyss + 1;#ifdef yyoverflow /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. */#ifdef YY_cl_ucsim_parser_LSP_NEEDED /* This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow("parser stack overflow", &yyss1, size * sizeof (*yyssp), &yyvs1, size * sizeof (*yyvsp), &yyls1, size * sizeof (*yylsp), &yystacksize);#else yyoverflow("parser stack overflow", &yyss1, size * sizeof (*yyssp), &yyvs1, size * sizeof (*yyvsp), &yystacksize);#endif yyss = yyss1; yyvs = yyvs1;#ifdef YY_cl_ucsim_parser_LSP_NEEDED yyls = yyls1;#endif#else /* no yyoverflow */ /* Extend the stack our own way. */ if (yystacksize >= YYMAXDEPTH) { YY_cl_ucsim_parser_ERROR("parser stack overflow"); __ALLOCA_return(2); } yystacksize *= 2; if (yystacksize > YYMAXDEPTH) yystacksize = YYMAXDEPTH; yyss = (short *) __ALLOCA_alloca (yystacksize * sizeof (*yyssp)); __yy_bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp)); __ALLOCA_free(yyss1,yyssa); yyvs = (YY_cl_ucsim_parser_STYPE *) __ALLOCA_alloca (yystacksize * sizeof (*yyvsp)); __yy_bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp)); __ALLOCA_free(yyvs1,yyvsa);#ifdef YY_cl_ucsim_parser_LSP_NEEDED yyls = (YY_cl_ucsim_parser_LTYPE *) __ALLOCA_alloca (yystacksize * sizeof (*yylsp)); __yy_bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp)); __ALLOCA_free(yyls1,yylsa);#endif#endif /* no yyoverflow */ yyssp = yyss + size - 1; yyvsp = yyvs + size - 1;#ifdef YY_cl_ucsim_parser_LSP_NEEDED yylsp = yyls + size - 1;#endif#if YY_cl_ucsim_parser_DEBUG != 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -