small but important bugfixes for the Java skeleton
authorPaolo Bonzini <bonzini@gnu.org>
Thu, 9 Oct 2008 19:26:29 +0000 (21:26 +0200)
committerPaolo Bonzini <bonzini@gnu.org>
Thu, 9 Oct 2008 19:26:29 +0000 (21:26 +0200)
2008-10-08  Di-an Jan  <dianj@freeshell.org>  (tiny change)

Small but important bugfixes for the Java skeleton.
* data/lalr1.java (yyerror): Change Location to b4_location_type.
(yy_symbol_print): Call toString on yyvaluep.

ChangeLog
THANKS
data/lalr1.java

index 9fdee76..3c86081 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-08  Di-an Jan  <dianj@freeshell.org>  (tiny change)
+
+       Small but important bugfixes for the Java skeleton.
+       * data/lalr1.java (yyerror): Change Location to b4_location_type.
+       (yy_symbol_print): Call toString on yyvaluep.
+
 2008-08-29  Akim Demaille  <demaille@gostai.com>
 
        Clarify UPDATED use.
diff --git a/THANKS b/THANKS
index 3842f6c..7b16cf3 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -25,6 +25,7 @@ Cris van Pelt             cris@amf03054.office.wxs.nl
 Daniel Hagerty            hag@gnu.org
 David J. MacKenzie        djm@gnu.org
 Derek M. Jones            derek@knosof.co.uk
+Di-an Jan                 dianj@freeshell.org
 Dick Streefland           dick.streefland@altium.nl
 Enrico Scholz             enrico.scholz@informatik.tu-chemnitz.de
 Eric Blake                ebb9@byu.net
index 89d4b1e..df87d7b 100644 (file)
@@ -205,7 +205,7 @@ b4_lexer_if([[
 
   ]b4_locations_if([
   protected final void yyerror (String s) {
-    yylexer.yyerror ((Location)null, s);
+    yylexer.yyerror ((]b4_location_type[)null, s);
   }
   protected final void yyerror (]b4_position_type[ loc, String s) {
     yylexer.yyerror (new ]b4_location_type[ (loc), s);
@@ -414,7 +414,7 @@ b4_lexer_if([[
     yycdebug (s + (yytype < yyntokens_ ? " token " : " nterm ")
              + yytname_[yytype] + " ("]b4_locations_if([
              + yylocationp + ": "])[
-             + (yyvaluep == null ? "(null)" : yyvaluep) + ")");
+             + (yyvaluep == null ? "(null)" : yyvaluep.toString ()) + ")");
   }
 
   /**