java: use getExpectedTokens, not yyexpectedTokens

* data/skeletons/lalr1.java, examples/java/calc/Calc.y, tests/local.at:
here.
This commit is contained in:
Akim Demaille
2020-04-06 14:12:24 +02:00
parent 0f6ab8e692
commit 79f967ac0d
4 changed files with 12 additions and 7 deletions

View File

@@ -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]));