PRIMER COMMIT

This commit is contained in:
2026-05-07 18:01:06 -06:00
commit 3fc7562e98
15 changed files with 7903 additions and 0 deletions

453
zaplangParserListener.py Normal file
View File

@@ -0,0 +1,453 @@
# 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 listener for a parse tree produced by zaplangParser.
class zaplangParserListener(ParseTreeListener):
# Enter a parse tree produced by zaplangParser#unidadTraduccion.
def enterUnidadTraduccion(self, ctx:zaplangParser.UnidadTraduccionContext):
pass
# Exit a parse tree produced by zaplangParser#unidadTraduccion.
def exitUnidadTraduccion(self, ctx:zaplangParser.UnidadTraduccionContext):
pass
# Enter a parse tree produced by zaplangParser#declaracionExterna.
def enterDeclaracionExterna(self, ctx:zaplangParser.DeclaracionExternaContext):
pass
# Exit a parse tree produced by zaplangParser#declaracionExterna.
def exitDeclaracionExterna(self, ctx:zaplangParser.DeclaracionExternaContext):
pass
# Enter a parse tree produced by zaplangParser#declaracionFuncion.
def enterDeclaracionFuncion(self, ctx:zaplangParser.DeclaracionFuncionContext):
pass
# Exit a parse tree produced by zaplangParser#declaracionFuncion.
def exitDeclaracionFuncion(self, ctx:zaplangParser.DeclaracionFuncionContext):
pass
# Enter a parse tree produced by zaplangParser#tipoRetorno.
def enterTipoRetorno(self, ctx:zaplangParser.TipoRetornoContext):
pass
# Exit a parse tree produced by zaplangParser#tipoRetorno.
def exitTipoRetorno(self, ctx:zaplangParser.TipoRetornoContext):
pass
# Enter a parse tree produced by zaplangParser#identificadorFuncion.
def enterIdentificadorFuncion(self, ctx:zaplangParser.IdentificadorFuncionContext):
pass
# Exit a parse tree produced by zaplangParser#identificadorFuncion.
def exitIdentificadorFuncion(self, ctx:zaplangParser.IdentificadorFuncionContext):
pass
# Enter a parse tree produced by zaplangParser#listaParametros.
def enterListaParametros(self, ctx:zaplangParser.ListaParametrosContext):
pass
# Exit a parse tree produced by zaplangParser#listaParametros.
def exitListaParametros(self, ctx:zaplangParser.ListaParametrosContext):
pass
# Enter a parse tree produced by zaplangParser#declaracionParametro.
def enterDeclaracionParametro(self, ctx:zaplangParser.DeclaracionParametroContext):
pass
# Exit a parse tree produced by zaplangParser#declaracionParametro.
def exitDeclaracionParametro(self, ctx:zaplangParser.DeclaracionParametroContext):
pass
# Enter a parse tree produced by zaplangParser#especificadorTipo.
def enterEspecificadorTipo(self, ctx:zaplangParser.EspecificadorTipoContext):
pass
# Exit a parse tree produced by zaplangParser#especificadorTipo.
def exitEspecificadorTipo(self, ctx:zaplangParser.EspecificadorTipoContext):
pass
# Enter a parse tree produced by zaplangParser#tipoBasico.
def enterTipoBasico(self, ctx:zaplangParser.TipoBasicoContext):
pass
# Exit a parse tree produced by zaplangParser#tipoBasico.
def exitTipoBasico(self, ctx:zaplangParser.TipoBasicoContext):
pass
# Enter a parse tree produced by zaplangParser#puntero.
def enterPuntero(self, ctx:zaplangParser.PunteroContext):
pass
# Exit a parse tree produced by zaplangParser#puntero.
def exitPuntero(self, ctx:zaplangParser.PunteroContext):
pass
# Enter a parse tree produced by zaplangParser#tipoEstructurado.
def enterTipoEstructurado(self, ctx:zaplangParser.TipoEstructuradoContext):
pass
# Exit a parse tree produced by zaplangParser#tipoEstructurado.
def exitTipoEstructurado(self, ctx:zaplangParser.TipoEstructuradoContext):
pass
# Enter a parse tree produced by zaplangParser#declaracionEstruct.
def enterDeclaracionEstruct(self, ctx:zaplangParser.DeclaracionEstructContext):
pass
# Exit a parse tree produced by zaplangParser#declaracionEstruct.
def exitDeclaracionEstruct(self, ctx:zaplangParser.DeclaracionEstructContext):
pass
# Enter a parse tree produced by zaplangParser#miembroEstruct.
def enterMiembroEstruct(self, ctx:zaplangParser.MiembroEstructContext):
pass
# Exit a parse tree produced by zaplangParser#miembroEstruct.
def exitMiembroEstruct(self, ctx:zaplangParser.MiembroEstructContext):
pass
# Enter a parse tree produced by zaplangParser#declaracionEnum.
def enterDeclaracionEnum(self, ctx:zaplangParser.DeclaracionEnumContext):
pass
# Exit a parse tree produced by zaplangParser#declaracionEnum.
def exitDeclaracionEnum(self, ctx:zaplangParser.DeclaracionEnumContext):
pass
# Enter a parse tree produced by zaplangParser#listaEnumeradores.
def enterListaEnumeradores(self, ctx:zaplangParser.ListaEnumeradoresContext):
pass
# Exit a parse tree produced by zaplangParser#listaEnumeradores.
def exitListaEnumeradores(self, ctx:zaplangParser.ListaEnumeradoresContext):
pass
# Enter a parse tree produced by zaplangParser#enumerador.
def enterEnumerador(self, ctx:zaplangParser.EnumeradorContext):
pass
# Exit a parse tree produced by zaplangParser#enumerador.
def exitEnumerador(self, ctx:zaplangParser.EnumeradorContext):
pass
# Enter a parse tree produced by zaplangParser#declaracionVariable.
def enterDeclaracionVariable(self, ctx:zaplangParser.DeclaracionVariableContext):
pass
# Exit a parse tree produced by zaplangParser#declaracionVariable.
def exitDeclaracionVariable(self, ctx:zaplangParser.DeclaracionVariableContext):
pass
# Enter a parse tree produced by zaplangParser#inicializadorVariable.
def enterInicializadorVariable(self, ctx:zaplangParser.InicializadorVariableContext):
pass
# Exit a parse tree produced by zaplangParser#inicializadorVariable.
def exitInicializadorVariable(self, ctx:zaplangParser.InicializadorVariableContext):
pass
# Enter a parse tree produced by zaplangParser#inicializador.
def enterInicializador(self, ctx:zaplangParser.InicializadorContext):
pass
# Exit a parse tree produced by zaplangParser#inicializador.
def exitInicializador(self, ctx:zaplangParser.InicializadorContext):
pass
# Enter a parse tree produced by zaplangParser#inicializadorArreglo.
def enterInicializadorArreglo(self, ctx:zaplangParser.InicializadorArregloContext):
pass
# Exit a parse tree produced by zaplangParser#inicializadorArreglo.
def exitInicializadorArreglo(self, ctx:zaplangParser.InicializadorArregloContext):
pass
# Enter a parse tree produced by zaplangParser#listaInitializers.
def enterListaInitializers(self, ctx:zaplangParser.ListaInitializersContext):
pass
# Exit a parse tree produced by zaplangParser#listaInitializers.
def exitListaInitializers(self, ctx:zaplangParser.ListaInitializersContext):
pass
# Enter a parse tree produced by zaplangParser#sentencia.
def enterSentencia(self, ctx:zaplangParser.SentenciaContext):
pass
# Exit a parse tree produced by zaplangParser#sentencia.
def exitSentencia(self, ctx:zaplangParser.SentenciaContext):
pass
# Enter a parse tree produced by zaplangParser#sentenciaCompuesta.
def enterSentenciaCompuesta(self, ctx:zaplangParser.SentenciaCompuestaContext):
pass
# Exit a parse tree produced by zaplangParser#sentenciaCompuesta.
def exitSentenciaCompuesta(self, ctx:zaplangParser.SentenciaCompuestaContext):
pass
# Enter a parse tree produced by zaplangParser#sentenciaDeclaracion.
def enterSentenciaDeclaracion(self, ctx:zaplangParser.SentenciaDeclaracionContext):
pass
# Exit a parse tree produced by zaplangParser#sentenciaDeclaracion.
def exitSentenciaDeclaracion(self, ctx:zaplangParser.SentenciaDeclaracionContext):
pass
# Enter a parse tree produced by zaplangParser#sentenciaExpresion.
def enterSentenciaExpresion(self, ctx:zaplangParser.SentenciaExpresionContext):
pass
# Exit a parse tree produced by zaplangParser#sentenciaExpresion.
def exitSentenciaExpresion(self, ctx:zaplangParser.SentenciaExpresionContext):
pass
# Enter a parse tree produced by zaplangParser#sentenciaSeleccion.
def enterSentenciaSeleccion(self, ctx:zaplangParser.SentenciaSeleccionContext):
pass
# Exit a parse tree produced by zaplangParser#sentenciaSeleccion.
def exitSentenciaSeleccion(self, ctx:zaplangParser.SentenciaSeleccionContext):
pass
# Enter a parse tree produced by zaplangParser#casoEtiqueta.
def enterCasoEtiqueta(self, ctx:zaplangParser.CasoEtiquetaContext):
pass
# Exit a parse tree produced by zaplangParser#casoEtiqueta.
def exitCasoEtiqueta(self, ctx:zaplangParser.CasoEtiquetaContext):
pass
# Enter a parse tree produced by zaplangParser#etiquetaPorDef.
def enterEtiquetaPorDef(self, ctx:zaplangParser.EtiquetaPorDefContext):
pass
# Exit a parse tree produced by zaplangParser#etiquetaPorDef.
def exitEtiquetaPorDef(self, ctx:zaplangParser.EtiquetaPorDefContext):
pass
# Enter a parse tree produced by zaplangParser#sentenciaIteracion.
def enterSentenciaIteracion(self, ctx:zaplangParser.SentenciaIteracionContext):
pass
# Exit a parse tree produced by zaplangParser#sentenciaIteracion.
def exitSentenciaIteracion(self, ctx:zaplangParser.SentenciaIteracionContext):
pass
# Enter a parse tree produced by zaplangParser#sentenciaSalto.
def enterSentenciaSalto(self, ctx:zaplangParser.SentenciaSaltoContext):
pass
# Exit a parse tree produced by zaplangParser#sentenciaSalto.
def exitSentenciaSalto(self, ctx:zaplangParser.SentenciaSaltoContext):
pass
# Enter a parse tree produced by zaplangParser#bloque.
def enterBloque(self, ctx:zaplangParser.BloqueContext):
pass
# Exit a parse tree produced by zaplangParser#bloque.
def exitBloque(self, ctx:zaplangParser.BloqueContext):
pass
# Enter a parse tree produced by zaplangParser#expresion.
def enterExpresion(self, ctx:zaplangParser.ExpresionContext):
pass
# Exit a parse tree produced by zaplangParser#expresion.
def exitExpresion(self, ctx:zaplangParser.ExpresionContext):
pass
# Enter a parse tree produced by zaplangParser#asignacionExpresion.
def enterAsignacionExpresion(self, ctx:zaplangParser.AsignacionExpresionContext):
pass
# Exit a parse tree produced by zaplangParser#asignacionExpresion.
def exitAsignacionExpresion(self, ctx:zaplangParser.AsignacionExpresionContext):
pass
# Enter a parse tree produced by zaplangParser#operadorAsignacion.
def enterOperadorAsignacion(self, ctx:zaplangParser.OperadorAsignacionContext):
pass
# Exit a parse tree produced by zaplangParser#operadorAsignacion.
def exitOperadorAsignacion(self, ctx:zaplangParser.OperadorAsignacionContext):
pass
# Enter a parse tree produced by zaplangParser#expresionCondicional.
def enterExpresionCondicional(self, ctx:zaplangParser.ExpresionCondicionalContext):
pass
# Exit a parse tree produced by zaplangParser#expresionCondicional.
def exitExpresionCondicional(self, ctx:zaplangParser.ExpresionCondicionalContext):
pass
# Enter a parse tree produced by zaplangParser#expresionLogicaO.
def enterExpresionLogicaO(self, ctx:zaplangParser.ExpresionLogicaOContext):
pass
# Exit a parse tree produced by zaplangParser#expresionLogicaO.
def exitExpresionLogicaO(self, ctx:zaplangParser.ExpresionLogicaOContext):
pass
# Enter a parse tree produced by zaplangParser#expresionLogicaY.
def enterExpresionLogicaY(self, ctx:zaplangParser.ExpresionLogicaYContext):
pass
# Exit a parse tree produced by zaplangParser#expresionLogicaY.
def exitExpresionLogicaY(self, ctx:zaplangParser.ExpresionLogicaYContext):
pass
# Enter a parse tree produced by zaplangParser#expresionIgualacion.
def enterExpresionIgualacion(self, ctx:zaplangParser.ExpresionIgualacionContext):
pass
# Exit a parse tree produced by zaplangParser#expresionIgualacion.
def exitExpresionIgualacion(self, ctx:zaplangParser.ExpresionIgualacionContext):
pass
# Enter a parse tree produced by zaplangParser#expresionRelacional.
def enterExpresionRelacional(self, ctx:zaplangParser.ExpresionRelacionalContext):
pass
# Exit a parse tree produced by zaplangParser#expresionRelacional.
def exitExpresionRelacional(self, ctx:zaplangParser.ExpresionRelacionalContext):
pass
# Enter a parse tree produced by zaplangParser#expresionDesplazamiento.
def enterExpresionDesplazamiento(self, ctx:zaplangParser.ExpresionDesplazamientoContext):
pass
# Exit a parse tree produced by zaplangParser#expresionDesplazamiento.
def exitExpresionDesplazamiento(self, ctx:zaplangParser.ExpresionDesplazamientoContext):
pass
# Enter a parse tree produced by zaplangParser#expresionAditiva.
def enterExpresionAditiva(self, ctx:zaplangParser.ExpresionAditivaContext):
pass
# Exit a parse tree produced by zaplangParser#expresionAditiva.
def exitExpresionAditiva(self, ctx:zaplangParser.ExpresionAditivaContext):
pass
# Enter a parse tree produced by zaplangParser#expresionMultiplicativa.
def enterExpresionMultiplicativa(self, ctx:zaplangParser.ExpresionMultiplicativaContext):
pass
# Exit a parse tree produced by zaplangParser#expresionMultiplicativa.
def exitExpresionMultiplicativa(self, ctx:zaplangParser.ExpresionMultiplicativaContext):
pass
# Enter a parse tree produced by zaplangParser#expresionUnaria.
def enterExpresionUnaria(self, ctx:zaplangParser.ExpresionUnariaContext):
pass
# Exit a parse tree produced by zaplangParser#expresionUnaria.
def exitExpresionUnaria(self, ctx:zaplangParser.ExpresionUnariaContext):
pass
# Enter a parse tree produced by zaplangParser#operadorUnario.
def enterOperadorUnario(self, ctx:zaplangParser.OperadorUnarioContext):
pass
# Exit a parse tree produced by zaplangParser#operadorUnario.
def exitOperadorUnario(self, ctx:zaplangParser.OperadorUnarioContext):
pass
# Enter a parse tree produced by zaplangParser#expresionPostfija.
def enterExpresionPostfija(self, ctx:zaplangParser.ExpresionPostfijaContext):
pass
# Exit a parse tree produced by zaplangParser#expresionPostfija.
def exitExpresionPostfija(self, ctx:zaplangParser.ExpresionPostfijaContext):
pass
# Enter a parse tree produced by zaplangParser#expresionPrimaria.
def enterExpresionPrimaria(self, ctx:zaplangParser.ExpresionPrimariaContext):
pass
# Exit a parse tree produced by zaplangParser#expresionPrimaria.
def exitExpresionPrimaria(self, ctx:zaplangParser.ExpresionPrimariaContext):
pass
# Enter a parse tree produced by zaplangParser#constanteExpresion.
def enterConstanteExpresion(self, ctx:zaplangParser.ConstanteExpresionContext):
pass
# Exit a parse tree produced by zaplangParser#constanteExpresion.
def exitConstanteExpresion(self, ctx:zaplangParser.ConstanteExpresionContext):
pass
# Enter a parse tree produced by zaplangParser#listaArgumentos.
def enterListaArgumentos(self, ctx:zaplangParser.ListaArgumentosContext):
pass
# Exit a parse tree produced by zaplangParser#listaArgumentos.
def exitListaArgumentos(self, ctx:zaplangParser.ListaArgumentosContext):
pass
# Enter a parse tree produced by zaplangParser#marcaPunto.
def enterMarcaPunto(self, ctx:zaplangParser.MarcaPuntoContext):
pass
# Exit a parse tree produced by zaplangParser#marcaPunto.
def exitMarcaPunto(self, ctx:zaplangParser.MarcaPuntoContext):
pass
del zaplangParser