Permalink
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (33 sloc) 346 Bytes
=== Aliases in Flow Objects
--- from: NimYAML tests
--- tags: alias flow
Anchors and aliases in flow collections.
--- in-yaml
{ &a [a, &b b]: *b, *a : [c, *b, d]}
--- out-yaml
? &a
- a
- &b b
: *b
*a :
- c
- *b
- d
--- test-event
+STR
+DOC
+MAP
+SEQ &a
=VAL :a
=VAL &b :b
-SEQ
=ALI *b
=ALI *a
+SEQ
=VAL :c
=ALI *b
=VAL :d
-SEQ
-MAP
-DOC
-STR