* data/lalr1.cc (LocationStack, LocationType, RhsNumberType)
(SemanticStack, SemanticType, StateStack, StateType)
(TokenNumberType, Stack, Slice, Traits, Parser::location)
(Parser::value): Rename as...
(location_stack, location_type, rhs_number_type, semantic_stack)
(semantic_type, state_stack, state_type, token_number_type, stack)
(slice, traits, parser::yylloc, parser::yylval): these.
* tests/calc.at, tests/regression.at, tests/actions.at: Adjust.
+2004-12-20 Akim Demaille <akim@epita.fr>
+
+ Use more STL like names: my_class instead of MyClass.
+
+ * data/lalr1.cc (LocationStack, LocationType, RhsNumberType)
+ (SemanticStack, SemanticType, StateStack, StateType)
+ (TokenNumberType, Stack, Slice, Traits, Parser::location)
+ (Parser::value): Rename as...
+ (location_stack, location_type, rhs_number_type, semantic_stack)
+ (semantic_type, state_stack, state_type, token_number_type, stack)
+ (slice, traits, parser::yylloc, parser::yylval): these.
+
+ * tests/calc.at, tests/regression.at, tests/actions.at: Adjust.
+
2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
* data/glr.c (YYLLOC_DEFAULT): Use GNU spacing conventions.
2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
* data/glr.c (YYLLOC_DEFAULT): Use GNU spacing conventions.
## Default values. ##
## ---------------- ##
## Default values. ##
## ---------------- ##
-# Default Parser class name.
-m4_define_default([b4_parser_class_name], [Parser])
+# Default parser class name.
+m4_define_default([b4_parser_class_name], [parser])
m4_define([b4_rhs_value],
[(yysemantic_stack_@{m4_eval([$1 - $2])@}m4_ifval([$3], [.$3]))])
m4_define([b4_rhs_value],
[(yysemantic_stack_@{m4_eval([$1 - $2])@}m4_ifval([$3], [.$3]))])
-m4_define_default([b4_location_type], [Location])
+m4_define_default([b4_location_type], [location])
# b4_lhs_location()
# -----------------
# b4_lhs_location()
# -----------------
class ]b4_parser_class_name[;
template <typename P>
class ]b4_parser_class_name[;
template <typename P>
- struct Traits<]b4_parser_class_name[>
+ struct traits<]b4_parser_class_name[>
- typedef ]b4_int_type_for([b4_translate])[ TokenNumberType;
- typedef ]b4_int_type_for([b4_rhs])[ RhsNumberType;
- typedef int StateType;
- typedef YYSTYPE SemanticType;
- typedef ]b4_location_type[ LocationType;
+ typedef ]b4_int_type_for([b4_translate])[ token_number_type;
+ typedef ]b4_int_type_for([b4_rhs])[ rhs_number_type;
+ typedef int state_type;
+ typedef YYSTYPE semantic_type;
+ typedef ]b4_location_type[ location_type;
{
public:
/// Internal symbol numbers.
{
public:
/// Internal symbol numbers.
- typedef Traits<]b4_parser_class_name[>::TokenNumberType TokenNumberType;
+ typedef traits<]b4_parser_class_name[>::token_number_type token_number_type;
/// A type to store symbol numbers and -1.
/// A type to store symbol numbers and -1.
- typedef Traits<]b4_parser_class_name[>::RhsNumberType RhsNumberType;
+ typedef traits<]b4_parser_class_name[>::rhs_number_type rhs_number_type;
- typedef Traits<]b4_parser_class_name[>::StateType StateType;
+ typedef traits<]b4_parser_class_name[>::state_type state_type;
/// Symbol semantic values.
/// Symbol semantic values.
- typedef Traits<]b4_parser_class_name[>::SemanticType SemanticType;
+ typedef traits<]b4_parser_class_name[>::semantic_type semantic_type;
- typedef Traits<]b4_parser_class_name[>::LocationType LocationType;
+ typedef traits<]b4_parser_class_name[>::location_type location_type;
- typedef Stack<StateType> StateStack;
+ typedef stack<state_type> state_stack;
/// Semantic value stack type.
/// Semantic value stack type.
- typedef Stack<SemanticType> SemanticStack;
- /// Location stack type.
- typedef Stack<LocationType> LocationStack;
+ typedef stack<semantic_type> semantic_stack;
+ /// location stack type.
+ typedef stack<location_type> location_stack;
/// Build a parser object.
]b4_parser_class_name[ (]b4_parse_param_decl[) :
/// Build a parser object.
]b4_parser_class_name[ (]b4_parse_param_decl[) :
/// Report a syntax error.
/// \param loc where the syntax error is found.
/// \param msg a description of the syntax error.
/// Report a syntax error.
/// \param loc where the syntax error is found.
/// \param msg a description of the syntax error.
- virtual void error (const LocationType& loc, const std::string& msg);
+ virtual void error (const location_type& loc, const std::string& msg);
/// Generate an error message, and invoke error.
virtual void yyreport_syntax_error_ ();
/// Generate an error message, and invoke error.
virtual void yyreport_syntax_error_ ();
/// \param yyvaluep Its semantic value.
/// \param yylocationp Its location.
virtual void yysymprint_ (int yytype,
/// \param yyvaluep Its semantic value.
/// \param yylocationp Its location.
virtual void yysymprint_ (int yytype,
- const SemanticType* yyvaluep,
- const LocationType* yylocationp);
+ const semantic_type* yyvaluep,
+ const location_type* yylocationp);
#endif /* ! YYDEBUG */
/// The state stack.
#endif /* ! YYDEBUG */
/// The state stack.
- StateStack yystate_stack_;
+ state_stack yystate_stack_;
/// The semantic value stack.
/// The semantic value stack.
- SemanticStack yysemantic_stack_;
+ semantic_stack yysemantic_stack_;
- LocationStack yylocation_stack_;
+ location_stack yylocation_stack_;
/* Tables. */
/// For a state, the index in \a yytable_ of its portion.
/* Tables. */
/// For a state, the index in \a yytable_ of its portion.
#if YYDEBUG
/// A `-1'-separated list of the rules' RHS.
#if YYDEBUG
/// A `-1'-separated list of the rules' RHS.
- static const RhsNumberType yyrhs_[];
+ static const rhs_number_type yyrhs_[];
/// For each rule, the index of the first RHS symbol in \a yyrhs_.
static const ]b4_int_type_for([b4_prhs])[ yyprhs_[];
/// For each rule, its source line number.
/// For each rule, the index of the first RHS symbol in \a yyrhs_.
static const ]b4_int_type_for([b4_prhs])[ yyprhs_[];
/// For each rule, its source line number.
#endif
/// Convert a scanner token number to a symbol number.
#endif
/// Convert a scanner token number to a symbol number.
- inline TokenNumberType yytranslate_ (int token);
+ inline token_number_type yytranslate_ (int token);
/// \brief Reclaim the memory associated to a symbol.
/// \param yymsg Why this token is reclaimed.
/// \brief Reclaim the memory associated to a symbol.
/// \param yymsg Why this token is reclaimed.
/// \param yylocationp Its location.
inline void yydestruct_ (const char* yymsg,
int yytype,
/// \param yylocationp Its location.
inline void yydestruct_ (const char* yymsg,
int yytype,
- SemanticType* yyvaluep,
- LocationType* yylocationp);
+ semantic_type* yyvaluep,
+ location_type* yylocationp);
/// Pop \a n symbols the three stacks.
inline void yypop_ (unsigned int n = 1);
/// Pop \a n symbols the three stacks.
inline void yypop_ (unsigned int n = 1);
static const int yyerrcode_;
static const int yyntokens_;
static const unsigned int yyuser_token_number_max_;
static const int yyerrcode_;
static const int yyntokens_;
static const unsigned int yyuser_token_number_max_;
- static const TokenNumberType yyundef_token_;
+ static const token_number_type yyundef_token_;
int yyilooka_;
/// Semantic value of the look-ahead.
int yyilooka_;
/// Semantic value of the look-ahead.
/// Location of the look-ahead.
/// Location of the look-ahead.
/// The locations where the error started and ended.
/// The locations where the error started and ended.
- Location yyerror_range_[2];
+ location yyerror_range_[2];
]b4_parse_param_vars[
};
}
]b4_parse_param_vars[
};
}
void
yy::]b4_parser_class_name[::yysymprint_ (int yytype,
void
yy::]b4_parser_class_name[::yysymprint_ (int yytype,
- const SemanticType* yyvaluep, const LocationType* yylocationp)
+ const semantic_type* yyvaluep, const location_type* yylocationp)
{
/* Pacify ``unused variable'' warnings. */
(void) yyvaluep;
{
/* Pacify ``unused variable'' warnings. */
(void) yyvaluep;
void
yy::]b4_parser_class_name[::yydestruct_ (const char* yymsg,
void
yy::]b4_parser_class_name[::yydestruct_ (const char* yymsg,
- int yytype, SemanticType* yyvaluep, LocationType* yylocationp)
+ int yytype, semantic_type* yyvaluep, location_type* yylocationp)
{
/* Pacify ``unused variable'' warnings. */
(void) yyvaluep;
{
/* Pacify ``unused variable'' warnings. */
(void) yyvaluep;
yylooka_ = yyempty_;
]m4_ifdef([b4_initial_action], [
yylooka_ = yyempty_;
]m4_ifdef([b4_initial_action], [
-m4_pushdef([b4_at_dollar], [location])dnl
-m4_pushdef([b4_dollar_dollar], [value])dnl
+m4_pushdef([b4_at_dollar], [yylloc])dnl
+m4_pushdef([b4_dollar_dollar], [yylval])dnl
/* User initialization code. */
b4_initial_action
m4_popdef([b4_dollar_dollar])dnl
/* User initialization code. */
b4_initial_action
m4_popdef([b4_dollar_dollar])dnl
yynewstate, since the latter expects the semantical and the
location values to have been already stored, initialize these
stacks with a primary value. */
yynewstate, since the latter expects the semantical and the
location values to have been already stored, initialize these
stacks with a primary value. */
- yystate_stack_ = StateStack (0);
- yysemantic_stack_ = SemanticStack (0);
- yylocation_stack_ = LocationStack (0);
- yysemantic_stack_.push (value);
- yylocation_stack_.push (location);
+ yystate_stack_ = state_stack (0);
+ yysemantic_stack_ = semantic_stack (0);
+ yylocation_stack_ = location_stack (0);
+ yysemantic_stack_.push (yylval);
+ yylocation_stack_.push (yylloc);
/* New state. */
yynewstate:
/* New state. */
yynewstate:
else
{
yyilooka_ = yytranslate_ (yylooka_);
else
{
yyilooka_ = yytranslate_ (yylooka_);
- YY_SYMBOL_PRINT ("Next token is", yyilooka_, &value, &location);
+ YY_SYMBOL_PRINT ("Next token is", yyilooka_, &yylval, &yylloc);
}
/* If the proper action on seeing token ILOOKA_ is to reduce or to
}
/* If the proper action on seeing token ILOOKA_ is to reduce or to
goto yyacceptlab;
/* Shift the look-ahead token. */
goto yyacceptlab;
/* Shift the look-ahead token. */
- YY_SYMBOL_PRINT ("Shifting", yyilooka_, &value, &location);
+ YY_SYMBOL_PRINT ("Shifting", yyilooka_, &yylval, &yylloc);
/* Discard the token being shifted unless it is eof. */
if (yylooka_ != yyeof_)
yylooka_ = yyempty_;
/* Discard the token being shifted unless it is eof. */
if (yylooka_ != yyeof_)
yylooka_ = yyempty_;
- yysemantic_stack_.push (value);
- yylocation_stack_.push (location);
+ yysemantic_stack_.push (yylval);
+ yylocation_stack_.push (yylloc);
/* Count tokens shifted since error; after three, turn off error
status. */
/* Count tokens shifted since error; after three, turn off error
status. */
yyval = yysemantic_stack_[0];
{
yyval = yysemantic_stack_[0];
{
- Slice<LocationType, LocationStack> slice (yylocation_stack_, yylen_);
+ slice<location_type, location_stack> slice (yylocation_stack_, yylen_);
YYLLOC_DEFAULT (yyloc, slice, yylen_);
}
YY_REDUCE_PRINT (yyn_);
YYLLOC_DEFAULT (yyloc, slice, yylen_);
}
YY_REDUCE_PRINT (yyn_);
/* If not already recovering from an error, report this error. */
yyreport_syntax_error_ ();
/* If not already recovering from an error, report this error. */
yyreport_syntax_error_ ();
- yyerror_range_[0] = location;
+ yyerror_range_[0] = yylloc;
if (yyerrstatus_ == 3)
{
/* If just tried and failed to reuse look-ahead token after an
if (yyerrstatus_ == 3)
{
/* If just tried and failed to reuse look-ahead token after an
- yydestruct_ ("Error: discarding", yyilooka_, &value, &location);
+ yydestruct_ ("Error: discarding", yyilooka_, &yylval, &yylloc);
if (yyn_ == yyfinal_)
goto yyacceptlab;
if (yyn_ == yyfinal_)
goto yyacceptlab;
- yyerror_range_[1] = location;
- // Using LOCATION is tempting, but would change the location of
+ yyerror_range_[1] = yylloc;
+ // Using YYLLOC is tempting, but would change the location of
// the look-ahead. YYLOC is available though.
YYLLOC_DEFAULT (yyloc, yyerror_range_ - 1, 2);
// the look-ahead. YYLOC is available though.
YYLLOC_DEFAULT (yyloc, yyerror_range_ - 1, 2);
- yysemantic_stack_.push (value);
+ yysemantic_stack_.push (yylval);
yylocation_stack_.push (yyloc);
/* Shift the error token. */
yylocation_stack_.push (yyloc);
/* Shift the error token. */
/* Abort. */
yyabortlab:
/* Free the lookahead. */
/* Abort. */
yyabortlab:
/* Free the lookahead. */
- yydestruct_ ("Error: discarding lookahead", yyilooka_, &value, &location);
+ yydestruct_ ("Error: discarding lookahead", yyilooka_, &yylval, &yylloc);
yylooka_ = yyempty_;
return 1;
}
yylooka_ = yyempty_;
return 1;
}
{
YYCDEBUG << "Reading a token: ";
#if YYLSP_NEEDED
{
YYCDEBUG << "Reading a token: ";
#if YYLSP_NEEDED
- yylooka_ = yylex (&value, &location);
+ yylooka_ = yylex (&yylval, &yylloc);
- yylooka_ = yylex (&value);
+ yylooka_ = yylex (&yylval);
else
#endif
message = "syntax error";
else
#endif
message = "syntax error";
- error (location, message);
+ error (yylloc, message);
#if YYDEBUG
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
#if YYDEBUG
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
-const yy::]b4_parser_class_name[::RhsNumberType
+const yy::]b4_parser_class_name[::rhs_number_type
yy::]b4_parser_class_name[::yyrhs_[] =
{
]b4_rhs[
yy::]b4_parser_class_name[::yyrhs_[] =
{
]b4_rhs[
yy::]b4_parser_class_name[::yystack_print_ ()
{
*yycdebug_ << "Stack now";
yy::]b4_parser_class_name[::yystack_print_ ()
{
*yycdebug_ << "Stack now";
- for (StateStack::const_iterator i = yystate_stack_.begin ();
+ for (state_stack::const_iterator i = yystate_stack_.begin ();
i != yystate_stack_.end (); ++i)
*yycdebug_ << ' ' << *i;
*yycdebug_ << std::endl;
i != yystate_stack_.end (); ++i)
*yycdebug_ << ' ' << *i;
*yycdebug_ << std::endl;
#endif // YYDEBUG
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#endif // YYDEBUG
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
-yy::]b4_parser_class_name[::TokenNumberType
+yy::]b4_parser_class_name[::token_number_type
yy::]b4_parser_class_name[::yytranslate_ (int token)
{
static
yy::]b4_parser_class_name[::yytranslate_ (int token)
{
static
+ const token_number_type
translate_table[] =
{
]b4_translate[
translate_table[] =
{
]b4_translate[
const int yy::]b4_parser_class_name[::yyntokens_ = ]b4_tokens_number[;
const unsigned int yy::]b4_parser_class_name[::yyuser_token_number_max_ = ]b4_user_token_number_max[;
const int yy::]b4_parser_class_name[::yyntokens_ = ]b4_tokens_number[;
const unsigned int yy::]b4_parser_class_name[::yyuser_token_number_max_ = ]b4_user_token_number_max[;
-const yy::]b4_parser_class_name[::TokenNumberType yy::]b4_parser_class_name[::yyundef_token_ = ]b4_undef_token_number[;
+const yy::]b4_parser_class_name[::token_number_type yy::]b4_parser_class_name[::yyundef_token_ = ]b4_undef_token_number[;
]b4_epilogue
dnl
@output stack.hh
]b4_epilogue
dnl
@output stack.hh
-b4_copyright([Stack handling for Bison C++ parsers], [2002, 2003, 2004])[
+b4_copyright([stack handling for Bison C++ parsers], [2002, 2003, 2004])[
#ifndef BISON_STACK_HH
# define BISON_STACK_HH
#ifndef BISON_STACK_HH
# define BISON_STACK_HH
namespace yy
{
template <class T, class S = std::deque<T> >
namespace yy
{
template <class T, class S = std::deque<T> >
typedef typename S::reverse_iterator iterator;
typedef typename S::const_reverse_iterator const_iterator;
typedef typename S::reverse_iterator iterator;
typedef typename S::const_reverse_iterator const_iterator;
- Stack (unsigned int n) : seq_ (n)
+ stack (unsigned int n) : seq_ (n)
- template <class T, class S = Stack<T> >
- class Slice
+ template <class T, class S = stack<T> >
+ class slice
unsigned int range) : stack_ (stack),
range_ (range)
{
unsigned int range) : stack_ (stack),
range_ (range)
{
- ** Define the Location class.
+ ** Define the position class.
*/
#ifndef BISON_POSITION_HH
*/
#ifndef BISON_POSITION_HH
- /// Abstract a Position.
- class Position
+ /// Abstract a position.
+ class position
{
public:
/// Initial column number.
{
public:
/// Initial column number.
/** \name Ctor & dtor.
** \{ */
public:
/** \name Ctor & dtor.
** \{ */
public:
- /// Construct a Position.
- Position () :
+ /// Construct a position.
+ position () :
filename (),
line (initial_line),
column (initial_column)
filename (),
line (initial_line),
column (initial_column)
- /// Add and assign a Position.
- inline const Position&
- operator+= (Position& res, const int width)
+ /// Add and assign a position.
+ inline const position&
+ operator+= (position& res, const int width)
{
res.columns (width);
return res;
}
{
res.columns (width);
return res;
}
- /// Add two Position objects.
- inline const Position
- operator+ (const Position& begin, const int width)
+ /// Add two position objects.
+ inline const position
+ operator+ (const position& begin, const int width)
- /// Add and assign a Position.
- inline const Position&
- operator-= (Position& res, const int width)
+ /// Add and assign a position.
+ inline const position&
+ operator-= (position& res, const int width)
{
return res += -width;
}
{
return res += -width;
}
- /// Add two Position objects.
- inline const Position
- operator- (const Position& begin, const int width)
+ /// Add two position objects.
+ inline const position
+ operator- (const position& begin, const int width)
{
return begin + -width;
}
/** \brief Intercept output stream redirection.
** \param ostr the destination output stream
{
return begin + -width;
}
/** \brief Intercept output stream redirection.
** \param ostr the destination output stream
- ** \param pos a reference to the Position to redirect
+ ** \param pos a reference to the position to redirect
- operator<< (std::ostream& ostr, const Position& pos)
+ operator<< (std::ostream& ostr, const position& pos)
{
if (!pos.filename.empty ())
ostr << pos.filename << ':';
{
if (!pos.filename.empty ())
ostr << pos.filename << ':';
- ** Define the Location class.
+ ** Define the location class.
*/
#ifndef BISON_LOCATION_HH
*/
#ifndef BISON_LOCATION_HH
- /// Abstract a Location.
- class Location
+ /// Abstract a location.
+ class location
{
/** \name Ctor & dtor.
** \{ */
public:
{
/** \name Ctor & dtor.
** \{ */
public:
- /// Construct a Location.
- Location (void) :
+ /// Construct a location.
+ location (void) :
public:
/// Beginning of the located region.
public:
/// Beginning of the located region.
/// End of the located region.
/// End of the located region.
- /// Join two Location objects to create a Location.
- inline const Location operator+ (const Location& begin, const Location& end)
+ /// Join two location objects to create a location.
+ inline const location operator+ (const location& begin, const location& end)
res.end = end.end;
return res;
}
res.end = end.end;
return res;
}
- /// Add two Location objects.
- inline const Location operator+ (const Location& begin, unsigned int width)
+ /// Add two location objects.
+ inline const location operator+ (const location& begin, unsigned int width)
res.columns (width);
return res;
}
res.columns (width);
return res;
}
- /// Add and assign a Location.
- inline Location& operator+= (Location& res, unsigned int width)
+ /// Add and assign a location.
+ inline location& operator+= (location& res, unsigned int width)
{
res.columns (width);
return res;
{
res.columns (width);
return res;
/** \brief Intercept output stream redirection.
** \param ostr the destination output stream
/** \brief Intercept output stream redirection.
** \param ostr the destination output stream
- ** \param loc a reference to the Location to redirect
+ ** \param loc a reference to the location to redirect
**
** Avoid duplicate information.
*/
**
** Avoid duplicate information.
*/
- inline std::ostream& operator<< (std::ostream& ostr, const Location& loc)
+ inline std::ostream& operator<< (std::ostream& ostr, const location& loc)
- Position last = loc.end - 1;
+ position last = loc.end - 1;
ostr << loc.begin;
if (loc.begin.filename != last.filename)
ostr << '-' << last;
ostr << loc.begin;
if (loc.begin.filename != last.filename)
ostr << '-' << last;
-]AT_LALR1_CC_IF([typedef yy::Location YYLTYPE;
+]AT_LALR1_CC_IF([typedef yy::location YYLTYPE;
m4_ifval([$6], , [#define YYSTYPE int])])
[static int yylex (]AT_LEX_FORMALS[);
]AT_LALR1_CC_IF([], [static void yyerror (const char *msg);])
m4_ifval([$6], , [#define YYSTYPE int])])
[static int yylex (]AT_LEX_FORMALS[);
]AT_LALR1_CC_IF([], [static void yyerror (const char *msg);])
]AT_LALR1_CC_IF(
[/* A C++ error reporting function. */
void
]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)
{
printf ("%d-%d: %s\n", RANGE (l), m.c_str());
}
{
printf ("%d-%d: %s\n", RANGE (l), m.c_str());
}
parser.set_debug_level (yydebug);
return parser.parse ();
}
parser.set_debug_level (yydebug);
return parser.parse ();
}
%{
static int power (int base, int exponent);
%{
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. */
[/* yyerror receives the location if:
- %location & %pure & %glr
- %location & %pure & %yacc & %parse-param. */
]AT_LALR1_CC_IF(
[/* A C++ error reporting function. */
void
]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;
{
(void) l;
std::cerr << AT_LOCATION_IF([l << ": " << ])m << std::endl;
int
yyparse (AT_PARAM_IF([semantic_value *result, int *count]))
{
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 ();
}
parser.set_debug_level (!!YYDEBUG);
return parser.parse ();
}
AT_LALR1_CC_IF(
[/* A C++ error reporting function. */
void
AT_LALR1_CC_IF(
[/* A C++ error reporting function. */
void
-yy::Parser::error (const Location&, const std::string& m)
+yy::parser::error (const location&, const std::string& m)
{
std::cerr << m << std::endl;
}
int
{
std::cerr << m << std::endl;
}
int
parser.set_debug_level (!!YYDEBUG);
return parser.parse ();
}
parser.set_debug_level (!!YYDEBUG);
return parser.parse ();
}