1.1 --- a/simplify/simplified/program.py Mon Aug 06 00:54:45 2007 +0200
1.2 +++ b/simplify/simplified/program.py Sun Aug 12 00:32:16 2007 +0200
1.3 @@ -332,6 +332,16 @@
1.4 class Invoke(Node): "An invocation."
1.5 class MakeTuple(Node): "Make a tuple object."
1.6
1.7 +class Constant(Node):
1.8 +
1.9 + "A constant initialised with a type name for future processing."
1.10 +
1.11 + def __init__(self, original=None, defining=0, name=None, value=None, *args, **kw):
1.12 + Node.__init__(self, original, defining, *args, **kw)
1.13 + self.name = name
1.14 + self.value = value
1.15 + self.typename = self.value.__class__.__name__
1.16 +
1.17 # There are two types of return node: return from function and return from
1.18 # block.
1.19
1.20 @@ -378,6 +388,7 @@
1.21
1.22 Invoke.__init__(self, original, defining, expr=expr, traceback=traceback, **kw)
1.23 self.share_locals = 0
1.24 + self.consumed_args = {}
1.25 self.raises = set()
1.26
1.27 class InvokeFunction(Invoke):