Parser class

A parser that reads Tokens emitted by a Scanner and emits Events.

This is based on the libyaml parser, available at https://github.com/yaml/libyaml/blob/master/src/parser.c. The license for that is available in ../../libyaml-license.txt.

Constructors

Parser(String source, {Uri? sourceUrl, bool recover = false, ErrorListener? errorListener})
Creates a parser that parses source.

Properties

hashCode int
The hash code for this object.
no setterinherited
isDone bool
Whether the parser has finished parsing.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse() Event
Consumes and returns the next event.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited