macOS
brew install camlp5local Homebrew formula metadata
sudo port install camlp5MacPorts ports tree · lang/camlp5/Portfile · 来源: api.github.com
安装
brew install camlp5local Homebrew formula metadata
sudo port install camlp5MacPorts ports tree · lang/camlp5/Portfile · 来源: api.github.com
sudo apt install camlp5Debian stable package indexes · camlp5 · 来源: deb.debian.org
sudo pacman -S camlp5Arch Linux sync databases · camlp5 · 来源: geo.mirror.pkgbuild.com
概览
Preprocessor and pretty-printer for OCaml
历史
Camlp5 is an OCaml preprocessor and pretty-printer used to extend or redefine OCaml syntax, convert between syntaxes, and build parsing or pretty-printing extensions.
The official Camlp5 about page traces its ideas to Michel Mauny in the 1990s. Daniel de Rauglaudre implemented the first version in 1996 under the name Camlp4, where the four Ps meant Pre-Processor-Pretty-Printer.
In 2002, Camlp4 maintenance moved to Michel Mauny and was later extended by Nicolas Pouillard with different design ideas and some incompatibilities. In 2006, de Rauglaudre restarted the original line of work and renamed it Camlp5.
The current GitHub README says Camlp5 was originally written by Daniel de Rauglaudre, with maintenance and upgrades by Chet Murthy. It also notes a newer 8.x line that differs substantially from the 7.x releases and is tested against modern OCaml versions.
Camlp5 has long lived in the OCaml toolchain's syntax-extension culture. Its official docs describe use as a shell command, as an OCaml compiler preprocessor through -pp, and inside the OCaml toplevel.
The package metadata in this batch shows Camlp5 in Homebrew, Debian, Ubuntu, MacPorts, and Arch, reflecting its role as a durable compatibility package for OCaml projects that still rely on Camlp5 syntax extensions or revised syntax.
Common shell commands include camlp5o for ordinary OCaml syntax and camlp5r for revised syntax. The docs show invoking them through ocamlc -pp and loading camlp5o.cma or camlp5r.cma in the OCaml toplevel.
Developers use Camlp5 to write parsing and printing kits, extensible grammars, quotations, macros, syntax extensions, and pretty-printers. It is also used to convert OCaml programs from one syntax to another and to inspect syntax-extension output.
Camlp5 matters to package nerds because it is both a real tool and an archaeological layer in OCaml packaging. It preserves a branch of the Camlp4 preprocessor tradition that many older OCaml packages and syntax experiments depended on.
It is also a reminder that language ecosystems carry syntax tooling as compatibility debt. Keeping Camlp5 packaged means old source distributions, revised-syntax code, and pre-ppx extension workflows can still be built on modern Unix systems.
安全态势
没有找到 camlp5 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
camlp5 | cli | 全局可执行文件 | |
camlp5o | cli | 全局可执行文件 | |
camlp5o.opt | cli | 全局可执行文件 | |
camlp5r | cli | 全局可执行文件 | |
camlp5r.opt | cli | 全局可执行文件 | |
camlp5sch | cli | 全局可执行文件 | |
mkcamlp5 | cli | 全局可执行文件 | |
mkcamlp5.opt | cli | 全局可执行文件 | |
ocpp5 | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/camlp5/camlp5
安装元数据
| 软件包键 | brew:camlp5 |
|---|---|
| 版本 | 8.05.02 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/camlp5 |
| 主页 | https://camlp5.github.io/ |
| 仓库 | https://github.com/camlp5/camlp5 |
| 上游文档 | https://camlp5.github.io/doc/html |
| 许可证 | BSD-3-Clause |
| 源码归档 | https://github.com/camlp5/camlp5/archive/refs/tags/8.05.02.tar.gz |
| 最后更新 | 2026-07-01T00:08:52Z |
| Pulse | updated |
| 依赖 | camlp-streams, ocaml, pcre2 |
| 构建依赖 | ocaml-findlib, opam, pkgconf |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | camlp5 |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
camlp5 8.03.01-1+b7
Pre Processor Pretty Printer for OCaml - classical version
sudo apt install camlp5camlp5 8.02.01-2build6
Pre Processor Pretty Printer for OCaml - classical version
sudo apt install camlp5camlp5 8.05.01-1
A preprocessor-pretty-printer of OCaml.
sudo pacman -S camlp5camlp5
sudo port install camlp5来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.