[Mumps2Py:] [12] initialize the token list before parsing a module. |
[ Thread Index |
Date Index
| More lists.mumps2py.org/discuss Archives
]
Revision: 12
Author: pgallot
Date: 2008-01-17 18:50:33 +0000 (Thu, 17 Jan 2008)
Log Message:
-----------
initialize the token list before parsing a module.
Modified Paths:
--------------
trunk/mumps2py/mumps2tok.py
Modified: trunk/mumps2py/mumps2tok.py
===================================================================
--- trunk/mumps2py/mumps2tok.py 2008-01-17 18:49:15 UTC (rev 11)
+++ trunk/mumps2py/mumps2tok.py 2008-01-17 18:50:33 UTC (rev 12)
@@ -907,6 +907,8 @@
def parseMumps(mumps_module):
""" Parse all the code of given Mumps module."""
+ mumps_module.empty_tokenlist()
+
pattern_list = [
(MUMPS_RE_DICT["label"], parse_label, "label"),
(MUMPS_RE_DICT["comment"], parse_comment, "comment"),