1 /* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
2 * Use of this file is governed by the BSD 3-clause license that
3 * can be found in the LICENSE.txt file in the project root.
8 #include "RecognitionException.h"
9 #include "atn/ATNConfigSet.h"
13 class ANTLR4CPP_PUBLIC LexerNoViableAltException : public RecognitionException {
15 LexerNoViableAltException(Lexer *lexer, CharStream *input, size_t startIndex,
16 atn::ATNConfigSet *deadEndConfigs);
18 virtual size_t getStartIndex();
19 virtual atn::ATNConfigSet* getDeadEndConfigs();
20 virtual std::string toString();
23 /// Matching attempted at what input index?
24 const size_t _startIndex;
26 /// Which configurations did we try at input.index() that couldn't match input.LA(1)?
27 atn::ATNConfigSet *_deadEndConfigs;