-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLilaVisitor.py
133 lines (81 loc) · 4 KB
/
LilaVisitor.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
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
# Generated from Lila.g4 by ANTLR 4.7.2
from antlr4 import *
if __name__ is not None and "." in __name__:
from .LilaParser import LilaParser
else:
from LilaParser import LilaParser
# This class defines a complete generic visitor for a parse tree produced by LilaParser.
class LilaVisitor(ParseTreeVisitor):
# Visit a parse tree produced by LilaParser#programa.
def visitPrograma(self, ctx:LilaParser.ProgramaContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#data.
def visitData(self, ctx:LilaParser.DataContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#data2.
def visitData2(self, ctx:LilaParser.Data2Context):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#main.
def visitMain(self, ctx:LilaParser.MainContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#tipo.
def visitTipo(self, ctx:LilaParser.TipoContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#funciones.
def visitFunciones(self, ctx:LilaParser.FuncionesContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#params.
def visitParams(self, ctx:LilaParser.ParamsContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#estatuto.
def visitEstatuto(self, ctx:LilaParser.EstatutoContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#condicion.
def visitCondicion(self, ctx:LilaParser.CondicionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#bloque.
def visitBloque(self, ctx:LilaParser.BloqueContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#display.
def visitDisplay(self, ctx:LilaParser.DisplayContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#asignacion.
def visitAsignacion(self, ctx:LilaParser.AsignacionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#sreturn.
def visitSreturn(self, ctx:LilaParser.SreturnContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#arr.
def visitArr(self, ctx:LilaParser.ArrContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#expresion.
def visitExpresion(self, ctx:LilaParser.ExpresionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#exp.
def visitExp(self, ctx:LilaParser.ExpContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#termino.
def visitTermino(self, ctx:LilaParser.TerminoContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#factor.
def visitFactor(self, ctx:LilaParser.FactorContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#comparacion.
def visitComparacion(self, ctx:LilaParser.ComparacionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#var_cte.
def visitVar_cte(self, ctx:LilaParser.Var_cteContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#swhile.
def visitSwhile(self, ctx:LilaParser.SwhileContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#invocacion.
def visitInvocacion(self, ctx:LilaParser.InvocacionContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#getinput.
def visitGetinput(self, ctx:LilaParser.GetinputContext):
return self.visitChildren(ctx)
# Visit a parse tree produced by LilaParser#especiales.
def visitEspeciales(self, ctx:LilaParser.EspecialesContext):
return self.visitChildren(ctx)
del LilaParser