-
Notifications
You must be signed in to change notification settings - Fork 1
/
MathListener.py
64 lines (44 loc) · 1.91 KB
/
MathListener.py
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
# Generated from Math.g4 by ANTLR 4.7.2
from antlr4 import *
if __name__ is not None and "." in __name__:
from .MathParser import MathParser
else:
from MathParser import MathParser
# This class defines a complete listener for a parse tree produced by MathParser.
class MathListener(ParseTreeListener):
# Enter a parse tree produced by MathParser#compileUnit.
def enterCompileUnit(self, ctx:MathParser.CompileUnitContext):
pass
# Exit a parse tree produced by MathParser#compileUnit.
def exitCompileUnit(self, ctx:MathParser.CompileUnitContext):
pass
# Enter a parse tree produced by MathParser#infixExpr.
def enterInfixExpr(self, ctx:MathParser.InfixExprContext):
pass
# Exit a parse tree produced by MathParser#infixExpr.
def exitInfixExpr(self, ctx:MathParser.InfixExprContext):
pass
# Enter a parse tree produced by MathParser#unaryExpr.
def enterUnaryExpr(self, ctx:MathParser.UnaryExprContext):
pass
# Exit a parse tree produced by MathParser#unaryExpr.
def exitUnaryExpr(self, ctx:MathParser.UnaryExprContext):
pass
# Enter a parse tree produced by MathParser#funcExpr.
def enterFuncExpr(self, ctx:MathParser.FuncExprContext):
pass
# Exit a parse tree produced by MathParser#funcExpr.
def exitFuncExpr(self, ctx:MathParser.FuncExprContext):
pass
# Enter a parse tree produced by MathParser#numberExpr.
def enterNumberExpr(self, ctx:MathParser.NumberExprContext):
pass
# Exit a parse tree produced by MathParser#numberExpr.
def exitNumberExpr(self, ctx:MathParser.NumberExprContext):
pass
# Enter a parse tree produced by MathParser#parensExpr.
def enterParensExpr(self, ctx:MathParser.ParensExprContext):
pass
# Exit a parse tree produced by MathParser#parensExpr.
def exitParensExpr(self, ctx:MathParser.ParensExprContext):
pass