a derived FSM class, with closure computation methods defined
(compilable FSMachine)
Methods
|
|
Eclosure
NewSetState
__init__
|
|
Eclosure
|
Eclosure (
self,
Epsilon,
DoNullMaps=0,
)
return the epsilon closure of the FSM as a new FSM
DoNullMap, if set, will map unexpected tokens to
the "empty" state (usually creating a really big fsm)
|
|
NewSetState
|
NewSetState (
self,
kind,
InSet,
)
add an set-marked state to self if not present
uses self.States[s][1] as the set marking the state s
only used by Eclosure above
|
|
__init__
|
__init__ ( self, nonterm )
|
|