--- &test-57H4
Title: Spec Example 8.22. Block Collection Nodes
Tags: [ mapping, sequence, tag ]
sequence: !!seq
- entry
- !!seq
- nested
mapping: !!map
foo: bar
+STR
+DOC
+MAP
=VAL :sequence
+SEQ <tag:yaml.org,2002:seq>
=VAL :entry
+SEQ <tag:yaml.org,2002:seq>
=VAL :nested
-SEQ
-SEQ
=VAL :mapping
+MAP <tag:yaml.org,2002:map>
=VAL :foo
=VAL :bar
-MAP
-MAP
-DOC
-STR
{
"mapping": {
"foo": "bar"
},
"sequence": [
"entry",
[
"nested"
]
]
}
diff
Minimal Events:
+STR
+DOC
+MAP
=VAL :sequence
+SEQ <tag:yaml.org,2002:seq>
=VAL :entry
+SEQ <tag:yaml.org,2002:seq>
=VAL :nested
-SEQ
-SEQ
=VAL :mapping
+MAP <tag:yaml.org,2002:map>
=VAL :foo
=VAL :bar
-MAP
-MAP
-DOC
-STR
Transformed Events:
+STR
+DOC
+MAP
=VAL :sequence
+SEQ
=VAL :entry
+SEQ
=VAL :nested
-SEQ
-SEQ
=VAL :mapping
+MAP
=VAL :foo
=VAL :bar
-MAP
-MAP
-DOC
-STR
Got Events:
+STR
+DOC
+MAP
=VAL :sequence
+SEQ
=VAL :entry
+SEQ
=VAL :nested
-SEQ
-SEQ
=VAL :mapping
+MAP
=VAL :foo
=VAL :bar
-MAP
-MAP
-DOC
-STR
error
Unhandled exception. YamlDotNet.Core.YamlException: (Line: 1, Col: 11, Idx: 10) - (Line: 2, Col: 2, Idx: 17): Encountered an unresolved tag 'tag:yaml.org,2002:seq'
at YamlDotNet.Serialization.NodeTypeResolvers.PreventUnknownTagsNodeTypeResolver.YamlDotNet.Serialization.INodeTypeResolver.Resolve(NodeEvent nodeEvent, Type& currentType)
at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.GetTypeFromEvent(NodeEvent nodeEvent, Type currentType)
at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer)
at YamlDotNet.Serialization.ValueDeserializers.AliasValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer)
at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.<>c__DisplayClass3_0.<DeserializeValue>b__0(IParser r, Type t)
at YamlDotNet.Serialization.NodeDeserializers.DictionaryNodeDeserializer.DeserializeHelper(Type tKey, Type tValue, IParser parser, Func`3 nestedObjectDeserializer, IDictionary result)
at YamlDotNet.Serialization.NodeDeserializers.DictionaryNodeDeserializer.YamlDotNet.Serialization.INodeDeserializer.Deserialize(IParser parser, Type expectedType, Func`3 nestedObjectDeserializer, Object& value)
at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer)
at YamlDotNet.Serialization.ValueDeserializers.AliasValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer)
at YamlDotNet.Serialization.Deserializer.Deserialize(IParser parser, Type type)
at YamlDotNet.Serialization.Deserializer.Deserialize(TextReader input, Type type)
at YamlDotNet.Serialization.Deserializer.Deserialize(TextReader input)
at Program.Main(String[] commandLineArguments)
Aborted (core dumped)
error
Syck parser (line 4, column 1): syntax error at /perl5/lib/perl5/x86_64-linux-thread-multi/YAML/Syck.pm line 60, <> line 1.
error
Syck parser (line 4, column 1): syntax error at /perl5/lib/perl5/x86_64-linux-thread-multi/YAML/Syck.pm line 60, <> line 1.
na
Line Col Char Byte Token|Content
1 0 0 0 +DOC |
1 0 0 0 +NODE|
1 0 0 0 +MAP |
1 0 0 0 +PAIR|
1 0 0 0 +NODE|
1 0 0 0 +VAL |
1 0 0 0 =TEXT|sequence
1 8 8 8 -VAL |
1 8 8 8 -NODE|
1 8 8 8 =SYNX|:
1 9 9 9 +NODE|
1 9 9 9 =WSPC|.
1 10 10 10 +PROP|
1 10 10 10 +TAG |
1 10 10 10 +HAND|
1 10 10 10 =SYNX|!
1 11 11 11 =SYNX|!
1 12 12 12 -HAND|
1 12 12 12 =META|seq
1 15 15 15 -TAG |
1 15 15 15 -PROP|
1 15 15 15 =EOL |\x0a
2 0 16 16 +SEQ |
2 0 16 16 =SYNX|-
2 1 17 17 =WSPC|.
2 2 18 18 +NODE|
2 2 18 18 +VAL |
2 2 18 18 =TEXT|entry
2 7 23 23 -VAL |
2 7 23 23 -NODE|
2 7 23 23 =EOL |\x0a
3 0 24 24 =SYNX|-
3 1 25 25 +NODE|
3 1 25 25 =WSPC|.
3 2 26 26 +PROP|
3 2 26 26 +TAG |
3 2 26 26 +HAND|
3 2 26 26 =SYNX|!
3 3 27 27 =SYNX|!
3 4 28 28 -HAND|
3 4 28 28 =META|seq
3 7 31 31 -TAG |
3 7 31 31 -PROP|
3 7 31 31 =EOL |\x0a
4 0 32 32 +SEQ |
4 0 32 32 =DENT|.
4 1 33 33 =SYNX|-
4 2 34 34 =WSPC|.
4 3 35 35 +NODE|
4 3 35 35 +VAL |
4 3 35 35 =TEXT|nested
4 9 41 41 -VAL |
4 9 41 41 -NODE|
4 9 41 41 =EOL |\x0a
5 0 42 42 -SEQ |
5 0 42 42 -NODE|
5 0 42 42 -SEQ |
5 0 42 42 -NODE|
5 0 42 42 -PAIR|
5 0 42 42 +PAIR|
5 0 42 42 +NODE|
5 0 42 42 +VAL |
5 0 42 42 =TEXT|mapping
5 7 49 49 -VAL |
5 7 49 49 -NODE|
5 7 49 49 =SYNX|:
5 8 50 50 +NODE|
5 8 50 50 =WSPC|.
5 9 51 51 +PROP|
5 9 51 51 +TAG |
5 9 51 51 +HAND|
5 9 51 51 =SYNX|!
5 10 52 52 =SYNX|!
5 11 53 53 -HAND|
5 11 53 53 =META|map
5 14 56 56 -TAG |
5 14 56 56 -PROP|
5 14 56 56 =EOL |\x0a
6 0 57 57 +MAP |
6 0 57 57 =DENT|.
6 1 58 58 +PAIR|
6 1 58 58 +NODE|
6 1 58 58 +VAL |
6 1 58 58 =TEXT|foo
6 4 61 61 -VAL |
6 4 61 61 -NODE|
6 4 61 61 =SYNX|:
6 5 62 62 =WSPC|.
6 6 63 63 +NODE|
6 6 63 63 +VAL |
6 6 63 63 =TEXT|bar
6 9 66 66 -VAL |
6 9 66 66 -NODE|
6 9 66 66 =EOL |\x0a
7 0 67 67 -PAIR|
7 0 67 67 -MAP |
7 0 67 67 -NODE|
7 0 67 67 -PAIR|
7 0 67 67 -MAP |
7 0 67 67 -NODE|
7 0 67 67 -DOC |
na
{
'mapping' => {
'foo' => 'bar'
},
'sequence' => [
'entry',
[
'nested'
]
]
}
na
{
'mapping' => {
'foo' => 'bar'
},
'sequence' => [
'entry',
[
'nested'
]
]
}
na
{
'mapping' => {
'foo' => 'bar'
},
'sequence' => [
'entry',
[
'nested'
]
]
}
na
{
'mapping' => {
'foo' => 'bar'
},
'sequence' => [
'entry',
[
'nested'
]
]
}
na
{'mapping': {'foo': 'bar'}, 'sequence': ['entry', ['nested']]}
na
{'mapping': {'foo': 'bar'}, 'sequence': ['entry', ['nested']]}
ni
YAML::Tiny does not support a feature in line '!!seq' at /yaml/bin/perl-tiny-json line 12.
ni
YAML::Tiny does not support a feature in line '!!seq' at /yaml/bin/perl-tiny-perl line 15.