Documentation ¶
Overview ¶
Package nfabuilder implements some structures and functions to construct NFA.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fragment ¶
type Fragment struct { I utils.State // initial state F mapset.Set // accept states Rules nfarule.RuleMap }
Fragment represents a fragment of NFA to construct a larger NFA.
func (*Fragment) AddRule ¶
AddRule add a new transition rule to the Fragment. Rule concept: State(from) -->[Symbol(c)]--> State(next)
func (*Fragment) CreateSkeleton ¶
CreateSkeleton returns a nfa fragment which has same transition rule as original fragment has. The initial state and accept state is set to default.
Click to show internal directories.
Click to hide internal directories.