WhereParserExtension<R> extension
- on
-
- Parser<
R>
- Parser<
Methods
-
where(
Predicate< R> predicate, {FailureFactory<R> ? failureFactory, Callback<R, String> ? failureMessage, Callback<R, int> ? failurePosition}) → Parser<R> -
Returns a parser that evaluates the
predicate
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 specifiedfailureMessage
andfailurePosition
callbacks.