[Wisp-cvs] wisp/users/dig tran.py,1.67,1.68
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-05-15 05:39:53
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv32167 Modified Files: tran.py Log Message: introduced the Token_Source abstraction layer class Index: tran.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/tran.py,v retrieving revision 1.67 retrieving revision 1.68 diff -u -d -r1.67 -r1.68 --- tran.py 13 May 2003 18:15:53 -0000 1.67 +++ tran.py 15 May 2003 05:39:50 -0000 1.68 @@ -99,7 +99,10 @@ Semicolon = Unique_Token(';') -class Lexer (shlex): +class Token_Source (object): + get_token = abstract + +class Lexer (shlex, Token_Source): def __init__ (this, filename): shlex.__init__(this, instream = open(filename, 'r'), infile = filename) this.commenters = '\\' |