summaryrefslogtreecommitdiff
path: root/boil
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-04-25 00:35:18 -0600
committerbd-912 <bdunahu@colostate.edu>2024-04-25 00:35:18 -0600
commitbd44adf2b180fcc1198d612a8ae0d2a28468088d (patch)
tree943261bdab0abcba47388c0ec594a6b84d839102 /boil
parent765337c53286db39ffc3c64eede602afe3899647 (diff)
Basic support for 'extended' classes in SymbolTable
Diffstat (limited to 'boil')
-rw-r--r--boil/library/BoilVisitor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/boil/library/BoilVisitor.java b/boil/library/BoilVisitor.java
index 43360b9..00d7dc7 100644
--- a/boil/library/BoilVisitor.java
+++ b/boil/library/BoilVisitor.java
@@ -37,7 +37,7 @@ public class BoilVisitor extends GJDepthFirst<String,String> {
return attr_index;
}
- public String memoryReadFilter(String rhs) {
+ public String memoryReadFilter(TokenKey rhs) {
/**
* when a method recieves an id of either an alias
* or an untranslated variable name, this method will
@@ -48,7 +48,7 @@ public class BoilVisitor extends GJDepthFirst<String,String> {
TypeInstance t;
if ((t = this.symt.getType(rhs)) != null) {
// memory store
- ClassInstance cur = this.symt.getClass(this.symt.getActive(TypeEnum.classname));
+ ClassInstance cur = (ClassInstance) this.symt.getActive(TypeEnum.classname);
attr_index = getVarIndex(cur, t);
rhs = String.format("[this+%d]", attr_index);
}