mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
java: prefer null to YYSYMBOL_YYEMPTY
That's one nice benefit from using enums. * data/skeletons/lalr1.java (YYSYMBOL_YYEMPTY): No longer define it. Use 'null' instead. * examples/java/calc/Calc.y, tests/local.at: Adjust.
This commit is contained in:
@@ -129,7 +129,7 @@ class CalcLexer implements Calc.Lexer {
|
||||
}
|
||||
{
|
||||
Calc.SymbolKind lookahead = ctx.getToken ();
|
||||
if (lookahead != Calc.SymbolKind.YYSYMBOL_YYEMPTY)
|
||||
if (lookahead != null)
|
||||
System.err.print (" before " + ctx.yysymbolName (lookahead));
|
||||
}
|
||||
System.err.println ("");
|
||||
|
||||
Reference in New Issue
Block a user