From: Nicolas Graves <ngraves@ngraves.fr>
To: 73290@debbugs.gnu.org
Subject: bug#73290: sxml-match doesn't support several ellipsis at the same level
Date: Mon, 16 Sep 2024 09:40:33 +0200 [thread overview]
Message-ID: <8734m09hce.fsf@ngraves.fr> (raw)
This is as much a feature request as a bug.
sxml-match doesn't seem to support several ellipsis at the same level,
which is common in xml.
See the following example for a minimal reproducible example (using
guile 3.0.9-0.3b76a30).
```
(use-modules (sxml match))
(define xml '(d (a 1) (a 2) (a 3) (b 4) (b 5) (b 6)))
(sxml-match
xml
((d (a ,i) ... (b ,j) (b ,k) (b ,l))
(list (list i ...) (list j k l))))
(sxml-match
xml
((d (a ,i) ... (b ,j) ...)
(list (list i ...) (list j ...))))
```
Expected : (list (list 1 2 3) (list 4 5 6)) for both cases
In reality :
(list (list 1 2 3) (list 4 5 6)) in the first case
Error "ellipses not allowed in this context" in the second case
--
Best regards,
Nicolas Graves
reply other threads:[~2024-09-16 7:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8734m09hce.fsf@ngraves.fr \
--to=ngraves@ngraves.fr \
--cc=73290@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).