258 lines
9.4 KiB
Python
258 lines
9.4 KiB
Python
# Generated from zaplangParser.g4 by ANTLR 4.13.2
|
|
from antlr4 import *
|
|
if "." in __name__:
|
|
from .zaplangParser import zaplangParser
|
|
else:
|
|
from zaplangParser import zaplangParser
|
|
|
|
# This class defines a complete generic visitor for a parse tree produced by zaplangParser.
|
|
|
|
class zaplangParserVisitor(ParseTreeVisitor):
|
|
|
|
# Visit a parse tree produced by zaplangParser#unidadTraduccion.
|
|
def visitUnidadTraduccion(self, ctx:zaplangParser.UnidadTraduccionContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#declaracionExterna.
|
|
def visitDeclaracionExterna(self, ctx:zaplangParser.DeclaracionExternaContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#declaracionFuncion.
|
|
def visitDeclaracionFuncion(self, ctx:zaplangParser.DeclaracionFuncionContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#tipoRetorno.
|
|
def visitTipoRetorno(self, ctx:zaplangParser.TipoRetornoContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#identificadorFuncion.
|
|
def visitIdentificadorFuncion(self, ctx:zaplangParser.IdentificadorFuncionContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#listaParametros.
|
|
def visitListaParametros(self, ctx:zaplangParser.ListaParametrosContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#declaracionParametro.
|
|
def visitDeclaracionParametro(self, ctx:zaplangParser.DeclaracionParametroContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#especificadorTipo.
|
|
def visitEspecificadorTipo(self, ctx:zaplangParser.EspecificadorTipoContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#tipoBasico.
|
|
def visitTipoBasico(self, ctx:zaplangParser.TipoBasicoContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#puntero.
|
|
def visitPuntero(self, ctx:zaplangParser.PunteroContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#tipoEstructurado.
|
|
def visitTipoEstructurado(self, ctx:zaplangParser.TipoEstructuradoContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#declaracionEstruct.
|
|
def visitDeclaracionEstruct(self, ctx:zaplangParser.DeclaracionEstructContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#miembroEstruct.
|
|
def visitMiembroEstruct(self, ctx:zaplangParser.MiembroEstructContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#declaracionEnum.
|
|
def visitDeclaracionEnum(self, ctx:zaplangParser.DeclaracionEnumContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#listaEnumeradores.
|
|
def visitListaEnumeradores(self, ctx:zaplangParser.ListaEnumeradoresContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#enumerador.
|
|
def visitEnumerador(self, ctx:zaplangParser.EnumeradorContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#declaracionVariable.
|
|
def visitDeclaracionVariable(self, ctx:zaplangParser.DeclaracionVariableContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#inicializadorVariable.
|
|
def visitInicializadorVariable(self, ctx:zaplangParser.InicializadorVariableContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#inicializador.
|
|
def visitInicializador(self, ctx:zaplangParser.InicializadorContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#inicializadorArreglo.
|
|
def visitInicializadorArreglo(self, ctx:zaplangParser.InicializadorArregloContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#listaInitializers.
|
|
def visitListaInitializers(self, ctx:zaplangParser.ListaInitializersContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#sentencia.
|
|
def visitSentencia(self, ctx:zaplangParser.SentenciaContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#sentenciaCompuesta.
|
|
def visitSentenciaCompuesta(self, ctx:zaplangParser.SentenciaCompuestaContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#sentenciaDeclaracion.
|
|
def visitSentenciaDeclaracion(self, ctx:zaplangParser.SentenciaDeclaracionContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#sentenciaExpresion.
|
|
def visitSentenciaExpresion(self, ctx:zaplangParser.SentenciaExpresionContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#sentenciaSeleccion.
|
|
def visitSentenciaSeleccion(self, ctx:zaplangParser.SentenciaSeleccionContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#casoEtiqueta.
|
|
def visitCasoEtiqueta(self, ctx:zaplangParser.CasoEtiquetaContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#etiquetaPorDef.
|
|
def visitEtiquetaPorDef(self, ctx:zaplangParser.EtiquetaPorDefContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#sentenciaIteracion.
|
|
def visitSentenciaIteracion(self, ctx:zaplangParser.SentenciaIteracionContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#sentenciaSalto.
|
|
def visitSentenciaSalto(self, ctx:zaplangParser.SentenciaSaltoContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#bloque.
|
|
def visitBloque(self, ctx:zaplangParser.BloqueContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#expresion.
|
|
def visitExpresion(self, ctx:zaplangParser.ExpresionContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#asignacionExpresion.
|
|
def visitAsignacionExpresion(self, ctx:zaplangParser.AsignacionExpresionContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#operadorAsignacion.
|
|
def visitOperadorAsignacion(self, ctx:zaplangParser.OperadorAsignacionContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#expresionCondicional.
|
|
def visitExpresionCondicional(self, ctx:zaplangParser.ExpresionCondicionalContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#expresionLogicaO.
|
|
def visitExpresionLogicaO(self, ctx:zaplangParser.ExpresionLogicaOContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#expresionLogicaY.
|
|
def visitExpresionLogicaY(self, ctx:zaplangParser.ExpresionLogicaYContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#expresionIgualacion.
|
|
def visitExpresionIgualacion(self, ctx:zaplangParser.ExpresionIgualacionContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#expresionRelacional.
|
|
def visitExpresionRelacional(self, ctx:zaplangParser.ExpresionRelacionalContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#expresionDesplazamiento.
|
|
def visitExpresionDesplazamiento(self, ctx:zaplangParser.ExpresionDesplazamientoContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#expresionAditiva.
|
|
def visitExpresionAditiva(self, ctx:zaplangParser.ExpresionAditivaContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#expresionMultiplicativa.
|
|
def visitExpresionMultiplicativa(self, ctx:zaplangParser.ExpresionMultiplicativaContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#expresionUnaria.
|
|
def visitExpresionUnaria(self, ctx:zaplangParser.ExpresionUnariaContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#operadorUnario.
|
|
def visitOperadorUnario(self, ctx:zaplangParser.OperadorUnarioContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#expresionPostfija.
|
|
def visitExpresionPostfija(self, ctx:zaplangParser.ExpresionPostfijaContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#expresionPrimaria.
|
|
def visitExpresionPrimaria(self, ctx:zaplangParser.ExpresionPrimariaContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#constanteExpresion.
|
|
def visitConstanteExpresion(self, ctx:zaplangParser.ConstanteExpresionContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#listaArgumentos.
|
|
def visitListaArgumentos(self, ctx:zaplangParser.ListaArgumentosContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
# Visit a parse tree produced by zaplangParser#marcaPunto.
|
|
def visitMarcaPunto(self, ctx:zaplangParser.MarcaPuntoContext):
|
|
return self.visitChildren(ctx)
|
|
|
|
|
|
|
|
del zaplangParser |