···
1
+
synopsis: "Preprocessor-pretty-printer of OCaml"
4
+
Camlp5 is a preprocessor and pretty-printer for OCaml programs. It also provides parsing and printing tools.
6
+
As a preprocessor, it allows to:
8
+
extend the syntax of OCaml,
9
+
redefine the whole syntax of the language.
10
+
As a pretty printer, it allows to:
12
+
display OCaml programs in an elegant way,
13
+
convert from one syntax to another,
14
+
check the results of syntax extensions.
15
+
Camlp5 also provides some parsing and pretty printing tools:
19
+
stream parsers and lexers
21
+
It works as a shell command and can also be used in the OCaml toplevel.
24
+
maintainer: "https://github.com/ocaml/opam-repository/issues"
25
+
authors: ["Daniel de Rauglaudre"]
26
+
homepage: "https://camlp5.github.io"
27
+
license: "BSD-3-Clause"
28
+
bug-reports: "https://github.com/camlp5/camlp5/issues"
29
+
dev-repo: "git+https://github.com/camlp5/camlp5.git"
30
+
doc: "https://camlp5.github.io/doc/html"
33
+
"ocaml" { >= "4.02" & < "4.13.0" }
37
+
["./configure" "--prefix" prefix "-libdir" lib "-mandir" man]
40
+
install: [make "install"]
42
+
src: "https://github.com/camlp5/camlp5/archive/rel714.tar.gz"
44
+
"sha512=1b39949c532ca622b01a8e800aa1dcad34f1c944ffe580003642bd742dedc158f3ee54602f3b05f89c0e259525d7feed101b971ebd589449b6d56046389a5bf6"