This commit is contained in:
Simon Cruanes 2021-09-25 20:50:04 -04:00
parent b8fa400465
commit 938c7cb90a
No known key found for this signature in database
GPG key ID: 4AC01D0849AA62B6

View file

@ -394,7 +394,8 @@ val many_until : until:_ t -> 'a t -> 'a list t
(** [many_until ~until p] parses as many [p] as it can until (** [many_until ~until p] parses as many [p] as it can until
the [until] parser successfully returns. the [until] parser successfully returns.
If [p] fails before that then [many_until ~until p] fails as well. If [p] fails before that then [many_until ~until p] fails as well.
Typically [until] can be a closing ')' or another termination condition. Typically [until] can be a closing ')' or another termination condition,
and what is consumed by [until] is also consumed by [many_until ~until p].
{b EXPERIMENTAL} {b EXPERIMENTAL}