From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: sxml-match bad pattern syntax Date: Tue, 28 Dec 2021 04:21:39 -0500 Message-ID: <875yr9dqzg.fsf@gnuvola.org> References: <87h7atdzbo.fsf@gnuvola.org> <87a6gldutb.fsf@gnuvola.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27073"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Dec 28 10:22:39 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n28go-0006q4-4y for guile-user@m.gmane-mx.org; Tue, 28 Dec 2021 10:22:38 +0100 Original-Received: from localhost ([::1]:35286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n28gm-0006l7-KZ for guile-user@m.gmane-mx.org; Tue, 28 Dec 2021 04:22:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n28gD-0006j9-0J for guile-user@gnu.org; Tue, 28 Dec 2021 04:22:01 -0500 Original-Received: from delivery.mailspamprotection.com ([185.56.84.5]:46439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n28gB-00072J-2D for guile-user@gnu.org; Tue, 28 Dec 2021 04:22:00 -0500 Original-Received: from 241.110.209.35.bc.googleusercontent.com ([35.209.110.241] helo=giow1035.siteground.us) by se16.mailspamprotection.com with esmtps (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1n28g5-0004dx-U9 for guile-user@gnu.org; Tue, 28 Dec 2021 03:21:56 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnuvola.org ; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=jm3N5Ac5fSd15vZLUWL45GH4EfbSNpYqjr7H6ngOllo=; b=mx8Sl7VfCrhCog3rgrQ0dgsNxl 2yd9Mf8VPQbgjycREtLr46i0lAHJm/Yh6Bv16JqczZLvfkOIBUqPFiCOZqlfPwnOIbkPpw1VGjyDK hgg7jhtcD4yS1T5TdkmLdu4Gtd6fa5gkcUQQINsHHZISZdlQi24FYAnL3sJqxPmHI+AE=; Original-Received: from [50.89.166.226] (port=40192 helo=abolire) by giow1035.siteground.us with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.90-.1) (envelope-from ) id 1n28g5-000EXG-Jf for guile-user@gnu.org; Tue, 28 Dec 2021 09:21:53 +0000 Mail-Followup-To: guile-user@gnu.org In-Reply-To: (tomas@tuxteam.de's message of "Tue, 28 Dec 2021 09:28:32 +0100") X-Originating-IP: 35.209.110.241 X-SpamExperts-Domain: giow1035.siteground.us X-SpamExperts-Username: 35.209.110.241 Authentication-Results: mailspamprotection.com; auth=pass smtp.auth=35.209.110.241@giow1035.siteground.us X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.18) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT+IBFe+6/DcCmgYNW4UiRjhPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5wLhre8Rs9A7VGcCqK8bn0qbA/nwrcN5XO9vX75jP2nUzZO qsMw0auQ3NUvuumKE7vilbHtbFYVmmyNP/jzd7CCzPgfBgZM0FjuQW6Y55dUiQZmnW/XN+tohdLu D74c7RIjp6w6C9uhW4b49q7wR4OIg8CBO1Snvm6qXHQp7O9kdbd9NjDao8r7/Az/2fAcaxSWBs2x H2ECFB9jy+mqDrXyzO11BRKqT8B4uLrn7iz8uvLBMzbIQcSG8L0jOzL80Q1MxDcqDeEvahfPkDkT lH91LgaQnmF8H6pa6B8MTK1lii9jyCbkXtEuyOnFV02lgfrmIJFSU6hi7nfgXGmjAulQMgrYfgAZ Zb04/OubpB2EQv2o1X92Cn4UU9JJ17dQkS7izDj4VfLGYhV5rU4pWppWNkfi8i3qCVlWxapaS/oL VM7UZB5DjZsjTnYAKJBt0QYHqlOp8L8bz1V+J+CU4gJ92+mjZSBX08/Qa05JAIPdanoSKlHMxVnk urBPHtW+f1JZBGKGpZFwJprvIwY1weIqe6pihTNvit1d3kRc36QD8fg5GwPJrDE8SJ6G18yviCC6 1R1N3uVtMHXkpsAMhqheYu8C5mJ57ZG9g9QfbBpIF4iVmiWiX151jfHQIMHOWjfRtFuayQSHKxuV s+RmqoRq3CRiRJK4GhOXBQPqhauyDxSDuBEtt0Rh5OL2zuJWTPY8VH53W9lCAwLwd1f9d2M5DSV9 Sm5t5VvTRxiwuPCqV+AQ5tKaOE0xx X-Report-Abuse-To: spam@quarantine1.mailspamprotection.com Received-SPF: pass client-ip=185.56.84.5; envelope-from=ttn@gnuvola.org; helo=delivery.mailspamprotection.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17921 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable () () Tue, 28 Dec 2021 09:28:32 +0100 > Ah, right! The ellipses are a tail that need to follow a > head. No, the ellipses tell the matcher that the symbol to its left acutally stands for "zero or more of this". Consequently, you have to somehow [1] use those ellipses on the right hand side (aka template) whenever you use them on the left hand side (aka pattern) and vice versa. I think we're saying the same thing, but in any case, i understand what you're saying. > I guess i was confused by the documentation's use of > ellipses in the conventional sense rather than the literal > sense: I think of the ellipses as a kind of funny Kleene star. Not really at home in any world: in the regular world, because it isn't a star, in the Scheme world, because it is postfix. That's a really good analogy, IMHO. It's an operator of sorts. [examples] Yes, it's becoming more clear to me now. For the idiomatic part, I'll have to defer to those with more chevrons ;-) :-D I think the =E2=80=98otherwise=E2=80=99 clause is a bit unwieldy; it presum= es normal form 3 (attribute lists always present). However, i couldn't find a way to match "any element". ISTM the element portion (first symbol in the form) MUST be non-variable. =2D-=20 Thien-Thi Nguyen ----------------------------------------------- (defun responsep (query) ; (2021) Software Libero (pcase (context query) ; =3D Dissenso Etico (`(technical ,ml) (correctp ml)) ...)) 748E A0E8 1CB8 A748 9BFA =2D-------------------------------------- 6CE4 6703 2224 4C80 7502 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iG4EARECAC4WIQR0jqDoHLinSJv6bORnAyIkTIB1AgUCYcrXJRAcdHRuQGdudXZv bGEub3JnAAoJEGcDIiRMgHUCEFUAnR9BpOvcqq31VlY7ZazgGW5MKy/PAKDTlVTl Y72mwculMdvsZHxflHoDuw== =l7w2 -----END PGP SIGNATURE----- --=-=-=--