What is it all about?
LibYAML covers presenting and parsing processes. Thus LibYAML defines the following two processors:
1) Parser, which takes an input stream of bytes and produces a sequence of parsing events.
2) Emitter, which takes a sequence of events and produces a stream of bytes.
* The processes of parsing and presenting are inverse to each other. * Any sequence of events produced by parsing a well-formed YAML document should be acceptable by the Emitter, which should produce an equivalent document. * Any document produced by emitting a sequence of events should be acceptable for the Parser, which should produce an equivalent sequence of events.