Re: utility to replace "end" with "end subroutine foo"




"Beliavsky" <beliavsky@xxxxxxx> wrote in message
news:1177699661.529939.195410@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Has anyone written a utility to replace "end" statements with "end
program/subroutine/function" statements as appropriate? When I use
someone else's Fortran code one of the first things I want to do is
put it in a module, but this does not work if plain "end" statements
are present.

Maybe not what you want, but convert.f90 does it when converting from fixed-
to free-form source.

Regards,

Mike Metcalf


.