Ejemplo n.º 1
0
        public PrgState Execute(PrgState state)
        {
            MyIList <int> list = state.GetPrintList();

            list.Add1(exp.Eval(state.GetSymTable(), state.GetHeap()));
            return(null);
        }
Ejemplo n.º 2
0
        PrgState IStmt.Execute(PrgState state)
        {
            MyIStack <IStmt> stack = new MyLibStack <IStmt>();
            Stack <MyIDictionary <MyMap> > symtable = state.GetSymTable();
            MyIList <int> printList = state.GetPrintList();
            IHeap <HMap>  h         = state.GetHeap();

            MyLibStack <IStmt> crtstm = new MyLibStack <IStmt>();


            PrgState childPrgState = new PrgState(stack, symtable, printList, stmt, h);

            childPrgState.id = state.id * 10;


            return(childPrgState);
        }