mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
lalr1.cc: fix LAC support
* data/skeletons/lalr1.cc (ctor): Initialize yy_lac_established_. This is quite painful to write, and ugly to read.
This commit is contained in:
@@ -576,12 +576,14 @@ m4_if(b4_prefix, [yy], [],
|
|||||||
]])[
|
]])[
|
||||||
|
|
||||||
/// Build a parser object.
|
/// Build a parser object.
|
||||||
]b4_parser_class::b4_parser_class[ (]b4_parse_param_decl[)]m4_ifset([b4_parse_param], [
|
]b4_parser_class::b4_parser_class[ (]b4_parse_param_decl[)
|
||||||
:])[
|
|
||||||
#if ]b4_api_PREFIX[DEBUG
|
#if ]b4_api_PREFIX[DEBUG
|
||||||
]m4_ifset([b4_parse_param], [ ], [ :])[yydebug_ (false),
|
: yydebug_ (false),
|
||||||
yycdebug_ (&std::cerr)]m4_ifset([b4_parse_param], [,])[
|
yycdebug_ (&std::cerr)]b4_lac_if([,], [m4_ifset([b4_parse_param], [,])])[
|
||||||
#endif]b4_parse_param_cons[
|
#else
|
||||||
|
]b4_lac_if([ :], [m4_ifset([b4_parse_param], [ :])])[
|
||||||
|
#endif]b4_lac_if([[
|
||||||
|
yy_lac_established_ (false)]m4_ifset([b4_parse_param], [,])])[]b4_parse_param_cons[
|
||||||
{}
|
{}
|
||||||
|
|
||||||
]b4_parser_class::~b4_parser_class[ ()
|
]b4_parser_class::~b4_parser_class[ ()
|
||||||
|
|||||||
Reference in New Issue
Block a user