| Package | Description |
|---|---|
| org.antlr.v4.runtime.atn | |
| org.antlr.v4.runtime.dfa |
| Modifier and Type | Field and Description |
|---|---|
protected DFAState |
LexerATNSimulator.SimState.dfaState |
static DFAState |
ATNSimulator.ERROR
Must distinguish between missing edge and edge we know leads nowhere
|
DFAState |
SimulatorState.s0 |
| Modifier and Type | Method and Description |
|---|---|
protected DFAState |
ParserATNSimulator.addDFAContextState(DFA dfa,
ATNConfigSet configs,
int returnContext,
PredictionContextCache contextCache)
See comment on LexerInterpreter.addDFAState.
|
protected DFAState |
ParserATNSimulator.addDFAEdge(DFA dfa,
DFAState fromState,
int t,
IntegerList contextTransitions,
ATNConfigSet toConfigs,
PredictionContextCache contextCache) |
protected DFAState |
LexerATNSimulator.addDFAEdge(DFAState from,
int t,
ATNConfigSet q) |
protected DFAState |
LexerATNSimulator.addDFAState(ATNConfigSet configs)
Add a new DFA state if there isn't one with this set of
configurations already.
|
protected DFAState |
ParserATNSimulator.addDFAState(DFA dfa,
ATNConfigSet configs,
PredictionContextCache contextCache)
See comment on LexerInterpreter.addDFAState.
|
protected DFAState |
LexerATNSimulator.computeTargetState(CharStream input,
DFAState s,
int t)
Compute a target state for an edge in the DFA, and attempt to add the
computed state and corresponding edge to the DFA.
|
protected DFAState |
ParserATNSimulator.createDFAState(DFA dfa,
ATNConfigSet configs) |
protected DFAState |
ProfilingATNSimulator.getExistingTargetState(DFAState previousD,
int t) |
protected DFAState |
ParserATNSimulator.getExistingTargetState(DFAState s,
int t)
Get an existing target state for an edge in the DFA.
|
protected DFAState |
LexerATNSimulator.getExistingTargetState(DFAState s,
int t)
Get an existing target state for an edge in the DFA.
|
| Modifier and Type | Method and Description |
|---|---|
protected Tuple2<DFAState,ParserRuleContext> |
ProfilingATNSimulator.computeTargetState(DFA dfa,
DFAState s,
ParserRuleContext remainingGlobalContext,
int t,
boolean useContext,
PredictionContextCache contextCache) |
protected Tuple2<DFAState,ParserRuleContext> |
ParserATNSimulator.computeTargetState(DFA dfa,
DFAState s,
ParserRuleContext remainingGlobalContext,
int t,
boolean useContext,
PredictionContextCache contextCache)
Compute a target state for an edge in the DFA, and attempt to add the
computed state and corresponding edge to the DFA.
|
| Modifier and Type | Method and Description |
|---|---|
protected DFAState |
ParserATNSimulator.addDFAEdge(DFA dfa,
DFAState fromState,
int t,
IntegerList contextTransitions,
ATNConfigSet toConfigs,
PredictionContextCache contextCache) |
protected DFAState |
LexerATNSimulator.addDFAEdge(DFAState from,
int t,
ATNConfigSet q) |
protected void |
ParserATNSimulator.addDFAEdge(DFAState p,
int t,
DFAState q) |
protected void |
LexerATNSimulator.addDFAEdge(DFAState p,
int t,
DFAState q) |
protected void |
LexerATNSimulator.captureSimState(LexerATNSimulator.SimState settings,
CharStream input,
DFAState dfaState) |
protected DFAState |
LexerATNSimulator.computeTargetState(CharStream input,
DFAState s,
int t)
Compute a target state for an edge in the DFA, and attempt to add the
computed state and corresponding edge to the DFA.
|
protected Tuple2<DFAState,ParserRuleContext> |
ProfilingATNSimulator.computeTargetState(DFA dfa,
DFAState s,
ParserRuleContext remainingGlobalContext,
int t,
boolean useContext,
PredictionContextCache contextCache) |
protected Tuple2<DFAState,ParserRuleContext> |
ParserATNSimulator.computeTargetState(DFA dfa,
DFAState s,
ParserRuleContext remainingGlobalContext,
int t,
boolean useContext,
PredictionContextCache contextCache)
Compute a target state for an edge in the DFA, and attempt to add the
computed state and corresponding edge to the DFA.
|
protected int |
LexerATNSimulator.execATN(CharStream input,
DFAState ds0) |
protected DFAState |
ProfilingATNSimulator.getExistingTargetState(DFAState previousD,
int t) |
protected DFAState |
ParserATNSimulator.getExistingTargetState(DFAState s,
int t)
Get an existing target state for an edge in the DFA.
|
protected DFAState |
LexerATNSimulator.getExistingTargetState(DFAState s,
int t)
Get an existing target state for an edge in the DFA.
|
protected boolean |
ParserATNSimulator.isAcceptState(DFAState state,
boolean useContext)
Determines if a particular DFA state should be treated as an accept state
for the current prediction mode.
|
protected DFAState.PredPrediction[] |
ParserATNSimulator.predicateDFAState(DFAState D,
ATNConfigSet configs,
int nalts)
collect and set D's semantic context
|
protected void |
ProfilingATNSimulator.reportAmbiguity(DFA dfa,
DFAState D,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
ATNConfigSet configs) |
protected void |
ParserATNSimulator.reportAmbiguity(DFA dfa,
DFAState D,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
ATNConfigSet configs)
If context sensitive parsing, we know it's ambiguity not conflict
|
| Constructor and Description |
|---|
SimulatorState(ParserRuleContext outerContext,
DFAState s0,
boolean useContext,
ParserRuleContext remainingOuterContext) |
| Modifier and Type | Field and Description |
|---|---|
AtomicReference<DFAState> |
DFA.s0
This is the start state for SLL prediction.
|
AtomicReference<DFAState> |
DFA.s0full
This is the start state for full context prediction.
|
ConcurrentMap<DFAState,DFAState> |
DFA.states
A set of all DFA states.
|
ConcurrentMap<DFAState,DFAState> |
DFA.states
A set of all DFA states.
|
| Modifier and Type | Method and Description |
|---|---|
DFAState |
DFA.addState(DFAState state) |
DFAState |
DFAState.getContextTarget(int invokingState) |
DFAState |
DFA.getPrecedenceStartState(int precedence,
boolean fullContext)
Get the start state for a specific precedence value.
|
DFAState |
DFAState.getTarget(int symbol) |
| Modifier and Type | Method and Description |
|---|---|
Map<Integer,DFAState> |
DFAState.getContextEdgeMap() |
Map<Integer,DFAState> |
DFAState.getEdgeMap() |
EmptyEdgeMap<DFAState> |
DFA.getEmptyContextEdgeMap()
Gets an empty edge map initialized with the minimum and maximum context
values allowed to be stored in this DFA.
|
EmptyEdgeMap<DFAState> |
DFA.getEmptyEdgeMap()
Gets an empty edge map initialized with the minimum and maximum symbol
values allowed to be stored in this DFA.
|
| Modifier and Type | Method and Description |
|---|---|
DFAState |
DFA.addState(DFAState state) |
void |
DFAState.setContextTarget(int invokingState,
DFAState target) |
void |
DFA.setPrecedenceStartState(int precedence,
boolean fullContext,
DFAState startState)
Set the start state for a specific precedence value.
|
void |
DFAState.setTarget(int symbol,
DFAState target) |
| Constructor and Description |
|---|
DFAState(EmptyEdgeMap<DFAState> emptyEdges,
EmptyEdgeMap<DFAState> emptyContextEdges,
ATNConfigSet configs)
Constructs a new
DFAState with explicit initial values for the
outgoing edge and context edge maps. |
DFAState(EmptyEdgeMap<DFAState> emptyEdges,
EmptyEdgeMap<DFAState> emptyContextEdges,
ATNConfigSet configs)
Constructs a new
DFAState with explicit initial values for the
outgoing edge and context edge maps. |
Copyright © 1992–2024 Daniel Sun. All rights reserved.