www.arareko.net

"I was once bouldering in solitude in the Needles, when a young female walked up and introduced herself and asked who I was. I told her and continued bouldering. She turned and walked away after a few minutes, saying over her shoulder: 'you can't be John Gill. He climbs much better than that'."

- John Gill

Monday, April 24th, 2006

XML in XML

Here’s some XML madness:

Here is XML’s grammar expressed as an automaton in XML syntax. It is based on Tim Bray’s Lark grammar, which Tim has recently released.

I’ve XML-ified it to give a headstart to anyone interested in making their own XML processor: you could write an XSLT script to generate code for example. The XML version is based on a finite state machine, but with a couple of extra attributes that act on stacks. There are various Lark-specific actions included in the transitions: these provide a good guide for some of the processing required for a complete XML processor. However, of course you might prefer to annotate it with your own actions…

O’Reilly XML Blog: XML in XML

Post a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>