01: //
02: // Generated by JTB 1.2.1
03: //
04:
05: package oscript.syntaxtree;
06:
07: /**
08: * Grammar production:
09: * <PRE>
10: * f0 -> "["
11: * f1 -> ( FunctionCallExpressionListBody() )?
12: * f2 -> "]"
13: * </PRE>
14: */
15: public class ArrayDeclarationPrimaryPrefix implements Node {
16: public NodeToken f0;
17: public NodeOptional f1;
18: public NodeToken f2;
19:
20: public ArrayDeclarationPrimaryPrefix(NodeToken n0, NodeOptional n1,
21: NodeToken n2) {
22: f0 = n0;
23: f1 = n1;
24: f2 = n2;
25: }
26:
27: public ArrayDeclarationPrimaryPrefix(NodeOptional n0) {
28: f0 = new NodeToken("[");
29: f1 = n0;
30: f2 = new NodeToken("]");
31: }
32:
33: public void accept(oscript.visitor.Visitor v) {
34: v.visit(this );
35: }
36:
37: public Object accept(oscript.visitor.ObjectVisitor v, Object argu) {
38: return v.visit(this, argu);
39: }
40: }
|