📄 ecma.tab.c
字号:
yyls = yyls1;# else yyoverflow ("parser stack overflow", &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize);# endif yyss = yyss1; yyvs = yyvs1; }#else /* no yyoverflow */# ifndef YYSTACK_RELOCATE goto yyoverflowlab;# else /* Extend the stack our own way. */ if (yystacksize >= YYMAXDEPTH) goto yyoverflowlab; yystacksize *= 2; if (yystacksize > YYMAXDEPTH) yystacksize = YYMAXDEPTH; { short *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyoverflowlab; YYSTACK_RELOCATE (yyss); YYSTACK_RELOCATE (yyvs);# if YYLSP_NEEDED YYSTACK_RELOCATE (yyls);# endif# undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); }# endif#endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1;#if YYLSP_NEEDED yylsp = yyls + yysize - 1;#endif YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyssp >= yyss + yystacksize - 1) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); goto yybackup;/*-----------.| yybackup. |`-----------*/yybackup:/* Do appropriate processing given the current state. *//* Read a lookahead token if we need one and don't already have one. *//* yyresume: */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yyn == YYFLAG) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* yychar is either YYEMPTY or YYEOF or a valid token in external form. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } /* Convert token to internal form (in yychar1) for indexing tables with */ if (yychar <= 0) /* This means end of input. */ { yychar1 = 0; yychar = YYEOF; /* Don't call YYLEX any more */ YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yychar1 = YYTRANSLATE (yychar);#if YYDEBUG /* We have to keep this `#if YYDEBUG', since we use variables which are defined only if `YYDEBUG' is set. */ if (yydebug) { YYFPRINTF (stderr, "Next token is %d (%s", yychar, yytname[yychar1]); /* Give the individual parser a way to print the precise meaning of a token, for further debugging info. */# ifdef YYPRINT YYPRINT (stderr, yychar, yylval);# endif YYFPRINTF (stderr, ")\n"); }#endif } yyn += yychar1; if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1) goto yydefault; yyn = yytable[yyn]; /* yyn is what to do for this token type in this state. Negative => reduce, -yyn is rule number. Positive => shift, yyn is new state. New state is final state => don't bother to shift, just return success. 0, or most negative number => error. */ if (yyn < 0) { if (yyn == YYFLAG) goto yyerrlab; yyn = -yyn; goto yyreduce; } else if (yyn == 0) goto yyerrlab; if (yyn == YYFINAL) YYACCEPT; /* Shift the lookahead token. */ YYDPRINTF ((stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1])); /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; *++yyvsp = yylval;#if YYLSP_NEEDED *++yylsp = yylloc;#endif /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; yystate = yyn; goto yynewstate;/*-----------------------------------------------------------.| yydefault -- do the default action for the current state. |`-----------------------------------------------------------*/yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce;/*-----------------------------.| yyreduce -- Do a reduction. |`-----------------------------*/yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. Otherwise, the following line sets YYVAL to the semantic value of the lookahead token. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen];#if YYLSP_NEEDED /* Similarly for the default location. Let the user run additional commands if for instance locations are ranges. */ yyloc = yylsp[1-yylen]; YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);#endif#if YYDEBUG /* We have to keep this `#if YYDEBUG', since we use variables which are defined only if `YYDEBUG' is set. */ if (yydebug) { int yyi; YYFPRINTF (stderr, "Reducing via rule %d (line %d), ", yyn, yyrline[yyn]); /* Print the symbols being reduced, and their result. */ for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++) YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]); YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]); }#endif switch (yyn) {case 1:#line 153 "ecma.y"{ ; break;}case 2:#line 159 "ecma.y"{ ; break;}case 3:#line 165 "ecma.y"{ ; break;}case 4:#line 168 "ecma.y"{ ; break;}case 5:#line 174 "ecma.y"{ ; break;}case 6:#line 177 "ecma.y"{ ; break;}case 7:#line 184 "ecma.y"{ ; break;}case 8:#line 187 "ecma.y"{ ; break;}case 9:#line 193 "ecma.y"{ ; break;}case 10:#line 196 "ecma.y"{ ; break;}case 11:#line 199 "ecma.y"{ ; break;}case 12:#line 205 "ecma.y"{ ; break;}case 13:#line 208 "ecma.y"{ ; break;}case 14:#line 214 "ecma.y"{ ; break;}case 15:#line 225 "ecma.y"{ ; break;}case 16:#line 228 "ecma.y"{ ; break;}case 17:#line 231 "ecma.y"{ ; break;}case 18:#line 234 "ecma.y"{ ; break;}case 19:#line 237 "ecma.y"{ ; break;}case 20:#line 240 "ecma.y"{ ; break;}case 21:#line 243 "ecma.y"{ ; break;}case 22:#line 246 "ecma.y"{ ; break;}case 23:#line 249 "ecma.y"{ ; break;}case 24:#line 252 "ecma.y"{ ; break;}case 25:#line 255 "ecma.y"{ ; break;}case 26:#line 258 "ecma.y"{ ; break;}case 27:#line 261 "ecma.y"{ ; break;}case 28:#line 264 "ecma.y"{ ; break;}case 29:#line 271 "ecma.y"{ ; break;}case 30:#line 274 "ecma.y"{ ; break;}case 31:#line 281 "ecma.y"{ ; break;}case 32:#line 284 "ecma.y"{ ; break;}case 34:#line 297 "ecma.y"{ ; break;}case 35:#line 300 "ecma.y"{ ; break;}case 36:#line 307 "ecma.y"{ ; break;}case 37:#line 310 "ecma.y"{ ; break;}case 38:#line 317 "ecma.y"{ ; break;}case 39:#line 320 "ecma.y"{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -