1.1 --- a/micropython/common.py Sun May 18 19:59:26 2008 +0200
1.2 +++ b/micropython/common.py Mon May 19 00:22:00 2008 +0200
1.3 @@ -65,6 +65,19 @@
1.4
1.5 pass
1.6
1.7 +# Program code representations.
1.8 +
1.9 +class Label:
1.10 +
1.11 + "A reference to a location."
1.12 +
1.13 + def __init__(self, number, location=None):
1.14 + self.number = number
1.15 + self.location = location
1.16 +
1.17 + def __repr__(self):
1.18 + return "Label(%r, location=%r)" % (self.number, self.location)
1.19 +
1.20 # Inspection representations.
1.21
1.22 class AtLeast: