[Wisp-cvs] wisp/users/dig tran.py,1.36,1.37
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-04-22 12:32:17
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv2109 Modified Files: tran.py Log Message: dropped subtractees from Summable:s Index: tran.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/tran.py,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- tran.py 22 Apr 2003 11:35:47 -0000 1.36 +++ tran.py 22 Apr 2003 12:32:12 -0000 1.37 @@ -23,11 +23,8 @@ class Summable (object): def get_scalar (this): return 0 def get_dollars (this): return 0 - def get_pos_symbols (this): return () - def get_neg_symbols (this): return () - def get_pos_regs (this): return () - def get_neg_regs (this): return () - + def get_symbols (this): return () + def get_regs (this): return () class Token (object): pass class Stackable (object): def contained_registers (this): @@ -56,7 +53,7 @@ if not isinstance(this, Constant_Sum): this = Constant_Sum(this) if not isinstance(that, Constant_Sum): that = Constant_Sum(that) return this - that - def get_pos_symbols (this): + def get_symbols (this): return this, class Unique (object): |