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:
Valentin Tolmer
2020-09-03 18:24:33 +02:00
committed by Akim Demaille
parent 6e1d83c8a8
commit 38abe1e1b7
2 changed files with 155 additions and 182 deletions

8
TODO
View File

@@ -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)