1#ifndef INC_MismatchedTokenException_hpp__
2#define INC_MismatchedTokenException_hpp__
11#include <antlr/config.hpp>
12#include <antlr/RecognitionException.hpp>
13#include <antlr/BitSet.hpp>
14#include <antlr/Token.hpp>
15#include <antlr/AST.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_,
62 const ANTLR_USE_NAMESPACE(std)
string& fileName_
67 const char*
const* tokenNames_,
72 const ANTLR_USE_NAMESPACE(std)
string& fileName_
77 const char*
const* tokenNames_,
82 const ANTLR_USE_NAMESPACE(std)
string& fileName_
89 ANTLR_USE_NAMESPACE(std)
string getMessage()
const;
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;
133 const char*
const* tokenNames;
137 ANTLR_USE_NAMESPACE(std)
string tokenName(
int tokenType)
const;
140#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
A BitSet to replace java.util.BitSet.
int mismatchType
One of the above.
const RefToken token
The token that was encountered.
int expecting
For TOKEN/NOT_TOKEN and RANGE/NOT_RANGE.
const RefAST node
The offending AST node if tree walking.
std::string tokenText
taken from node or token object
int upper
For RANGE/NOT_RANGE (expecting is lower bound of range)
BitSet set
For SET/NOT_SET.