From e188aa3f962df621fc49097418959c7d00ce9969 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Fri, 19 Apr 2024 19:36:03 -0600 Subject: Global PrintFilter -> MinimalLogger --- st/SymTableBottomUp.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'st/SymTableBottomUp.java') 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 extends GJDepthFirst { 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 extends GJDepthFirst { 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 extends GJDepthFirst { 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 extends GJDepthFirst { 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 extends GJDepthFirst { 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 extends GJDepthFirst { 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); -- cgit v1.2.3