After much soul-searching I have concluded that the fsm module should stand completely alone, making no references to the lego sibling module. This will involve moving the lego.otherchars constant over to fsm and moving the fsm.lego() constructor-esque thing over to the lego class, as well as some unit tests.
lego, however, requires the fsm module to do many of its most useful regular expression manipulations, so it should continue to depend on that module as a prerequisite.
After much soul-searching I have concluded that the
fsm
module should stand completely alone, making no references to thelego
sibling module. This will involve moving thelego.otherchars
constant over tofsm
and moving thefsm.lego()
constructor-esque thing over to thelego
class, as well as some unit tests.lego
, however, requires thefsm
module to do many of its most useful regular expression manipulations, so it should continue to depend on that module as a prerequisite.