yaml-grammar
yaml-grammar copied to clipboard
The spec says each rule name has a "1 or 2 character prefix". https://github.com/yaml/yaml-grammar/blob/15047828ace28d09594d3553b90b165fef60634b/yaml-spec-1.2.yaml#L57 However, some rules have more than 2 characters. For example, rule 062 [`c-ns-esc-char`](https://github.com/yaml/yaml-grammar/blob/15047828ace28d09594d3553b90b165fef60634b/yaml-spec-1.2.yaml#L947) has 4 chars:...
The description for some of the rule prefixes mention an `n` variable. https://github.com/yaml/yaml-grammar/blob/15047828ace28d09594d3553b90b165fef60634b/yaml-spec-1.2.yaml#L78-L82 However, it is not clear what `n` is. Is `n` supposed to be the [current indentation level](https://github.com/yaml/yaml-grammar/blob/15047828ace28d09594d3553b90b165fef60634b/yaml-spec-1.2-comments.yaml#L91)?...
The spec describes 4 rule variables, `n`, `m`, `c`, and `t`. * https://github.com/yaml/yaml-grammar/blob/15047828ace28d09594d3553b90b165fef60634b/yaml-spec-1.2.yaml#L91 * https://github.com/yaml/yaml-grammar/blob/15047828ace28d09594d3553b90b165fef60634b/yaml-spec-1.2.yaml#L93 * https://github.com/yaml/yaml-grammar/blob/15047828ace28d09594d3553b90b165fef60634b/yaml-spec-1.2.yaml#L95 * https://github.com/yaml/yaml-grammar/blob/15047828ace28d09594d3553b90b165fef60634b/yaml-spec-1.2.yaml#L103 I find a terse, single letter, variable in the spec difficult...
The rules for both `
Multiple README links are broken.
Looks like the spec branch is not available anymore
Hi, Thank you for this effort. Having this extracted grammar is much more convenient for processing. Would you please clarify why are there "dangling rules" in the grammar - the...