WhereParserExtension<R> extension
- on
-
- Parser<
R>
- Parser<
Methods
-
where(
Predicate< R> predicate, {String? message, FailureFactory<R> ? factory}) → Parser<R> -
Available on Parser<
Returns a parser that evaluates theR> , provided by the WhereParserExtension extensionpredicate
with the successful parse result. If the predicate returnstrue
the parser proceeds with the parse result, otherwise a parse failure is created using the optionally specifiedfactory
callback, the providedmessage
, or otherwise an automatically created error message.