← All repos

cppo

C-style preprocessor for OCaml

ocaml
Browse cluster: OCaml Systems and Utilities
255commits
27contributors
4languages

Tech stack & purpose

Cppo is a C-style preprocessor for OCaml programs that allows developers to define macros and include files in OCaml code. It supports features such as object-like and function-like macros, file inclusion, conditional directives, scopes, higher-order macros, and integration with external processors. The project is written in OCaml and built with Dune, with optional support for OCamlbuild and Findlib. It was originally created by Martin Jambon and is now maintained by the OCaml community, including Martin Jambon and Yishuai Li.

Languages

OCaml
95.8%
Makefile
2.5%
Dune
1.4%
Shell
0.3%

Contributors