This commit is contained in:
trochas
2025-04-11 14:52:38 +02:00
parent 3a009f7fac
commit 35c2c23985
5 changed files with 13 additions and 9 deletions

View File

@@ -109,10 +109,10 @@ public class SymTable {
return this.stackmap();
}
public ValueTable getvar_Type(String s){
public Type getvar_Type(String s){
for(int i= stackMap.size()-1; i>=0; i--){
if(stackMap.get(i).containsKey(s)){
return stackMap.get(i).get(s);
return stackMap.get(i).get(s).type;
}
}
return null;