--- &test-BEC7
Title: Spec Example 6.14. âYAMLâ directive
Tags: [ directive, spec ]
%YAML 1.3 # Attempt parsing
# with a warning
---
"foo"
+STR
+DOC ---
=VAL "foo
-DOC
-STR
json_diff
"%YAML 1.3"
"foo"
error
+STR
Parse error: found incompatible YAML document
error
yaml: found incompatible YAML document
error
luajit: 1:1: found incompatible YAML document
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:496: in function 'load'
/yaml/bin/lua-lyaml-json:6: in main chunk
[C]: at 0x562ce7952f97
error
YAML::PP::LibYAML Error: The problem:
found incompatible YAML document
was found at
error
YAML::PP::LibYAML Error: The problem:
found incompatible YAML document
was found at
error
YAML::Tiny failed to classify line '"foo"' at /yaml/bin/perl-tiny-json line 12.
error
YAML::Tiny failed to classify line '"foo"' at /yaml/bin/perl-tiny-perl line 15.
error
YAML::XS::Load Error: The problem:
found incompatible YAML document
was found at document: 1
error
YAML::XS::Load Error: The problem:
found incompatible YAML document
was found at document: 1
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
Couldn't parse YAML
in sub load-yamls at /raku/sources/44795C7AB0F35700F4CA9C3E2CC5C924EE4C608F (YAMLish) line 959
in block <unit> at /yaml/bin/raku-yamlish-json line 6
error
Couldn't parse YAML
in sub load-yamls at /raku/sources/44795C7AB0F35700F4CA9C3E2CC5C924EE4C608F (YAMLish) line 959
in block <unit> at /yaml/bin/raku-yamlish-raku line 6
error
/ruby/gems/psych/lib/psych.rb:459:in `parse': (<unknown>): found incompatible YAML document at line 1 column 1 (Psych::SyntaxError)
from /ruby/gems/psych/lib/psych.rb:459:in `parse_stream'
from /ruby/gems/psych/lib/psych.rb:565: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 +DIR |
1 0 0 0 =SYNX|%
1 1 1 1 =META|YAML
1 5 5 5 =WSPC|.
1 6 6 6 =META|1.3
1 9 9 9 -DIR |
1 9 9 9 =WSPC|.
1 10 10 10 +COMM|
1 10 10 10 =SYNX|#
1 11 11 11 =META|.Attempt.parsing
1 27 27 27 -COMM|
1 27 27 27 =EOL |\x0a
2 0 28 28 =WSPC|..........
2 10 38 38 +COMM|
2 10 38 38 =SYNX|#
2 11 39 39 =META|.with.a.warning
2 26 54 54 -COMM|
2 26 54 54 =EOL |\x0a
3 0 55 55 =HEAD|---
3 3 58 58 =EOL |\x0a
4 0 59 59 +NODE|
4 0 59 59 +VAL |
4 0 59 59 =SYNX|"
4 1 60 60 =TEXT|foo
4 4 63 63 =SYNX|"
4 5 64 64 -VAL |
4 5 64 64 -NODE|
4 5 64 64 =EOL |\x0a
5 0 65 65 -DOC |
na
'foo'
Found reserved directive '%YAML 1.3 # Attempt parsing' at /perl5/lib/perl5/YAML/PP/Lexer.pm line 823, <> line 1.