comparison python/ide.py @ 102:63937c8d1478

Fixes and start with ir generator
author windel
date Tue, 25 Dec 2012 11:11:24 +0100
parents af0d7913677a
children f2d980eef509
comparison
equal deleted inserted replaced
101:af0d7913677a 102:63937c8d1478
315 ce = self.activeMdiChild() 315 ce = self.activeMdiChild()
316 if ce: 316 if ce:
317 source = ce.source 317 source = ce.source
318 self.buildOutput.clear() 318 self.buildOutput.clear()
319 self.buildOutput.append(str(self.compiler)) 319 self.buildOutput.append(str(self.compiler))
320 print(source) 320 ast = self.compiler.compilesource(source)
321 self.compiler.compilesource(source) 321 self.astViewer.setAst(ast)
322 self.buildOutput.append("Done!") 322 self.buildOutput.append("Done!")
323 def buildProject(self): 323 def buildProject(self):
324 """ Build project """ 324 """ Build project """
325 self.buildOutput.clear() 325 self.buildOutput.clear()
326 self.buildOutput.append(str(self.compiler)) 326 self.buildOutput.append(str(self.compiler))