01: //
02: // Generated by JTB 1.2.1
03: //
04:
05: package oscript.syntaxtree;
06:
07: /**
08: * Grammar production:
09: * <PRE>
10: * f0 -> <INTEGER_LITERAL>
11: * | <FLOATING_POINT_LITERAL>
12: * | <STRING_LITERAL>
13: * | <REGEXP_LITERAL>
14: * | "true"
15: * | "false"
16: * | "null"
17: * | "undefined"
18: * </PRE>
19: */
20: public class Literal implements Node {
21: public NodeChoice f0;
22:
23: public Literal(NodeChoice n0) {
24: f0 = n0;
25: }
26:
27: public void accept(oscript.visitor.Visitor v) {
28: v.visit(this );
29: }
30:
31: public Object accept(oscript.visitor.ObjectVisitor v, Object argu) {
32: return v.visit(this, argu);
33: }
34: }
|