while imp en cours, todo : if else then

This commit is contained in:
trochas
2025-04-10 13:07:52 +02:00
8 changed files with 53 additions and 34 deletions

View File

@@ -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;