Dart DocumentationparsersParserAccumulator3

ParserAccumulator3 class

class ParserAccumulator3 {
 final Parser p1, p2, p3;
 ParserAccumulator3(this.p1, this.p2, this.p3);

 /// Parser sequencing: creates a parser accumulator
 ParserAccumulator4 operator +(Parser p) =>
   new ParserAccumulator4(p1, p2, p3, p);

 /// Action application
 Parser operator ^(Object f(x1, x2, x3)) =>
     success((x1) => (x2) => (x3) => f(x1, x2, x3)) * p1 * p2 * p3;

 /// Creates a [:Parser<List>:] from [this].
 Parser<List> get list =>
     success((x1) => (x2) => (x3) => [x1, x2, x3]) * p1 * p2 * p3;
}

Constructors

new ParserAccumulator3(Parser p1, Parser p2, Parser p3) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
ParserAccumulator3(this.p1, this.p2, this.p3);

Properties

final Parser<List> list #

Creates a Parser<List> from this.

Parser<List> get list =>
   success((x1) => (x2) => (x3) => [x1, x2, x3]) * p1 * p2 * p3;

final Parser p1 #

final Parser p1

final Parser p2 #

final Parser p1, p2

final Parser p3 #

final Parser p1, p2, p3

Operators

ParserAccumulator4 operator +(Parser p) #

Parser sequencing: creates a parser accumulator

ParserAccumulator4 operator +(Parser p) =>
 new ParserAccumulator4(p1, p2, p3, p);

Parser operator ^(Object f(x1, x2, x3)) #

Action application

Parser operator ^(Object f(x1, x2, x3)) =>
   success((x1) => (x2) => (x3) => f(x1, x2, x3)) * p1 * p2 * p3;