antlr4ng
Version:
Alternative JavaScript/TypeScript runtime for ANTLR4
15 lines (14 loc) • 619 B
TypeScript
import { Parser } from "./Parser.js";
import { RecognitionException } from "./RecognitionException.js";
/**
* A semantic predicate failed during validation. Validation of predicates
* occurs when normally parsing the alternative just like matching a token.
* Disambiguating predicate evaluation occurs when we test a predicate during
* prediction.
*/
export declare class FailedPredicateException extends RecognitionException {
readonly ruleIndex: number;
readonly predicateIndex: number;
readonly predicate?: string;
constructor(recognizer: Parser, predicate?: string, message?: string | null);
}