delete quit_layer

This commit is contained in:
Vu Tuan Minh
2025-04-09 16:31:16 +02:00
parent af44be1ca6
commit af9e8191d5
2 changed files with 3 additions and 11 deletions

View File

@@ -1,5 +1,8 @@
package TP2.Error;
import TP2.asd.SymTable;
public class TypeChecking {
private SymTable st;
}

View File

@@ -1,7 +1,5 @@
package TP2.asd;
import java.util.Stack;
import org.pcollections.*;
import TP2.asd.Interface.Type;
import TP2.asd.Program.Type_intImp;
@@ -25,7 +23,6 @@ public class SymTable {
this.symTable = symTable;
this.var = var;
}
}
private PStack<PMap<String,ValueTable>> stackMap;
@@ -55,14 +52,6 @@ public class SymTable {
return stackMap.plus(HashTreePMap.empty());
}
public void quit_layer() throws Exception{
if(stackMap.isEmpty()){
throw new Exception();
}
stackMap.minus(stackMap.indexOf(stackMap.getLast()));
}
public PMap<String,ValueTable> peppapeek(){
if(stackMap.isEmpty()){
System.out.println("TEST...............................");