while imp en cours, todo : if else then
This commit is contained in:
@@ -27,6 +27,7 @@ public class SymTable {
|
||||
|
||||
private PStack<PMap<String,ValueTable>> stackMap;
|
||||
private int id=1;
|
||||
public int idLabel = 1;
|
||||
public SymTable(){
|
||||
this.stackMap= ConsPStack.empty();
|
||||
}
|
||||
@@ -41,6 +42,12 @@ public class SymTable {
|
||||
return a;
|
||||
}
|
||||
|
||||
public int getNewIdLabel(){
|
||||
int a = this.idLabel;
|
||||
this.id++;
|
||||
return a;
|
||||
}
|
||||
|
||||
public Result addNewTempVar(/*Type type*/){
|
||||
//TODO
|
||||
String newVar = "temp"+id;
|
||||
|
||||
Reference in New Issue
Block a user