Пример #1
0
def EjecutarDESC(input):
    instrucciones = FormaDesc.parse(input)
    global ts_global
    ts_global = TS.TablaDeSimbolos()
    if instrucciones is None:
        print('Unnable to Compile. Please check the code')
    else:
        grafo = Graficadora()
        grafo.Recorrer_Instrucciones_Inicio(instrucciones)
        Recorrer_Instrucciones(instrucciones, ts_global)
Пример #2
0
def DebuggerIniciar(input):
    global Terminar
    Terminar = False
    global instrdebug
    instrdebug = g.parse(input)
    global ts_global
    Globales.debug = 0
    ts_global = TS.TablaDeSimbolos()
    if instrdebug is None:
        print('Unnable to Compile. Please Check the Code')
    else:
        accion_LlenarTsEtiquetas(
            instrdebug, ts_global)  # tengo que llenar al iniciar mis etiquetas