]> git.saurik.com Git - bison.git/commitdiff
* data/glr.c (yy_reduce_print): Fix the $ number.
authorAkim Demaille <akim@epita.fr>
Mon, 14 Nov 2005 15:33:18 +0000 (15:33 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 14 Nov 2005 15:33:18 +0000 (15:33 +0000)
ChangeLog
data/glr.c

index e801e06f49dbc6969954f20922e8efdf48a7ae7a..3d44d8997e17388994707bfa48bc5b6af6e8b52e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-14  Akim Demaille  <akim@epita.fr>
+
+       * data/glr.c (yy_reduce_print): Fix the $ number.
+
 2005-11-14  Akim Demaille  <akim@epita.fr>
 
        "Use" parse parameters.
 2005-11-14  Akim Demaille  <akim@epita.fr>
 
        "Use" parse parameters.
index 626af41d522f9c10b8f9b9fffba80cfc88717896..f11eccdc4dcc17189d7a9c2b0b55617c28ddd40b 100644 (file)
@@ -1386,7 +1386,7 @@ yy_reduce_print (yyGLRStack* yystack, size_t yyk, yyRuleNum yyrule,
   //for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
   for (yyi = 0; yyi < yynrhs; yyi++)
     {
   //for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
   for (yyi = 0; yyi < yynrhs; yyi++)
     {
-      fprintf (stderr, "   $%d = ", yyi);
+      fprintf (stderr, "   $%d = ", yyi + 1);
       yysymprint (stderr, yyrhs[yyprhs[yyrule] + yyi],
                   &]b4_rhs_value(yynrhs, yyi)[
                   ]b4_location_if([, &]b4_rhs_location(yynrhs, yyi))[]dnl
       yysymprint (stderr, yyrhs[yyprhs[yyrule] + yyi],
                   &]b4_rhs_value(yynrhs, yyi)[
                   ]b4_location_if([, &]b4_rhs_location(yynrhs, yyi))[]dnl