ExpressionGroup class

Models a group of operators of the same precedence.

Constructors

ExpressionGroup(Parser _loopback)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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