Mercurial > lcfOS
comparison python/ppci/core/function.py @ 110:9e552d34bd60
Work on compiler
author | Windel Bouwman |
---|---|
date | Fri, 04 Jan 2013 15:25:58 +0100 |
parents | f2d980eef509 |
children |
comparison
equal
deleted
inserted
replaced
108:8267ba1dbce3 | 110:9e552d34bd60 |
---|---|
3 def __init__(self, argtype, name, function): | 3 def __init__(self, argtype, name, function): |
4 self.t = argtype | 4 self.t = argtype |
5 self.name = name | 5 self.name = name |
6 self.function = function | 6 self.function = function |
7 | 7 |
8 class Function: | 8 class Function(GlobalValue): |
9 def __init__(self, functiontype, name, module): | 9 def __init__(self, functiontype, name, module): |
10 super().__init__() | |
10 self.functiontype = functiontype | 11 self.functiontype = functiontype |
11 self.name = name | 12 self.name = name |
12 self.module = module | 13 self.module = module |
13 | 14 |
14 self.module.Functions.append(self) | 15 self.module.Functions.append(self) |