Implemented statechart parsing.