-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathToyPythonListener.py
More file actions
93 lines (63 loc) · 2.96 KB
/
ToyPythonListener.py
File metadata and controls
93 lines (63 loc) · 2.96 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
# Generated from ToyPython.g4 by ANTLR 4.13.2
from antlr4 import *
if "." in __name__:
from .ToyPythonParser import ToyPythonParser
else:
from ToyPythonParser import ToyPythonParser
# This class defines a complete listener for a parse tree produced by ToyPythonParser.
class ToyPythonListener(ParseTreeListener):
# Enter a parse tree produced by ToyPythonParser#program.
def enterProgram(self, ctx:ToyPythonParser.ProgramContext):
pass
# Exit a parse tree produced by ToyPythonParser#program.
def exitProgram(self, ctx:ToyPythonParser.ProgramContext):
pass
# Enter a parse tree produced by ToyPythonParser#statement.
def enterStatement(self, ctx:ToyPythonParser.StatementContext):
pass
# Exit a parse tree produced by ToyPythonParser#statement.
def exitStatement(self, ctx:ToyPythonParser.StatementContext):
pass
# Enter a parse tree produced by ToyPythonParser#emptyStatement.
def enterEmptyStatement(self, ctx:ToyPythonParser.EmptyStatementContext):
pass
# Exit a parse tree produced by ToyPythonParser#emptyStatement.
def exitEmptyStatement(self, ctx:ToyPythonParser.EmptyStatementContext):
pass
# Enter a parse tree produced by ToyPythonParser#simpleStatement.
def enterSimpleStatement(self, ctx:ToyPythonParser.SimpleStatementContext):
pass
# Exit a parse tree produced by ToyPythonParser#simpleStatement.
def exitSimpleStatement(self, ctx:ToyPythonParser.SimpleStatementContext):
pass
# Enter a parse tree produced by ToyPythonParser#compoundStatement.
def enterCompoundStatement(self, ctx:ToyPythonParser.CompoundStatementContext):
pass
# Exit a parse tree produced by ToyPythonParser#compoundStatement.
def exitCompoundStatement(self, ctx:ToyPythonParser.CompoundStatementContext):
pass
# Enter a parse tree produced by ToyPythonParser#comparison.
def enterComparison(self, ctx:ToyPythonParser.ComparisonContext):
pass
# Exit a parse tree produced by ToyPythonParser#comparison.
def exitComparison(self, ctx:ToyPythonParser.ComparisonContext):
pass
# Enter a parse tree produced by ToyPythonParser#expression.
def enterExpression(self, ctx:ToyPythonParser.ExpressionContext):
pass
# Exit a parse tree produced by ToyPythonParser#expression.
def exitExpression(self, ctx:ToyPythonParser.ExpressionContext):
pass
# Enter a parse tree produced by ToyPythonParser#term.
def enterTerm(self, ctx:ToyPythonParser.TermContext):
pass
# Exit a parse tree produced by ToyPythonParser#term.
def exitTerm(self, ctx:ToyPythonParser.TermContext):
pass
# Enter a parse tree produced by ToyPythonParser#factor.
def enterFactor(self, ctx:ToyPythonParser.FactorContext):
pass
# Exit a parse tree produced by ToyPythonParser#factor.
def exitFactor(self, ctx:ToyPythonParser.FactorContext):
pass
del ToyPythonParser