Mercurial > lcfOS
diff python/c3/builder.py @ 215:c1ccb1cb4cef
Major changes in c3 frontend
author | Windel Bouwman |
---|---|
date | Fri, 05 Jul 2013 13:00:03 +0200 |
parents | 003c8a976fff |
children | 1c7364bd74c7 |
line wrap: on
line diff
--- a/python/c3/builder.py Fri Jul 05 11:18:58 2013 +0200 +++ b/python/c3/builder.py Fri Jul 05 13:00:03 2013 +0200 @@ -1,5 +1,5 @@ import ppci -from . import Parser, Semantics, TypeChecker, Analyzer, CodeGenerator, AstPrinter +from . import Parser, TypeChecker, Analyzer, CodeGenerator class Builder: """ @@ -12,13 +12,13 @@ self.tc = TypeChecker(diag) self.al = Analyzer(diag) self.cg = CodeGenerator() - self.ap = AstPrinter() def build(self, src): """ Create IR-code from sources """ pkg = self.parser.parseSource(src) if not pkg: return self.pkg = pkg + # TODO: merge the two below? if not self.al.analyzePackage(pkg): return if not self.tc.checkPackage(pkg):