From ff660cb1a45a60128b6d934bc6977773b3ca7e34 Mon Sep 17 00:00:00 2001 From: Pearu Peterson Date: Mon, 26 Jun 2006 05:54:44 +0000 Subject: Cont. impl. Fortran parser. --- numpy/f2py/lib/readfortran.py | 70 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 56 insertions(+), 14 deletions(-) (limited to 'numpy/f2py/lib/readfortran.py') diff --git a/numpy/f2py/lib/readfortran.py b/numpy/f2py/lib/readfortran.py index 1d6335865..26bfa1b0b 100644 --- a/numpy/f2py/lib/readfortran.py +++ b/numpy/f2py/lib/readfortran.py @@ -21,6 +21,7 @@ __all__ = ['FortranFileReader', ] import re +import os import sys import tempfile import traceback @@ -35,6 +36,7 @@ _cf2py_re = re.compile(r'(?P\s*)!f2py(?P.*)',re.I) _is_fix_cont = lambda line: line and len(line)>5 and line[5]!=' ' and line[:5]==5*' ' _is_f90_cont = lambda line: line and '&' in line and line.rstrip()[-1]=='&' _f90label_re = re.compile(r'\s*(?P