mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 16:23:04 +00:00
glr2.cc: get rid of the yyerror scaffolding
The yyerror stand-alone function was used to bounce from glr.c's call to yyerror to glr.cc's parser.error. Now that glr.c is out of the way, just directly use parser.error. * data/skeletons/glr2.cc (yyerror): Remove. Adjust callers. (b4_yyerror_args, b4_lyyerror_args, b4_pure_formals): Remove. Now unused.
This commit is contained in:
7
TODO
7
TODO
@@ -187,6 +187,13 @@ It should be a member of the parser object, see lalr1.cc. Let the parser
|
||||
object decide what the debug stream is, rather than open coding std::cerr.
|
||||
And use YYCDEBUG rather than YY_DEBUG_STREAM.
|
||||
|
||||
*** Avoid pointers
|
||||
There are many places where pointers should be replaced with references.
|
||||
|
||||
*** Use proper type names
|
||||
Don't use YYSTYPE and YYLTYPE but parser::semantic_type and
|
||||
parser::location_type. Undefine YYSTYPE and YYLTYPE.
|
||||
|
||||
* Chains
|
||||
** Unit rules / Injection rules (Akim Demaille)
|
||||
Maybe we could expand unit rules (or "injections", see
|
||||
|
||||
Reference in New Issue
Block a user