Ejemplo n.º 1
0
        public PrgState execute(PrgState state)
        {
            StackInterface <IStmt>     newStack    = new MyLibraryStack <IStmt>();
            MapInterface <String, int> cloneSymTbl = new MyLibraryDictionary <String, int>((MyLibraryDictionary <String, int>)state.SymTable);

            return(new PrgState(newStack, cloneSymTbl, state.HeapTable, state.Output, stmt));
        }
 public MyLibraryDictionary(MyLibraryDictionary <K, V> tmp)
 {
     elements = new Dictionary <K, V> (tmp.elements);
 }