assign, return exp val

This commit is contained in:
Vu Tuan Minh
2025-04-07 15:02:10 +02:00
parent 7076633d6a
commit deafaa26fc
7 changed files with 54 additions and 27 deletions

View File

@@ -57,6 +57,10 @@ public class SymTable {
return false;
}
public Stack<PMap<String,Type>> stackmap(){
return this.stackmap();
}
public Type getvar_Type(String s){
for(int i= stackMap.size()-1; i>=0; i--){
if(stackMap.get(i).containsKey(s)){