dyaml.parser

YAML parser. Code based on PyYAML: http://www.pyyaml.org

class Parser

Types 1

classParser

Generates events from tokens provided by a Scanner.

While Parser receives tokens with non-const character slices, the events it produces are immutable strings, which are usually the same slices, cast to string. Parser is the last layer of D:YAML that may possibly do any modifications to these slices.

Methods
bool empty() @safeCheck if any events are left. May have side effects in some cases.
Event front() @safeReturn the current event.
void popFront() @safeSkip to the next event.
inout(string) name() ref inout @safe return pure nothrow @nogcSet file name.
Mark mark() const @safe pure nothrow @nogcGet a mark from the current reader position
Constructors
this(Scanner scanner)Construct a Parser using specified Scanner.