-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcalVisitor.java
More file actions
132 lines (131 loc) · 3.97 KB
/
calVisitor.java
File metadata and controls
132 lines (131 loc) · 3.97 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
// Generated from cal.g4 by ANTLR 4.13.2
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
/**
* This interface defines a complete generic visitor for a parse tree produced
* by {@link calParser}.
*
* @param <T> The return type of the visit operation. Use {@link Void} for
* operations with no return type.
*/
public interface calVisitor<T> extends ParseTreeVisitor<T> {
/**
* Visit a parse tree produced by {@link calParser#program}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitProgram(calParser.ProgramContext ctx);
/**
* Visit a parse tree produced by {@link calParser#declList}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitDeclList(calParser.DeclListContext ctx);
/**
* Visit a parse tree produced by {@link calParser#decl}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitDecl(calParser.DeclContext ctx);
/**
* Visit a parse tree produced by {@link calParser#varDecl}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitVarDecl(calParser.VarDeclContext ctx);
/**
* Visit a parse tree produced by {@link calParser#constDecl}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitConstDecl(calParser.ConstDeclContext ctx);
/**
* Visit a parse tree produced by {@link calParser#functionList}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitFunctionList(calParser.FunctionListContext ctx);
/**
* Visit a parse tree produced by {@link calParser#function}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitFunction(calParser.FunctionContext ctx);
/**
* Visit a parse tree produced by {@link calParser#type}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitType(calParser.TypeContext ctx);
/**
* Visit a parse tree produced by {@link calParser#parameterList}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitParameterList(calParser.ParameterListContext ctx);
/**
* Visit a parse tree produced by {@link calParser#nempParameterList}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitNempParameterList(calParser.NempParameterListContext ctx);
/**
* Visit a parse tree produced by {@link calParser#main}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitMain(calParser.MainContext ctx);
/**
* Visit a parse tree produced by {@link calParser#statementBlock}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitStatementBlock(calParser.StatementBlockContext ctx);
/**
* Visit a parse tree produced by {@link calParser#statement}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitStatement(calParser.StatementContext ctx);
/**
* Visit a parse tree produced by {@link calParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitExpr(calParser.ExprContext ctx);
/**
* Visit a parse tree produced by {@link calParser#binaryArithOp}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitBinaryArithOp(calParser.BinaryArithOpContext ctx);
/**
* Visit a parse tree produced by {@link calParser#frag}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitFrag(calParser.FragContext ctx);
/**
* Visit a parse tree produced by {@link calParser#condition}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitCondition(calParser.ConditionContext ctx);
/**
* Visit a parse tree produced by {@link calParser#compOp}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitCompOp(calParser.CompOpContext ctx);
/**
* Visit a parse tree produced by {@link calParser#argList}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitArgList(calParser.ArgListContext ctx);
/**
* Visit a parse tree produced by {@link calParser#nempArgList}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitNempArgList(calParser.NempArgListContext ctx);
}