yaml parser in C++
"Jesse Beder" <beder-d0mtIEKrxfl4piUD7e9S/[email protected]>
| Newsgroups | gmane.text.yaml.general |
|---|---|
| Message-ID | <[email protected]> |
In case anyone might be interested, I wrote a YAML parser in C++, and I put it on google code: http://code.google.com/p/yaml-cpp/ It's based on libyaml (I'm indebted to the idea of first scanning to produce tokens of an LL(1) language, and then parsing), but it's not a wrapper for it. It uses the STL, but depends on nothing more (no boost, etc.), and I tried to make it feel STL-ish. In fact, I think this might be the primary reason to use it, compared to, say, libyaml (which is very good - don't get me wrong!). It should be pretty easy to attach to any project - I'm using Visual Studio, but there's really nothing dependent on that, so you could whip up a makefile for gcc pretty easily. Finally, regarding completeness: it's written for the 1.2 spec, and barring any bugs (heh), it should implement it exactly, except: 1. Anchors/aliases are parsed, but not implemented in representation. 2. Tags are a bit half-assed, mainly because I didn't need them. But I think they mostly work. Let me know what you think! - Jesse Beder ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/