1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Delimited positioning information for an event in the document.
type t =
| Stream_start of {
} | ||||
| Document_start of {
} | ||||
| Document_end of {
} | ||||
| Mapping_start of {
} | ||||
| Mapping_end | ||||
| Stream_end | ||||
| Scalar of scalar | ||||
| Sequence_start of {
} | ||||
| Sequence_end | ||||
| Alias of {
} | ||||
| Nothing |
t
represents a single event in a YAML processing stream.
These may be produced by a parser
or consumed by an emitter
. A valid sequence of events should obey the grammar:
stream ::= STREAM-START document* STREAM-END
document ::= DOCUMENT-START node DOCUMENT-END
node ::= ALIAS | SCALAR | sequence | mapping
sequence ::= SEQUENCE-START node* SEQUENCE-END
mapping ::= MAPPING-START (node node)* MAPPING-END