Beispiel #1
0
    def EjecutarDesc(self):
        import principal as j
        self.consola.clear()

        j.ejecutar_desc(self.editor.toPlainText())
        j.errores_desc()
        j.ReporteErrores()
        j.ReporteTS()
        j.ReporteGramatical()
        j.GenerarAST()
        s = j.RecibirSalida()
        self.consola.setPlainText(s)
Beispiel #2
0
    def EjecutarAsc(self):
        import principal as f
        self.consola.clear()

        f.ejecutar_asc(self.editor.toPlainText())
        f.errores_asc()
        f.ReporteErrores()
        f.ReporteTS()
        f.ReporteGramatical()
        f.GenerarAST()
        s = f.RecibirSalida()
        self.consola.setPlainText(s)

        return
Beispiel #3
0
 def EjecutarDesc(self):
     import principal as j
     self.consola.clear()
     try:
         j.ejecutar_desc(self.editor.toPlainText())
         j.errores_desc()
         j.ReporteErrores()
         j.ReporteTS()
         j.ReporteGramatical()
         j.GenerarAST()
         s = j.RecibirSalida()
         self.consola.setPlainText(s)
     except:
         btn = QMessageBox.information(
             self, 'FIN',
             'no se puede realizar la ejecucion del descendente',
             QMessageBox.Yes)
Beispiel #4
0
 def ReporteGramatical(self):
     import principal as l
     l.ReporteGramatical()