[TUHS] > there is no way that FORTRAN can be described in any syntax
Ron Young
rly1 at embarqmail.com
Mon Dec 3 15:31:47 AEST 2018
Your message dated: Sun, 02 Dec 2018 22:36:59 -0500
--------
>
> I did just that. The National Bureau of Standards picked it up
> in NBS Handbook 131, "Using ANS FORTRAN" (1980). It is expressed
> in the same formalism that Burroughs used for Algol.
>
> Doug
a couple of more data points:
Arthur Sale wrote an article on classifying fortran statements,
Volume 14 Number 1 of the Computer Journal that describes how to
classify fortran statements into 1 of 36 types.
URL:https://www.researchgate.net/profile/Arthur_Sale/publication/220459829_The_classification_of_FORTRAN_statements/links/02e7e5181a234c6545000000/The-classification-of-FORTRAN-statements.pdf).
by using the above, you can do some preprocessing to correct spacing,
line continuations, remove sequence numbers (cols 73-80) and other
formatting to make parsing easier.
John Levine wrote a ftn77 subset parser using lex and yacc (the shar
file that I have is dated Nov 1988).
-ron
===============================================================================
Ron Young rly1 at embarqmail.com
More information about the TUHS
mailing list