-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlogo3dVisitor.py
More file actions
218 lines (132 loc) · 6.5 KB
/
Copy pathlogo3dVisitor.py
File metadata and controls
218 lines (132 loc) · 6.5 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
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
212
213
214
215
216
217
218
# Generated from logo3d.g4 by ANTLR 4.9
from antlr4 import *
if __name__ is not None and "." in __name__:
from .logo3dParser import logo3dParser
else:
from logo3dParser import logo3dParser
# This class defines a complete generic visitor for a parse tree produced by logo3dParser.
class logo3dVisitor(ParseTreeVisitor):
# Visit a parse tree produced by logo3dParser#root.
def visitRoot(self, ctx:logo3dParser.RootContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#args.
def visitArgs(self, ctx:logo3dParser.ArgsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#call.
def visitCall(self, ctx:logo3dParser.CallContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#CALLPROC.
def visitCALLPROC(self, ctx:logo3dParser.CALLPROCContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#MAIN.
def visitMAIN(self, ctx:logo3dParser.MAINContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#PROC.
def visitPROC(self, ctx:logo3dParser.PROCContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#block.
def visitBlock(self, ctx:logo3dParser.BlockContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#ASSIGN.
def visitASSIGN(self, ctx:logo3dParser.ASSIGNContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#WRITE.
def visitWRITE(self, ctx:logo3dParser.WRITEContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#IF.
def visitIF(self, ctx:logo3dParser.IFContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#WHILE.
def visitWHILE(self, ctx:logo3dParser.WHILEContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#FOR.
def visitFOR(self, ctx:logo3dParser.FORContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#READ.
def visitREAD(self, ctx:logo3dParser.READContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#COLOR.
def visitCOLOR(self, ctx:logo3dParser.COLORContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#FORWARD.
def visitFORWARD(self, ctx:logo3dParser.FORWARDContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#BACKWARD.
def visitBACKWARD(self, ctx:logo3dParser.BACKWARDContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#LEFT.
def visitLEFT(self, ctx:logo3dParser.LEFTContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#RIGHT.
def visitRIGHT(self, ctx:logo3dParser.RIGHTContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#UP.
def visitUP(self, ctx:logo3dParser.UPContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#DOWN.
def visitDOWN(self, ctx:logo3dParser.DOWNContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#HOME.
def visitHOME(self, ctx:logo3dParser.HOMEContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#HIDE.
def visitHIDE(self, ctx:logo3dParser.HIDEContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#SHOW.
def visitSHOW(self, ctx:logo3dParser.SHOWContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#CALLACTION.
def visitCALLACTION(self, ctx:logo3dParser.CALLACTIONContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#EQ.
def visitEQ(self, ctx:logo3dParser.EQContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#GT.
def visitGT(self, ctx:logo3dParser.GTContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#GTE.
def visitGTE(self, ctx:logo3dParser.GTEContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#LT.
def visitLT(self, ctx:logo3dParser.LTContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#LTE.
def visitLTE(self, ctx:logo3dParser.LTEContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#DIF.
def visitDIF(self, ctx:logo3dParser.DIFContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#integernumber.
def visitIntegernumber(self, ctx:logo3dParser.IntegernumberContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#floatnumber.
def visitFloatnumber(self, ctx:logo3dParser.FloatnumberContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#DIV.
def visitDIV(self, ctx:logo3dParser.DIVContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#BRACKETS.
def visitBRACKETS(self, ctx:logo3dParser.BRACKETSContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#SUB.
def visitSUB(self, ctx:logo3dParser.SUBContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#FLOAT.
def visitFLOAT(self, ctx:logo3dParser.FLOATContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#POT.
def visitPOT(self, ctx:logo3dParser.POTContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#MULT.
def visitMULT(self, ctx:logo3dParser.MULTContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#SUM.
def visitSUM(self, ctx:logo3dParser.SUMContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#ID.
def visitID(self, ctx:logo3dParser.IDContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by logo3dParser#INT.
def visitINT(self, ctx:logo3dParser.INTContext):
return self.visitChildren(ctx)
del logo3dParser