def send_data(): print("Analizando Entrada:") print("==============================================") # reporteerrores = [] contenido = Tentrada.get(1.0, 'end') Tsalida.delete("1.0", "end") Tsalida.configure(state='normal') # print(contenido) jsonMode.dropAll() jsonMode.createDatabase("DB1") Principal = Entorno() Principal.database = "DB1" instrucciones = g.parse(contenido) Tsalida.insert(INSERT, "Salida de consultas\n") for instr in instrucciones: if instr != None: res = instr.ejecutar(Principal) if res != None: res += '\n' Tsalida.insert(INSERT, res) Tsalida.configure(state='disabled') Principal.mostrarSimbolos() reporte_lex_sin()
def send_data(): print("Analizando Entrada:") print("==============================================") # reporteerrores = [] contenido = Tentrada.get(1.0, 'end') variables.consola.delete("1.0", "end") variables.consola.configure(state='normal') # print(contenido) Principal = Entorno() jsonMode.dropAll() # Principal.database = "DB1" instrucciones = g.parse(contenido) variables.consola.insert(INSERT, "Salida de consultas\n") for instr in instrucciones: if instr != None: instr.ejecutar(Principal) string = str(instr) intrprueba = string variables.consola.configure(state='disabled') # variables.consola.configure() setContenido(Principal.mostrarSimbolos())
def send_data(): print("Analizando Entrada:") print("==============================================") # reporteerrores = [] contenido = Tentrada.get(1.0, 'end') variables.consola.delete("1.0", "end") variables.consola.configure(state='normal') # print(contenido) Principal = Entorno() jsonMode.dropAll() # Principal.database = "DB1" instrucciones = g.parse(contenido) variables.consola.insert(INSERT, "Salida de consultas\n") for instr in instrucciones: if instr != None: res = instr.ejecutar(Principal) if res != None: res = str(res) + '\n' variables.consola.insert(INSERT, res) variables.consola.configure(state='disabled') #variables.consola.configure() tSym = Principal.mostrarSimbolos() with open('ts.dot', 'w', encoding='utf8') as ts: ts.write(tSym) check_call(['dot', '-Tpdf', 'ts.dot', '-o', 'ts.pdf']) reporte_lex_sin()