[PATCH] Add a VFSFromYAML class and a parser to create it

Ben Langmuir blangmuir at apple.com
Fri Feb 21 09:19:42 PST 2014

On Feb 21, 2014, at 9:02 AM, Argyrios Kyrtzidis <kyrtzidis at apple.com> wrote:

> On Feb 21, 2014, at 3:27 AM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>> On Fri, Feb 21, 2014 at 12:34 AM, Ben Langmuir <blangmuir at apple.com> wrote:
>>> On Feb 20, 2014, at 4:11 PM, Ben Langmuir <blangmuir at apple.com> wrote:
>>>> We could use the YAML version string
>>>> %YAML 1.2
>>> Actually, if we go this route we should encode our own version number in the same place for compactness.  In YAML, we could use a tag for this
>>> %TAG ! tag:vfs-yaml-file,version:1234
>>> Where 1234 is a made up version number for our vfs format.
>> Then we would need to make sure to use this tag, otherwise its
>> presence or absence should not affect the semantics of the file, I
>> think.

Is that in the YAML spec somewhere? I don’t see it.  There was something about not relying on the name of a tag handle, but I’m willing to be non-conformant in that respect.  Obviously this is not what YAML tags were designed for…

I’m not super happy with using a tag either, since it actually requires two lines at the top, since you apparently need a document marker (---) after your directives...
%TAG ! vfs-yaml-file...


More information about the cfe-commits mailing list