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/ClassExtendsDeclaration.java | 63 +++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 syntaxtree/ClassExtendsDeclaration.java (limited to 'syntaxtree/ClassExtendsDeclaration.java') diff --git a/syntaxtree/ClassExtendsDeclaration.java b/syntaxtree/ClassExtendsDeclaration.java new file mode 100644 index 0000000..d9b6dbe --- /dev/null +++ b/syntaxtree/ClassExtendsDeclaration.java @@ -0,0 +1,63 @@ +// +// Generated by JTB 1.3.2 +// + +package syntaxtree; + +/** + * Grammar production: + * f0 -> "class" + * f1 -> Identifier() + * f2 -> "extends" + * f3 -> Identifier() + * f4 -> "{" + * f5 -> ( VarDeclaration() )* + * f6 -> ( MethodDeclaration() )* + * f7 -> "}" + */ +public class ClassExtendsDeclaration implements Node { + public NodeToken f0; + public Identifier f1; + public NodeToken f2; + public Identifier f3; + public NodeToken f4; + public NodeListOptional f5; + public NodeListOptional f6; + public NodeToken f7; + + public ClassExtendsDeclaration(NodeToken n0, Identifier n1, NodeToken n2, Identifier n3, NodeToken n4, NodeListOptional n5, NodeListOptional n6, NodeToken n7) { + f0 = n0; + f1 = n1; + f2 = n2; + f3 = n3; + f4 = n4; + f5 = n5; + f6 = n6; + f7 = n7; + } + + public ClassExtendsDeclaration(Identifier n0, Identifier n1, NodeListOptional n2, NodeListOptional n3) { + f0 = new NodeToken("class"); + f1 = n0; + f2 = new NodeToken("extends"); + f3 = n1; + f4 = new NodeToken("{"); + f5 = n2; + f6 = n3; + f7 = new NodeToken("}"); + } + + 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