Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!spdcc!ima!cfisun!stardent!johnd From: johnd@Stardent.COM (John R. Dennis @stardent) Newsgroups: comp.lang.fortran Subject: fortran source code translation utility Message-ID: <1990Feb12.234210.5541@Stardent.COM> Date: 12 Feb 90 23:42:10 GMT Organization: Stardent Computer, Newton MA Lines: 24 Can anyone point us at a utility that would perform a modest amount of automated text editing on fortran source. The intended application is changing from an old API (Application Program Interface, e.g. library calling semantics) to a new API. At a minimum we want to be able to replace one name with another, optionally we would also like to be able to add or delete a parameter or change its position in a parameter list, or translate a hard-coded constant to a symbolic constant (parameter in fortran), etc. Note that because of the difficulty of doing lexical analysis of fortran source and identifing tokens this is not a simple string replacement operation such as might be offered by awk or sed in UNIX. Such a utility must have considerable smarts about the fortran language. It seems to me that given fortran's long history this must be a common problem that has had multiple solutions. Can you point us at some of those solutions, hopefully in the public domain? -- John Dennis E Mail: johnd@Stardent.COM | {uunet,convex,decvax}!stardent!johnd Snail Mail: Stardent Computer, 85 Wells Avenue Newton, MA 02159 Voice Mail: (617) 964-6228 x243 (508)366-7976