rbthomas@athos.rutgers.edu (Rick Thomas) (10/10/89)
Fortran Folks, Here is the promised summary of replies to my request for TIDY sources. The executive summary is that there is a good package available from NAG called TOOLPACK and it may be better for our particular needs than TIDY, but TIDY is indeed alive and well after all these years. Thanks to all who responded! Rick %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% From: rbthomas@athos.rutgers.edu (Rick Thomas) Newsgroups: comp.lang.fortran Subject: TIDY? -- was: Re: Fortran preprocessors Date: 3 Oct 89 15:55:11 GMT Organization: Rutgers Univ., New Brunswick, N.J. Once upon a time there was a program called TIDY, that "cleaned up old tired Fortran decks" It renumbered statments and optionally did things like convert '""' type hollerith constants to '77H' type, and so on. It was Fortran-66 based, but I wonder if it was ever updated to handle Fortran77. It was Public Domain, if I remember right, having been originally written at some place like the National Security Agency. I need a Fortran parser as the beginnings of a SUN to CDC Fortran converter, and I thought TIDY might be a good starting point. Any pointers? Any pointers to any other PD programs that might serve the purpose? I don't usually read this group, so please reply directly by e-mail. If there is enough interest, I will summarize to the net. Thanks in advance! Rick ======================================================================== Rick Thomas, Manager Supercomputer Remote Access Center Rutgers University, College of Engineering Brett and Bowser Roads Piscataway, NJ 08855-0909 Phone: (201) 932-4301 Internet: rbthomas@jove.rutgers.edu UUCP: {any backbone site}!rutgers!jove.rutgers.edu!rbthomas Alternate UUCP: {convex|c1apple|karna}!kingtut!rbthomas There are lots of dangerous people on the streets of Manhattan... muggers, rapists, mimes... ======================================================================== -- Rick Thomas uucp: {ames, att, harvard}!rutgers!jove.rutgers.edu!rbthomas internet: rbthomas@JOVE.RUTGERS.EDU bitnet: rbthomas@zodiac.bitnet Phone: (201) 932-4301 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Date: Tue, 3 Oct 89 14:26:22 -0500 From: peb@cs.purdue.edu (Paul E. Buis) Subject: Re: TIDY? -- was: Re: Fortran preprocessors Organization: Department of Computer Science, Purdue University If you want a FORTRAN parser, you might look at the TOOLPACK system from Los Alamos availble from NAG for a nominal distribution cost (I ftp'ed it from lambda.lanl.gov a a few months ago without documentation). It contains a parser for "standard" Fortran 77 and tools for source-to-source transformations. The lexer and parser are standalone programs that "pipe" information though disk files to later-stage processors. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Subject: Re: TIDY? -- was: Re: Fortran preprocessors Date: Tue, 03 Oct 89 15:01:27 -0500 From: tmp@mentor.cc.purdue.edu > Once upon a time there was a program called TIDY ... > ... I wonder if it was ever updated to handle Fortran77. Your are in luck. One of our people did just that -- several years ago -- and we distribute the package to folks like you for free. We call it CLEAN77. There are now several different flavors, including a UNIX version. For further information, mail a note to Greg Flint <afc@klaatu.cc.Purdue.EDU> and let him know the specifics of your anticipated operating environment. He did most of the work and handles distribution requests. Tom Putnam Assistant Director ARPANET: tmp@mentor.cc.Purdue.EDU Purdue University Computing Center BITNET: TMP@PURCCVM Mathematical Sciences Bldg. Phone: (317) 494-1787 West Lafayette, IN 47907 LAHS 62 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Subject: Re: TIDY? -- was: Re: Fortran preprocessors Date: Tue, 03 Oct 89 15:30:05 EST From: peb@cs.purdue.edu If in North America, write to: Toolpack/1 Distribution Service Numerical Alogrithms Group Inc 1101 31st Street, Suite 100 Downers Grove, IL 60515-1263 USA else, write to: Toolpack/1 Distribution Service Numerical Algorithms Group Ltd Mayfield House 256 Banbury Road Oxford United Kingdom OX2 7DE You should specify the operating system you intend to run under, as the I/O code is OS dependant for speed. They will send you a tape (after the usual red tape) with FORTRAN and OS dependant source. Everything above I/O is in FORTRAN. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Subject: Re: TIDY? -- was: Re: Fortran preprocessors Date: Tue, 03 Oct 89 15:30:05 EST From: peb@cs.purdue.edu If in North America, write to: Toolpack/1 Distribution Service Numerical Alogrithms Group Inc 1101 31st Street, Suite 100 Downers Grove, IL 60515-1263 USA else, write to: Toolpack/1 Distribution Service Numerical Algorithms Group Ltd Mayfield House 256 Banbury Road Oxford United Kingdom OX2 7DE You should specify the operating system you intend to run under, as the I/O code is OS dependant for speed. They will send you a tape (after the usual red tape) with FORTRAN and OS dependant source. Everything above I/O is in FORTRAN. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Date: Tue, 3 Oct 89 14:21:56 PDT From: forags@violet.berkeley.edu Subject: TIDY I did a conversion of TIDY to Fortran-77 a few months ago. It is available at SIMTEL20 as PD1:<msdos.fortran>tidy3.arc My version doesn't translate H-counts to '...', but does most anything else. The version at SIMTEL20 is set up for MS-DOS, but there are conversion instructions to Unix and IBM VM/CMS. There are a couple of minor bugs which I have corrected but not yet uploaded. Feel free to modify/extend it as desired. (After I did it, I found other sources for tidy such as the National Energy Software Center at Argonne National Lab -- they have a whole collection of TIDY's for different systems. Contact Larry Eyberger (B27253@anlnesc.bitnet) Al Stangenberger Dept. of Forestry & Resource Mgt. forags@violet.berkeley.edu 145 Mulford Hall - Univ. of Calif. uucp: ucbvax!ucbviolet!forags Berkeley, CA 94720 BITNET: FORAGS AT UCBVIOLE (415) 642-4424 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Date: Wed, 4 Oct 89 9:10:52 EDT From: -- <mcohen@brl.mil> Subject: Re: TIDY? -- was: Re: Fortran preprocessors Organization: Army Materiel Systems Analysis Activity I have a copy of tidy that I got from simtel20, I think. It has been updated to Fortran 77. It still is free. It is huge; I don't think it would be a good starting point for a parser, but I really haven't examined the code. I just compiled it and put the .exe on my PC. -- -- Marty Cohen mcohen@brl.mil {uunet|rutgers}!brl!mcohen Custom House Rm 800, Phila. PA 19106 (215)597-8377 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Date: Wed, 4 Oct 89 17:33:56 EDT From: roberto@vulcan (Roberto Gomez) Subject: Re: TIDY? -- was: Re: Fortran preprocessors Organization: University of Pittsburgh Someone uploaded it to Simtel20.arpa not too long ago, available for anonymous ftp. It me somewhere in PD:<MSDOS.FORTRAN>, but I'm not too sure about the directory. Good luck. -roberto -- Roberto Gomez, Physics Dept., Univ. of Pittsburgh, Pittsburgh PA 15260 Arpa: roberto@bondi.phyast.pitt.edu (130.49.33.13) UUCP: ...!psuvax1!pitt!cisunx!gomez Phone: (412) 624-9089 (W), (412) 421-3478 (H) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Date: Wed, 4 Oct 89 16:32:02 MDT From: dph%woodsy@lanl.gov (David Huelsbeck) Subject: PD Fortran parsers Check out the Toolpack/1 stuff on lambda.lanl.gov:~ftp/pub/toolpack It has a PD Fortran parser as well as several other tools. There is an explanation in the readme file. Oh, lambda is 128.165.4.10 if your name server doesn't grok lambda.lanl.gov Anonymous ftp is the way you get in. -dph %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% From: scowles@lll-lcc.UUCP (Sid Cowles) Subject: Re: TIDY? -- was: Re: Fortran preprocessors Date: 4 Oct 89 16:47:14 GMT Reply-To: scowles@lll-lcc.llnl.gov (Sid Cowles) Organization: Lawrence Livermore Labs, env sci div, Livermore CA In article <Oct.3.11.55.09.1989.25748@athos.rutgers.edu> rbthomas@athos.rutgers.edu (Rick Thomas) writes: >Once upon a time there was a program called TIDY, that "cleaned up old >tired Fortran decks" It renumbered statments and optionally did >things like convert '""' type hollerith constants to '77H' type, and >so on. > >It was Fortran-66 based, but I wonder if it was ever updated to handle >Fortran77. >Any pointers? >Internet: rbthomas@jove.rutgers.edu tidy is alive and well. i've used it and found it to be worthwhile for cleaning up code. i've taken the liberty of including the cover and first page from TIDY.DOC, below. tidy is available by anonymous ftp from wsmr-simtel20.army.mil. ======================================================================= s cowles uucp: {backbone}!lll-lcc!scowles internet: scowles@lll-lcc.llnl.gov ======================================================================= TIDY A Computer Code for Renumbering and Editing FORTRAN Source Programs by: Harry M. Murphy, Jr. Air Force Weapons Laboratory Kirtland AFB, New Mexico FORTRAN-77 Conversion by: Alan G. Stangenberger Dept. of Forestry & Resource Management University of California Berkeley, CA 94720 Copyright (C) 1989, The Regents of the University of California All Rights Reserved THE REGENTS OF THE UNIVERSITY OF CALIFORNIA MAKE NO REPRESENTATION OR WARRANTIES WITH RESPECT TO THE CONTENTS HEREOF AND SPECIFICALLY DISCLAIM ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE. Further, the Regents of the University of California reserve the right to revise this software and/or documentation and to make changes from time to time in the content hereof without obligation of the Regents of the University of California to notify any person of such revision or change. PERMISSION TO COPY AND DISTRIBUTE THIS PROGRAM, AND TO MAKE DERIVATIVE WORKS FROM IT, IS GRANTED PROVIDED THAT THIS COPY- RIGHT NOTICE IS RETAINED IN ALL SOURCE CODE AND USER MANUALS. I. Introduction The TIDY program renumbers and otherwise cleans up old and tired FORTRAN source programs. TIDY accepts ANSI FORTRAN with 19 continuation cards as well as some IBM and CDC dialect FORTRAN statements. It is designed to work with ANSI FORTRAN-77, and will also accept FORTRAN II and FORTRAN IV statements. Certain FORTRAN II statements (such as READ INPUT TAPE) are automatically translated to their FORTRAN IV equivalents. All lower case alphabetic characters are translated to upper case except for those in strings, Hollerith constants, and comment statements. Although this manual is oriented to MS-DOS computers, this version of TIDY has been successfully installed under the UNIX (4.3 BSD) and IBM VM/CMS operating systems. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Date: Thu, 5 Oct 89 15:21:33 EDT From: bose!chuck@uunet.uu.net (cox) Subject: TIDY Hi Rick- I was just about to post a request for a program like TIDY. If you have any luck finding a FORTRAN pretty-printer/reformatter, I would really appreciate it if you sent me a copy, or let me know how to get one for myself. Thanks in advance. -Chuck Cox ...!uunet!bose!chuck %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% From: wvenable@spam.ua.oz (Bill Venables) Subject: Re: TIDY? -- was: Re: Fortran preprocessors Date: 5 Oct 89 21:15:12 GMT Reply-To: wvenable@spam.oz.au (Bill Venables) Organization: Statistics, Pure and Applied Maths, University of Adelaide In article <2615@lll-lcc.UUCP> scowles@lll-lcc.llnl.gov (Sid Cowles) writes: > In article <Oct.3.11.55.09.1989.25748@athos.rutgers.edu> rbthomas@athos.rutgers.edu (Rick Thomas) writes: >>Once upon a time there was a program called TIDY, that "cleaned up old >>tired Fortran decks" [...] > > tidy is alive and well. [...] > tidy is available by > anonymous ftp from wsmr-simtel20.army.mil. Could someone with authority to do so please post the sources of tidy for those of us who cannot access the anonymous ftp site? -- Bill Venables, Dept. Statistics, | Email: wvenable@spam.ua.oz.au Univ. of Adelaide, South Australia. | Phone: +61 8 228 5418 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Date: Fri, 6 Oct 89 14:13:58 pdt From: Ray Asbury <ray@isc.intel.com> Subject: Re: TIDY? -- was: Re: Fortran preprocessors Organization: Intel Scientific Computer, Beaverton, OR Tidy was written by Harry Murphy of the Air Force Weapons Labratory, Kirtland AFB, Albuquerque, New Mexico. I don't know if Harry is still around but I'm sure Tidy is. I worked for Harry in the mid 1970's and was often asked to duplicate and distribute the Tidy code as you've asked. A phone call to the AFWL data center would probably do the trick. -- Ray Asbury CSNET: ray@isc.intel.com Intel Scientific Computers 15201 NW Greenbrier Parkway Beaverton, Oregon 97006 (503) 629-7641 -- Rick Thomas uucp: {ames, att, harvard}!rutgers!jove.rutgers.edu!rbthomas internet: rbthomas@JOVE.RUTGERS.EDU bitnet: rbthomas@zodiac.bitnet Phone: (201) 932-4301