Ted Stern wrote:
> Hi all,
>
> I'm writing a Python namelist parser, and before I reinvent the wheel,
> I was wondering if anyone out there has worked out regular expressions
> to identify both old and new style NAMELIST formats.
>
> There is a fortran-namelist Python project on Google Codes, but it
> identifies only "&name ... /" format.
>
That is the (only) standard-conforming format for namelist. Perhaps
the better wheel to invent (or find) would be one that converts files
written in other formats to the standard one.
Cheers,
Bill
> Thanks,
>
> Ted
--
Bill Long [log in to unmask]
Fortran Technical Support & voice: 651-605-9024
Bioinformatics Software Development fax: 651-605-9142
Cray Inc./Cray Plaza, Suite 210/380 Jackson St./St. Paul, MN 55101
|