mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
java: don't expose the Context's members
* data/skeletons/lalr1.java (Context): Make data members private. (Context.getLocation): New. * examples/java/calc/Calc.y, tests/java.at, tests/local.at: Adjust.
This commit is contained in:
@@ -935,7 +935,7 @@ m4_define([AT_YYERROR_DEFINE(java)],
|
||||
{
|
||||
int[] arg = new int[ctx.yyntokens];
|
||||
int n = ctx.yysyntaxErrorArguments (arg, ctx.yyntokens);
|
||||
System.err.print (]AT_LOCATION_IF([[ctx.yylocation + ": "]]
|
||||
System.err.print (]AT_LOCATION_IF([[ctx.getLocation () + ": "]]
|
||||
+ )["syntax error on token @<:@" + ctx.yysymbolName (arg[0]) + "@:>@");
|
||||
if (1 < n)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user