[Wisp-cvs] wisp/users/dig tran.py,1.32,1.33
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-04-22 10:22:26
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv15105 Modified Files: tran.py Log Message: introduced the Summable interface class Index: tran.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/tran.py,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- tran.py 22 Apr 2003 07:53:01 -0000 1.32 +++ tran.py 22 Apr 2003 10:22:21 -0000 1.33 @@ -20,6 +20,14 @@ def abstract (this, *arg, **narg): raise 'abstract method was called', this +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 () + class Token (object): pass class Stackable (object): def contained_registers (this): |