a simple converter to (line-oriented) fsa