package camlp5

  1. Overview
  2. No Docs
Preprocessor-pretty-printer of OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

8.04.01.tar.gz
sha512=7f91f5d1c5cfd7923f859459ab317eff7ed4269014d3fe479b021399b17b4cd305ba56d95f5143d20c8426f1dd69210782df3d10db7848d753624acd73a55441

Description

Camlp5 is a preprocessor and pretty-printer for OCaml programs. It also provides parsing and printing tools.

As a preprocessor, it allows to:

extend the syntax of OCaml, redefine the whole syntax of the language. As a pretty printer, it allows to:

display OCaml programs in an elegant way, convert from one syntax to another, check the results of syntax extensions. Camlp5 also provides some parsing and pretty printing tools:

extensible grammars extensible printers stream parsers and lexers pretty print module It works as a shell command and can also be used in the OCaml toplevel.

Published: 11 May 2026

Dependencies (11)

  1. fmt
  2. bos
  3. rresult
  4. pcre2 >= "8.0.3"
  5. re >= "1.11.0"
  6. camlp5-buildscripts >= "0.06"
  7. conf-bash
  8. conf-perl
  9. camlp-streams >= "5.0"
  10. ocamlfind
  11. ocaml >= "4.10" & < "5.5.0"

Dev Dependencies (3)

  1. mdx >= "2.3.0" & with-test
  2. ounit2 with-test
  3. conf-diffutils with-test & (os-distribution = "alpine" | os-distribution = "freebsd")

Conflicts (7)

  1. pa_ppx <= "0.20"
  2. p5scm <= "0.4.0"
  3. lablgl <= "1.07"
  4. hol_light <= "3.1.0"
  5. GT <= "0.5.4"
  6. frama-clang <= "0.0.18"
  7. ocaml-option-bytecode-only