ExpressionGroup<T> class

Models a group of operators of the same precedence.

Constructors

ExpressionGroup(Parser<T> _loopback)

Properties

hashCode int
The hash code for this object.
no setterinherited
primitives List<Parser<T>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(Parser<T> inner) Parser<T>
left<O>(Parser<O> parser, T callback(T left, O operator, T right)) → void
Adds a left-associative operator parser. Evaluates the callback with the parsed left term, operator, and right term.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
optional(T value) → void
Makes the group optional and instead return the provided value.
postfix<O>(Parser<O> parser, T callback(T value, O operator)) → void
Adds a postfix operator parser. Evaluates the callback with the parsed value and operator.
prefix<O>(Parser<O> parser, T callback(O operator, T value)) → void
Adds a prefix operator parser. Evaluates the callback with the parsed operator and value.
primitive(Parser<T> parser) → void
Defines a new primitive or literal parser.
Adds a right-associative operator parser. Evaluates the callback with the parsed left term, operator, and right term.
toString() String
A string representation of this object.
inherited
wrapper<L, R>(Parser<L> left, Parser<R> right, T callback(L left, T value, R right)) → void
Defines a new wrapper using left and right parsers, that are typically used for parenthesis. Evaluates the callback with the parsed left delimiter, the value and right delimiter.

Operators

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