java: fix names

* data/skeletons/lalr1.java (yySymbolPrint): There are no pointers
here, remove the `p` suffix.
Use the appropriate type for locations.
This commit is contained in:
Akim Demaille
2020-04-13 17:04:34 +02:00
parent 258c2c967f
commit 8cedb4b40e

View File

@@ -502,14 +502,14 @@ import java.text.MessageFormat;
| Print this symbol on YYOUTPUT. | | Print this symbol on YYOUTPUT. |
`--------------------------------*/ `--------------------------------*/
private void yySymbolPrint (String s, SymbolKind yykind, private void yySymbolPrint(String s, SymbolKind yykind,
]b4_yystype[ yyvaluep]dnl ]b4_yystype[ yyvalue]b4_locations_if([, ]b4_location_type[ yylocation])[)
b4_locations_if([, Object yylocationp])[)
{ {
yycdebug (s + (yykind.getCode () < YYNTOKENS_ ? " token " : " nterm ") yycdebug (s
+ (yykind.getCode() < YYNTOKENS_ ? " token " : " nterm ")
+ yykind.getName() + " ("]b4_locations_if([ + yykind.getName() + " ("]b4_locations_if([
+ yylocationp + ": "])[ + yylocation + ": "])[
+ (yyvaluep == null ? "(null)" : yyvaluep.toString ()) + ")"); + (yyvalue == null ? "(null)" : yyvalue.toString()) + ")");
}]])[ }]])[
]b4_push_if([],[[ ]b4_push_if([],[[