← 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 enables macro definition and file inclusion while maintaining compatibility with OCaml's lexical conventions. The tool supports features including object-like and function-like macros, conditional directives, file inclusion, scoping mechanisms, higher-order macros, and integration with external processors. Built in OCaml and maintained by the OCaml community under the leadership of Martin Jambon and Yishuai Li, cppo is designed to be more OCaml-friendly than the standard C preprocessor while remaining simple to install and maintain.

Languages

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

Contributors