--- &test-6BCT
Title: Spec Example 6.3. Separation Spaces
Tags: [ libyaml-err, sequence, spec, upto-1.2, whitespace ]
+STR
+DOC
+SEQ
+MAP
=VAL :foo
=VAL :bar
-MAP
+SEQ
=VAL :baz
=VAL :baz
-SEQ
-SEQ
-DOC
-STR
[
{
"foo": "bar"
},
[
"baz",
"baz"
]
]
diff
Minimal Events:
+STR
+DOC
+SEQ
+MAP
=VAL :foo
=VAL :bar
-MAP
+SEQ
=VAL :baz
=VAL :baz
-SEQ
-SEQ
-DOC
-STR
Transformed Events:
+STR
+DOC
+SEQ
+MAP
=VAL :foo
=VAL :bar
-MAP
+SEQ
=VAL :baz
=VAL :\tbaz
-SEQ
-SEQ
-DOC
-STR
Got Events:
+STR
+DOC
+SEQ
+MAP
=VAL :foo
=VAL :bar
-MAP
+SEQ
=VAL :baz
=VAL :\tbaz
-SEQ
-SEQ
-DOC
-STR
error
+STR
+DOC
+SEQ
+MAP
=VAL :foo
=VAL :bar
-MAP
+SEQ
=VAL :baz
Parse error: found character that cannot start any token
error
yaml: line 3: found character that cannot start any token
error
luajit: 2:5: found character that cannot start any token
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/lyaml/init.lua:306: in function 'error'
/usr/local/share/lua/5.1/lyaml/init.lua:325: in function 'parse'
/usr/local/share/lua/5.1/lyaml/init.lua:443: in function 'load_node'
/usr/local/share/lua/5.1/lyaml/init.lua:393: in function 'load_node'
/usr/local/share/lua/5.1/lyaml/init.lua:393: in function 'load_node'
/usr/local/share/lua/5.1/lyaml/init.lua:497: in function 'load'
/yaml/bin/lua-lyaml-json:6: in main chunk
[C]: at 0x5559be3e4ed0
error
YAML::PP::LibYAML Error: The problem:
found character that cannot start any token
was found at , line: 3, column: 4
while scanning for the next token at line: 3, column: 4
error
YAML::PP::LibYAML Error: The problem:
found character that cannot start any token
was found at , line: 3, column: 4
while scanning for the next token at line: 3, column: 4
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.
error
YAML::Tiny found illegal characters in plain scalar: '- baz' at /yaml/bin/perl-tiny-json line 12.
error
YAML::Tiny found illegal characters in plain scalar: '- baz' at /yaml/bin/perl-tiny-perl line 15.
error
YAML::XS::Load Error: The problem:
found character that cannot start any token
was found at document: 1, line: 3, column: 4
while scanning for the next token at line: 3, column: 4
error
YAML::XS::Load Error: The problem:
found character that cannot start any token
was found at document: 1, line: 3, column: 4
while scanning for the next token at line: 3, column: 4
error
YAML Error: Invalid element in sequence
Code: YAML_LOAD_ERR_BAD_SEQ_ELEMENT
Line: 3
Document: 1
at /perl5/lib/perl5/YAML/Loader.pm line 397.
error
YAML Error: Invalid element in sequence
Code: YAML_LOAD_ERR_BAD_SEQ_ELEMENT
Line: 3
Document: 1
at /perl5/lib/perl5/YAML/Loader.pm line 397.
error
+STR
+DOC
+SEQ
+MAP
=VAL :foo
Traceback (most recent call last):
File "/yaml/bin/py-pyyaml-event", line 7, in <module>
for event in yaml.parse(sys.stdin.read()):
File "/python/lib/python3.12/site-packages/yaml/__init__.py", line 75, in parse
while loader.check_event():
^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 449, in parse_block_mapping_value
if not self.check_token(KeyToken, ValueToken, BlockEndToken):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 116, in check_token
self.fetch_more_tokens()
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens
raise ScannerError("while scanning for the next token", None,
yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
in "<unicode string>", line 1, column 7:
- foo: bar
^
error
Traceback (most recent call last):
File "/yaml/bin/py-pyyaml-json", line 19, in <module>
for doc in yaml.load_all(sys.stdin.read(), Loader=yaml.FullLoader):
File "/python/lib/python3.12/site-packages/yaml/__init__.py", line 130, in load_all
yield loader.get_data()
^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/constructor.py", line 45, in get_data
return self.construct_document(self.get_node())
^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 27, in get_node
return self.compose_document()
^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 82, in compose_node
node = self.compose_sequence_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 111, in compose_sequence_node
node.value.append(self.compose_node(node, index))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 64, in compose_node
if self.check_event(AliasEvent):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 449, in parse_block_mapping_value
if not self.check_token(KeyToken, ValueToken, BlockEndToken):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 116, in check_token
self.fetch_more_tokens()
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens
raise ScannerError("while scanning for the next token", None,
yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
in "<unicode string>", line 1, column 7:
- foo: bar
^
error
Traceback (most recent call last):
File "/yaml/bin/py-pyyaml-py", line 36, in <module>
for doc in yaml.load_all(sys.stdin.read(), Loader=yaml.FullLoader):
File "/python/lib/python3.12/site-packages/yaml/__init__.py", line 130, in load_all
yield loader.get_data()
^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/constructor.py", line 45, in get_data
return self.construct_document(self.get_node())
^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 27, in get_node
return self.compose_document()
^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 82, in compose_node
node = self.compose_sequence_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 111, in compose_sequence_node
node.value.append(self.compose_node(node, index))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 64, in compose_node
if self.check_event(AliasEvent):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/parser.py", line 449, in parse_block_mapping_value
if not self.check_token(KeyToken, ValueToken, BlockEndToken):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 116, in check_token
self.fetch_more_tokens()
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 258, in fetch_more_tokens
raise ScannerError("while scanning for the next token", None,
yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
in "<unicode string>", line 1, column 7:
- foo: bar
^
error
+STR
+DOC
+SEQ
+MAP
=VAL :foo
Traceback (most recent call last):
File "/yaml/bin/py-ruamel-event", line 9, in <module>
for event in yaml.parse(sys.stdin.read()):
File "/python/lib/python3.12/site-packages/ruamel/yaml/main.py", line 371, in parse
while parser.check_event():
^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/parser.py", line 141, in check_event
self.current_event = self.state()
^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/parser.py", line 631, in parse_block_mapping_value
if self.scanner.check_token(ValueToken):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 170, in check_token
self.fetch_more_tokens()
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 313, in fetch_more_tokens
raise ScannerError(
ruamel.yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
in "<unicode string>", line 1, column 7:
- foo: bar
^ (line: 1)
error
Traceback (most recent call last):
File "/yaml/bin/py-ruamel-json", line 21, in <module>
for doc in yaml.load_all(sys.stdin.read()):
File "/python/lib/python3.12/site-packages/ruamel/yaml/main.py", line 476, in load_all
yield constructor.get_data()
^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/constructor.py", line 110, in get_data
return self.construct_document(self.composer.get_node())
^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 63, in get_node
return self.compose_document()
^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 94, in compose_document
node = self.compose_node(None, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 128, in compose_node
node = self.compose_sequence_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 173, in compose_sequence_node
node.value.append(self.compose_node(node, index))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 130, in compose_node
node = self.compose_mapping_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 211, in compose_mapping_node
item_value = self.compose_node(node, item_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 106, in compose_node
if self.parser.check_event(AliasEvent):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/parser.py", line 141, in check_event
self.current_event = self.state()
^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/parser.py", line 631, in parse_block_mapping_value
if self.scanner.check_token(ValueToken):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 170, in check_token
self.fetch_more_tokens()
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 313, in fetch_more_tokens
raise ScannerError(
ruamel.yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
in "<unicode string>", line 1, column 7:
- foo: bar
^ (line: 1)
error
Traceback (most recent call last):
File "/yaml/bin/py-ruamel-py", line 38, in <module>
for doc in yaml.load_all(sys.stdin.read()):
File "/python/lib/python3.12/site-packages/ruamel/yaml/main.py", line 476, in load_all
yield constructor.get_data()
^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/constructor.py", line 110, in get_data
return self.construct_document(self.composer.get_node())
^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 63, in get_node
return self.compose_document()
^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 94, in compose_document
node = self.compose_node(None, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 128, in compose_node
node = self.compose_sequence_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 173, in compose_sequence_node
node.value.append(self.compose_node(node, index))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 130, in compose_node
node = self.compose_mapping_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 211, in compose_mapping_node
item_value = self.compose_node(node, item_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 106, in compose_node
if self.parser.check_event(AliasEvent):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/parser.py", line 141, in check_event
self.current_event = self.state()
^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/parser.py", line 631, in parse_block_mapping_value
if self.scanner.check_token(ValueToken):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 170, in check_token
self.fetch_more_tokens()
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 313, in fetch_more_tokens
raise ScannerError(
ruamel.yaml.scanner.ScannerError: while scanning for the next token
found character '\t' that cannot start any token
in "<unicode string>", line 1, column 7:
- foo: bar
^ (line: 1)
error
/ruby/gems/psych/lib/psych.rb:458:in `parse': (<unknown>): found character that cannot start any token while scanning for the next token at line 3 column 4 (Psych::SyntaxError)
from /ruby/gems/psych/lib/psych.rb:458:in `parse_stream'
from /ruby/gems/psych/lib/psych.rb:632:in `load_stream'
from /yaml/bin/ruby-psych-json:6:in `<main>'
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 =DENT|.
1 2 2 2 +NODE|
1 2 2 2 +MAP |
1 2 2 2 +PAIR|
1 2 2 2 +NODE|
1 2 2 2 +VAL |
1 2 2 2 =TEXT|foo
1 5 5 5 -VAL |
1 5 5 5 -NODE|
1 5 5 5 =SYNX|:
1 6 6 6 =WSPC|\x09.
1 8 8 8 +NODE|
1 8 8 8 +VAL |
1 8 8 8 =TEXT|bar
1 11 11 11 -VAL |
1 11 11 11 -NODE|
1 11 11 11 =EOL |\x0a
2 0 12 12 -PAIR|
2 0 12 12 -MAP |
2 0 12 12 -NODE|
2 0 12 12 =SYNX|-
2 1 13 13 =DENT|.
2 2 14 14 +NODE|
2 2 14 14 +SEQ |
2 2 14 14 =SYNX|-
2 3 15 15 =WSPC|.
2 4 16 16 +NODE|
2 4 16 16 +VAL |
2 4 16 16 =TEXT|baz
2 7 19 19 -VAL |
2 7 19 19 -NODE|
2 7 19 19 =EOL |\x0a
3 0 20 20 =DENT|..
3 2 22 22 =SYNX|-
3 3 23 23 =WSPC|\x09
3 4 24 24 +NODE|
3 4 24 24 +VAL |
3 4 24 24 =TEXT|baz
3 7 27 27 -VAL |
3 7 27 27 -NODE|
3 7 27 27 =EOL |\x0a
4 0 28 28 -SEQ |
4 0 28 28 -NODE|
4 0 28 28 -SEQ |
4 0 28 28 -NODE|
4 0 28 28 -DOC |
na
[
{
'foo' => 'bar'
},
[
'baz',
'baz'
]
]