3 ms·
Sounds like you are using a specialized parser. At that point, it’s not YAML.
by zeroimpl 5y ago
Sounds like you are using a specialized parser. At that point, it’s not YAML.
- rdw 5y agoIt used an off-the-shelf library, I don't remember which one anymore. I don't think it really matters though -- YAML is a format, not a parser. Per the YAML docs [0], "Creating a fully compliant parser has proven almost impossible." Pretty much every YAML parser out there is going to have its own idiosyncratic subset that it handles. That doesn't make the _files_ not-YAML. (This does make YAML a horrible data exchange format. No argument there!) Also, JSON has a similar condition [1]. [0]: https://github.com/yaml/yaml-grammar https://github.com/yaml/yaml-grammar [1]: http://seriot.ch/projects/parsing_json.html http://seriot.ch/projects/parsing_json.html