summaryrefslogtreecommitdiff
path: root/src/piglet/syntaxtree/Exp.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/piglet/syntaxtree/Exp.java')
-rw-r--r--src/piglet/syntaxtree/Exp.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/piglet/syntaxtree/Exp.java b/src/piglet/syntaxtree/Exp.java
new file mode 100644
index 0000000..62f1fb0
--- /dev/null
+++ b/src/piglet/syntaxtree/Exp.java
@@ -0,0 +1,37 @@
+//
+// Generated by JTB 1.3.2
+//
+
+package piglet.syntaxtree;
+
+/**
+ * Grammar production:
+ * f0 -> StmtExp()
+ * | Call()
+ * | HAllocate()
+ * | BinOp()
+ * | Temp()
+ * | IntegerLiteral()
+ * | Label()
+ */
+public class Exp implements Node {
+ public NodeChoice f0;
+
+ public Exp(NodeChoice n0) {
+ f0 = n0;
+ }
+
+ public void accept(piglet.visitor.Visitor v) {
+ v.visit(this);
+ }
+ public <R,A> R accept(piglet.visitor.GJVisitor<R,A> v, A argu) {
+ return v.visit(this,argu);
+ }
+ public <R> R accept(piglet.visitor.GJNoArguVisitor<R> v) {
+ return v.visit(this);
+ }
+ public <A> void accept(piglet.visitor.GJVoidVisitor<A> v, A argu) {
+ v.visit(this,argu);
+ }
+}
+