unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* [bug #31691] Ellipsis not supported in nested `sxml-match' forms [1.9.13]
@ 2010-11-18  9:10 anonymous
  2010-11-19 16:28 ` Andy Wingo
  0 siblings, 1 reply; 10+ messages in thread
From: anonymous @ 2010-11-18  9:10 UTC (permalink / raw)
  To: bug-guile


URL:
  <http://savannah.gnu.org/bugs/?31691>

                 Summary: Ellipsis not supported in nested `sxml-match' forms
[1.9.13]
                 Project: Guile
            Submitted by: None
            Submitted on: Thu 18 Nov 2010 09:10:36 AM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

This fails:

#v+
scheme@(guile-user)> (sxml-match '(foo (bar 1 2 3)) ((foo ,x ...) (sxml-match
(car x) ((bar ,y ...) y))))
While compiling expression:
ERROR: bad pattern syntax (symbol not allowed in this context)
Exception during displaying of error: misc-error
#v-

... whereas in non-nested position ellipsis obviously works:

#v+
scheme@(guile-user)> (define (match-bar x) (sxml-match x ((bar ,y ...) y)))
scheme@(guile-user)> (sxml-match '(foo (bar 1 2 3)) ((foo ,x ...) (sxml-match
(car x) (,(match-bar -> y) y))))
$1 = (1 2 3)
#v-

Has to do with `...' not specified as a literal in the `sxml-match' macros...




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31691>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




^ permalink raw reply	[flat|nested] 10+ messages in thread
* [bug #31691] Ellipsis not supported in nested `sxml-match' forms [1.9.13]
@ 2010-11-19 22:56 Ludovic Courtès
  0 siblings, 0 replies; 10+ messages in thread
From: Ludovic Courtès @ 2010-11-19 22:56 UTC (permalink / raw)
  To: Jim Bender; +Cc: bug-guile

[-- Attachment #1: Type: text/plain, Size: 241 bytes --]

Hi Jim,

I stumbled upon the bug below with sxml-match as included in Guile 1.9.

Do you have ideas on how to fix it?  My guess is that is has to do with
‘...’ not being specified as a literal in the macros.

Thanks,
Ludo’.


[-- Attachment #2: Type: message/rfc822, Size: 4924 bytes --]

From: anonymous <INVALID.NOREPLY@gnu.org>
To: bug-guile@gnu.org
Subject: [bug #31691] Ellipsis not supported in nested `sxml-match' forms [1.9.13]
Date: Thu, 18 Nov 2010 09:10:37 +0000
Message-ID: <20101118-091036.sv0.12070@savannah.gnu.org>


URL:
  <http://savannah.gnu.org/bugs/?31691>

                 Summary: Ellipsis not supported in nested `sxml-match' forms
[1.9.13]
                 Project: Guile
            Submitted by: None
            Submitted on: Thu 18 Nov 2010 09:10:36 AM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

This fails:

#v+
scheme@(guile-user)> (sxml-match '(foo (bar 1 2 3)) ((foo ,x ...) (sxml-match
(car x) ((bar ,y ...) y))))
While compiling expression:
ERROR: bad pattern syntax (symbol not allowed in this context)
Exception during displaying of error: misc-error
#v-

... whereas in non-nested position ellipsis obviously works:

#v+
scheme@(guile-user)> (define (match-bar x) (sxml-match x ((bar ,y ...) y)))
scheme@(guile-user)> (sxml-match '(foo (bar 1 2 3)) ((foo ,x ...) (sxml-match
(car x) (,(match-bar -> y) y))))
$1 = (1 2 3)
#v-

Has to do with `...' not specified as a literal in the `sxml-match' macros...




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31691>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-09-11 21:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-18  9:10 [bug #31691] Ellipsis not supported in nested `sxml-match' forms [1.9.13] anonymous
2010-11-19 16:28 ` Andy Wingo
2010-11-19 16:41   ` Andy Wingo
2011-07-15 11:36     ` Stefan Israelsson Tampe
2011-09-02 17:17       ` Andy Wingo
2011-09-05 13:40         ` Stefan Israelsson Tampe
2011-09-06 21:27           ` Ludovic Courtès
2011-09-07 11:13             ` Stefan Israelsson Tampe
2011-09-11 21:54             ` Stefan Israelsson Tampe
  -- strict thread matches above, loose matches on Subject: below --
2010-11-19 22:56 Ludovic Courtès

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).