1.1 --- a/micropython/program.py Sat Oct 10 03:09:29 2009 +0200
1.2 +++ b/micropython/program.py Sun Oct 11 02:40:20 2009 +0200
1.3 @@ -30,12 +30,6 @@
1.4 def __repr__(self):
1.5 return "Block(%r, location=%r)" % (id(self), self.location)
1.6
1.7 - def as_raw(self, objtable, paramtable):
1.8 - for i, item in enumerate(self.code):
1.9 - if hasattr(item, "location"):
1.10 - item.location = location + i
1.11 - return self.code
1.12 -
1.13 class DataValue:
1.14
1.15 "A representation of a raw program value."
1.16 @@ -45,7 +39,7 @@
1.17 self.ref = ref
1.18
1.19 def __repr__(self):
1.20 - return "%r, %r" % (
1.21 + return "value: (%r, %r)" % (
1.22 self.context, self.ref
1.23 )
1.24
1.25 @@ -68,7 +62,7 @@
1.26 return DataObject(self.classcode, self.attrcode, codeaddr, self.name, self.size, self.funccode)
1.27
1.28 def __repr__(self):
1.29 - return "%r # %s" % (
1.30 + return "object: %r # %s" % (
1.31 (self.classcode, self.attrcode, self.codeaddr, self.funccode, self.size), self.name
1.32 )
1.33