summaryrefslogtreecommitdiff
path: root/condense/CondenseVisitor.java
diff options
context:
space:
mode:
authorbd-912 <bdunahu@colostate.edu>2024-05-04 17:58:34 -0600
committerbd-912 <bdunahu@colostate.edu>2024-05-04 17:58:34 -0600
commit925372248bfb45e0027cf71d8d40c26e48261ee5 (patch)
treeed893e2b2babc8e8c137aa0f1a84cd9858b41d8e /condense/CondenseVisitor.java
parent5ddbe1a5877c2117b2d74015af1eb11baaf998a1 (diff)
Skeleton for "Condense" (vaporm to mips) Library
Diffstat (limited to 'condense/CondenseVisitor.java')
-rw-r--r--condense/CondenseVisitor.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/condense/CondenseVisitor.java b/condense/CondenseVisitor.java
new file mode 100644
index 0000000..d494845
--- /dev/null
+++ b/condense/CondenseVisitor.java
@@ -0,0 +1,23 @@
+package condense;
+
+import misc.*;
+import java.util.*;
+
+public class CondenseVisitor {
+
+ ArrayList<String> vaporm;
+ ArrayList<String> mips;
+
+ public CondenseVisitor(ArrayList<String> vaporm) {
+ this.vaporm = vaporm;
+ this.mips = new ArrayList<String>();
+ for (instr : this.vaporm) {
+ instr = instr.trim();
+
+ if (instr.startsWith("local")) {
+ // store
+ this.store(instr);
+ } else if (instr
+ }
+ }
+ }