This is a quick hack to translate a FLEX source file into a SHIFT file.
It is invoked as
flex2shift filename
It assumes that the list of input patterns is in a file called filename.l
and produces a file called filename.shift. The SHIFT file implements a CFSM
that takes a single bit input event stream and returns the regex index as
the value of the single output event, present whenever the expression is
recognized.
