kdl icon indicating copy to clipboard operation
kdl copied to clipboard

Inconsistent wording between Annotations, Property Keys, and Node Names

Open Lucretiel opened this issue 2 years ago • 0 comments

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.

Lucretiel avatar Apr 08 '22 15:04 Lucretiel