mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
d, java: rename SymbolType as SymbolKind
See https://lists.gnu.org/r/bison-patches/2020-04/msg00031.html. * data/skeletons/d.m4, data/skeletons/lalr1.d, * data/skeletons/java.m4, data/skeletons/lalr1.java (SymbolType): Rename as... (SymbolKind): this. Adjust dependencies.
This commit is contained in:
@@ -981,12 +981,12 @@ m4_define([AT_YYERROR_DEFINE(java)],
|
||||
System.err.print (]AT_LOCATION_IF([[ctx.getLocation () + ": "]]
|
||||
+ )["syntax error");
|
||||
{
|
||||
Calc.SymbolType token = ctx.getToken ();
|
||||
if (token != Calc.SymbolType.YYSYMBOL_YYEMPTY)
|
||||
Calc.SymbolKind token = ctx.getToken ();
|
||||
if (token != Calc.SymbolKind.YYSYMBOL_YYEMPTY)
|
||||
System.err.print (" on token @<:@" + ctx.yysymbolName (token) + "@:>@");
|
||||
}
|
||||
{
|
||||
Calc.SymbolType[] arg = new Calc.SymbolType[ctx.NTOKENS];
|
||||
Calc.SymbolKind[] arg = new Calc.SymbolKind[ctx.NTOKENS];
|
||||
int n = ctx.yyexpectedTokens (arg, ctx.NTOKENS);
|
||||
if (0 < n)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user