1
// Generated by Bisonc++ V2.4.7 on Fri, 04 Sep 2009 19:56:31 +0200
3
#ifndef ParserBase_h_included
4
#define ParserBase_h_included
10
namespace // anonymous
39
std::vector<size_t> d_stateStack__;
40
std::vector<STYPE__> d_valueStack__;
45
PARSE_ACCEPT__ = 0, // values used as parse()'s return values
50
DEFAULT_RECOVERY_MODE__,
55
size_t d_requiredTokens__;
56
size_t d_acceptedTokens__;
71
void pop__(size_t count = 1);
72
void push__(size_t nextState);
74
void pushToken__(int token);
75
void reduce__(PI__ const &productionInfo);
76
void errorVerbose__();
80
void setDebug(bool mode);
83
inline bool ParserBase::debug() const
88
inline void ParserBase::setDebug(bool mode)
93
inline void ParserBase::ABORT() const
98
inline void ParserBase::ACCEPT() const
100
throw PARSE_ACCEPT__;
103
inline void ParserBase::ERROR() const
105
throw UNEXPECTED_TOKEN__;
109
// As a convenience, when including ParserBase.h its symbols are available as
110
// symbols in the class Parser, too.
111
#define Parser ParserBase