mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-10-22 15:38:23 +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:
1 parent
0f6ab8e692
commit
79f967ac0d
4 files changed
+12
-7
No files matched your search
@@ -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