1 #ifndef INC_MismatchedCharException_hpp__
2 #define INC_MismatchedCharException_hpp__
4 /* ANTLR Translator Generator
5 * Project led by Terence Parr at http://www.jGuru.com
6 * Software rights: http://www.antlr.org/license.html
8 * $Id: //depot/code/org.antlr/release/antlr-2.7.7/lib/cpp/antlr/MismatchedCharException.hpp#2 $
11 #include <antlr/config.hpp>
12 #include <antlr/RecognitionException.hpp>
13 #include <antlr/BitSet.hpp>
15 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
21 class ANTLR_API MismatchedCharException : public RecognitionException {
24 #ifndef NO_STATIC_CONSTS
25 static const int CHAR = 1;
26 static const int NOT_CHAR = 2;
27 static const int RANGE = 3;
28 static const int NOT_RANGE = 4;
29 static const int SET = 5;
30 static const int NOT_SET = 6;
46 // what was found on the input stream
49 // For CHAR/NOT_CHAR and RANGE/NOT_RANGE
52 // For RANGE/NOT_RANGE (expecting is lower bound of range)
59 // who knows...they may want to ask scanner questions
63 MismatchedCharException();
65 // Expected range / not range
66 MismatchedCharException(
74 // Expected token / not token
75 MismatchedCharException(
82 // Expected BitSet / not BitSet
83 MismatchedCharException(
90 ~MismatchedCharException() _NOEXCEPT {}
93 * Returns a clean error message (no line number/column information)
95 ANTLR_USE_NAMESPACE(std)string getMessage() const;
98 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
102 #endif //INC_MismatchedCharException_hpp__