Mercurial > lcfOS
view python/ir/module.py @ 170:4348da5ca307
Cleanup of ir dir
author | Windel Bouwman |
---|---|
date | Fri, 29 Mar 2013 17:33:17 +0100 |
parents | 9683a4cd848f |
children | 3eb9b9e2958d |
line wrap: on
line source
# IR-Structures: class Module: """ Main container for a piece of code. """ def __init__(self, name): self.name = name self.instructions = [] def __repr__(self): return 'IR-module [{0}]'.format(self.name) def getInstructions(self): return self.instructions Instructions = property(getInstructions) def dump(self): print(self) for i in self.Instructions: print(i) print('END')