From: Jamis Buck Date: 2005-03-27T05:35:52+09:00 Subject: Re: convert YAML to HTML? On Mar 26, 2005, at 12:39 PM, Phlip wrote: > Jamis Buck wrote: > >> Yes, it is not a complete YAML parser. A patch would be more than >> welcome, though. > > Puh-lease. Patches are so Last Millenium. > > We shall do this via the most obnoxious implementation technique yet > discovered: Pair Programming Via USENET. > > Here: > [snip] Thanks for the start on this, Philip. After taking what you did here and working a bit more on it, I'm beginning to think what really needs to happen is to rework the YAML lexer so that it uses a simple state machine. That would give much more granular output. Also, where I've been returning :normal (for "foo" in "bar: foo", for example), it should probably be :string. We could continue with the existing lexer, but I fear it will rapidly become a case of plugging leaks and adding patch after patch... I'll try to work on this some this afternoon, so the YAML lexer will be a lot more robust. - Jamis