]> git.saurik.com Git - bison.git/commitdiff
*** empty log message ***
authorRichard M. Stallman <rms@gnu.org>
Sun, 4 Jul 1993 20:07:28 +0000 (20:07 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 4 Jul 1993 20:07:28 +0000 (20:07 +0000)
bison.simple
src/bison.s1
src/bison.simple

index d8b1634028ac9b5bc00b4baed6d077de5426eb89..49c8b857e6bf338946d84be678a0220786c9248b 100644 (file)
@@ -442,7 +442,8 @@ yydefault:
 /* Do a reduction.  yyn is the number of a rule to reduce with.  */
 yyreduce:
   yylen = yyr2[yyn];
-  yyval = yyvsp[1-yylen]; /* implement default value of the action */
+  if (yylen > 0)
+    yyval = yyvsp[1-yylen]; /* implement default value of the action */
 
 #if YYDEBUG != 0
   if (yydebug)
@@ -460,7 +461,7 @@ yyreduce:
 #endif
 
 $   /* the action file gets copied in in place of this dollarsign */
-#line 464 "bison.simple"
+#line 465 "bison.simple"
 \f
   yyvsp -= yylen;
   yyssp -= yylen;
index d8b1634028ac9b5bc00b4baed6d077de5426eb89..49c8b857e6bf338946d84be678a0220786c9248b 100644 (file)
@@ -442,7 +442,8 @@ yydefault:
 /* Do a reduction.  yyn is the number of a rule to reduce with.  */
 yyreduce:
   yylen = yyr2[yyn];
-  yyval = yyvsp[1-yylen]; /* implement default value of the action */
+  if (yylen > 0)
+    yyval = yyvsp[1-yylen]; /* implement default value of the action */
 
 #if YYDEBUG != 0
   if (yydebug)
@@ -460,7 +461,7 @@ yyreduce:
 #endif
 
 $   /* the action file gets copied in in place of this dollarsign */
-#line 464 "bison.simple"
+#line 465 "bison.simple"
 \f
   yyvsp -= yylen;
   yyssp -= yylen;
index d8b1634028ac9b5bc00b4baed6d077de5426eb89..49c8b857e6bf338946d84be678a0220786c9248b 100644 (file)
@@ -442,7 +442,8 @@ yydefault:
 /* Do a reduction.  yyn is the number of a rule to reduce with.  */
 yyreduce:
   yylen = yyr2[yyn];
-  yyval = yyvsp[1-yylen]; /* implement default value of the action */
+  if (yylen > 0)
+    yyval = yyvsp[1-yylen]; /* implement default value of the action */
 
 #if YYDEBUG != 0
   if (yydebug)
@@ -460,7 +461,7 @@ yyreduce:
 #endif
 
 $   /* the action file gets copied in in place of this dollarsign */
-#line 464 "bison.simple"
+#line 465 "bison.simple"
 \f
   yyvsp -= yylen;
   yyssp -= yylen;