--- &test-MUS6:03
Title: Directive variants
Tags: [ directive ]
+STR
+DOC ---
=VAL :
-DOC
-STR
json_diff
"%YAML \t 1.1 ---"
error
YAML::Tiny failed to classify line '%YAML 1.1' at /yaml/bin/perl-tiny-json line 12.
error
YAML::Tiny failed to classify line '%YAML 1.1' at /yaml/bin/perl-tiny-perl line 15.
error
YAML Error: Expected separator '---'
Code: YAML_PARSE_ERR_NO_SEPARATOR
Line: 1
Document: 2
at /perl5/lib/perl5/YAML/Loader.pm line 88.
error
YAML Error: Expected separator '---'
Code: YAML_PARSE_ERR_NO_SEPARATOR
Line: 1
Document: 2
at /perl5/lib/perl5/YAML/Loader.pm line 88.
error
+STR
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 142, in parse_implicit_document_start
if not self.check_token(DirectiveToken, DocumentStartToken,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 177, in fetch_more_tokens
return self.fetch_directive()
^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 400, in fetch_directive
self.tokens.append(self.scan_directive())
^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 794, in scan_directive
value = self.scan_yaml_directive_value(start_mark)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 831, in scan_yaml_directive_value
major = self.scan_yaml_directive_number(start_mark)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 848, in scan_yaml_directive_number
raise ScannerError("while scanning a directive", start_mark,
yaml.scanner.ScannerError: while scanning a directive
in "<unicode string>", line 1, column 1:
%YAML 1.1
^
expected a digit, but found '\t'
in "<unicode string>", line 1, column 7:
%YAML 1.1
^
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 129, in load_all
while loader.check_data():
^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/constructor.py", line 32, in check_data
return self.check_node()
^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 22, in check_node
return not self.check_event(StreamEndEvent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 142, in parse_implicit_document_start
if not self.check_token(DirectiveToken, DocumentStartToken,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 177, in fetch_more_tokens
return self.fetch_directive()
^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 400, in fetch_directive
self.tokens.append(self.scan_directive())
^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 794, in scan_directive
value = self.scan_yaml_directive_value(start_mark)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 831, in scan_yaml_directive_value
major = self.scan_yaml_directive_number(start_mark)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 848, in scan_yaml_directive_number
raise ScannerError("while scanning a directive", start_mark,
yaml.scanner.ScannerError: while scanning a directive
in "<unicode string>", line 1, column 1:
%YAML 1.1
^
expected a digit, but found '\t'
in "<unicode string>", line 1, column 7:
%YAML 1.1
^
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 129, in load_all
while loader.check_data():
^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/constructor.py", line 32, in check_data
return self.check_node()
^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/composer.py", line 22, in check_node
return not self.check_event(StreamEndEvent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 142, in parse_implicit_document_start
if not self.check_token(DirectiveToken, DocumentStartToken,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 177, in fetch_more_tokens
return self.fetch_directive()
^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 400, in fetch_directive
self.tokens.append(self.scan_directive())
^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 794, in scan_directive
value = self.scan_yaml_directive_value(start_mark)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 831, in scan_yaml_directive_value
major = self.scan_yaml_directive_number(start_mark)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/yaml/scanner.py", line 848, in scan_yaml_directive_number
raise ScannerError("while scanning a directive", start_mark,
yaml.scanner.ScannerError: while scanning a directive
in "<unicode string>", line 1, column 1:
%YAML 1.1
^
expected a digit, but found '\t'
in "<unicode string>", line 1, column 7:
%YAML 1.1
^
error
+STR
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 187, in parse_implicit_document_start
if not self.scanner.check_token(DirectiveToken, DocumentStartToken, StreamEndToken):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 232, in fetch_more_tokens
return self.fetch_directive()
^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 461, in fetch_directive
self.tokens.append(self.scan_directive())
^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 853, in scan_directive
value = self.scan_yaml_directive_value(start_mark)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 898, in scan_yaml_directive_value
major = self.scan_yaml_directive_number(start_mark)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 925, in scan_yaml_directive_number
raise ScannerError(
ruamel.yaml.scanner.ScannerError: while scanning a directive
in "<unicode string>", line 1, column 1:
%YAML 1.1
^ (line: 1)
expected a digit, but found '\t'
in "<unicode string>", line 1, column 7:
%YAML 1.1
^ (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 475, in load_all
while constructor.check_data():
^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/constructor.py", line 105, in check_data
return self.composer.check_node()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 58, in check_node
return not self.parser.check_event(StreamEndEvent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 187, in parse_implicit_document_start
if not self.scanner.check_token(DirectiveToken, DocumentStartToken, StreamEndToken):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 232, in fetch_more_tokens
return self.fetch_directive()
^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 461, in fetch_directive
self.tokens.append(self.scan_directive())
^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 853, in scan_directive
value = self.scan_yaml_directive_value(start_mark)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 898, in scan_yaml_directive_value
major = self.scan_yaml_directive_number(start_mark)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 925, in scan_yaml_directive_number
raise ScannerError(
ruamel.yaml.scanner.ScannerError: while scanning a directive
in "<unicode string>", line 1, column 1:
%YAML 1.1
^ (line: 1)
expected a digit, but found '\t'
in "<unicode string>", line 1, column 7:
%YAML 1.1
^ (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 475, in load_all
while constructor.check_data():
^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/constructor.py", line 105, in check_data
return self.composer.check_node()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/composer.py", line 58, in check_node
return not self.parser.check_event(StreamEndEvent)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 187, in parse_implicit_document_start
if not self.scanner.check_token(DirectiveToken, DocumentStartToken, StreamEndToken):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 232, in fetch_more_tokens
return self.fetch_directive()
^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 461, in fetch_directive
self.tokens.append(self.scan_directive())
^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 853, in scan_directive
value = self.scan_yaml_directive_value(start_mark)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 898, in scan_yaml_directive_value
major = self.scan_yaml_directive_number(start_mark)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python/lib/python3.12/site-packages/ruamel/yaml/scanner.py", line 925, in scan_yaml_directive_number
raise ScannerError(
ruamel.yaml.scanner.ScannerError: while scanning a directive
in "<unicode string>", line 1, column 1:
%YAML 1.1
^ (line: 1)
expected a digit, but found '\t'
in "<unicode string>", line 1, column 7:
%YAML 1.1
^ (line: 1)
na
Line Col Char Byte Token|Content
1 0 0 0 +DOC |
1 0 0 0 +DIR |
1 0 0 0 =SYNX|%
1 1 1 1 =META|YAML
1 5 5 5 =WSPC|.\x09.
1 8 8 8 =META|1.1
1 11 11 11 -DIR |
1 11 11 11 =EOL |\x0a
2 0 12 12 =HEAD|---
2 3 15 15 +NODE|
2 3 15 15 +VAL |
2 3 15 15 -VAL |
2 3 15 15 -NODE|
2 3 15 15 =EOL |\x0a
3 0 16 16 -DOC |