1#ifndef INC_CommonAST_hpp__
2#define INC_CommonAST_hpp__
14#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
22 , ttype(
Token::INVALID_TYPE )
29 , ttype( t->getType() )
30 , text( t->getText() )
83#ifdef ANTLR_SUPPORT_XML
106#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
ASTRefCount< AST > RefAST
Definition ASTRefCount.hpp:92
ASTRefCount< CommonAST > RefCommonAST
Definition CommonAST.hpp:104
virtual int getType() const =0
Get the token type for this node.
virtual std::string getText() const =0
Get the token text for this node.
Definition BaseAST.hpp:23
Definition CommonAST.hpp:18
CommonAST(const CommonAST &other)
Definition CommonAST.hpp:34
CommonAST(RefToken t)
Definition CommonAST.hpp:27
virtual void initialize(RefToken t)
Definition CommonAST.hpp:77
virtual const char * typeName(void) const
Return the class name.
Definition CommonAST.hpp:45
int ttype
Definition CommonAST.hpp:100
virtual std::string getText() const
Get the token text for this node.
Definition CommonAST.hpp:57
virtual ~CommonAST()
Definition CommonAST.hpp:41
virtual void setText(const std ::string &txt)
Set the token text for this node.
Definition CommonAST.hpp:87
CommonAST()
Definition CommonAST.hpp:20
virtual void setType(int type)
Set the token type for this node.
Definition CommonAST.hpp:91
static const char *const TYPE_NAME
Definition CommonAST.hpp:98
std::string text
Definition CommonAST.hpp:101
virtual void initialize(int t, const std ::string &txt)
Definition CommonAST.hpp:66
virtual RefAST clone(void) const
Clone this AST node.
Definition CommonAST.hpp:51
virtual int getType() const
Get the token type for this node.
Definition CommonAST.hpp:61
virtual void initialize(RefAST t)
Definition CommonAST.hpp:72
virtual std::string getText() const
Definition Token.cpp:25
virtual int getType() const
Definition Token.cpp:30
#define ANTLR_USE_NAMESPACE(_x_)
Definition config.hpp:18
#define ANTLR_API
Definition config.hpp:22
Definition ANTLRException.hpp:15