01: //
02: // Generated by JTB 1.2.2
03: //
04:
05: package xtc.lang.javacc.syntaxtree;
06:
07: /**
08: * Grammar production.
09: * <pre>
10: * f0 -> "while"
11: * f1 -> "("
12: * f2 -> Expression()
13: * f3 -> ")"
14: * f4 -> Statement()
15: * </pre>
16: */
17: public class WhileStatement implements Node {
18: public NodeToken f0;
19: public NodeToken f1;
20: public Expression f2;
21: public NodeToken f3;
22: public Statement f4;
23:
24: public WhileStatement(NodeToken n0, NodeToken n1, Expression n2,
25: NodeToken n3, Statement n4) {
26: f0 = n0;
27: f1 = n1;
28: f2 = n2;
29: f3 = n3;
30: f4 = n4;
31: }
32:
33: public WhileStatement(Expression n0, Statement n1) {
34: f0 = new NodeToken("while");
35: f1 = new NodeToken("(");
36: f2 = n0;
37: f3 = new NodeToken(")");
38: f4 = n1;
39: }
40:
41: public void accept(xtc.lang.javacc.visitor.Visitor v) {
42: v.visit(this );
43: }
44:
45: public Object accept(xtc.lang.javacc.visitor.ObjectVisitor v,
46: Object argu) {
47: return v.visit(this, argu);
48: }
49: }
|