* data/lalr1.cc: Extensive Doxygenation.

(error_): Rename as...
(error): this, since it is visible to the user.
Adjust callers.
(Parser::message): Now an automatic variable from...
(Parser::yyreport_syntax_error_): here.
* tests/actions.at, tests/calc.at, tests/regression.at: Adjust to
Parser::error.
* tests/input.at: Escape $.
This commit is contained in:
Akim Demaille
2004-12-17 15:24:32 +00:00
parent 76dcf299b7
commit efeed02327
7 changed files with 59 additions and 17 deletions

View File

@@ -311,9 +311,9 @@ yylex (]AT_LEX_FORMALS[)
]AT_LALR1_CC_IF(
[/* A C++ error reporting function. */
void
yy::Parser::error_ ()
yy::Parser::error (const Location& l, const std::string& m)
{
printf ("%d-%d: %s\n", RANGE (location), message.c_str());
printf ("%d-%d: %s\n", RANGE (l), m.c_str());
}
static bool yydebug;