Example #1
0
        public void Visit(SemanticStateMachine semanticStateMachine)
        {
            stringBuilder.AppendLine("Actions: " + semanticStateMachine.ActionClass);
            stringBuilder.AppendLine("FSM: " + semanticStateMachine.FsmName);
            stringBuilder.AppendLine("Initial: " + semanticStateMachine.InitialState.Name);

            semanticStateMachine.States.Accept(this);
        }
Example #2
0
        public SemanticStateMachine Analize(FsmSyntax fsm)
        {
            ast = new SemanticStateMachine();

            AnalizeHeaders(fsm);
            CheckForErrorsAndWarnings(fsm);

            ProduceSemanticMachine(fsm);

            return(ast);
        }