summaryrefslogtreecommitdiff
path: root/VM2M.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-05-07 18:07:44 -0600
committerbd-912 <bdunahu@colostate.edu>2024-05-07 18:07:44 -0600
commit9f24d0511a89379bb3326ee1b62eeaabe589571b (patch)
tree53303feae0ac4bdbeedb350ee69edaaf3313806a /VM2M.java
parentdcf0a8a4a77b0add316b3a8ea7cc0f746c128594 (diff)
Print Datasegments to file, other Condense improvements, initial tests pass
Diffstat (limited to 'VM2M.java')
-rw-r--r--VM2M.java11
1 files changed, 1 insertions, 10 deletions
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<String>(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()));