summaryrefslogtreecommitdiff
path: root/st
diff options
context:
space:
mode:
Diffstat (limited to 'st')
-rw-r--r--st/SymTableBottomUp.java20
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);