From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Israelsson Tampe Newsgroups: gmane.lisp.guile.bugs Subject: [bug #31691] Ellipsis not supported in nested `sxml-match' forms [1.9.13] Date: Sun, 11 Sep 2011 21:54:45 +0000 Message-ID: <20110911-215445.sv78157.19058@savannah.gnu.org> References: <20101118-091036.sv0.12070@savannah.gnu.org> <20101119-162848.sv20118.34131@savannah.gnu.org> <20101119-164144.sv20118.81348@savannah.gnu.org> <20110715-113622.sv78157.99468@savannah.gnu.org> <20110902-171735.sv20118.41353@savannah.gnu.org> <20110905-134004.sv78157.88536@savannah.gnu.org> <20110906-212726.sv15145.16521@savannah.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: dough.gmane.org 1315777825 20450 80.91.229.12 (11 Sep 2011 21:50:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 11 Sep 2011 21:50:25 +0000 (UTC) To: Ludovic =?UTF-8?B?Q291cnTDqHM=?= , Andy Wingo , Stefan Israelsson Tampe , jim@benderweb.net, bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Sep 11 23:50:20 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R2ruu-0007fK-9B for guile-bugs@m.gmane.org; Sun, 11 Sep 2011 23:50:20 +0200 Original-Received: from localhost ([::1]:47615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2rut-0003sn-TQ for guile-bugs@m.gmane.org; Sun, 11 Sep 2011 17:50:19 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2rur-0003sW-9n for bug-guile@gnu.org; Sun, 11 Sep 2011 17:50:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R2ruq-0005Lu-3C for bug-guile@gnu.org; Sun, 11 Sep 2011 17:50:17 -0400 Original-Received: from savannah.gnu.org ([140.186.70.70]:53892 helo=frontend.savannah.gnu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R2ruo-0005Lf-WC; Sun, 11 Sep 2011 17:50:15 -0400 Original-Received: from www-data by frontend.savannah.gnu.org with local (Exim 4.72) (envelope-from ) id 1R2rzB-0001Jc-Gj; Sun, 11 Sep 2011 21:54:45 +0000 X-PHP-Originating-Script: 0:sendmail.php X-Savane-Server: savannah.gnu.org:443 [140.186.70.70] X-Savane-Project: guile X-Savane-Tracker: bugs X-Savane-Item-ID: 31691 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 X-Apparently-From: 82.182.254.46 (Savane authenticated user tampe) In-Reply-To: <20110906-212726.sv15145.16521@savannah.gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.70 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5828 Archived-At: 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: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/