micropython/common.py | raw changeset files shortlog |
1.1 --- a/micropython/common.py Fri Oct 10 00:56:20 2008 +0200 1.2 +++ b/micropython/common.py Sat Oct 25 21:51:23 2008 +0200 1.3 @@ -73,6 +73,16 @@ 1.4 1.5 # Program code representations. 1.6 1.7 +class Block: 1.8 + 1.9 + "A code block." 1.10 + 1.11 + def __init__(self): 1.12 + self.code = [] 1.13 + 1.14 + def __repr__(self): 1.15 + return "Block(%r)" % id(self) 1.16 + 1.17 class Label: 1.18 1.19 "A reference to a location."