[TUHS] > there is no way that FORTRAN can be described in any syntax
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.
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.
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 Young rly1 at embarqmail.com
More information about the TUHS