--- &test-Q88A
Title: Spec Example 7.23. Flow Content
Tags: [ flow, mapping, sequence, spec ]
- [ a, b ]
- { a: b }
- "a"
- 'b'
- c
+STR
+DOC
+SEQ
+SEQ []
=VAL :a
=VAL :b
-SEQ
+MAP {}
=VAL :a
=VAL :b
-MAP
=VAL "a
=VAL 'b
=VAL :c
-SEQ
-DOC
-STR
[
[
"a",
"b"
],
{
"a": "b"
},
"a",
"b",
"c"
]
na
Line Col Char Byte Token|Content
1 0 0 0 +DOC |
1 0 0 0 +NODE|
1 0 0 0 +SEQ |
1 0 0 0 =SYNX|-
1 1 1 1 =WSPC|.
1 2 2 2 +NODE|
1 2 2 2 +SEQ |
1 2 2 2 =SYNX|[
1 3 3 3 =WSPC|.
1 4 4 4 +NODE|
1 4 4 4 +VAL |
1 4 4 4 =TEXT|a
1 5 5 5 -VAL |
1 5 5 5 -NODE|
1 5 5 5 =SYNX|,
1 6 6 6 =WSPC|.
1 7 7 7 +NODE|
1 7 7 7 +VAL |
1 7 7 7 =TEXT|b
1 8 8 8 -VAL |
1 8 8 8 -NODE|
1 8 8 8 =WSPC|.
1 9 9 9 =SYNX|]
1 10 10 10 -SEQ |
1 10 10 10 -NODE|
1 10 10 10 =EOL |\x0a
2 0 11 11 =SYNX|-
2 1 12 12 =WSPC|.
2 2 13 13 +NODE|
2 2 13 13 +MAP |
2 2 13 13 =SYNX|{
2 3 14 14 =WSPC|.
2 4 15 15 +PAIR|
2 4 15 15 +NODE|
2 4 15 15 +VAL |
2 4 15 15 =TEXT|a
2 5 16 16 -VAL |
2 5 16 16 -NODE|
2 5 16 16 =SYNX|:
2 6 17 17 =WSPC|.
2 7 18 18 +NODE|
2 7 18 18 +VAL |
2 7 18 18 =TEXT|b
2 8 19 19 -VAL |
2 8 19 19 -NODE|
2 8 19 19 -PAIR|
2 8 19 19 =WSPC|.
2 9 20 20 =SYNX|}
2 10 21 21 -MAP |
2 10 21 21 -NODE|
2 10 21 21 =EOL |\x0a
3 0 22 22 =SYNX|-
3 1 23 23 =WSPC|.
3 2 24 24 +NODE|
3 2 24 24 +VAL |
3 2 24 24 =SYNX|"
3 3 25 25 =TEXT|a
3 4 26 26 =SYNX|"
3 5 27 27 -VAL |
3 5 27 27 -NODE|
3 5 27 27 =EOL |\x0a
4 0 28 28 =SYNX|-
4 1 29 29 =WSPC|.
4 2 30 30 +NODE|
4 2 30 30 +VAL |
4 2 30 30 =SYNX|'
4 3 31 31 =TEXT|b
4 4 32 32 =SYNX|'
4 5 33 33 -VAL |
4 5 33 33 -NODE|
4 5 33 33 =EOL |\x0a
5 0 34 34 =SYNX|-
5 1 35 35 =WSPC|.
5 2 36 36 +NODE|
5 2 36 36 +VAL |
5 2 36 36 =TEXT|c
5 3 37 37 -VAL |
5 3 37 37 -NODE|
5 3 37 37 =EOL |\x0a
6 0 38 38 -SEQ |
6 0 38 38 -NODE|
6 0 38 38 -DOC |
na
[
[
'a',
'b'
],
{
'a' => 'b'
},
'a',
'b',
'c'
]
na
[
[
'a',
'b'
],
{
'a' => 'b'
},
'a',
'b',
'c'
]
na
[
[
'a',
'b'
],
{
'a' => 'b'
},
'a',
'b',
'c'
]
na
[
[
'a',
'b'
],
{
'a' => 'b'
},
'a',
'b',
'c'
]
na
[
[
'a',
'b'
],
{
'a' => 'b'
},
'a',
'b',
'c'
]
na
[['a', 'b'], {'a': 'b'}, 'a', 'b', 'c']
na
[['a', 'b'], {'a': 'b'}, 'a', 'b', 'c']
ni
YAML::Tiny found illegal characters in plain scalar: '{ a: b }' at /yaml/bin/perl-tiny-json line 12.
ni
YAML::Tiny found illegal characters in plain scalar: '{ a: b }' at /yaml/bin/perl-tiny-perl line 15.