go-gypsy
go-gypsy copied to clipboard
formal specification
Write a formal specification of the subset of YAML understood by Gypsy
I was reading this on the gonuts group. Having a formal spec of Gypsy would be nice to have people using it. I would love to have config files in YAMLish form. Spyc is a simple YAML parser in PHP and it's pretty small:
http://code.google.com/p/spyc/
that supports the full 1.0 YAML spec and it's used in many projects. YAML 1.0 may be too much but it is pretty simple (a TON simpler that YAMLl 1.1 or 1.2) and might be a good start.
http://yaml.org/spec/1.0/
And just start stripping away, leaving just the part of the specification that makes sense to the user config files needs. That can be the way to go to avoid writing a full formal specification.
I haven't closed this because it's not 100% accurate, but there is a pretty-near-formal spec in the README and doc.go.