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 -> Expression()
12: * f2 -> ( ".." Expression() )?
13: * f3 -> "]"
14: * </PRE>
15: */
16: public class ArraySubscriptPrimaryPostfix implements Node {
17: public NodeToken f0;
18: public Expression f1;
19: public NodeOptional f2;
20: public NodeToken f3;
21:
22: public ArraySubscriptPrimaryPostfix(NodeToken n0, Expression n1,
23: NodeOptional n2, NodeToken n3) {
24: f0 = n0;
25: f1 = n1;
26: f2 = n2;
27: f3 = n3;
28: }
29:
30: public ArraySubscriptPrimaryPostfix(Expression n0, NodeOptional n1) {
31: f0 = new NodeToken("[");
32: f1 = n0;
33: f2 = n1;
34: f3 = new NodeToken("]");
35: }
36:
37: public void accept(oscript.visitor.Visitor v) {
38: v.visit(this );
39: }
40:
41: public Object accept(oscript.visitor.ObjectVisitor v, Object argu) {
42: return v.visit(this, argu);
43: }
44: }
|