org.sablecc.sablecc
Class DFA
java.lang.Object
org.sablecc.sablecc.DFA
public class DFA
- extends java.lang.Object
Constructor Summary |
DFA(NFA nfa)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
nfa
public NFA nfa
states
public final java.util.Vector states
finder
public final java.util.Hashtable finder
eclosures
private IntSet[] eclosures
DFA
public DFA(NFA nfa)
optimize
private void optimize()
match
private int match(int st1,
int tr,
int st2)
construct
private void construct()
computeEClosures
private void computeEClosures()
eclosure
private IntSet eclosure(int state)
eclosure
private void eclosure(int state,
IntSet nfaStates)
eclosure
private IntSet eclosure(IntSet nfaStates)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object