yaml / yaml-spec

YAML Specification
http://yaml.org/spec/
348 stars 54 forks source link

Grammar fixes #158

Closed ingydotnet closed 3 years ago

ingydotnet commented 3 years ago

This PR rewrites chapter 4 and reworks all the grammar productions to be more consistent and readable.

Chapter 4 now defines all the concepts needed to fully understand the productions.

Thom1729 commented 3 years ago

I'm not sure about the special productions. I think that /* Where m < n */ is more readable than where-m-lt-n, and it also helps assertions to stand out. See, e.g., this ECMAScript production.

eemeli commented 3 years ago

@ingydotnet I approved this already earlier, but the force-pushes have lost the previous commits so I can't see what's changed since then. Is there a diff somewhere that I can look at?