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"
12 /// A semantic predicate failed during validation. Validation of predicates
13 /// occurs when normally parsing the alternative just like matching a token.
14 /// Disambiguating predicate evaluation occurs when we test a predicate during
16 class ANTLR4CPP_PUBLIC FailedPredicateException : public RecognitionException {
18 FailedPredicateException(Parser *recognizer);
19 FailedPredicateException(Parser *recognizer, const std::string &predicate);
20 FailedPredicateException(Parser *recognizer, const std::string &predicate, const std::string &message);
22 virtual size_t getRuleIndex();
23 virtual size_t getPredIndex();
24 virtual std::string getPredicate();
28 size_t _predicateIndex;
29 std::string _predicate;