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
|
Modifier and Type | Method and Description |
---|---|
protected DFAState |
ParserATNSimulator.addDFAEdge(DFA dfa,
DFAState from,
int t,
DFAState to)
Add an edge to the DFA, if possible.
|
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,
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 |
ParserATNSimulator.getExistingTargetState(DFAState previousD,
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 DFAState |
ParserATNSimulator.addDFAEdge(DFA dfa,
DFAState from,
int t,
DFAState to)
Add an edge to the DFA, if possible.
|
protected DFAState |
LexerATNSimulator.addDFAEdge(DFAState from,
int t,
ATNConfigSet q) |
protected void |
LexerATNSimulator.addDFAEdge(DFAState p,
int t,
DFAState q) |
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 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 |
ParserATNSimulator.getExistingTargetState(DFAState previousD,
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 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
|
Modifier and Type | Field and Description |
---|---|
DFAState[] |
DFAState.edges
edges[symbol] points to target of symbol. |
DFAState |
DFA.s0 |
Modifier and Type | Field and 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 and Description |
---|---|
List<DFAState> |
DFA.getStates()
Return a list of all states in this DFA, ordered by state number.
|
Modifier and Type | Method and Description |
---|---|
protected String |
DFASerializer.getStateString(DFAState s) |
Copyright © 1992-2013 ANTLR. All Rights Reserved.