qntm / greenery

Regular expression manipulation library
http://qntm.org/greenery
MIT License
331 stars 40 forks source link

`lego` should depend on `fsm`, `fsm` should never refer to `lego` #22

Closed qntm closed 9 years ago

qntm commented 9 years ago

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.

qntm commented 9 years ago

Resolved with commit 248ecdcde6cfc7a44b2d81ba3ddabdc90ec178ba.