ppx_cps
ppx_cps
is a very simple OCaml PPX that rewrites let-bindings into CPS style.
let%cps x = f in e
(* ==> *)
f (fun x -> e)
Setup
$ git clone <url>/ppx_cps.git
$ opam pin add ppx_cps ppx_cps/
ppx_cps
ppx_cps
is a very simple OCaml PPX that rewrites let-bindings into CPS style.
let%cps x = f in e
(* ==> *)
f (fun x -> e)
$ git clone <url>/ppx_cps.git
$ opam pin add ppx_cps ppx_cps/