licenserc / licenserc-specification

a file format for rules about open-source licenses
Other
13 stars 2 forks source link

yaml for .licenserc format #6

Open bengl opened 9 years ago

bengl commented 9 years ago

YAML makes it much easier to define the file format, and enables tool authors to use existing YAML libraries to parse.

As far as I can tell, YAML is compatible with the format you had already described.

kemitchell commented 9 years ago

@bengl, thanks again for good commentary.

I considered YAML, as well as JSON and INI, before settling on just stating the format in the spec. While YAML is very nice to read, it's also a large spec with lots of native datatypes and alternative syntax. I hesitate to bring all that in when parsing as described is so trivial.

I don't suppose there's anything stopping anyone with a YAML parser handy from noticing that the syntax is a subset. I'd be tempted to implement a Ruby parser that way.