mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
Don't use locations in variant.yy.
* examples/variant.yy: Adjust to not using locations.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user