[Mumps2Py:] [59] make intrinsic functions and variables case-insensitive.

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


Revision: 59
Author:   pgallot
Date:     2008-01-28 17:03:05 +0000 (Mon, 28 Jan 2008)

Log Message:
-----------
make intrinsic functions and variables case-insensitive.

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


Modified: trunk/mumps2py/mumps2tok.py
===================================================================
--- trunk/mumps2py/mumps2tok.py	2008-01-26 20:01:40 UTC (rev 58)
+++ trunk/mumps2py/mumps2tok.py	2008-01-28 17:03:05 UTC (rev 59)
@@ -308,7 +308,7 @@
 
     def consume_intrinsic(mobj):
         """ parses a Mumps intrinsic function or variable"""
-        name = re_match.group("intrinsic")
+        name = re_match.group("intrinsic").upper()
         pos = mobj.end()
         if mobj.group("func"):
             toktype = IntrinsicFuncDict[name]


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