-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCoolParserVisitor.java
More file actions
60 lines (59 loc) · 1.82 KB
/
CoolParserVisitor.java
File metadata and controls
60 lines (59 loc) · 1.82 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 /Users/NCC1701-C/cool/LCARS/src/CoolParser.g4 by ANTLR 4.6
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
/**
* This interface defines a complete generic visitor for a parse tree produced
* by {@link CoolParser}.
*
* @param <T> The return type of the visit operation. Use {@link Void} for
* operations with no return type.
*/
public interface CoolParserVisitor<T> extends ParseTreeVisitor<T> {
/**
* Visit a parse tree produced by {@link CoolParser#program}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitProgram(CoolParser.ProgramContext ctx);
/**
* Visit a parse tree produced by {@link CoolParser#coolClass}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitCoolClass(CoolParser.CoolClassContext ctx);
/**
* Visit a parse tree produced by {@link CoolParser#feature}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitFeature(CoolParser.FeatureContext ctx);
/**
* Visit a parse tree produced by {@link CoolParser#formal}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitFormal(CoolParser.FormalContext ctx);
/**
* Visit a parse tree produced by {@link CoolParser#branch}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitBranch(CoolParser.BranchContext ctx);
/**
* Visit a parse tree produced by {@link CoolParser#letvars}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitLetvars(CoolParser.LetvarsContext ctx);
/**
* Visit a parse tree produced by {@link CoolParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitExpr(CoolParser.ExprContext ctx);
/**
* Visit a parse tree produced by {@link CoolParser#error}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitError(CoolParser.ErrorContext ctx);
}