Closes #12 and closes #13. Tagged.Pair stores keyNode instead of a bare string: alias mapping keys parse on the Tagged path (composer resolves them through the anchors table, dumper re-emits the reference with the mandatory space before the colon since a colon is a legal anchor character), key anchors register for later aliases and re-emit, and a key's presentation style survives dump and reparse. key and keyTag remain as read-through computed accessors and the string-key convenience init keeps most call sites source compatible. A style-less hand-built key keeps the plain-when-safe emission convention. The corpus round-trip law compares key nodes structurally; alias-key documents move from rejected to round-tripping. |
||
|---|---|---|
| .. | ||
| Coding | ||
| Decoding | ||
| Emitting | ||
| Encoding | ||
| Model | ||
| Parsing | ||
| PureYAMLJSON | ||
| Stream | ||
| Streaming | ||
| Tagged | ||
| Validation | ||
| API.swift | ||
| PureYAML.swift | ||