[Bese-devel] yaclml xml-reader

Henrik Hjelte henrik at evahjelte.com
Tue Aug 15 12:57:26 UTC 2006


There is a problem with the latest changes to make the xml-reader macro
in yaclml work with embedded yaclml tags (such as <:as-is). It doesn't
show up in sbcl, but it is a bug according to the standard and shows up
with at least allegro (when loading the file dojo-widgets.lisp). The
problem is that xml-reader-open wants to look ahead in the stream, and
then call unread-char twice in a row, which is not allowed according to
the ansi spec. I tried to fix this by calling peek-char followed by one
unread-char, but it didn't work either because the effect of calling
peek-char followed by unread-char is "Unspecified" according to the
spec.

I see no obvious way to fix this, or how to change xml-reader-open to
make <: tags work. One "solution" is to use it.bese.yaclml.tags:as-is
instead of <:as-is. Not as pretty though..

Any thoughts?

/Henrik Hjelte







More information about the bese-devel mailing list