Parser

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.

Constructors

this
this(Scanner scanner)

Construct a Parser using specified Scanner.

Members

Functions

empty
bool empty()

Check if any events are left. May have side effects in some cases.

front
Event front()

Return the current event.

popFront
void popFront()

Skip to the next event.

Meta