Don't use locations in variant.yy.

* examples/variant.yy: Adjust to not using locations.
This commit is contained in:
Akim Demaille
2008-10-22 06:23:34 -05:00
parent b0d79ec65d
commit ff084799a3
2 changed files with 7 additions and 3 deletions

View File

@@ -114,10 +114,9 @@ yylex (yy::parser::semantic_type* yylval)
// Mandatory error function
void
yy::parser::error (const yy::parser::location_type& yylloc,
const std::string& message)
yy::parser::error (const std::string& message)
{
std::cerr << yylloc << ": " << message << std::endl;
std::cerr << message << std::endl;
}
int