/ppx_cps

Small OCaml extension (PPX) for rewriting into CPS style

Primary LanguageOCaml

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/