Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv8208
Modified Files:
tran.py
Log Message:
replaced Preprocessor.push_macro by Preprocessor.push
Index: tran.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/tran.py,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- tran.py 15 May 2003 12:27:30 -0000 1.71
+++ tran.py 15 May 2003 13:45:26 -0000 1.72
@@ -141,8 +141,8 @@
def __init__ (this, filename):
Lexer.__init__(this, filename)
this.tss = []
- def push_macro (this, l):
- this.tss.append(Macro_Cursor(l))
+ def push (this, toksrc):
+ this.tss.append(toksrc)
def get_token (this):
tok = None
while this.tss and tok == None:
@@ -230,7 +230,7 @@
except StopIteration:
raise 'meaningless word', root
m = Meaning[tok]
- if isinstance(m, list): prep.push_macro(m)
+ if isinstance(m, list): prep.push(Macro_Cursor(m))
elif isinstance(m, Stackable): Regstack.append(m)
else: # assume tuple
mtype = m[0]
|