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 -> "do"
11: * f1 -> Statement()
12: * f2 -> "while"
13: * f3 -> "("
14: * f4 -> Expression()
15: * f5 -> ")"
16: * f6 -> ";"
17: * </pre>
18: */
19: public class DoStatement implements Node {
20: public NodeToken f0;
21: public Statement f1;
22: public NodeToken f2;
23: public NodeToken f3;
24: public Expression f4;
25: public NodeToken f5;
26: public NodeToken f6;
27:
28: public DoStatement(NodeToken n0, Statement n1, NodeToken n2,
29: NodeToken n3, Expression n4, NodeToken n5, NodeToken n6) {
30: f0 = n0;
31: f1 = n1;
32: f2 = n2;
33: f3 = n3;
34: f4 = n4;
35: f5 = n5;
36: f6 = n6;
37: }
38:
39: public DoStatement(Statement n0, Expression n1) {
40: f0 = new NodeToken("do");
41: f1 = n0;
42: f2 = new NodeToken("while");
43: f3 = new NodeToken("(");
44: f4 = n1;
45: f5 = new NodeToken(")");
46: f6 = new NodeToken(";");
47: }
48:
49: public void accept(xtc.lang.javacc.visitor.Visitor v) {
50: v.visit(this );
51: }
52:
53: public Object accept(xtc.lang.javacc.visitor.ObjectVisitor v,
54: Object argu) {
55: return v.visit(this, argu);
56: }
57: }
|