WhereParserExtension<T> extension
- on
-
- Parser<
T>
- Parser<
Methods
-
where(
Predicate< T> predicate, {Callback<T, String> ? failureMessage, Callback<T, int> ? failurePosition}) → Parser<T> -
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.