1 #ifndef INC_TreeParser_hpp__
2 #define INC_TreeParser_hpp__
19 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
44 virtual RefAST getAST() = 0;
73 virtual const char* getTokenName(
int num)
const = 0;
75 virtual int getNumTokens()
const = 0;
77 virtual const char*
const* getTokenNames()
const = 0;
87 virtual void traceIndent();
88 virtual void traceIn(
const char* rname,
RefAST t);
89 virtual void traceOut(
const char* rname,
RefAST t);
99 virtual void match(
RefAST t,
int ttype)
101 if (!t || t == ASTNULL || t->
getType() != ttype )
106 virtual void matchNot(
RefAST t,
int ttype)
108 if ( !t || t == ASTNULL || t->
getType() == ttype )
132 : parser(p), text(t), tree(a)
134 parser->traceIn(text,tree);
138 parser->traceOut(text,tree);
151 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
155 #endif //INC_TreeParser_hpp__