antlr4ng
Version:
Alternative JavaScript/TypeScript runtime for ANTLR4
20 lines (19 loc) • 887 B
TypeScript
import { DecisionEventInfo } from "./DecisionEventInfo.js";
/**
* This class represents profiling event information for a context sensitivity.
* Context sensitivities are decisions where a particular input resulted in an
* SLL conflict, but LL prediction produced a single unique alternative.
*
* In some cases, the unique alternative identified by LL prediction is not
* equal to the minimum represented alternative in the conflicting SLL
* configuration set. Grammars and inputs which result in this scenario are
* unable to use {@link PredictionMode#SLL}, which in turn means they cannot use
* the two-stage parsing strategy to improve parsing performance for that
* input.
*
* @see ParserATNSimulator#reportContextSensitivity
* @see ANTLRErrorListener#reportContextSensitivity
*/
export interface ContextSensitivityInfo extends DecisionEventInfo {
fullCtx: true;
}