summaryrefslogtreecommitdiff
path: root/src/svm/SVMVisitor.java
diff options
context:
space:
mode:
authorGeno <48206120+gabrielegenovese@users.noreply.github.com>2024-07-11 12:57:56 +0200
committerGitHub <noreply@github.com>2024-07-11 12:57:56 +0200
commitb50c7e99603e9f85d82d700d62c16c4fcef88715 (patch)
tree5052206f06e0426a43599cb236652614db04d22e /src/svm/SVMVisitor.java
parentf0692ff5f9e39cbd1c203e9d5abebf55a3d0f6fc (diff)
Code generation (#20)
Co-authored-by: geno <gabrigeno@gmail> Co-authored-by: Santo Cariotti <santo@dcariotti.me>
Diffstat (limited to 'src/svm/SVMVisitor.java')
-rw-r--r--src/svm/SVMVisitor.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/svm/SVMVisitor.java b/src/svm/SVMVisitor.java
new file mode 100644
index 0000000..d4e132d
--- /dev/null
+++ b/src/svm/SVMVisitor.java
@@ -0,0 +1,28 @@
+// Generated from /home/gabri/Desktop/clp_project/src/svm/SVM.g4 by ANTLR 4.13.1
+package svm;
+
+import java.util.HashMap;
+
+import org.antlr.v4.runtime.tree.ParseTreeVisitor;
+
+/**
+ * This interface defines a complete generic visitor for a parse tree produced
+ * by {@link SVMParser}.
+ *
+ * @param <T> The return type of the visit operation. Use {@link Void} for
+ * operations with no return type.
+ */
+public interface SVMVisitor<T> extends ParseTreeVisitor<T> {
+ /**
+ * Visit a parse tree produced by {@link SVMParser#assembly}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitAssembly(SVMParser.AssemblyContext ctx);
+ /**
+ * Visit a parse tree produced by {@link SVMParser#instruction}.
+ * @param ctx the parse tree
+ * @return the visitor result
+ */
+ T visitInstruction(SVMParser.InstructionContext ctx);
+} \ No newline at end of file