| Package | Description |
|---|---|
| org.vesalainen.grammar.state | |
| org.vesalainen.regex |
| Modifier and Type | Method and Description |
|---|---|
DFAState<T> |
NFAState.constructDFA(Scope<DFAState<T>> dfaScope)
Construct a dfa by using this state as starting state.
|
DFAState<T> |
DFA.getRoot() |
DFAState<T> |
DFAState.transit(int input)
Returns next DFAState
|
DFAState<T> |
DFAState.transit(Range condition)
Returns next DFAState
|
| Modifier and Type | Method and Description |
|---|---|
Collection<DFAState<T>> |
DFAState.edges() |
Collection<Transition<DFAState<T>>> |
DFAState.getTransitions()
return all transitions
|
Collection<DFAState<T>> |
DFAState.inStates() |
Iterator<DFAState<T>> |
DFA.iterator() |
Iterator<DFAState<T>> |
DFAState.iterator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DFADistributor.branch(DFAState<T> x) |
protected void |
DFADistributor.enter(DFAState<T> x) |
protected void |
DFADistributor.exit(DFAState<T> x,
int count) |
| Modifier and Type | Method and Description |
|---|---|
DFA<T> |
NFA.constructDFA(Scope<DFAState<T>> scope)
Constructs a dfa from using first nfa state as starting state.
|
DFAState<T> |
NFAState.constructDFA(Scope<DFAState<T>> dfaScope)
Construct a dfa by using this state as starting state.
|
Set<NFAState<T>> |
NFAState.epsilonClosure(Scope<DFAState<T>> scope)
Creates a dfa state from all nfa states that can be reached from this state
with epsilon move.
|
| Constructor and Description |
|---|
DFAState(Scope<DFAState<T>> scope,
Set<NFAState<T>> nfaSet)
Creates a DFAState
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
DFACompiler.accepting(DFAState<T> s) |
protected void |
FindCompiler.accepting(DFAState<T> s) |
protected void |
MatchCompiler.accepting(DFAState<T> s) |
protected void |
DFACompiler.afterState(DFAState<T> s) |
protected void |
FindCompiler.afterState(DFAState<T> s) |
protected void |
DFACompiler.compile(DFAState<T> s,
boolean isLast) |
protected void |
DFACompiler.gotoNext(DFAState<T> s) |
protected boolean |
DFACompiler.literal(DFAState<T> s) |