summaryrefslogtreecommitdiff
path: root/condense/CondenseVisitor.java
blob: d494845b158b2f4afe031b11325d9ed6fabaa1d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
		       }
	}
    }