From: Brian I. <in...@tt...> - 2002-07-09 12:34:35
|
On 08/07/02 11:17 -0600, yam...@wh... wrote: > After a few weeks of distraction (camping, hiking, vaction, etc.), I > found some time this weekend to plug away at YAML4R. And great success > was had! The parser is working great and thanks to Racc (yacc for > Ruby), the parser took about 300 lines of code! I haven't done any > benchmarks, but I imagine it's quite slower than YAML.pm, as the > parser takes a couple passes to do its job. Still, it's not terribly > slow and its worth the clean code to me until I can hook into libyaml > someday. > > I don't know how Brian does it. I started writing a straight-forward > parser from the regular expressions in YAML.pm, but its a long and > winding road that I couldn't find the endurance to climb. (Thank the > 16 miles I hiked last week... It stole my stamina...) The parser is > rather elegant though, and I daresay it'll be useful if someone wants > to construct a parser with lex and yacc. My yaml.y could easily be > ported to C. Why, Great job. I'll be sure to publicize it at the O'Reilly Conference. YAMLers, I'm driving to Chicago today. My connectivity for the next several weeks will be spotty. NO SNEAKING IN CHANGES!! Just kidding. Peace and love, Brian |