class Pegasus::Nfa::StateChain
- Pegasus::Nfa::StateChain
- Reference
- Object
Overview
A "unit" of one or more connected states.
Defined in:
pegasus/regex.crConstructors
-
.new(start : Pegasus::Automata::State(Int64 | Nil, Pegasus::Nfa::Transition), final = nil)
Creates a new chain with the given initial and final states.
Instance Method Summary
-
#append!(other : StateChain)
Appends another chain to this one, modifying the states' transition hashes, too.
-
#append!(other : Nil)
Appends nothing to this chain.
-
#final : NState
The end of this chain.
-
#final=(final : NState)
The end of this chain.
-
#start : NState
The beginning of this chain.
-
#start=(start : NState)
The beginning of this chain.
Constructor Detail
def self.new(start : Pegasus::Automata::State(Int64 | Nil, Pegasus::Nfa::Transition), final = nil)
#
Creates a new chain with the given initial and final states.
Instance Method Detail
def append!(other : StateChain)
#
Appends another chain to this one, modifying the states' transition hashes, too.