[Mumps2Py:] [144] found some sketchy information about job-command arguments having bracketed sub-arguments .

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


Revision: 144
Author:   pgallot
Date:     2008-02-29 05:44:25 +0000 (Fri, 29 Feb 2008)

Log Message:
-----------
found some sketchy information about job-command arguments having bracketed sub-arguments.  Specifically having 1 or 2 sub-arguments.  I've got an example that uses 3 sub-arguments.

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


Modified: trunk/mumps2py/mumps2tok.py
===================================================================
--- trunk/mumps2py/mumps2tok.py	2008-02-29 05:38:46 UTC (rev 143)
+++ trunk/mumps2py/mumps2tok.py	2008-02-29 05:44:25 UTC (rev 144)
@@ -681,6 +681,15 @@
                         pos = pos + 1
                 entry_ref.params = params
                 pos = pos + 1
+            if not mterminated.match(line, pos) and line[pos] == '[':
+                uci = parse_expr(line, pos + 1, r",|[]]")
+                entry_ref.uci = uci
+                pos = uci.end
+                if line[pos] == ',':
+                    uci_sys = parse_expr(line, pos + 1, r"[]]")
+                    entry_ref.uci_sys = uci_sys
+                    pos = uci_sys.end
+                pos = pos + 1 # eat the closing ']'
             if not mterminated.match(line, pos) and line[pos] == ':':
                 pos = pos + 1
                 if line[pos] == '(':


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