[Bese-devel] Re: with-xml-syntax in yaclml
Marco Baringer
mb at bese.it
Sun May 14 16:04:50 UTC 2006
"Attila Lendvai" <attila.lendvai at gmail.com> writes:
> previously it was playing with lambdas to set the proper state at read
> time, but now it's a simple macro that does the same (hopefully).
since macro expansion is post read-time this code:
(with-xml-syntax
<foo <bar>>)
no longer works. the original with-xml-syntax function was meant to be
used in conjunction with arnesi's { read macro:
(read-from-string "{with-xml-syntax <foo <bar>>}")
==>
(WRITE-STRING "<foo><bar/></foo>" *YACLML-STREAM*)
> (with-xml-syntax
> <foo :bar "baz"
> (call some lisp)>)
>
> expands to:
>
> (PROGN
> (WRITE-STRING "<foo bar=\"baz\"
> >"
> *YACLML-STREAM*)
> (CALL SOME LISP)
> (WRITE-STRING "</foo
>>"
> *YACLML-STREAM*)
> NIL)
--
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
-Leonard Cohen
More information about the bese-devel
mailing list