camlp5

Preprocessor and pretty-printer for OCaml language

brewmacoslinux
Try with needOr install directly
Source

About

Preprocessor and pretty-printer for OCaml

Commands

camlp5mkcamlp5

Examples

Process an OCaml file with camlp5 preprocessing$ camlp5 -prf pr_o.cmo input.ml
Pretty-print OCaml code to standard output$ camlp5 pr_o.cmo < input.ml > output.ml
Create a custom camlp5 executable with specific extensions$ mkcamlp5 -I +str str.cma pa_extend.cmo q_MLast.cmo pa_extfun.cmo