kdl
kdl copied to clipboard
Inconsistent wording between Annotations, Property Keys, and Node Names
Node names and Property keys are described as:
...a legal Identifier, or a quoted String.
Whereas annotations are described as:
with a single Identifier in it.
Generally throughout the spec, Identifiers, Strings, and Raw strings are distinguished, and union cases simply name all the possible types. As a generalization of this specific issue, I'd like to propose the following hierarchy (used by kaydle
's parser) to simplify the naming of strings throughout the spec:
-
Identifiers may be:
- Bare Identifiers, or
-
Strings, which may be:
- Quoted Strings, or
- Raw Strings.