Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv11018
Modified Files:
tran.py
Log Message:
replaced Unique_Stackable by Dollar_Type inheriting from Summable
Index: tran.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/tran.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- tran.py 22 Apr 2003 10:36:45 -0000 1.35
+++ tran.py 22 Apr 2003 11:35:47 -0000 1.36
@@ -67,10 +67,15 @@
def __str__ (this):
return this.name
class Unique_Token (Unique, Token): pass
-class Unique_Stackable (Unique, Stackable): pass
+class Dollar_Type (Unique, Stackable, Summable):
+ def __init__ (this):
+ Unique.__init__(this, '$')
+ Stackable.__init__(this)
+ Summable.__init__(this)
+ def get_dollars (this): return 1
Semicolon = Unique_Token(';')
-Dollar = Unique_Stackable('$')
+Dollar = Dollar_Type()
class Constant_Sum (Stackable):
def __init__ (this, plus = (), minus = (), scalar = 0L):
|