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=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28793 invoked from network); 2 Jul 2021 07:01:16 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 2 Jul 2021 07:01:16 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 6641C9C88C; Fri, 2 Jul 2021 17:01:14 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 004A39C864; Fri, 2 Jul 2021 17:00:27 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=pass (2048-bit key; unprotected) header.d=iitbombay-org.20150623.gappssmtp.com header.i=@iitbombay-org.20150623.gappssmtp.com header.b="OA85l1P0"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id BA3429C864; Fri, 2 Jul 2021 17:00:24 +1000 (AEST) Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) by minnie.tuhs.org (Postfix) with ESMTPS id C508C9C862 for ; Fri, 2 Jul 2021 17:00:23 +1000 (AEST) Received: by mail-qk1-f179.google.com with SMTP id a4so579773qkn.11 for ; Fri, 02 Jul 2021 00:00:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=nLTmDzsLkDHsYmX7Lbw2s3O5HMcnhmKcWi8/VkBale8=; b=OA85l1P0IzjnxLruBCIRmvkwGY+xN/9pJ2/msuvU9p2NkTFpjeRlXxEpFwF9RRpqlH iJu+TIIyprXgnKIQSdJbPfgJcKqlJiIVPEqaswrsnJQtWEJcjj2Tqht4sngv5JNUvCHy wRFEjkoHpPBVvPlYLUQf39iTiSdI517JWjnj8HLygbSo3axNyhumA+7GUa5DJT3kZ0fT 5+JoI4uvrU3cLl8+gFdRtUqV5qjo94R4OBby3kvfmDai/NiFIY4pLsy8wD9TfiFBPOIo 1kNjkPJWHC34v6yd5+fFm5jACEjJUffWQulXppYfPmL9+yudh0YnSpJUxom4frjZ7J2I 84BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=nLTmDzsLkDHsYmX7Lbw2s3O5HMcnhmKcWi8/VkBale8=; b=Hb80k1rdkyahUkLm163SKD9Mvo6+eMxobs3mEgUk2OZjQlNxlV2asc/kPyfeeoXcgo M8HfPRVa5TLtVeNlBeSouaYcp6LBAzMmk1dMh5nS6Zf6ZMl2Nbh5SKIA307hhBtFHEks 8SO5VqUsFc3+/cyR0OZhDfRNosOJjeOafe+oEJTX0Lv4FDNht9gY1qIwFCd+lzv1djF9 T4qPlcMN7ubug3zNTV2y8TTM0dvdqrbktU/w2BqyscuCxeT7CjEfQ/TuLuCEoLcWqq0t o0R5PdX+HA05xaonhZNcUXShxfQKFbQYewhPJtqYzJuQ2ZAZtXNYSq5emAHp1wFN3KZS tBGw== X-Gm-Message-State: AOAM5322xkQd9rQ7uKXDoMytFIvTqsceEnxSN5hSKLSCm267ObYvrcyP HG53ZIRii5iTvdQJb74U4w84yAA265xSDA== X-Google-Smtp-Source: ABdhPJxuBLykDYtDqar6Qy8Q/i3/zXzw4GQLNbt51tQhhhC76iZCB6NxJLvYaDePM6YwAOQaXYQKLg== X-Received: by 2002:a37:8747:: with SMTP id j68mr4106464qkd.165.1625209222826; Fri, 02 Jul 2021 00:00:22 -0700 (PDT) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id a9sm978435qko.130.2021.07.02.00.00.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Jul 2021 00:00:22 -0700 (PDT) Content-Type: multipart/alternative; boundary=Apple-Mail-CF9D5B0E-28A1-4184-9729-A942B36EAD78 Content-Transfer-Encoding: 7bit From: Bakul Shah Mime-Version: 1.0 (1.0) Date: Fri, 2 Jul 2021 00:00:21 -0700 Message-Id: References: In-Reply-To: To: George Michaelson X-Mailer: iPad Mail (18F72) Subject: Re: [TUHS] [tuhs] Dennis Ritchie's couch 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 Unix Heritage Society mailing list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" --Apple-Mail-CF9D5B0E-28A1-4184-9729-A942B36EAD78 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On Jul 1, 2021, at 11:30 PM, George Michaelson wrote: >=20 > =EF=BB=BF >>=20 >> Note that this could easily have been made a table instead of a bunch of o= ne-line functions. >=20 > a table.. hmm. so like.. we could write .. engines to "read" the table > and do things in some kind of (maybe.. finite) way? >=20 > I know, lets write a DSL to MAKE THE TABLE... >=20 > Is all software "wheel of life" ? It would be just an operator precedence table and two functions. One to parse a factor and one for binary expressions. The table might be something like an array of {singles, doubles, associativity}, where the Nth entry has precedence N. The binary expr parser uses the table to essentially group sub expressions based on precedence and associativity. This is an old idea. I think at least 4-5 decades old.= --Apple-Mail-CF9D5B0E-28A1-4184-9729-A942B36EAD78 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On Jul 1, 2021, at 11:30 PM, George Michaelso= n <ggm@algebras.org> wrote:

=EF=BB=BF
Note tha= t this could easily have been made a table instead of a bunch of one-line fu= nctions.

a table.. hmm. so lik= e.. we could write .. engines to "read" the table
and do thi= ngs in some kind of (maybe.. finite) way?

I= know, lets write a DSL to MAKE THE TABLE...

Is all software "wheel of life" ?

It= would be just an operator precedence table and two functions. One to
<= div>parse a factor and one for binary expressions. The table m= ight be something
like an array of {singles, doubles, associativit= y}, where the Nth entry
has precedence N. The binary expr parser u= ses the table to essentially
group sub expressions based on preced= ence and associativity. This is an old
idea. I think at least 4-5 d= ecades old.
= --Apple-Mail-CF9D5B0E-28A1-4184-9729-A942B36EAD78--