Modifier and Type | Field and Description |
---|---|
Set<AutomatonState> |
acceptStates |
Nonterminal |
nt
the nonterminal which this state machine accepts
|
Set<AutomatonState> |
startStates |
Modifier | Constructor and Description |
---|---|
|
NFA(Nonterminal nt) |
protected |
NFA(Nonterminal nt,
boolean build) |
Modifier and Type | Method and Description |
---|---|
DFA |
minimize()
Convert to a minimal DFA using Brzozowski's algorithm: reverse the transitions and apply the
powerset construction, yielding a minimal DFA for the reverse language, then repeat the
procedure to get a minimal DFA for the original language.
|
protected void |
relabelNodes() |
NFA |
reverse() |
DFA |
toDFA() |
String |
toGraphViz() |
public final Nonterminal nt
public final Set<AutomatonState> startStates
public final Set<AutomatonState> acceptStates
public NFA(Nonterminal nt)
protected NFA(Nonterminal nt, boolean build)
public DFA toDFA()
public NFA reverse()
public DFA minimize()
public String toGraphViz()
protected void relabelNodes()
Copyright © 2015. All rights reserved.