diff python/ide.py @ 251:6ed3d3a82a63

Added another c3 example. First import attempt
author Windel Bouwman
date Mon, 29 Jul 2013 20:23:13 +0200
parents f5fba5b554d7
children bd26dc13f270
line wrap: on
line diff
--- a/python/ide.py	Sun Jul 28 19:07:51 2013 +0200
+++ b/python/ide.py	Mon Jul 29 20:23:13 2013 +0200
@@ -257,15 +257,14 @@
             return
         self.diag.clear()
         self.buildOutput.append('Starting parse')
-        ir = self.c3front.build(ce.Source)
+        pkg = self.c3front.parse(ce.Source)
 
         # Set errors:
         for err in self.diag.diags:
             self.buildOutput.append(str(err))
         self.builderrors.setErrorList(self.diag.diags)
         ce.setErrors(self.diag.diags)
-        ast = self.c3front.pkg
-        self.astViewer.setAst(ast)
+        self.astViewer.setAst(pkg)
         self.buildOutput.append("Done!")
 
     def buildFile(self):