blob: a95dcc4907e04adccc9df18bd6ce0ea539523dea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package piglet.piglet2spiglet;
import java.util.Vector;
public class GenSpigletCtl {
/* DEFAULT: return a PigletExpr
* PRINT: used with procedure, print the StmtExp
* LIST: used with call, add things to list, return null
*/
public enum Control { DEFAULT, PRINT, LIST };
Control c;
public Vector<PigletExpr> call_list;
public GenSpigletCtl(Control _c) {
c = _c;
call_list = new Vector<PigletExpr>();
}
public boolean isPrint() {
return c==Control.PRINT;
}
public boolean isList() {
return c==Control.LIST;
}
}
|