comparison python/asmnodes.py @ 206:6c6bf8890d8a

Added push and pop encodings
author Windel Bouwman
date Fri, 28 Jun 2013 16:49:38 +0200
parents ca1ea402f6a1
children 1c7364bd74c7
comparison
equal deleted inserted replaced
205:d77cb5962cc5 206:6c6bf8890d8a
34 self.arg2 = arg2 34 self.arg2 = arg2
35 def __repr__(self): 35 def __repr__(self):
36 return '{0} {1} {2}'.format(self.op, self.arg1, self.arg2) 36 return '{0} {1} {2}'.format(self.op, self.arg1, self.arg2)
37 37
38 class AUnop(AExpression): 38 class AUnop(AExpression):
39 def __init__(self, op, arg): 39 def __init__(self, operation, arg):
40 self.op = op 40 self.operation = operation
41 self.arg = arg 41 self.arg = arg
42 def __repr__(self): 42 def __repr__(self):
43 return '{0} {1}'.format(self.op, self.arg) 43 return '{0} {1}'.format(self.operation, self.arg)
44 44
45 class ASymbol(AExpression): 45 class ASymbol(AExpression):
46 def __init__(self, name): 46 def __init__(self, name):
47 self.name = name 47 self.name = name
48 def __repr__(self): 48 def __repr__(self):