saphyr-serde/parser/tests/yaml-test-suite/src/9DXL.yaml
2024-10-12 16:15:46 +02:00

45 lines
627 B
YAML

---
- name: Spec Example 9.6. Stream [1.3]
from: 6ZKB, modified for YAML 1.3
tags: spec header 1.3-mod
yaml: |
Mapping: Document
---
# Empty
...
%YAML 1.2
---
matches %: 20
tree: |
+STR
+DOC
+MAP
=VAL :Mapping
=VAL :Document
-MAP
-DOC
+DOC ---
=VAL :
-DOC ...
+DOC ---
+MAP
=VAL :matches %
=VAL :20
-MAP
-DOC
-STR
json: |
{
"Mapping": "Document"
}
null
{
"matches %": 20
}
emit: |
Mapping: Document
---
...
%YAML 1.2
---
matches %: 20