www.arareko.net

"Fucking Layton Kor... God I hate Cameron Burns. I wonder how much it would hurt if I just jumped? Why the hell would anyone climb this hunk of dirt anyway, or anything for that matter-pointless? How long can you be dead and still be an organ donor?"

- Frank Stock's thoughts while on the Kor Route on Monster Tower

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>