Mercurial > lcfOS
diff python/c3/codegenerator.py @ 186:46d62dadd61b
Improved testsuite
author | Windel Bouwman |
---|---|
date | Sat, 25 May 2013 14:26:25 +0200 |
parents | 460db5669efa |
children | de3a68f677a5 |
line wrap: on
line diff
--- a/python/c3/codegenerator.py Fri May 24 20:45:03 2013 +0200 +++ b/python/c3/codegenerator.py Sat May 25 14:26:25 2013 +0200 @@ -23,8 +23,9 @@ self.funcMap[s] = f for s in pkg.scope: if type(s) is astnodes.Variable: - # TODO - pass + v = self.builder.newTmp(s.name) + #self.builder.addIns(ir.Alloc(v)) + self.varMap[s] = v elif type(s) is astnodes.Function: # TODO: handle arguments f = self.funcMap[s]