[Wisp-cvs] wisp/users/dig tran.py,1.16,1.17
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-04-16 13:15:43
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv2009 Modified Files: tran.py Log Message: wrote the Token, Stackable, and Unique classes Index: tran.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/tran.py,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- tran.py 16 Apr 2003 13:01:33 -0000 1.16 +++ tran.py 16 Apr 2003 13:15:38 -0000 1.17 @@ -18,6 +18,17 @@ import string import sys +class Token: pass +class Stackable: pass + +class Unique: + def __init__ (this, name): + this.name = name + def __repr__ (this): + return 'Unique(%r)' % this.name + def __str__ (this): + return this.name + class Lexer (shlex): def __init__ (this, filename): shlex.__init__(this, instream = open(filename, 'r'), infile = filename) |