Added structure for syntax state machine