Somebody is likely to ask for a JavaScript version too (possibly even before a C version).  Fortunately the JavaScript YAML library looks like it's pretty good (based on a 5 minute or so perusal....)