public class FiniteStateAutomaton extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
debug |
Constructor and Description |
---|
FiniteStateAutomaton() |
Modifier and Type | Method and Description |
---|---|
void |
addState(int num) |
void |
addState(int num,
TokenMaker tm) |
void |
addTransition(char c,
int from,
int to) |
void |
debuggingOutput(String prefix) |
boolean |
equals(Object obj) |
String |
getRemainingInput() |
int |
hashCode() |
Token |
nextToken() |
void |
resetToStart() |
void |
setInput(String input) |
String |
toString() |
public void setInput(String input)
public String getRemainingInput()
public void addState(int num)
public void addState(int num, TokenMaker tm)
public void addTransition(char c, int from, int to)
public void debuggingOutput(String prefix)
public void resetToStart()
public Token nextToken()