fix: use labels in CCParse

This commit is contained in:
Simon Cruanes 2021-12-02 11:38:22 -05:00
parent 9123f7907f
commit bee23722ea
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -758,7 +758,7 @@ let many p : _ t =
(fun self -> (fun self ->
try_or p try_or p
~f:(fun x -> self >|= fun tl -> x :: tl) ~f:(fun x -> self >|= fun tl -> x :: tl)
(pure [])) ~else_:(pure []))
(* (*
(* parse many [p], as a difference list *) (* parse many [p], as a difference list *)
@ -829,8 +829,8 @@ let sep ~by p =
<|> <|>
try_or by try_or by
~f:(fun _ -> Lazy.force read_p >|= fun tl -> x :: tl) ~f:(fun _ -> Lazy.force read_p >|= fun tl -> x :: tl)
(pure [x])) ~else_:(pure [x]))
(pure []) ~else_:(pure [])
) in ) in
Lazy.force read_p Lazy.force read_p