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