1 #ifndef INC_MismatchedTokenException_hpp__ 2 #define INC_MismatchedTokenException_hpp__ 18 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 28 const char*
const* tokenNames_,
38 const char*
const* tokenNames_,
47 const char*
const* tokenNames_,
56 const char*
const* tokenNames_,
67 const char*
const* tokenNames_,
77 const char*
const* tokenNames_,
100 #ifndef NO_STATIC_CONSTS 101 static const int TOKEN = 1;
102 static const int NOT_TOKEN = 2;
103 static const int RANGE = 3;
104 static const int NOT_RANGE = 4;
105 static const int SET = 5;
106 static const int NOT_SET = 6;
140 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 144 #endif //INC_MismatchedTokenException_hpp__ Definition: ANTLRException.hpp:15
Definition: TokenRefCount.hpp:43
const RefAST node
The offending AST node if tree walking.
Definition: MismatchedTokenException.hpp:95
#define ANTLR_API
Definition: config.hpp:22
int expecting
For TOKEN/NOT_TOKEN and RANGE/NOT_RANGE.
Definition: MismatchedTokenException.hpp:123
const RefToken token
The token that was encountered.
Definition: MismatchedTokenException.hpp:93
std ::string tokenText
taken from node or token object
Definition: MismatchedTokenException.hpp:97
int mismatchType
One of the above.
Definition: MismatchedTokenException.hpp:120
Definition: ASTRefCount.hpp:43
Definition: BitSet.hpp:40
const int numTokens
Max number of tokens in tokenNames.
Definition: MismatchedTokenException.hpp:135
Definition: RecognitionException.hpp:18
Definition: MismatchedTokenException.hpp:22
int upper
For RANGE/NOT_RANGE (expecting is lower bound of range)
Definition: MismatchedTokenException.hpp:126
#define ANTLR_USE_NAMESPACE(_x_)
Definition: config.hpp:18
~MismatchedTokenException()
Definition: MismatchedTokenException.hpp:84
const char *const * tokenNames
Token names array for formatting.
Definition: MismatchedTokenException.hpp:133