recursive toString() method for representing a FSM
refactoring of the syntax pattern regex parser/compiler
added pattern grammar