Hi,

Aidan Gauland <[email protected]> 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’.

Reply via email to