diff options
author | bd-912 <bdunahu@colostate.edu> | 2024-03-27 23:20:35 -0600 |
---|---|---|
committer | bd-912 <bdunahu@colostate.edu> | 2024-03-27 23:20:35 -0600 |
commit | 835e614e1e2531db3dc7dbe027de122a9fa0b78f (patch) | |
tree | c850ac64341cd8ceb56de23f71219c89b7bc3317 /syntaxtree/NodeChoice.java | |
parent | b01fe1e8e5541d6c11f905d7fbb949d747f29230 (diff) |
Reorder generated files
Diffstat (limited to 'syntaxtree/NodeChoice.java')
-rw-r--r-- | syntaxtree/NodeChoice.java | 36 |
1 files changed, 36 insertions, 0 deletions
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,A> R accept(visitor.GJVisitor<R,A> v, A argu) { + return choice.accept(v,argu); + } + public <R> R accept(visitor.GJNoArguVisitor<R> v) { + return choice.accept(v); + } + public <A> void accept(visitor.GJVoidVisitor<A> v, A argu) { + choice.accept(v,argu); + } + + public Node choice; + public int which; +} + |