01: //
02: // Generated by JTB 1.2.1
03: //
04:
05: package oscript.syntaxtree;
06:
07: /**
08: * Grammar production:
09: * <PRE>
10:
11: * f0 -> "'{"
12: * f1 -> Program(true)
13: * f2 -> "}"
14: * </PRE>
15: */
16: public class ShorthandFunctionPrimaryPrefix implements Node {
17:
18: /* Cache fields:
19: */
20: public Node translated;
21:
22: /* Parser fields:
23: */
24: public boolean hasVarInScope = true; // assume the worst
25: public boolean hasFxnInScope = true; // assume the worst
26:
27: /* Regular JTB fields:
28: */
29: public NodeToken f0;
30: public Program f1;
31: public NodeToken f2;
32:
33: public ShorthandFunctionPrimaryPrefix(NodeToken n0, Program n1,
34: NodeToken n2, boolean hasVarInScope, boolean hasFxnInScope) {
35: f0 = n0;
36: f1 = n1;
37: f2 = n2;
38: this .hasVarInScope = hasVarInScope;
39: this .hasFxnInScope = hasFxnInScope;
40: }
41:
42: public ShorthandFunctionPrimaryPrefix(Program n0) {
43: f0 = new NodeToken("'{");
44: f1 = n0;
45: f2 = new NodeToken("}");
46: }
47:
48: public void accept(oscript.visitor.Visitor v) {
49: v.visit(this );
50: }
51:
52: public Object accept(oscript.visitor.ObjectVisitor v, Object argu) {
53: return v.visit(this, argu);
54: }
55: }
|