struct \- structure Fortran programs
translates the Fortran program specified by
Wherever possible, Ratfor control constructs
replace the original Fortran.
Statement numbers appear only where still necessary.
Cosmetic changes are made, including changing Hollerith strings
and relational operators into symbols (.e.g. `.GT.' into `>').
The output is appropriately indented.
The following options may occur in any order.
Input is accepted in standard format, i.e.
comments are specified by a c, C, or * in column 1, and continuation lines
are specified by a nonzero, nonblank character in column 6.
Normally, a statement whose first nonblank character
is not alphanumeric is treated as a continuation.
Do not turn computed goto statements into
(Ratfor does not turn switches back
into computed goto statements.)
Turn sequences of else ifs into a
non-Ratfor switch of the form
The case predicates are tested in order;
the code appropriate to only one case is executed.
This generalized form of switch statement does not
Generate goto's instead of multilevel break statements.
Generate goto's instead of multilevel next statements.
place code within a loop only if it can
lead to an iteration of the loop.
admit code segments with fewer than
if otherwise the loop would have exits to several places including the segment,
and the segment can be reached only from the loop.
Struct knows Fortran 66 syntax, but not full Fortran 77
(alternate returns, IF...THEN...ELSE, etc.)
If an input Fortran program contains identifiers which
are reserved words in Ratfor, the structured
will not be a valid Ratfor program.
Extended range DO's generate cryptic errors.
Columns 73-80 are not special even when
Will not generate Ratfor FOR statements.