Package | Description |
---|---|
org.antlr.v4.runtime.atn | |
org.antlr.v4.runtime.dfa | |
org.antlr.v4.tool |
Modifier and Type | Field | Description |
---|---|---|
protected DFAState |
ProfilingATNSimulator.currentState |
|
protected DFAState |
LexerATNSimulator.SimState.dfaState |
|
static DFAState |
ATNSimulator.ERROR |
Must distinguish between missing edge and edge we know leads nowhere
|
Modifier and Type | Method | Description |
---|---|---|
protected DFAState |
LexerATNSimulator.addDFAEdge(DFAState from,
int t,
ATNConfigSet q) |
|
protected DFAState |
ParserATNSimulator.addDFAEdge(DFA dfa,
DFAState from,
int t,
DFAState to) |
Add an edge to the DFA, if possible.
|
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,
DFAState D) |
Add state
D to the DFA if it is not already present, and return
the actual instance stored in the DFA. |
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.computeTargetState(DFA dfa,
DFAState previousD,
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 |
ProfilingATNSimulator.computeTargetState(DFA dfa,
DFAState previousD,
int t) |
|
DFAState |
ProfilingATNSimulator.getCurrentState() |
|
protected DFAState |
LexerATNSimulator.getExistingTargetState(DFAState s,
int t) |
Get an existing target state for an edge in the DFA.
|
protected DFAState |
ParserATNSimulator.getExistingTargetState(DFAState previousD,
int t) |
Get an existing target state for an edge in the DFA.
|
protected DFAState |
ProfilingATNSimulator.getExistingTargetState(DFAState previousD,
int t) |
Modifier and Type | Method | Description |
---|---|---|
protected DFAState |
LexerATNSimulator.addDFAEdge(DFAState from,
int t,
ATNConfigSet q) |
|
protected void |
LexerATNSimulator.addDFAEdge(DFAState p,
int t,
DFAState q) |
|
protected DFAState |
ParserATNSimulator.addDFAEdge(DFA dfa,
DFAState from,
int t,
DFAState to) |
Add an edge to the DFA, if possible.
|
protected DFAState |
ParserATNSimulator.addDFAState(DFA dfa,
DFAState D) |
Add state
D to the DFA if it is not already present, and return
the actual instance stored in the DFA. |
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 DFAState |
ParserATNSimulator.computeTargetState(DFA dfa,
DFAState previousD,
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 |
ProfilingATNSimulator.computeTargetState(DFA dfa,
DFAState previousD,
int t) |
|
protected int |
LexerATNSimulator.execATN(CharStream input,
DFAState ds0) |
|
protected int |
ParserATNSimulator.execATN(DFA dfa,
DFAState s0,
TokenStream input,
int startIndex,
ParserRuleContext outerContext) |
Performs ATN simulation to compute a predicted alternative based
upon the remaining input, but also updates the DFA cache to avoid
having to traverse the ATN again for the same input sequence.
|
protected int |
ParserATNSimulator.execATNWithFullContext(DFA dfa,
DFAState D,
ATNConfigSet s0,
TokenStream input,
int startIndex,
ParserRuleContext outerContext) |
|
protected DFAState |
LexerATNSimulator.getExistingTargetState(DFAState s,
int t) |
Get an existing target state for an edge in the DFA.
|
protected DFAState |
ParserATNSimulator.getExistingTargetState(DFAState previousD,
int t) |
Get an existing target state for an edge in the DFA.
|
protected DFAState |
ProfilingATNSimulator.getExistingTargetState(DFAState previousD,
int t) |
|
protected void |
ParserATNSimulator.predicateDFAState(DFAState dfaState,
DecisionState decisionState) |
|
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
|
protected void |
ProfilingATNSimulator.reportAmbiguity(DFA dfa,
DFAState D,
int startIndex,
int stopIndex,
boolean exact,
BitSet ambigAlts,
ATNConfigSet configs) |
Modifier and Type | Field | Description |
---|---|---|
DFAState[] |
DFAState.edges |
edges[symbol] points to target of symbol. |
DFAState |
DFA.s0 |
Modifier and Type | Field | Description |
---|---|---|
Map<DFAState,DFAState> |
DFA.states |
A set of all DFA states.
|
Map<DFAState,DFAState> |
DFA.states |
A set of all DFA states.
|
Modifier and Type | Method | Description |
---|---|---|
DFAState |
DFA.getPrecedenceStartState(int precedence) |
Get the start state for a specific precedence value.
|
Modifier and Type | Method | Description |
---|---|---|
List<DFAState> |
DFA.getStates() |
Return a list of all states in this DFA, ordered by state number.
|
Modifier and Type | Method | Description |
---|---|---|
protected String |
DFASerializer.getStateString(DFAState s) |
|
void |
DFA.setPrecedenceStartState(int precedence,
DFAState startState) |
Set the start state for a specific precedence value.
|
Modifier and Type | Method | Description |
---|---|---|
protected String |
DOTGenerator.getStateLabel(DFAState s) |
Copyright © 1992–2019 ANTLR. All rights reserved.