public OptimizedStateMachine Optimize(SemanticStateMachine ast) { semanticStateMachine = ast; optimizedStateMachine = new OptimizedStateMachine(); AddHeader(ast); AddLists(); AddTransitions(); return(optimizedStateMachine); }
private void AddHeader(SemanticStateMachine ast) { optimizedStateMachine.Header = new OptimizedStateMachine.OpimizedHeader { Fsm = ast.FsmName, Initial = ast.InitialState.Name, Actions = ast.ActionClass }; }