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, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17107 invoked from network); 14 May 2020 22:32:40 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 14 May 2020 22:32:40 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id CE5009C96C; Fri, 15 May 2020 08:32:38 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 0F3329C95E; Fri, 15 May 2020 08:32:09 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id 0D4049C95E; Fri, 15 May 2020 08:32:07 +1000 (AEST) Received: from ppsw-30.csi.cam.ac.uk (ppsw-30.csi.cam.ac.uk [131.111.8.130]) by minnie.tuhs.org (Postfix) with ESMTPS id 46F919C95D for ; Fri, 15 May 2020 08:32:06 +1000 (AEST) X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus Received: from grey.csi.cam.ac.uk ([131.111.57.57]:53694) by ppsw-30.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.136]:25) with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1jZMOY-000nhC-fj (Exim 4.92.3) (return-path ); Thu, 14 May 2020 23:32:02 +0100 Date: Thu, 14 May 2020 23:32:02 +0100 From: Tony Finch To: Larry McVoy In-Reply-To: <20200514173206.GJ20771@mcvoy.com> Message-ID: References: <20200511005745.GL17035@mcvoy.com> <357EFE54-BD94-4C10-8C43-C6735BF7D317@via.net> <20200511202555.GU17035@mcvoy.com> <20200514173206.GJ20771@mcvoy.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [TUHS] v7 K&R C 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: The Eunuchs Hysterical Society Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Larry McVoy wrote: > > It's got some perl goodness, regexps are part of the syntax, .... I got into Unix after perl and I've used it a lot. Back in the 1990s I saw Henry Spencer's joke that perl was the Swiss Army Chainsaw of Unix, as a riff on lex being its Swiss Army Knife. I came to appreciate lex regrettably late: lex makes it remarkably easy to chew through a huge pile of text and feed the pieces to some library code written in C. I've been using re2c recently (http://re2c.org/), which is differently weird than lex, though it still uses YY in all its variable names. It's remarkable how much newer lexer/parser generators can't escape from the user interface of lex/yacc. Another YY example: http://www.hwaci.com/sw/lemon/ Tony. -- f.anthony.n.finch http://dotat.at/ Trafalgar: Cyclonic 6 to gale 8. Rough occasionally very rough in west and south. Thundery showers. Good, occasionally poor.