[Wisp-cvs] wisp/users/dig tran.py,1.31,1.32
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-04-22 07:53:06
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv9205 Modified Files: tran.py Log Message: let Token, Stackable, Unique, Macro_Cursor, and Class_Marker inherit from object Index: tran.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/tran.py,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- tran.py 21 Apr 2003 09:30:56 -0000 1.31 +++ tran.py 22 Apr 2003 07:53:01 -0000 1.32 @@ -20,8 +20,8 @@ def abstract (this, *arg, **narg): raise 'abstract method was called', this -class Token: pass -class Stackable: +class Token (object): pass +class Stackable (object): def contained_registers (this): return () class Integer_Literal (long, Stackable, Token): @@ -47,7 +47,7 @@ if not isinstance(that, Constant_Sum): that = Constant_Sum(that) return this - that -class Unique: +class Unique (object): def __init__ (this, name): this.name = name def __repr__ (this): @@ -138,7 +138,7 @@ def push_file (this, filename): this.push_source(open(filename, 'r'), filename) -class Macro_Cursor: +class Macro_Cursor (object): def __init__ (this, sequence): this.sequence = sequence this.current = 0 @@ -176,7 +176,7 @@ def __repr__ (this): return 'Register' + tuple.__repr__(this) -class Class_Marker: +class Class_Marker (object): def __init__ (this, id): this.id = id |