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 extensionpredicatewith the successful parse result. If the predicate returnstruethe parser proceeds with the parse result, otherwise a parse failure is created using the optionally specifiedfactorycallback, the providedmessage, or otherwise an automatically created error message.