1 #ifndef INC_Token_hpp__ 2 #define INC_Token_hpp__ 15 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 28 #ifndef NO_STATIC_CONSTS 29 static const int MIN_USER_TYPE = 4;
30 static const int NULL_TREE_LOOKAHEAD = 3;
31 static const int INVALID_TYPE = 0;
32 static const int EOF_TYPE = 1;
33 static const int SKIP = -1;
37 NULL_TREE_LOOKAHEAD = 3,
64 virtual int getColumn()
const;
65 virtual int getLine()
const;
68 virtual int getType()
const;
70 virtual void setColumn(
int c);
72 virtual void setLine(
int l);
74 virtual void setType(
int t);
76 virtual void setFilename(
const std::string& file );
95 #ifdef NEEDS_OPERATOR_LESS_THAN 100 return nullToken == l ? (
nullToken == r ? false : true ) : l->getType() < r->getType();
104 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 108 #endif //INC_Token_hpp__ Definition: ANTLRException.hpp:15
Token(int t)
Definition: Token.hpp:49
RefToken nullToken
Definition: Token.cpp:68
#define ANTLR_API
Definition: config.hpp:22
Definition: TokenRefCount.hpp:19
TokenRef & operator=(const TokenRef &)
virtual ~Token()
Definition: Token.hpp:60
int type
the type of the token
Definition: Token.hpp:84
TokenRef * ref
Definition: Token.hpp:82
#define ANTLR_USE_NAMESPACE(_x_)
Definition: config.hpp:18
Token(int t, const std ::string &txt)
Definition: Token.hpp:54
Token()
Definition: Token.hpp:44