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/NodeChoice.java | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 syntaxtree/NodeChoice.java (limited to 'syntaxtree/NodeChoice.java') diff --git a/syntaxtree/NodeChoice.java b/syntaxtree/NodeChoice.java new file mode 100644 index 0000000..9b8b5ed --- /dev/null +++ b/syntaxtree/NodeChoice.java @@ -0,0 +1,36 @@ +// +// Generated by JTB 1.3.2 +// + +package syntaxtree; + +/** + * Represents a grammar choice, e.g. ( A | B ) + */ +public class NodeChoice implements Node { + public NodeChoice(Node node) { + this(node, -1); + } + + public NodeChoice(Node node, int whichChoice) { + choice = node; + which = whichChoice; + } + + public void accept(visitor.Visitor v) { + choice.accept(v); + } + public R accept(visitor.GJVisitor v, A argu) { + return choice.accept(v,argu); + } + public R accept(visitor.GJNoArguVisitor v) { + return choice.accept(v); + } + public void accept(visitor.GJVoidVisitor v, A argu) { + choice.accept(v,argu); + } + + public Node choice; + public int which; +} + -- cgit v1.2.3