* data/lalr1.cc (Parser:print_): Remove, use %printer instead.

* tests/regression.at (_AT_DATA_DANCER_Y): Adjust.
* tests/calc.at (_AT_DATA_CALC_Y): Ditto.
* tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Likewise.
This commit is contained in:
Akim Demaille
2004-11-17 14:19:37 +00:00
parent e268877e7e
commit 68e11668e4
5 changed files with 10 additions and 25 deletions

View File

@@ -1,3 +1,10 @@
2004-11-17 Akim Demaille <akim@epita.fr>
* data/lalr1.cc (Parser:print_): Remove, use %printer instead.
* tests/regression.at (_AT_DATA_DANCER_Y): Adjust.
* tests/calc.at (_AT_DATA_CALC_Y): Ditto.
* tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Likewise.
2004-10-28 Akim Demaille <akim@epita.fr>,
Alexandre Duret-Lutz <adl@gnu.org>

View File

@@ -263,7 +263,6 @@ namespace yy
virtual void lex_ ();
virtual void error_ ();
virtual void print_ ();
virtual void report_syntax_error_ ();
#if YYDEBUG
virtual void symprint_ (int yytype,

View File

@@ -309,14 +309,7 @@ yylex (]AT_LEX_FORMALS[)
}
]AT_LALR1_CC_IF(
[/* Currently, print_ is required in C++. */
void
yy::Parser::print_ ()
{
std::cerr << location;
}
/* A C++ error reporting function. */
[/* A C++ error reporting function. */
void
yy::Parser::error_ ()
{

View File

@@ -126,15 +126,7 @@ exp:
static FILE *yyin;
]AT_LALR1_CC_IF(
[/* Currently, print_ is required in C++. */
void
yy::Parser::print_ ()
{
AT_LOCATION_IF([
std::cerr << location;])
}
/* A C++ error reporting function. */
[/* A C++ error reporting function. */
void
yy::Parser::error_ ()
{

View File

@@ -725,13 +725,7 @@ member: STRING
;
%%
AT_LALR1_CC_IF(
[/* Currently, print_ is required in C++. */
void
yy::Parser::print_ ()
{
}
/* A C++ error reporting function. */
[/* A C++ error reporting function. */
void
yy::Parser::error_ ()
{