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

@@ -891,7 +891,7 @@ public string transformToken(]AT_API_PREFIX[Parser.SymbolKind token)
return res;
}
public void syntax_error(]AT_API_PREFIX[Parser.Context ctx)
public void reportSyntaxError(]AT_API_PREFIX[Parser.Context ctx)
{
stderr.write(]AT_LOCATION_IF([[ctx.getLocation(), ": ",]])["syntax error");
{