yaml / yaml-spec

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

Spec doesn't define what curly braces in BNF production means i.e. `ns-hex-digit{2}` #282

Open darthwalsh opened 2 years ago

darthwalsh commented 2 years ago

The new 1.2.2 and 1.3.0 spec is very helpful in explaining "4.1. Production Syntax" (which is great because I spent a long time puzzling over that in the 1.2.1 spec!)

The new spec uses the BNF syntax ns-esc-8-bit ::= 'x' ns-hex-digit{2} but doesn't explain what curly brace { means -- I can infer it's the same as 1.2.1's non-ASCII ns-hex-digit × 2 but using regex syntax... should that be explained in "4.1. Production Syntax" given the rest of the regex syntax is precisely defined?