mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-07-23 12:20:33 +00:00
small but important bugfixes for the Java skeleton
2008-10-08 Di-an Jan <[email protected]> (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.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2008-10-08 Di-an Jan <[email protected]> (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 <[email protected]>
|
2008-08-29 Akim Demaille <[email protected]>
|
||||||
|
|
||||||
Clarify UPDATED use.
|
Clarify UPDATED use.
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ Cris van Pelt [email protected]
|
|||||||
Daniel Hagerty [email protected]
|
Daniel Hagerty [email protected]
|
||||||
David J. MacKenzie [email protected]
|
David J. MacKenzie [email protected]
|
||||||
Derek M. Jones [email protected]
|
Derek M. Jones [email protected]
|
||||||
|
Di-an Jan [email protected]
|
||||||
Dick Streefland [email protected]
|
Dick Streefland [email protected]
|
||||||
Enrico Scholz [email protected]
|
Enrico Scholz [email protected]
|
||||||
Eric Blake [email protected]
|
Eric Blake [email protected]
|
||||||
|
|||||||
+2
-2
@@ -205,7 +205,7 @@ b4_lexer_if([[
|
|||||||
|
|
||||||
]b4_locations_if([
|
]b4_locations_if([
|
||||||
protected final void yyerror (String s) {
|
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) {
|
protected final void yyerror (]b4_position_type[ loc, String s) {
|
||||||
yylexer.yyerror (new ]b4_location_type[ (loc), s);
|
yylexer.yyerror (new ]b4_location_type[ (loc), s);
|
||||||
@@ -414,7 +414,7 @@ b4_lexer_if([[
|
|||||||
yycdebug (s + (yytype < yyntokens_ ? " token " : " nterm ")
|
yycdebug (s + (yytype < yyntokens_ ? " token " : " nterm ")
|
||||||
+ yytname_[yytype] + " ("]b4_locations_if([
|
+ yytname_[yytype] + " ("]b4_locations_if([
|
||||||
+ yylocationp + ": "])[
|
+ yylocationp + ": "])[
|
||||||
+ (yyvaluep == null ? "(null)" : yyvaluep) + ")");
|
+ (yyvaluep == null ? "(null)" : yyvaluep.toString ()) + ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user