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 -> Program(false)
12: * f2 -> "}"
13: * </PRE>
14: */
15: public class ScopeBlock implements Node {
16: public NodeToken f0;
17: public Program f1;
18: public NodeToken f2;
19: public boolean hasVarInScope = true; // assume the worst
20: public boolean hasFxnInScope = true; // assume the worst
21:
22: public ScopeBlock(NodeToken n0, Program n1, NodeToken n2,
23: boolean hasVarInScope, boolean hasFxnInScope) {
24: f0 = n0;
25: f1 = n1;
26: f2 = n2;
27: this .hasVarInScope = hasVarInScope;
28: this .hasFxnInScope = hasFxnInScope;
29: }
30:
31: public ScopeBlock(Program n0) {
32: f0 = new NodeToken("{");
33: f1 = n0;
34: f2 = 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: }
|