class

Pegasus::Nfa::StateChain

Inherits Reference / Object

A "unit" of one or more connected states.

Constructors

new(start : Pegasus::Automata::State(Int64 | Nil, Pegasus::Nfa::Transition), final = nil)

Creates a new chain with the given initial and final states.

Source

Instance methods

append!(other : StateChain)

Appends another chain to this one, modifying the states' transition hashes, too.

Source
append!(other : Nil)

Appends nothing to this chain. This is a no-op.

Source
final

The end of this chain.

Source
final=(final : NState)

The end of this chain.

Source
start

The beginning of this chain.

Source
start=(start : NState)

The beginning of this chain.

Source