diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-05-07 18:07:44 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-05-07 18:07:44 -0600 |
commit | 9f24d0511a89379bb3326ee1b62eeaabe589571b (patch) | |
tree | 53303feae0ac4bdbeedb350ee69edaaf3313806a /VM2M.java | |
parent | dcf0a8a4a77b0add316b3a8ea7cc0f746c128594 (diff) |
Print Datasegments to file, other Condense improvements, initial tests pass
Diffstat (limited to 'VM2M.java')
-rw-r--r-- | VM2M.java | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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())); |