Experimentation with building fsm for lexical analysis and more.