diff options
author | Akim Demaille <demaille@gostai.com> | 2008-10-22 06:23:34 -0500 |
---|---|---|
committer | Akim Demaille <demaille@gostai.com> | 2008-11-15 11:26:58 +0100 |
commit | ff084799a3846e53ec35ddc7ae1096aa87cfb858 (patch) | |
tree | a426b8c06b1ee0f2cc9f6a52146d2ca28d5bbd12 /examples | |
parent | b0d79ec65d0c92bd3afe377307206a48544285ca (diff) | |
download | bison-ff084799a3846e53ec35ddc7ae1096aa87cfb858.tar.gz |
Don't use locations in variant.yy.
* examples/variant.yy: Adjust to not using locations.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/variant.yy | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/variant.yy b/examples/variant.yy index 74fb1092..b1987cd2 100644 --- a/examples/variant.yy +++ b/examples/variant.yy @@ -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 |