WhereParserExtension<R> extension

on

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 returns true the parser proceeds with the parse result, otherwise a parse failure is created using the optionally specified failureMessage and failurePosition callbacks.