Mercurial > lcfOS
comparison 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 |
comparison
equal
deleted
inserted
replaced
250:f5fba5b554d7 | 251:6ed3d3a82a63 |
---|---|
255 ce = self.activeMdiChild() | 255 ce = self.activeMdiChild() |
256 if not ce: | 256 if not ce: |
257 return | 257 return |
258 self.diag.clear() | 258 self.diag.clear() |
259 self.buildOutput.append('Starting parse') | 259 self.buildOutput.append('Starting parse') |
260 ir = self.c3front.build(ce.Source) | 260 pkg = self.c3front.parse(ce.Source) |
261 | 261 |
262 # Set errors: | 262 # Set errors: |
263 for err in self.diag.diags: | 263 for err in self.diag.diags: |
264 self.buildOutput.append(str(err)) | 264 self.buildOutput.append(str(err)) |
265 self.builderrors.setErrorList(self.diag.diags) | 265 self.builderrors.setErrorList(self.diag.diags) |
266 ce.setErrors(self.diag.diags) | 266 ce.setErrors(self.diag.diags) |
267 ast = self.c3front.pkg | 267 self.astViewer.setAst(pkg) |
268 self.astViewer.setAst(ast) | |
269 self.buildOutput.append("Done!") | 268 self.buildOutput.append("Done!") |
270 | 269 |
271 def buildFile(self): | 270 def buildFile(self): |
272 ce = self.activeMdiChild() | 271 ce = self.activeMdiChild() |
273 if not ce: | 272 if not ce: |