Pegasus::Automata::UniqueAutomaton(V, T)
Inherits Pegasus::Automata::Automaton / Reference / Object
Another generic automaton. Since many automatons created by
pegasus do not like two nodes with the same data,
this class overries the #state_for function to return
an existing state with the given data if such a state exists.
Constructors
Instance methods
state_for(*, data : V)
Creates a new state for the given data, or returns an existing state with the data if one exists.