diff options
Diffstat (limited to 'test/btyacc/quote_calc.tab.c')
-rw-r--r-- | test/btyacc/quote_calc.tab.c | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/test/btyacc/quote_calc.tab.c b/test/btyacc/quote_calc.tab.c index 95f023cc545a..cee23e65d92e 100644 --- a/test/btyacc/quote_calc.tab.c +++ b/test/btyacc/quote_calc.tab.c @@ -3,8 +3,8 @@ /* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */ #define YYBYACC 1 -#define YYMAJOR 1 -#define YYMINOR 9 +#define YYMAJOR 2 +#define YYMINOR 0 #define YYCHECK "yyyymmdd" #define YYEMPTY (-1) @@ -182,7 +182,7 @@ extern int YYPARSE_DECL(); #define LETTER 270 #define UMINUS 271 #define YYERRCODE 256 -typedef short YYINT; +typedef int YYINT; static const YYINT quote_calc_lhs[] = { -1, 0, 0, 0, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, @@ -693,7 +693,7 @@ YYPARSE_DECL() yyps->save = 0; #endif /* YYBTYACC */ yym = 0; - yyn = 0; + /* yyn is set below */ yynerrs = 0; yyerrflag = 0; yychar = YYEMPTY; @@ -1204,64 +1204,79 @@ yyreduce: case 3: #line 35 "quote_calc.y" { yyerrok ; } +#line 1208 "quote_calc.tab.c" break; case 4: #line 39 "quote_calc.y" { printf("%d\n",yystack.l_mark[0]);} +#line 1213 "quote_calc.tab.c" break; case 5: #line 41 "quote_calc.y" { regs[yystack.l_mark[-2]] = yystack.l_mark[0]; } +#line 1218 "quote_calc.tab.c" break; case 6: #line 45 "quote_calc.y" { yyval = yystack.l_mark[-1]; } +#line 1223 "quote_calc.tab.c" break; case 7: #line 47 "quote_calc.y" { yyval = yystack.l_mark[-2] + yystack.l_mark[0]; } +#line 1228 "quote_calc.tab.c" break; case 8: #line 49 "quote_calc.y" { yyval = yystack.l_mark[-2] - yystack.l_mark[0]; } +#line 1233 "quote_calc.tab.c" break; case 9: #line 51 "quote_calc.y" { yyval = yystack.l_mark[-2] * yystack.l_mark[0]; } +#line 1238 "quote_calc.tab.c" break; case 10: #line 53 "quote_calc.y" { yyval = yystack.l_mark[-2] / yystack.l_mark[0]; } +#line 1243 "quote_calc.tab.c" break; case 11: #line 55 "quote_calc.y" { yyval = yystack.l_mark[-2] % yystack.l_mark[0]; } +#line 1248 "quote_calc.tab.c" break; case 12: #line 57 "quote_calc.y" { yyval = yystack.l_mark[-2] & yystack.l_mark[0]; } +#line 1253 "quote_calc.tab.c" break; case 13: #line 59 "quote_calc.y" { yyval = yystack.l_mark[-2] | yystack.l_mark[0]; } +#line 1258 "quote_calc.tab.c" break; case 14: #line 61 "quote_calc.y" { yyval = - yystack.l_mark[0]; } +#line 1263 "quote_calc.tab.c" break; case 15: #line 63 "quote_calc.y" { yyval = regs[yystack.l_mark[0]]; } +#line 1268 "quote_calc.tab.c" break; case 17: #line 68 "quote_calc.y" { yyval = yystack.l_mark[0]; base = (yystack.l_mark[0]==0) ? 8 : 10; } +#line 1273 "quote_calc.tab.c" break; case 18: #line 70 "quote_calc.y" { yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; } +#line 1278 "quote_calc.tab.c" break; -#line 1265 "quote_calc.tab.c" +#line 1280 "quote_calc.tab.c" default: break; } |