[Bese-devel] Reader macro

Marco Baringer mb at bese.it
Sun Mar 19 18:44:20 UTC 2006


"Levente Mészáros" <levente.meszaros at gmail.com> writes:

> Hi,
>
> Here is a Yaclml patch for the SVG tag stuff. I moved it into a
> separate package to avoid name clashes. (text)
>
> There is also a reader macro on #< which allows to emit xml with
> yaclml without predefining the tags.

sweet!

> #<(tag :attr 0 #<(tag2 :attr2 "val2") (iter (for a from 0 to 3) #<(tag3 :id a)))
>
> Actually I was considering omitting the () signs:
> #<tag :attr val >
>
> but it was somewhat error prone that I had to put a space before the
> closing > sign otherwise the reader treats it as part of the last
> whatever.

i think you're just missing the set-syntax-from-char:

CL-USER> (set-syntax-from-char #\> #\))
T
CL-USER> (with-input-from-string (input "a b c>") (read-delimited-list #\> input))
(A B C)
CL-USER> 

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