delete quit_layer
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
package TP2.Error;
|
||||
|
||||
import TP2.asd.SymTable;
|
||||
|
||||
public class TypeChecking {
|
||||
private SymTable st;
|
||||
|
||||
}
|
||||
|
||||
@@ -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...............................");
|
||||
|
||||
Reference in New Issue
Block a user