From 925372248bfb45e0027cf71d8d40c26e48261ee5 Mon Sep 17 00:00:00 2001 From: bd-912 Date: Sat, 4 May 2024 17:58:34 -0600 Subject: Skeleton for "Condense" (vaporm to mips) Library --- condense/CondenseVisitor.java | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 condense/CondenseVisitor.java (limited to 'condense/CondenseVisitor.java') 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 vaporm; + ArrayList mips; + + public CondenseVisitor(ArrayList vaporm) { + this.vaporm = vaporm; + this.mips = new ArrayList(); + for (instr : this.vaporm) { + instr = instr.trim(); + + if (instr.startsWith("local")) { + // store + this.store(instr); + } else if (instr + } + } + } -- cgit v1.2.3