Re: [yaml] YAML 1.2 spec: Example 7.1 - the order is inconvenient (#12)

Andrey Somov <[email protected]> Wed, 17 Feb 2016 08:36:27 +0100
Newsgroups gmane.text.yaml.general
Message-ID <CALbkv0ew3+iCnT+aaFX_j2VP3kw3_5LGrjAD=RBrS_iDyCvDPw@mail.gmail.com>
I need, probably, give some context to make the picture clear.
I am busy implementing YAML 1.2 in SnakeYAML. I try to copy-and-paste
examples from the specification to see how the code works/fails.
The production parser and canonical parser try the same example and I
compare the result (tokens, events). This approach is stolen from PyYAML.
(That is why I see minor issues which I report separately.)
Unfortunately copy-and-paste does not work with example 7.1.
I propose to _keep_ the example, but to change the _canonical_ form.
Because the order of token and events will be the same in both. Changing
the canonical document does not affect the spec, it just simplifies usage
of the example for those who do parse the canonical form.

Cheers,
Andrey

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140

_______________________________________________
Yaml-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/yaml-core