Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!ncar!boulder!pikes!aspen.craycos.com!jrbd From: jrbd@craycos.com (James Davies) Newsgroups: comp.lang.fortran Subject: Re: The "struct" program Message-ID: <1990Dec6.172647.1457@craycos.com> Date: 6 Dec 90 17:26:47 GMT References: <6861@uceng.UC.EDU> Organization: Cray Computer Corporation Lines: 15 In article <6861@uceng.UC.EDU> dmocsny@minerva.che.uc.edu (Daniel Mocsny) writes: >I stumbled across a quite useful program called "struct" in the >distribution of the VAX Ultrix version of UNIX. "struct" converts >spaghetti-code FORTRAN-66 or FORTRAN-77 into nice, clean "ratfor". >It does a very good job of replacing GOTO constructs into >equivalent IF-THEN-ELSE, FOR, WHILE, and SWITCH-CASE-DEFAULTs. ... >Who wrote "struct", and why I haven't I found it talked about >in the Ultrix-32 Supplementary Documents, Volume 2, where "f77" and >"ratfor" have their entries? There is a paper on struct in the Journal of the ACM, Jan. 1977, "An Algorithm for Structuring Programs," by B.S. Baker. As to why it isn't in the manuals or on all Unix systems, beats me. Maybe because ratfor isn't used much any more?