diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-04-19 19:36:03 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-04-19 19:36:03 -0600 |
commit | e188aa3f962df621fc49097418959c7d00ce9969 (patch) | |
tree | c575bd207e9715b6acdc1e655c93209453efffa1 /st/SymTableBottomUp.java | |
parent | 7b93ef1ec7cb51f3494d7f18cc39dd9d26a24be8 (diff) |
Global PrintFilter -> MinimalLogger
Diffstat (limited to 'st/SymTableBottomUp.java')
-rw-r--r-- | st/SymTableBottomUp.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/st/SymTableBottomUp.java b/st/SymTableBottomUp.java index 9f60b91..b0772fc 100644 --- a/st/SymTableBottomUp.java +++ b/st/SymTableBottomUp.java @@ -54,12 +54,12 @@ public class SymTableBottomUp<R> extends GJDepthFirst<R,SymbolTable> { String id = n.f1.f0.tokenImage; ClassInstance instance = new ClassInstance(id); - PrintFilter.print("Inserting " + id + " => " + instance.getType(), true); + MinimalLogger.info("Inserting " + id + " => " + instance.getType()); symt.put(id, instance); id = "main"; MethodInstance main = new MethodInstance(id, TypeEnum.ERROR); - PrintFilter.print("Inserting " + id + " => " + main.getType(), true); + MinimalLogger.info("Inserting " + id + " => " + main.getType()); symt.put(id, main); @@ -85,7 +85,7 @@ public class SymTableBottomUp<R> extends GJDepthFirst<R,SymbolTable> { String id = n.f1.f0.tokenImage; ClassInstance instance = new ClassInstance(id); - PrintFilter.print("Inserting " + id + " => " + instance.getType(), true); + MinimalLogger.info("Inserting " + id + " => " + instance.getType()); symt.put(id, instance); @@ -115,7 +115,7 @@ public class SymTableBottomUp<R> extends GJDepthFirst<R,SymbolTable> { String id = n.f1.f0.tokenImage; ClassInstance instance = new ClassInstance(id); - PrintFilter.print("Inserting " + id + " => " + instance.getType(), true); + MinimalLogger.info("Inserting " + id + " => " + instance.getType()); symt.put(id, instance); @@ -144,11 +144,11 @@ public class SymTableBottomUp<R> extends GJDepthFirst<R,SymbolTable> { case 3: rtrn = TypeEnum.classname; break; default: - PrintFilter.print("Unsupported case", true); + MinimalLogger.severe("Unsupported case"); } TypeInstance instance = new TypeInstance(id, rtrn); - PrintFilter.print("Inserting " + id + "=> " + instance.getType(), true); + MinimalLogger.info("Inserting " + id + " => " + instance.getType()); symt.put(id, instance); @@ -198,11 +198,11 @@ public class SymTableBottomUp<R> extends GJDepthFirst<R,SymbolTable> { case 3: rtrn = TypeEnum.classname; break; default: - PrintFilter.print("Unsupported case", true); + MinimalLogger.severe("Unsupported case"); } MethodInstance instance = new MethodInstance(id, rtrn); - PrintFilter.print("Inserting " + id + " => " + instance.getType(), true); + MinimalLogger.info("Inserting " + id + " => " + instance.getType()); symt.put(id, instance); @@ -230,11 +230,11 @@ public class SymTableBottomUp<R> extends GJDepthFirst<R,SymbolTable> { case 3: rtrn = TypeEnum.classname; break; default: - PrintFilter.print("Unsupported case", true); + MinimalLogger.severe("Unsupported case"); } TypeInstance instance = new TypeInstance(id, rtrn); - PrintFilter.print("Inserting " + id + " => " + instance.getType(), true); + MinimalLogger.info("Inserting " + id + " => " + instance.getType()); symt.put(id, instance); |