1#ifndef INC_TreeParser_hpp__
2#define INC_TreeParser_hpp__
19#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
52 if ( !
t ||
t==ASTNULL || !
b.member(
t->getType()) )
87 virtual void traceIndent();
101 if (!
t ||
t == ASTNULL ||
t->getType() != ttype )
108 if ( !
t ||
t == ASTNULL ||
t->getType() == ttype )
132 : parser(
p), text(
t), tree(
a)
151#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
Definition ASTFactory.hpp:36
Definition MismatchedTokenException.hpp:22
Definition RecognitionException.hpp:19
Definition RefCount.hpp:17
Definition TreeParser.hpp:125
~Tracer()
Definition TreeParser.hpp:136
Tracer(TreeParser *p, const char *t, RefAST a)
Definition TreeParser.hpp:131
const Tracer & operator=(const Tracer &)
const char * text
Definition TreeParser.hpp:128
RefAST tree
Definition TreeParser.hpp:129
TreeParser * parser
Definition TreeParser.hpp:127
Definition TreeParser.hpp:23
virtual void traceIn(const char *rname, RefAST t)
Definition TreeParser.cpp:47
virtual void matchNot(RefAST t, int ttype)
Definition TreeParser.hpp:106
TreeParser()
Definition TreeParser.hpp:25
virtual void setASTFactory(ASTFactory *factory)
Definition TreeParser.hpp:63
virtual const char *const * getTokenNames() const =0
Return an array of getNumTokens() token names.
virtual int getNumTokens() const =0
Return the number of tokens defined.
virtual void match(RefAST t, const BitSet &b)
Definition TreeParser.hpp:50
TreeParserSharedInputState inputState
The input state of this tree parser.
Definition TreeParser.hpp:117
virtual RefAST getAST()=0
Get the AST return value squirreled away in the parser.
TreeParser & operator=(const TreeParser &other)
virtual const char * getTokenName(int num) const =0
Get the name for token 'num'.
TreeParser(const TreeParser &other)
virtual ASTFactory * getASTFactory() const
Return pointer to ASTFactory.
Definition TreeParser.hpp:68
virtual void traceOut(const char *rname, RefAST t)
Definition TreeParser.cpp:58
int traceDepth
Definition TreeParser.hpp:120
static RefAST ASTNULL
Definition TreeParser.hpp:96
virtual void match(RefAST t, int ttype)
Definition TreeParser.hpp:99
virtual ~TreeParser()
Definition TreeParser.hpp:39
ASTFactory * astFactory
Definition TreeParser.hpp:114
TreeParser(const TreeParserSharedInputState &state)
Definition TreeParser.hpp:32
#define ANTLR_USE_NAMESPACE(_x_)
Definition config.hpp:18
#define ANTLR_API
Definition config.hpp:22
Definition ANTLRException.hpp:15