d: change the name of the custom error message function to reportSyntaxError

Changed from syntax_error to reportSyntaxError to be similar to the Java parser.

* data/skeletons/lalr1.d: Change the function name.
* doc/bison.texi: Document it.
* tests/local.at: Adjust.
This commit is contained in:
Adela Vais
2020-11-12 13:43:52 +02:00
committed by Akim Demaille
parent 5945da031e
commit 0e51f6146a
3 changed files with 5 additions and 5 deletions

View File

@@ -84,7 +84,7 @@ public interface Lexer
*
* @@param ctx The context of the error.
*/
void syntax_error(]b4_parser_class[.Context ctx);
void reportSyntaxError(]b4_parser_class[.Context ctx);
]])[
}
@@ -675,7 +675,7 @@ m4_popdef([b4_at_dollar])])dnl
private final void yyreportSyntaxError(Context yyctx)
{]b4_parse_error_bmatch(
[custom], [[
yylexer.syntax_error(yyctx);]],
yylexer.reportSyntaxError(yyctx);]],
[detailed\|verbose], [[
if (yyctx.getToken() != ]b4_symbol(empty, kind)[)
{