| Modifier and Type | Field and Description |
|---|---|
| public final ATN | |
| public static final int | HIT_PRED
Special value added to the lookahead sets to indicate that we hit
a predicate during analysis if |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | _LOOK(ATNState
the ATN state. s, ATNState the ATN state to stop at. This can be a
stopState, PredictionContext BlockEndState to detect epsilon paths through a closure.The outer context, or ctx, IntervalSet PredictionContext#EMPTY_LOCAL if
the outer context should not be used.The result lookahead set. look, Set<ATNConfig> A set used for preventing epsilon closures in the ATN
from causing a stack overflow. Outside code should pass
lookBusy, BitSet new HashSet<ATNConfig> for this argument.A set used for preventing left recursion in the
ATN from causing a stack overflow. Outside code should pass
calledRuleStack, boolean new BitSet() for this argument.true to true semantic predicates as
implicitly true and "see through them", otherwise false
to treat semantic predicates as opaque and add HIT_PRED to the
result if one is encountered.Add addEOF)Token#EOF to the result if the end of the
outermost context is reached. This parameter has no effect if ctx
is PredictionContext#EMPTY_LOCAL.Compute set of tokens that can follow |
| public IntervalSet[] | Returns: the expected symbols for each outgoing transition ofs.the ATN state s)Calculates the SLL(1) expected lookahead set for each outgoing transition
of an |
| public IntervalSet | Returns: The set of tokens that can follows in the ATN in the
specified ctx.the ATN state s, PredictionContext the complete parser context, or ctx)null if the context
should be ignoredCompute set of tokens that can follow |
| public IntervalSet | Returns: The set of tokens that can follows in the ATN in the
specified ctx.the ATN state s, ATNState the ATN state to stop at. This can be a
stopState, PredictionContext BlockEndState to detect epsilon paths through a closure.the complete parser context, or ctx)null if the context
should be ignoredCompute set of tokens that can follow |
| atn | back to summary |
|---|---|
| public final ATN atn
| |
| HIT_PRED | back to summary |
|---|---|
| public static final int HIT_PRED Special value added to the lookahead sets to indicate that we hit
a predicate during analysis if | |
| LL1Analyzer | back to summary |
|---|---|
| public LL1Analyzer(ATN atn) | |
| _LOOK | back to summary |
|---|---|
| protected void _LOOK(ATNState s, ATNState stopState, PredictionContext ctx, IntervalSet look, Set<ATNConfig> lookBusy, BitSet calledRuleStack, boolean seeThruPreds, boolean addEOF) Compute set of tokens that can follow
If
| |
| getDecisionLookahead | back to summary |
|---|---|
| public IntervalSet[] getDecisionLookahead(ATNState s) Calculates the SLL(1) expected lookahead set for each outgoing transition
of an
| |
| LOOK | back to summary |
|---|---|
| public IntervalSet LOOK(ATNState s, PredictionContext ctx) Compute set of tokens that can follow If
| |
| LOOK | back to summary |
|---|---|
| public IntervalSet LOOK(ATNState s, ATNState stopState, PredictionContext ctx) Compute set of tokens that can follow If
| |