Syntax:
str: "+STR+"
This event represents the start of a YAML stream. A stream contains zero or more DOC nodes.
+STR
Syntax:
doc = "+DOC" "---"?
This event represents the start of a YAML document within a stream.
The optional ---
argument specifies whether the
document has explicit separators or not.
Syntax:
val = "=VAL" (" &" anchor)? (" <" tag)? " " quote str
anchor = name
tag = name
name = [^ ]+
quote = [:'">|]
str = .*
This event represents an explicit value. The anchor argument specifies the name of a possible alias reference (see ALI); the tag argument specifies the value's tag. The quote character represents the style of quoting that that was used to represent the value; if this is a colon, the value was presented unquoted. Within str, \n
represents a newline character (ascii 10) and \t
represents a tab (ascii 8).
Examples:
=VAL :99
=VAL &ref "some value\n