From 835e614e1e2531db3dc7dbe027de122a9fa0b78f Mon Sep 17 00:00:00 2001 From: bd-912 Date: Wed, 27 Mar 2024 23:20:35 -0600 Subject: Reorder generated files --- syntaxtree/ArrayLength.java | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 syntaxtree/ArrayLength.java (limited to 'syntaxtree/ArrayLength.java') diff --git a/syntaxtree/ArrayLength.java b/syntaxtree/ArrayLength.java new file mode 100644 index 0000000..6176f5c --- /dev/null +++ b/syntaxtree/ArrayLength.java @@ -0,0 +1,43 @@ +// +// Generated by JTB 1.3.2 +// + +package syntaxtree; + +/** + * Grammar production: + * f0 -> PrimaryExpression() + * f1 -> "." + * f2 -> "length" + */ +public class ArrayLength implements Node { + public PrimaryExpression f0; + public NodeToken f1; + public NodeToken f2; + + public ArrayLength(PrimaryExpression n0, NodeToken n1, NodeToken n2) { + f0 = n0; + f1 = n1; + f2 = n2; + } + + public ArrayLength(PrimaryExpression n0) { + f0 = n0; + f1 = new NodeToken("."); + f2 = new NodeToken("length"); + } + + public void accept(visitor.Visitor v) { + v.visit(this); + } + public R accept(visitor.GJVisitor v, A argu) { + return v.visit(this,argu); + } + public R accept(visitor.GJNoArguVisitor v) { + return v.visit(this); + } + public void accept(visitor.GJVoidVisitor v, A argu) { + v.visit(this,argu); + } +} + -- cgit v1.2.3