blob: 9088695e68bd431b11417764ff3e3eba4de4677b (
plain)
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
|
// Generated from Cminus.g4 by ANTLR 4.9.1
package parser;
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
/**
* This interface defines a complete generic visitor for a parse tree produced
* by {@link CminusParser}.
*
* @param <T> The return type of the visit operation. Use {@link Void} for
* operations with no return type.
*/
public interface CminusVisitor<T> extends ParseTreeVisitor<T> {
/**
* Visit a parse tree produced by {@link CminusParser#program}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitProgram(CminusParser.ProgramContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#declaration}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitDeclaration(CminusParser.DeclarationContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#varDeclaration}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitVarDeclaration(CminusParser.VarDeclarationContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#varDeclId}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitVarDeclId(CminusParser.VarDeclIdContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#funDeclaration}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitFunDeclaration(CminusParser.FunDeclarationContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#typeSpecifier}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitTypeSpecifier(CminusParser.TypeSpecifierContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#param}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitParam(CminusParser.ParamContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#paramId}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitParamId(CminusParser.ParamIdContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#statement}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitStatement(CminusParser.StatementContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#compoundStmt}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitCompoundStmt(CminusParser.CompoundStmtContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#expressionStmt}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitExpressionStmt(CminusParser.ExpressionStmtContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#ifStmt}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitIfStmt(CminusParser.IfStmtContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#whileStmt}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitWhileStmt(CminusParser.WhileStmtContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#returnStmt}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitReturnStmt(CminusParser.ReturnStmtContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#breakStmt}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitBreakStmt(CminusParser.BreakStmtContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#expression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitExpression(CminusParser.ExpressionContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#simpleExpression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitSimpleExpression(CminusParser.SimpleExpressionContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#orExpression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitOrExpression(CminusParser.OrExpressionContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#andExpression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitAndExpression(CminusParser.AndExpressionContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#unaryRelExpression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitUnaryRelExpression(CminusParser.UnaryRelExpressionContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#relExpression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitRelExpression(CminusParser.RelExpressionContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#relop}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitRelop(CminusParser.RelopContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#sumExpression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitSumExpression(CminusParser.SumExpressionContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#sumop}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitSumop(CminusParser.SumopContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#termExpression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitTermExpression(CminusParser.TermExpressionContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#mulop}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitMulop(CminusParser.MulopContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#unaryExpression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitUnaryExpression(CminusParser.UnaryExpressionContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#unaryop}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitUnaryop(CminusParser.UnaryopContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#factor}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitFactor(CminusParser.FactorContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#mutable}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitMutable(CminusParser.MutableContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#immutable}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitImmutable(CminusParser.ImmutableContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#call}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitCall(CminusParser.CallContext ctx);
/**
* Visit a parse tree produced by {@link CminusParser#constant}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitConstant(CminusParser.ConstantContext ctx);
}
|