print et read presque fini !
This commit is contained in:
@@ -12,7 +12,7 @@ public class SymTable {
|
||||
|
||||
private PStack<PMap<String,ValueVarMap>> varMap;
|
||||
private PMap<String,ValueFunMap> functionsMap;
|
||||
private int[] id ; //id partagé entre toute les symTable, [0] : idVar, [1] : id Label, [2] : global
|
||||
private int[] id ; //id partagé entre toute les symTable, [0] : idVar, [1] : idLabel, [2] : idGlobalVar
|
||||
private ArrayList<DeclarGlobalLLVMImp> declarationsGlobal;
|
||||
|
||||
public SymTable(){
|
||||
@@ -20,8 +20,9 @@ public class SymTable {
|
||||
this.varMap= ConsPStack.singleton(HashTreePMap.empty());
|
||||
this.functionsMap = HashTreePMap.empty();
|
||||
this.declarationsGlobal = new ArrayList<>();
|
||||
this.id[0] = 1;
|
||||
this.id[1] = 1;
|
||||
this.id[0] = 1; //idVar
|
||||
this.id[1] = 1; //idLaber
|
||||
this.id[2] = 1; //idGlobalVar
|
||||
}
|
||||
public SymTable(PStack<PMap<String,ValueVarMap>> varMap, PMap<String,ValueFunMap> functionsMap, int[] id,ArrayList<DeclarGlobalLLVMImp> declarationsGlobal){
|
||||
this.varMap= varMap;
|
||||
|
||||
Reference in New Issue
Block a user