OneOf<A, Input> class

Mixed-in types
Available extensions

Constructors

OneOf(List<Parser<A, Input>> upstreams)

Properties

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

Methods

body() → Parser<A, Input>
override
flatMap<B>(Parser<B, Input> transform(A)) → FlatMapParser<A, B, Input>

Available on Parser<A, Input>, provided by the ParserTransformations extension

map<B>(B transform(A)) → MapParser<A, B, Input>

Available on Parser<A, Input>, provided by the ParserTransformations extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(Input input) → (A, Input)
inherited
skip<B>(Parser<B, Input> other) → Skip<A, B, Input>

Available on Parser<A, Input>, provided by the ParserTransformations extension

take<C>(Parser<C, Input> other) → TakeParser3<A, B, C, Input>

Available on Parser<(A, B), Input>, provided by the ParserTake3Transformations extension

take<D>(Parser<D, Input> other) → TakeParser4<A, B, C, D, Input>

Available on Parser<(A, B, C), Input>, provided by the ParserTake4Transformations extension

take<A>(Parser<A, Input> other) → TakeFromUnitParser<A, Input>

Available on Parser<Unit, Input>, provided by the ParserTakeFromUnitTransformations extension

take<B>(Parser<B, Input> other) → TakeParser<A, B, Input>

Available on Parser<A, Input>, provided by the ParserTransformations extension

takeUnit<B>(Parser<Unit, Input> other) → TakeUnitParser<A, Input>

Available on Parser<A, Input>, provided by the ParserTransformations extension

toString() → String
A string representation of this object.
inherited

Operators

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