]> git.saurik.com Git - bison.git/blobdiff - tests/calc.at
Regenerate.
[bison.git] / tests / calc.at
index 1e9756f09e32b5588e2d8b75d23706ece4f51262..dedf568ed9a99f34899a1d18408d86c9b4e0b678 100644 (file)
@@ -73,7 +73,7 @@ static int global_count = 0;
 static int power (int base, int exponent);
 ]AT_SKEL_CC_IF(
 [#ifndef YYLTYPE
-# define YYLTYPE yy::location
+[#] define YYLTYPE AT_NAME_PREFIX::location
 #endif
 #define first_line   begin.line
 #define first_column begin.column
@@ -99,7 +99,7 @@ static void unget_char (]AT_LEX_PRE_FORMALS[ int c);
    are stored in a union, from which objects with constructors are
    excluded in C++. */
 %initial-action {
-  @$.begin.filename = @$.end.filename = 0;
+  @$.initialize (0);
 }
 ])[
 
@@ -152,7 +152,7 @@ static FILE *input;
 ]AT_SKEL_CC_IF(
 [/* A C++ error reporting function.  */
 void
-yy::parser::error (const location& l, const std::string& m)
+AT_NAME_PREFIX::parser::error (const location& l, const std::string& m)
 {
   (void) l;
   std::cerr << AT_LOCATION_IF([l << ": " << ])m << std::endl;
@@ -161,7 +161,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)]);
+  AT_NAME_PREFIX::parser parser[]AT_PARAM_IF([ (result, count)]);
   parser.set_debug_level (!!YYDEBUG);
   return parser.parse ();
 }