mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
glr2.cc: fork glr.cc to a c++ version
This is a fork of glr.cc to be c++-first instead of a wrapper around glr.c. * data/skeletons/glr2.cc: New. * data/skeletons/bison.m4, data/skeletons/c++.m4: Adjust. * data/skeletons/c.m4 (b4_user_args_no_comma): New. * src/reader.c (grammar_rule_check_and_complete): glr2.cc is C++. * tests/actions.at, tests/c++.at, tests/calc.at, tests/conflicts.at, * tests/input.at, tests/local.at, tests/regression.at, tests/scanner.at, * tests/synclines.at, tests/types.at: Also check glr2.cc.
This commit is contained in:
committed by
Akim Demaille
parent
a1b7fef045
commit
ef09bf065a
@@ -297,6 +297,7 @@ grammar_rule_check_and_complete (symbol_list *r)
|
||||
const bool is_cxx =
|
||||
STREQ (language->language, "c++")
|
||||
|| (skeleton && (STREQ (skeleton, "glr.cc")
|
||||
|| STREQ (skeleton, "glr2.cc")
|
||||
|| STREQ (skeleton, "lalr1.cc")));
|
||||
if (is_cxx)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user