X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/9bec482e399ce3cfa2d395a294f4758726c13e40..99880de508cd84d0ed8fa23c24a7337c21f23059:/tests/calc.at diff --git a/tests/calc.at b/tests/calc.at index c921590f..5c0116b0 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -66,7 +66,7 @@ static int global_count = 0; %{ static int power (int base, int exponent); -]AT_LALR1_CC_IF([typedef yy::Location YYLTYPE;], +]AT_LALR1_CC_IF([typedef yy::location YYLTYPE;], [/* yyerror receives the location if: - %location & %pure & %glr - %location & %pure & %yacc & %parse-param. */ @@ -128,7 +128,7 @@ static FILE *yyin; ]AT_LALR1_CC_IF( [/* A C++ error reporting function. */ void -yy::Parser::error (const Location& l, const std::string& m) +yy::parser::error (const location& l, const std::string& m) { (void) l; std::cerr << AT_LOCATION_IF([l << ": " << ])m << std::endl; @@ -137,7 +137,7 @@ yy::Parser::error (const Location& l, const std::string& m) int yyparse (AT_PARAM_IF([semantic_value *result, int *count])) { - yy::Parser parser[]AT_PARAM_IF([ (result, count)]); + yy::parser parser[]AT_PARAM_IF([ (result, count)]); parser.set_debug_level (!!YYDEBUG); return parser.parse (); }