class

Pegasus::Automata::Automaton(V, T)

Inherits Reference / Object

A generic automaton to represent common operations on the different kinds of automata.

Constructors

new

Creates a new automaton.

Source

Instance methods

last_id

The state ID to use for the next state.

Source
start

The start state.

Source
start=(start : State(V, T) | Nil)

The start state.

Source
state_for(*, data : V)

Creates a new state for the given data.

Source
states

The states that this automaton has.

Source