[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #31691] Ellipsis not supported in nested `sxml-match' forms [1.9.13
From: |
Stefan Israelsson Tampe |
Subject: |
[bug #31691] Ellipsis not supported in nested `sxml-match' forms [1.9.13] |
Date: |
Sun, 11 Sep 2011 21:54:45 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 |
Follow-up Comment #7, bug #31691 (project guile):
I suspect that this bug is a feature request.
Anyway I coded another solution which sematics is more exact.
The idea is to quote ... and each match will remove one of the quotes around
.... So now this works,
(sxml-match '(a (b (c 1) (c 2 3)) (b (c 4)) (b (c 5)))
((a ,x ...)
(list (sxml-match x
((b ,y '...)
(list (sxml-match y
((c ,z ''...) z)) '...))) ...)))
$1 = (((1) (2 3)) ((4)) ((5)))
attached is a git diff of the code.
the bad thing with this code is that it's not possible to output
the '... symbol.
/Stefan
(file #23968)
_______________________________________________________
Additional Item Attachment:
File name: sxml-match.ss.2.diff Size:2 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31691>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/