Fortran Parser Question

Clive Page cgp at nospam.le.ac.uk
Tue Apr 17 05:37:09 EDT 2001


In article <9b7o8q$gn0$1 at news.wrc.xerox.com>,
Mark Jackson <mjackson at wc.eso.mc.xerox.com> wrote:
>
>Comparatively minor example:  as whitespace is not significant in Fortran
>a statement that begins "DO 50 I =" could be either the beginning of
>a do-loop that extends through statement 50, or the beginning of an
>assignment to the variable do50i.

In all recent Fortran Standards (Fortran90, Fortran95) whitespace _is_
significant if the source code adopts the free-format convention, which
just about everybody uses.  But a good parser probably ought to cope with
both, so what you say is partly true.

I agree that it's not a trivial undertaking.

-- 
Clive Page   cgp at le.ac.uk



More information about the Python-list mailing list