Mercurial > lcfOS
diff ide/compiler/compiler.py @ 15:de004f808e56
Fixup in multidocument area stuff
author | windel |
---|---|
date | Tue, 15 Nov 2011 07:35:00 +0100 |
parents | 2db4d2b362e6 |
children |
line wrap: on
line diff
--- a/ide/compiler/compiler.py Sun Nov 13 23:24:10 2011 +0100 +++ b/ide/compiler/compiler.py Tue Nov 15 07:35:00 2011 +0100 @@ -39,6 +39,15 @@ sym = ExportedSymbol(proc.name, proc.typ) sym.imageoffset = proc.entrypoint ast.exports.append(sym) - return ast + def compileProject(self, project): + mods = [] + for fname in project.files: + print('Compiling {0}...'.format(fname)) + source = project.loadProjectFile(fname) + mod = self.compilesource(source) + mods.append(mod) + return mods + +