From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.user Subject: Re: sxml-match bad pattern syntax Date: Tue, 28 Dec 2021 11:06:55 +0100 Message-ID: References: <87h7atdzbo.fsf@gnuvola.org> <87a6gldutb.fsf@gnuvola.org> <875yr9dqzg.fsf@gnuvola.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cPDGvY492CS+hndT" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1340"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Dec 28 11:07:12 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 1n29Nv-000063-RP for guile-user@m.gmane-mx.org; Tue, 28 Dec 2021 11:07:11 +0100 Original-Received: from localhost ([::1]:55136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n29Nt-0006zZ-Uj for guile-user@m.gmane-mx.org; Tue, 28 Dec 2021 05:07:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n29Nk-0006zR-J8 for guile-user@gnu.org; Tue, 28 Dec 2021 05:07:00 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:35926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n29Ni-0004TV-P0 for guile-user@gnu.org; Tue, 28 Dec 2021 05:07:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date: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=+5t6PofNE3KWHqW1qRogVYrerysnwu50y1doAYUeQFE=; b=muGi8wCHAmGes51bFzZco/y4xZ glpx8Sdxj5vyLL6q7aEiwxMezDhj1aY+l9GCw2Zs9WYVlCCBnGY24UZ0A/OS39m3L+0l3ATPmKvOg aWBc1d7Hxv8+4SHE/0VKvZytnDjDWpnTcP/5+eoWN2XEcd7XeGXfr1l2R8mYkB2cP2YZCcm4v1Oah Bes9bPOP+9FhQiCCvqQfwDgu4oZhzNtMUm/p9zSktWu/t26bCle/zpcuXp5elXKgdRzvMsChaIlEj JFDzGRpe23LB8S7XK4bIc+ORN6vyEYhGkfTQLLyqrOyBBhYzDxDmzxv27Bsz5E8tDOUfCJK1yhwRQ 9BNYakKA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1n29Nf-0005sK-Je for guile-user@gnu.org; Tue, 28 Dec 2021 11:06:55 +0100 Content-Disposition: inline In-Reply-To: <875yr9dqzg.fsf@gnuvola.org> Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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:17922 Archived-At: --cPDGvY492CS+hndT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 28, 2021 at 04:21:39AM -0500, Thien-Thi Nguyen wrote: >=20 > () > () Tue, 28 Dec 2021 09:28:32 +0100 >=20 > > Ah, right! The ellipses are a tail that need to follow a > > head. >=20 > No, the ellipses tell the matcher that the symbol to its left [...] > I think we're saying the same thing, but in any case, i > understand what you're saying. I see now. I was mis-reading you. [...] > I think the =E2=80=98otherwise=E2=80=99 clause is a bit unwieldy; it pres= umes > 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. At first blush it seems so. At least, when I try [1], it yells at me with something something Throw to key `sxml-match-error' with args `(#f "bad pattern syntax (not a= n element pattern)" ... Hm. Cheers [1] what I try is matching the tag to an unquoted var, like so (match ((,tag ...))). --=20 t --cPDGvY492CS+hndT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCYcrhuAAKCRAFyCz1etHa RhZ/AJ9jBd9eQBHr9oI64BvpOTAEZ/HzMwCcDx3Plu4YWjsYPPq7BOy2JtWnSkw= =mGm5 -----END PGP SIGNATURE----- --cPDGvY492CS+hndT--