comparison python/c3/astnodes.py @ 215:c1ccb1cb4cef

Major changes in c3 frontend
author Windel Bouwman
date Fri, 05 Jul 2013 13:00:03 +0200
parents 003c8a976fff
children 8b2e5f3cd579
comparison
equal deleted inserted replaced
214:6875360e8390 215:c1ccb1cb4cef
104 class Function(Symbol): 104 class Function(Symbol):
105 """ Actual implementation of a function """ 105 """ Actual implementation of a function """
106 def __init__(self, name, loc): 106 def __init__(self, name, loc):
107 super().__init__(name) 107 super().__init__(name)
108 self.loc = loc 108 self.loc = loc
109 self.declarations = []
109 110
110 def __repr__(self): 111 def __repr__(self):
111 return '{}'.format(self.name) 112 return '{}'.format(self.name)
112 113
113 # Operations / Expressions: 114 # Operations / Expressions: