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

Overview

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

Direct Known Subclasses

Defined in:

pegasus/automaton.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

Creates a new automaton.


[View source]

Instance Method Detail

def last_id : Int64 #

The state ID to use for the next state.


[View source]
def start : State(V, T) | Nil #

The start state.


[View source]
def start=(start : State(V, T) | Nil) #

The start state.


[View source]
def state_for(*, data : V) #

Creates a new state for the given data.


[View source]
def states : Set(State(V, T)) #

The states that this automaton has.


[View source]