Mercurial > lcfOS
diff python/ppci/ir.py @ 377:9667d78ba79e
Switched to xml for project description
author | Windel Bouwman |
---|---|
date | Fri, 11 Apr 2014 15:47:50 +0200 |
parents | c49459768aaa |
children | 988f3fb861e4 |
line wrap: on
line diff
--- a/python/ppci/ir.py Tue Mar 25 19:36:51 2014 +0100 +++ b/python/ppci/ir.py Fri Apr 11 15:47:50 2014 +0200 @@ -41,10 +41,10 @@ Variables = property(get_variables) - def getFunctions(self): + def get_functions(self): return self.functions - Functions = property(getFunctions) + Functions = property(get_functions) def findFunction(self, name): for f in self.funcs: @@ -194,6 +194,9 @@ # Instructions: +class Value: + pass + class Expression: """ Base class for an expression """ pass @@ -227,6 +230,7 @@ def __init__(self, value1, operation, value2): assert operation in Binop.ops + #assert type(value1) is type(value2) self.a = value1 self.b = value2 self.operation = operation