mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
java: use getExpectedTokens, not yyexpectedTokens
* data/skeletons/lalr1.java, examples/java/calc/Calc.y, tests/local.at: here.
This commit is contained in:
@@ -122,7 +122,7 @@ class CalcLexer implements Calc.Lexer {
|
||||
{
|
||||
final int TOKENMAX = 10;
|
||||
Calc.SymbolKind[] arg = new Calc.SymbolKind[TOKENMAX];
|
||||
int n = ctx.yyexpectedTokens (arg, TOKENMAX);
|
||||
int n = ctx.getExpectedTokens (arg, TOKENMAX);
|
||||
for (int i = 0; i < n; ++i)
|
||||
System.err.print ((i == 0 ? ": expected " : " or ")
|
||||
+ ctx.yysymbolName (arg[i]));
|
||||
|
||||
Reference in New Issue
Block a user