operator & method

  1. @useResult
Parser<List> operator &(
  1. Parser other
)

Convenience operator returning a parser that accepts the receiver followed by other. See seq for details.

For example, the parser letter() & digit() & letter() accepts a letter followed by a digit and another letter. The parse result of the input string 'a1b' is the list <dynamic>['a', '1', 'b'].

Implementation

@useResult
Parser<List<dynamic>> operator &(Parser other) => seq(other);