@pesnta.UUCP (10/15/83)
Sequencing line numbers in FORTRAN IV:
I have a request for a program or a 'proven'
algorithm that will take a FORTRAN IV program
as its input and output the same program with
line numbers properly sequenced. For example,
if the following were the input,
100 FORMAT .....
10001 WRITE(5,100)....
101 DO 102 I = 1,100
10002 .....
102 CONTINUE
103 etc
the output should be something like,
100 FORMAT .....
101 WRITE(5,100) ....
102 DO 104 I = 1,100
103 .....
104 CONTINUE
105 etc.
The idea is that, as the program gets larger and larger,
the line numbers tend to get out of sequence due to insertions
and deletions. Having the line numbers re-sequenced will
(it is believed) improve the readability and maintainability
of the program.
Thank you for any suggestions you may make.
Sundar Iyengar
sundar.Case@UDel-Relay
decvax!cwruecmp!sundar
12:21:10 pm, Friday September 23, 1983.