mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 16:23:04 +00:00
glr2.cc: avoid warnings about printf and shadowing
* data/skeletons/glr2.cc: Migrate from using printf to std::cerr & co. Since the yyGLRStack has the user params, no need to pass them around.
This commit is contained in:
committed by
Akim Demaille
parent
6e1d83c8a8
commit
38abe1e1b7
8
TODO
8
TODO
@@ -178,6 +178,14 @@ We should use clean C++ code.
|
||||
StrongIndexAlias should be in the parser's namespace. Possibly even an
|
||||
inner class.
|
||||
|
||||
*** Coding style
|
||||
Move to our coding conventions. In particular names such as yy_glr_stack,
|
||||
not yyGLRStack.
|
||||
|
||||
*** yydebug
|
||||
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.
|
||||
|
||||
* Chains
|
||||
** Unit rules / Injection rules (Akim Demaille)
|
||||
|
||||
Reference in New Issue
Block a user