aboutsummaryrefslogtreecommitdiff
path: root/contrib/byacc/test/yacc/quote_calc4.tab.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/byacc/test/yacc/quote_calc4.tab.c')
-rw-r--r--contrib/byacc/test/yacc/quote_calc4.tab.c25
1 files changed, 20 insertions, 5 deletions
diff --git a/contrib/byacc/test/yacc/quote_calc4.tab.c b/contrib/byacc/test/yacc/quote_calc4.tab.c
index 41be2fca4862..ec1b7d6313b4 100644
--- a/contrib/byacc/test/yacc/quote_calc4.tab.c
+++ b/contrib/byacc/test/yacc/quote_calc4.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)
@@ -443,8 +443,8 @@ YYPARSE_DECL()
}
#endif
- yym = 0;
- yyn = 0;
+ /* yym is set below */
+ /* yyn is set below */
yynerrs = 0;
yyerrflag = 0;
yychar = YYEMPTY;
@@ -570,64 +570,79 @@ yyreduce:
case 3:
#line 35 "quote_calc4.y"
{ yyerrok ; }
+#line 574 "quote_calc4.tab.c"
break;
case 4:
#line 39 "quote_calc4.y"
{ printf("%d\n",yystack.l_mark[0]);}
+#line 579 "quote_calc4.tab.c"
break;
case 5:
#line 41 "quote_calc4.y"
{ regs[yystack.l_mark[-2]] = yystack.l_mark[0]; }
+#line 584 "quote_calc4.tab.c"
break;
case 6:
#line 45 "quote_calc4.y"
{ yyval = yystack.l_mark[-1]; }
+#line 589 "quote_calc4.tab.c"
break;
case 7:
#line 47 "quote_calc4.y"
{ yyval = yystack.l_mark[-2] + yystack.l_mark[0]; }
+#line 594 "quote_calc4.tab.c"
break;
case 8:
#line 49 "quote_calc4.y"
{ yyval = yystack.l_mark[-2] - yystack.l_mark[0]; }
+#line 599 "quote_calc4.tab.c"
break;
case 9:
#line 51 "quote_calc4.y"
{ yyval = yystack.l_mark[-2] * yystack.l_mark[0]; }
+#line 604 "quote_calc4.tab.c"
break;
case 10:
#line 53 "quote_calc4.y"
{ yyval = yystack.l_mark[-2] / yystack.l_mark[0]; }
+#line 609 "quote_calc4.tab.c"
break;
case 11:
#line 55 "quote_calc4.y"
{ yyval = yystack.l_mark[-2] % yystack.l_mark[0]; }
+#line 614 "quote_calc4.tab.c"
break;
case 12:
#line 57 "quote_calc4.y"
{ yyval = yystack.l_mark[-2] & yystack.l_mark[0]; }
+#line 619 "quote_calc4.tab.c"
break;
case 13:
#line 59 "quote_calc4.y"
{ yyval = yystack.l_mark[-2] | yystack.l_mark[0]; }
+#line 624 "quote_calc4.tab.c"
break;
case 14:
#line 61 "quote_calc4.y"
{ yyval = - yystack.l_mark[0]; }
+#line 629 "quote_calc4.tab.c"
break;
case 15:
#line 63 "quote_calc4.y"
{ yyval = regs[yystack.l_mark[0]]; }
+#line 634 "quote_calc4.tab.c"
break;
case 17:
#line 68 "quote_calc4.y"
{ yyval = yystack.l_mark[0]; base = (yystack.l_mark[0]==0) ? 8 : 10; }
+#line 639 "quote_calc4.tab.c"
break;
case 18:
#line 70 "quote_calc4.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
+#line 644 "quote_calc4.tab.c"
break;
-#line 631 "quote_calc4.tab.c"
+#line 646 "quote_calc4.tab.c"
}
yystack.s_mark -= yym;
yystate = *yystack.s_mark;