module Mark : sig ... endPosition information for an event
module Event : sig ... endDefinition of an individual event during a processing stream
Parsing functions
parser tracks the state of generating Event.t values.
val parser : string -> (parser, [> Rresult.R.msg ]) Result.resultparser () will allocate a fresh parser state.
do_parse parser will generate the next parsing event from an initialised parser.
Serialisation functions
emitter tracks the state of generating Event.t values for YAML output.
emitter ?len () will allocate a new emitter state. Due to a temporary limitation in the implementation, len decides how large the fixed size buffer that the output is written into is. In the future, len will be redundant as the buffer will be dynamically allocated.
val emitter_buf : emitter -> Stdlib.Bytes.tval sequence_start : ?anchor:string -> ?tag:string -> ?implicit:bool -> ?style:layout_style -> emitter -> unit resval mapping_start : ?anchor:string -> ?tag:string -> ?implicit:bool -> ?style:layout_style -> emitter -> unit resval emitter_written : emitter -> int