diff options
Diffstat (limited to 'condense/CondenseVisitor.java')
-rw-r--r-- | condense/CondenseVisitor.java | 23 |
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 + } + } + } |