comparison python/c3/astnodes.py @ 186:46d62dadd61b

Improved testsuite
author Windel Bouwman
date Sat, 25 May 2013 14:26:25 +0200
parents 5fd02aa38b42
children 62386bcee1ba
comparison
equal deleted inserted replaced
185:51a6440d6398 186:46d62dadd61b
71 return '{0}'.format(self.name) 71 return '{0}'.format(self.name)
72 72
73 # Procedure types 73 # Procedure types
74 class Function(Symbol): 74 class Function(Symbol):
75 """ Actual implementation of a function """ 75 """ Actual implementation of a function """
76 def __init__(self, name, typ=None, block=None): 76 def __init__(self, name):
77 super().__init__(name) 77 super().__init__(name)
78 self.body = block
79 self.typ = typ
80 def __repr__(self): 78 def __repr__(self):
81 return '{0}'.format(self.name) 79 return '{0}'.format(self.name)
82 80
83 # Operations / Expressions: 81 # Operations / Expressions:
84 class Unop(Node): 82 class Unop(Node):