class Pegasus::Automata::Automaton(V, T)
- Pegasus::Automata::Automaton(V, T)
- Reference
- Object
Overview
A generic automaton to represent common operations on the different kinds of automata.
Direct Known Subclasses
Defined in:
pegasus/automaton.crConstructors
-
.new
Creates a new automaton.
Instance Method Summary
-
#last_id : Int64
The state ID to use for the next state.
-
#start : State(V, T) | Nil
The start state.
-
#start=(start : State(V, T) | Nil)
The start state.
-
#state_for(*, data : V)
Creates a new state for the given data.
-
#states : Set(State(V, T))
The states that this automaton has.