chickadee » comparse » maybe

maybe parser #!optional defaultprocedure

Returns a parser which applies parser to the input and returns its result and remainder if it succeeds. Otherwise it returns default or #f if not specified as the parse result and the untouched input as the remainder.