From 9f24d0511a89379bb3326ee1b62eeaabe589571b Mon Sep 17 00:00:00 2001 From: bd-912 Date: Tue, 7 May 2024 18:07:44 -0600 Subject: Print Datasegments to file, other Condense improvements, initial tests pass --- VM2M.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'VM2M.java') diff --git a/VM2M.java b/VM2M.java index d38e5c5..3a1d15b 100644 --- a/VM2M.java +++ b/VM2M.java @@ -27,16 +27,7 @@ public class VM2M { VaporProgram prog = parseVapor(is2, System.out); - MinimalLogger.info("Removing extraneous lines from the program representation..."); - for (String line : new ArrayList(strProg)) { - // delete all lines not a function table! - if (!line.trim().startsWith("const") && !line.trim().startsWith(":")) - strProg.remove(line); - } - MinimalLogger.info(String.format("New program: %s", - strProg.toString())); - - CondenseVisitor cv = new CondenseVisitor(prog, strProg); + CondenseVisitor cv = new CondenseVisitor(prog); System.out.println(String.join("\n", cv.getMIPS())); -- cgit v1.2.3