| 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 |
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 D if not there and return D.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
ParserATNSimulator.addDFAEdge(DFA dfa,
DFAState from,
int t,
DFAState to) |
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 D if not there and return D.
|
protected void |
LexerATNSimulator.captureSimState(LexerATNSimulator.SimState settings,
CharStream input,
DFAState dfaState) |
protected int |
LexerATNSimulator.execATN(CharStream input,
DFAState ds0) |
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.
|
int |
ParserATNSimulator.execATNWithFullContext(DFA dfa,
DFAState D,
ATNConfigSet s0,
TokenStream input,
int startIndex,
ParserRuleContext outerContext,
int SLL_min_alt) |
int |
ParserATNSimulator.execDFA(DFA dfa,
DFAState s0,
TokenStream input,
int startIndex,
ParserRuleContext outerContext) |
protected void |
ParserATNSimulator.predicateDFAState(DFAState dfaState,
DecisionState decisionState) |
void |
ParserATNSimulator.reportAmbiguity(DFA dfa,
DFAState D,
int startIndex,
int stopIndex,
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<Set<ATNState>> |
DFA.getATNStatesAlongPath(ParserATNSimulator atn,
List<DFAState> dfaStates,
TokenStream input,
int start,
int stop) |
Copyright © 1992-2013 ANTLR. All Rights Reserved.