1.1 --- a/micropython/program.py Sun Aug 21 21:38:56 2011 +0200
1.2 +++ b/micropython/program.py Sun Aug 21 23:59:52 2011 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Program code and data representations.
1.6
1.7 -Copyright (C) 2009 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2009, 2011 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -26,10 +26,17 @@
1.13 def __init__(self):
1.14 self.code = []
1.15 self.location = None
1.16 + self.active_values = set()
1.17
1.18 def __repr__(self):
1.19 return "Block(%r, location=%r)" % (id(self), self.location)
1.20
1.21 + def set_active_values(self, values):
1.22 + self.active_values = values
1.23 +
1.24 + def get_active_values(self):
1.25 + return self.active_values
1.26 +
1.27 class DataValue:
1.28
1.29 "A representation of a raw program value."