Warning: Reason support is experimental. We are looking for beta-tester and contributors.

Module JsooTopPpx

module JsooTopPpx : sig..end

One can add a ppx rewriter to a toplevel by registering it

Ast_mapper.register "js_of_ocaml" Ppx_js.js_mapper

Helpers to embed PPX into the toplevel.

val preprocess_structure : Parsetree.structure -> Parsetree.structure
val preprocess_signature : Parsetree.signature -> Parsetree.signature
val preprocess_phrase : 
  Parsetree.toplevel_phrase -> Parsetree.toplevel_phrase