blob: a8289e6adf750abff0dd734fd677d937a988488c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
package piglet.piglet2spiglet;
public class PigletExpr {
public enum Expr_t { Temp, Int, Label, Other };
public Expr_t type;
public String s;
public PigletExpr(Expr_t t, String _s) {
type = t;
s = _s;
}
public boolean isSimple() {
return type==Expr_t.Temp || type==Expr_t.Int || type==Expr_t.Label;
}
public String toString() {
return s;
}
}
|