From: ludo@gnu.org (Ludovic Courtès)
To: Aidan Gauland <aidalgol@no8wireless.co.nz>
Cc: guile-user@gnu.org
Subject: Re: sxml-match example from manual fails
Date: Tue, 12 Jun 2012 17:53:06 +0200 [thread overview]
Message-ID: <8762awr0gt.fsf@gnu.org> (raw)
In-Reply-To: <jr107i$1j8$1@dough.gmane.org> (Aidan Gauland's message of "Sun, 10 Jun 2012 14:19:37 +1200")
Hi,
Aidan Gauland <aidalgol@no8wireless.co.nz> skribis:
> But guile doesn't seem to like it:
> $ guile
> GNU Guile 2.0.5-deb+1-3
> [...]
> scheme@(guile-user)> (sxml-match '(e (@ (i 1)) 3 4 5) [(e (@ (i ,d)) ,a
> ,b ,c) (list d a b c)] [,otherwise #f])
> While compiling expression:
> ERROR: Syntax error:
> unknown file:1:0: source expression failed to match any pattern in form
> (@ (i (unquote d)))
You need to import the module first:
scheme@(guile-user)> (use-modules(sxml match))
scheme@(guile-user)> (sxml-match '(e (@ (i 1)) 3 4 5)
[(e (@ (i ,d)) ,a ,b ,c) (list d a b c)]
[,otherwise #f])
$2 = (1 3 4 5)
Thanks,
Ludo’.
prev parent reply other threads:[~2012-06-12 15:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-10 2:19 sxml-match example from manual fails Aidan Gauland
2012-06-10 16:08 ` Keith Wright
2012-06-12 15:53 ` Ludovic Courtès [this message]
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=8762awr0gt.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=aidalgol@no8wireless.co.nz \
--cc=guile-user@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).