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.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HTML_FONT_LOW_CONTRAST,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 566 invoked from network); 1 Dec 2021 21:01:02 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 1 Dec 2021 21:01:02 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id B2BC69CF74; Thu, 2 Dec 2021 07:00:41 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 8D1359CE29; Thu, 2 Dec 2021 07:00:04 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (1024-bit key; unprotected) header.d=ccc.com header.i=@ccc.com header.b="rrV8HTRU"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id 6D19C9CD65; Thu, 2 Dec 2021 06:59:28 +1000 (AEST) Received: from mail-qv1-f54.google.com (mail-qv1-f54.google.com [209.85.219.54]) by minnie.tuhs.org (Postfix) with ESMTPS id 836D69CDB6 for ; Thu, 2 Dec 2021 06:59:26 +1000 (AEST) Received: by mail-qv1-f54.google.com with SMTP id kl8so23015991qvb.3 for ; Wed, 01 Dec 2021 12:59:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ccc.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=I9BfYMXitlUp34vTrpWJES9ghZGDnPoCz0y056UXGGQ=; b=rrV8HTRUI4hoQnQ/8nvI4OJR1nA7NeRJB984FOdPKOK2pZgI+L/YUXW0EKC025F8J1 NF5KXIM/Jb9Lh33uYPHydD02S5p+/nj6LTwirVn36wWYI8FHKz6Td023esugg/Y6I4NY e6yDDjdkZSq5MxBFk6Mr8/1rOIERgZ0FM0iRg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=I9BfYMXitlUp34vTrpWJES9ghZGDnPoCz0y056UXGGQ=; b=GYx1iHijG8+X2DXMBoA66lINTji+9d7vfL9We+nyV5MsjpEYjiOMrDJesGciyHjcy3 Epud2NcEXL73y8jFAJdfQJZVezatF8aDS7Jq5Pr4zOr3NaZrljPGteBESyMkDZw9D+cv 6JJ3TLKB9Xwaedqb7n4qM3ycwkz5BMVKiYg6l6jMUaGLC8wZosBhHbU3VkWRpb6HISnR wgj5y0AWBMwqWCEzNxz8EOkx9p2TJnmrcIsEhAA5oXydrfn9xPdI9KDOHpxYtp4fScEL WDu+fPYJZP5lmxhei3Im/T9uTsAShigMui0TFP9Bo9PeI9Mqausd69cyz2WZ8/KU8L5D nkyg== X-Gm-Message-State: AOAM533yGsl8XGHr0OYjtk2j4yDCvDrLWuYb1F0Xrgvt7o1PXXt7yb1i FJSqwa4nrQRuW6ZV+Q78xwbLQR57+7m6eA9z2IL3ONLMCkyTgKjr X-Google-Smtp-Source: ABdhPJwlJW3lADGSNoNZF/VK8joYEIYInrJPzt285KhfsC9wIshy+bq+FoRjMa1kUQzQPAkQEPBJUeSM2lKyB2Pp7WQ= X-Received: by 2002:a05:6214:2589:: with SMTP id fq9mr9543781qvb.38.1638392365428; Wed, 01 Dec 2021 12:59:25 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Clem Cole Date: Wed, 1 Dec 2021 15:59:00 -0500 Message-ID: To: Arnold Robbins Content-Type: multipart/alternative; boundary="000000000000f1c02805d21bf29e" Subject: Re: [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: , Cc: tuhs@tuhs.org Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --000000000000f1c02805d21bf29e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Arnold -- sounds fun. Thank you!!! I'll add it to my growing pile of things I want to play with at some point. I too had a wonderful childhood experience with the SW tools. Somebody had a number of them running on a VMS box when all we had was the VMS Fortran compiler, no C yet. I am curious why did you decide to use byacc? I would have thought in a desire to modernize and make it more available on a modern system -- was there something in byacc that could not be done easily in bison? To be honest, I had thought Robert Corbett did them both and bison was the successor to byacc, but I'm not a compiler guy - so I'm suspecting that there must be a difference/reason. As I said, this is purely curiosity -- an educational opportunity. Thanks again, Clem =E1=90=A7 On Wed, Dec 1, 2021 at 3:41 PM Arnold Robbins wrote: > 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 > --000000000000f1c02805d21bf29e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Arnold -- sounds fun.=C2=A0 Thank you!!!=C2=A0 I'll= add it to my growing pile of things I want to play with at some point.=C2= =A0 =C2=A0I too had a wonderful childhood experience with the SW tools.=C2= =A0 Somebody had a number of them running on a VMS box when all we had was = the VMS Fortran compiler, no C yet.

I am curious why d= id you decide=C2=A0to use byacc?=C2=A0 =C2=A0I would have thought in a desi= re to modernize and make it more available on a modern system -- was there = something in byacc that could not be done easily in bison?=C2=A0 =C2=A0To b= e honest, I had thought=C2=A0Robert Corbett did th= em both and bison was the successor to byacc, but I'm not a compiler=C2= =A0guy - so I'm suspecting that there=C2=A0must be a difference/reason.= =C2=A0 =C2=A0As I said, this is purely curiosity=C2=A0-- an educational opp= ortunity.

Thanks again,
C= lem
3D""=E1=90=A7

On Wed, Dec 1, 2021 at 3:41 PM Arn= old Robbins <arnold@skeeve.com&= gt; wrote:
Hi Al= l.

Mainly for fun (sic), I decided to revive the Ratfor (Rational
Fortran) preprocessor.=C2=A0 Please see:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 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.=C2=A0 'make' r= uns 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.=C2=A0 This was simply "for fun", and because Ratfor has a= soft
spot in my heart.=C2=A0 "Software Tools" was, for me, the most in= fluential
programming book that I ever read.=C2=A0 I don't think there's a be= tter
book to convey the "zen" of Unix.

Thanks,

Arnold
--000000000000f1c02805d21bf29e--