Testing the Parser and Emitter
There are several programs to test the parser and emitter.
Parser
This will output the parsing events in yaml-test-suite format:
For flow style events, you have to enable it with the --flow
option:
In the future, this will be the default.
You can also explicitly disable this style with --flow off
, or output flow style always, with --flow on
.
Emitter
run-emitter-test-suite takes yaml-test-suite event format and emits YAML.
Options
--directive (1.1|1.2)
Prints a version directive before every document.
--flow on
Will emit the whole document in flow style.
--flow off
Will emit the whole document in block style.
--flow keep
Will emit block/flow style like in the original document.
Example: