comparison python/ppci/c3/scope.py @ 394:988f3fb861e4

c3 code generator rewrite
author Windel Bouwman
date Thu, 22 May 2014 08:14:12 +0200
parents 2ec730e45ea1
children
comparison
equal deleted inserted replaced
393:6ae782a085e0 394:988f3fb861e4
14 # Iterate in a deterministic manner: 14 # Iterate in a deterministic manner:
15 return iter(self.Constants + self.Variables + self.Functions) 15 return iter(self.Constants + self.Variables + self.Functions)
16 16
17 @property 17 @property
18 def Syms(self): 18 def Syms(self):
19 """ Get all the symbols defined in this scope """
19 syms = self.symbols.values() 20 syms = self.symbols.values()
20 return sorted(syms, key=lambda v: v.name) 21 return sorted(syms, key=lambda v: v.name)
21 22
22 @property 23 @property
23 def Types(self): 24 def Types(self):