-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMathOpsVisitor.java
More file actions
87 lines (86 loc) · 2.94 KB
/
Copy pathMathOpsVisitor.java
File metadata and controls
87 lines (86 loc) · 2.94 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
// Generated from C:/Users/khali/OneDrive/Documents/CS 320/Coding Assignment 3-1/src/MathOps.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 MathOpsParser}.
*
* @param <T> The return type of the visit operation. Use {@link Void} for
* operations with no return type.
*/
public interface MathOpsVisitor<T> extends ParseTreeVisitor<T> {
/**
* Visit a parse tree produced by the {@code finalExpr}
* labeled alternative in {@link MathOpsParser#file_}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitFinalExpr(MathOpsParser.FinalExprContext ctx);
/**
* Visit a parse tree produced by the {@code paren}
* labeled alternative in {@link MathOpsParser#expression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitParen(MathOpsParser.ParenContext ctx);
/**
* Visit a parse tree produced by the {@code Negation}
* labeled alternative in {@link MathOpsParser#expression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitNegation(MathOpsParser.NegationContext ctx);
/**
* Visit a parse tree produced by the {@code Func}
* labeled alternative in {@link MathOpsParser#expression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitFunc(MathOpsParser.FuncContext ctx);
/**
* Visit a parse tree produced by the {@code MulDiv}
* labeled alternative in {@link MathOpsParser#expression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitMulDiv(MathOpsParser.MulDivContext ctx);
/**
* Visit a parse tree produced by the {@code AddSub}
* labeled alternative in {@link MathOpsParser#expression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitAddSub(MathOpsParser.AddSubContext ctx);
/**
* Visit a parse tree produced by the {@code num}
* labeled alternative in {@link MathOpsParser#expression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitNum(MathOpsParser.NumContext ctx);
/**
* Visit a parse tree produced by the {@code Pow}
* labeled alternative in {@link MathOpsParser#expression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitPow(MathOpsParser.PowContext ctx);
/**
* Visit a parse tree produced by the {@code Fact}
* labeled alternative in {@link MathOpsParser#expression}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitFact(MathOpsParser.FactContext ctx);
/**
* Visit a parse tree produced by {@link MathOpsParser#atom}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitAtom(MathOpsParser.AtomContext ctx);
/**
* Visit a parse tree produced by {@link MathOpsParser#scientific}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitScientific(MathOpsParser.ScientificContext ctx);
}