public class MachineProbe extends Object
Constructor | Description |
---|---|
MachineProbe(DFA dfa) |
Modifier and Type | Method | Description |
---|---|---|
List<DFAState> |
getAnyDFAPathToTarget(DFAState startState,
DFAState targetState,
Set<DFAState> visited) |
|
List<IntSet> |
getEdgeLabels(DFAState targetState) |
Return a list of edge labels from start state to targetState.
|
List<org.antlr.runtime.Token> |
getGrammarLocationsForInputSequence(List<Set<NFAState>> nfaStates,
List<IntSet> labels) |
Given an alternative associated with a DFA state, return the list of
tokens (from grammar) associated with path through NFA following the
labels sequence.
|
String |
getInputSequenceDisplay(Grammar g,
List<IntSet> labels) |
Given List<IntSet>, return a String with a useful representation of the
associated input string.
|
public MachineProbe(DFA dfa)
public List<DFAState> getAnyDFAPathToTarget(DFAState startState, DFAState targetState, Set<DFAState> visited)
public List<IntSet> getEdgeLabels(DFAState targetState)
public String getInputSequenceDisplay(Grammar g, List<IntSet> labels)
public List<org.antlr.runtime.Token> getGrammarLocationsForInputSequence(List<Set<NFAState>> nfaStates, List<IntSet> labels)
Copyright © 1992–2019 ANTLR. All rights reserved.