[Mumps2Py:] [123] another tweak; create the INDIRECTION token object from the VarToken class because it can be an indexable variable .

[ Thread Index | Date Index | More lists.mumps2py.org/discuss Archives ]


Revision: 123
Author:   pgallot
Date:     2008-02-22 03:26:56 +0000 (Fri, 22 Feb 2008)

Log Message:
-----------
another tweak; create the INDIRECTION token object from the VarToken class because it can be an indexable variable. 

Modified Paths:
--------------
    trunk/mumps2py/mumps2tok.py


Modified: trunk/mumps2py/mumps2tok.py
===================================================================
--- trunk/mumps2py/mumps2tok.py	2008-02-22 03:19:36 UTC (rev 122)
+++ trunk/mumps2py/mumps2tok.py	2008-02-22 03:26:56 UTC (rev 123)
@@ -246,7 +246,7 @@
 
     def consume_indirection(mobj):
         """ parses a Mumps indirection argument"""
-        token = Token(INDIRECTION, mobj.start())
+        token = VarToken(INDIRECTION, mobj.start())
         expr = parse_expr(line, mobj.end(), r"(\^|\\|[-@:,+=><#&!*/ ')]|\s*$)")
         token.expr = expr
         pos = expr.end


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/