chickadee » prcc » rep+_

(rep+_ PARSER0 [skip: PARSER1])procedure

Repeat PARSER0 from 1 to infinite times, but skip PARSER1. By default, PARSER1 is spaces parser (<s*>).

Example:

;; Parse an array of "a" or "b" identifiers:
(define ident (sel (char #\a) (char #\b)))

(parse-string
   "[a,b,b,a]"
   (ind (seq (char #\[) (rep+_ a-or-b skip: (char #\,)) (char #\])) 1))
=> ("a" "b" "b" "a")