lalr1.cc: avoid using yysyntax_error_arguments

* data/skeletons/lalr1.cc (context::token): New.
* tests/local.at (yyreport_syntax_error): Don't use
yysyntax_error_arguments.
This commit is contained in:
Akim Demaille
2020-03-21 09:43:20 +01:00
parent 4192de1f41
commit 1edc98f793
2 changed files with 20 additions and 16 deletions

View File

@@ -239,7 +239,8 @@ m4_define([b4_shared_declarations],
class context
{
public:
context (const ]b4_parser_class[& yyparser, const symbol_type& yyla);]b4_locations_if([[
context (const ]b4_parser_class[& yyparser, const symbol_type& yyla);
int token () const { return yyla_.type_get (); }]b4_locations_if([[
const location_type& location () const { return yyla_.location; }
]])[
/// Put in YYARG at most YYARGN of the expected tokens, and return the