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
Definition MismatchedTokenException.hpp:22
std::string tokenText
taken from node or token object
Definition MismatchedTokenException.hpp:97
const int numTokens
Max number of tokens in tokenNames.
Definition MismatchedTokenException.hpp:135
const RefToken token
The token that was encountered.
Definition MismatchedTokenException.hpp:93
int mismatchType
One of the above.
Definition MismatchedTokenException.hpp:120
const char *const * tokenNames
Token names array for formatting.
Definition MismatchedTokenException.hpp:133
~MismatchedTokenException()
Definition MismatchedTokenException.hpp:84
const RefAST node
The offending AST node if tree walking.
Definition MismatchedTokenException.hpp:95
int expecting
For TOKEN/NOT_TOKEN and RANGE/NOT_RANGE.
Definition MismatchedTokenException.hpp:123
int upper
For RANGE/NOT_RANGE (expecting is lower bound of range)
Definition MismatchedTokenException.hpp:126
BitSet set
For SET/NOT_SET.
Definition MismatchedTokenException.hpp:129
Definition RecognitionException.hpp:19
#define ANTLR_USE_NAMESPACE(_x_)
Definition config.hpp:18
#define ANTLR_API
Definition config.hpp:22
Definition ANTLRException.hpp:15