public class LL1Analyzer extends Object
Modifier and Type | Field and Description |
---|---|
ATN |
atn |
static int |
HIT_PRED
Special value added to the lookahead sets to indicate that we hit
a predicate during analysis if seeThruPreds==false.
|
Constructor and Description |
---|
LL1Analyzer(ATN atn) |
Modifier and Type | Method and Description |
---|---|
protected void |
_LOOK(ATNState s,
PredictionContext ctx,
IntervalSet look,
Set<ATNConfig> lookBusy,
boolean seeThruPreds,
boolean addEOF)
Compute set of tokens that can come next.
|
IntervalSet[] |
getDecisionLookahead(ATNState s)
From an ATN state, s, find the set of all labels reachable from s at
depth k.
|
IntervalSet |
LOOK(ATNState s,
RuleContext ctx)
Get lookahead, using
ctx if we reach end of rule. |
public static final int HIT_PRED
@Nullable public IntervalSet[] getDecisionLookahead(@Nullable ATNState s)
@NotNull public IntervalSet LOOK(@NotNull ATNState s, @Nullable RuleContext ctx)
protected void _LOOK(@NotNull ATNState s, @Nullable PredictionContext ctx, @NotNull IntervalSet look, @NotNull Set<ATNConfig> lookBusy, boolean seeThruPreds, boolean addEOF)
Copyright © 2012. All Rights Reserved.