From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30635 invoked from network); 1 Dec 2021 20:40:58 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 1 Dec 2021 20:40:58 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 9BCC19CE28; Thu, 2 Dec 2021 06:40:55 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 024729CD65; Thu, 2 Dec 2021 06:38:47 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id D59609CD65; Thu, 2 Dec 2021 06:38:43 +1000 (AEST) X-Greylist: delayed 901 seconds by postgrey-1.36 at minnie.tuhs.org; Thu, 02 Dec 2021 06:38:42 AEST Received: from mxout2.netvision.net.il (mxout2.netvision.net.il [194.90.9.21]) by minnie.tuhs.org (Postfix) with ESMTP id D8F9294502 for ; Thu, 2 Dec 2021 06:38:42 +1000 (AEST) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from tanda ([93.173.123.176]) by mxout2.netvision.net.il (Oracle Communications Messaging Server 8.0.2.1.20180104 64bit (built Jan 4 2018)) with ESMTPSA id <0R3G00NDRDZES620@mxout2.netvision.net.il> for tuhs@tuhs.org; Wed, 01 Dec 2021 22:23:39 +0200 (IST) Received: from arnold by tanda with local (Exim 4.90_1) (envelope-from ) id 1msW8g-0001fp-F1 for tuhs@tuhs.org; Wed, 01 Dec 2021 22:23:38 +0200 Date: Wed, 01 Dec 2021 22:23:38 +0200 To: tuhs@tuhs.org User-Agent: Heirloom mailx 12.5 6/20/10 Message-id: From: Arnold Robbins Subject: [TUHS] Ratfor revived! X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Hi All. Mainly for fun (sic), I decided to revive the Ratfor (Rational Fortran) preprocessor. Please see: https://github.com/arnoldrobbins/ratfor I started with the V6 code, then added the V7, V8 and V10 versions on top of it. Each one has its own branch so that you can look at the original code, if you wish. The man page and the paper from the V7 manual are also included. Starting with the Tenth Edition version, I set about to modernize the code and get it to compile and run on a modern-day system. (ANSI style declarations and function headers, modern include files, use of getopt, and most importantly, correct use of Yacc yyval and yylval variables.) You will need Berkely Yacc installed as byacc in order to build it. I have only touch-tested it, but so far it seems OK. 'make' runs in like 2 seconds, really quick. On my Ubuntu Linux systems, it compiles with no warnings. I hope to eventually add a test suite also, if I can steal some time. Before anyone asks, no, I don't think anybody today has any real use for it. This was simply "for fun", and because Ratfor has a soft spot in my heart. "Software Tools" was, for me, the most influential programming book that I ever read. I don't think there's a better book to convey the "zen" of Unix. Thanks, Arnold