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
140#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
ASTRefCount< AST > RefAST
Definition ASTRefCount.hpp:92
TokenRefCount< Token > RefToken
Definition TokenRefCount.hpp:92
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
std::string tokenName(int tokenType) const
Return token name for tokenType.
Definition MismatchedTokenException.cpp:175
static const int NOT_SET
Definition MismatchedTokenException.hpp:106
static const int NOT_TOKEN
Definition MismatchedTokenException.hpp:102
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
static const int TOKEN
Types of tokens.
Definition MismatchedTokenException.hpp:101
static const int NOT_RANGE
Definition MismatchedTokenException.hpp:104
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
MismatchedTokenException()
Definition MismatchedTokenException.cpp:15
static const int RANGE
Definition MismatchedTokenException.hpp:103
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
static const int SET
Definition MismatchedTokenException.hpp:105
RecognitionException()
Definition RecognitionException.cpp:15
#define ANTLR_USE_NAMESPACE(_x_)
Definition config.hpp:18
#define ANTLR_API
Definition config.hpp:22
Definition ANTLRException.hpp:15