mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user