-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyJavaVisitor.java
More file actions
60 lines (59 loc) · 1.83 KB
/
Copy pathMyJavaVisitor.java
File metadata and controls
60 lines (59 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Generated from MyJava.g4 by ANTLR 4.13.1
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
/**
* This interface defines a complete generic visitor for a parse tree produced
* by {@link MyJavaParser}.
*
* @param <T> The return type of the visit operation. Use {@link Void} for
* operations with no return type.
*/
public interface MyJavaVisitor<T> extends ParseTreeVisitor<T> {
/**
* Visit a parse tree produced by {@link MyJavaParser#compilationUnit}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitCompilationUnit(MyJavaParser.CompilationUnitContext ctx);
/**
* Visit a parse tree produced by {@link MyJavaParser#variable}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitVariable(MyJavaParser.VariableContext ctx);
/**
* Visit a parse tree produced by {@link MyJavaParser#print}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitPrint(MyJavaParser.PrintContext ctx);
/**
* Visit a parse tree produced by {@link MyJavaParser#value}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitValue(MyJavaParser.ValueContext ctx);
/**
* Visit a parse tree produced by {@link MyJavaParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitExpr(MyJavaParser.ExprContext ctx);
/**
* Visit a parse tree produced by {@link MyJavaParser#addExpr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitAddExpr(MyJavaParser.AddExprContext ctx);
/**
* Visit a parse tree produced by {@link MyJavaParser#mulExpr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitMulExpr(MyJavaParser.MulExprContext ctx);
/**
* Visit a parse tree produced by {@link MyJavaParser#atom}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitAtom(MyJavaParser.AtomContext ctx);
}