optcomp

syntax extension for optional compilation with cpp-like directives (tools)

Description

Optcomp is a syntax extension which handles #if, #else, ... directives in OCaml source files. Compared to cpp:
 * it does not interpret //, /*, and */ as comment delimiters
 * it does not complains about missing '
 * it is easier to integrate in the build process when using other
   camlp4 syntax extensions
 * it does not do macro expansion while cpp does
Compared to pa_macro, it does not require code that will be dropped to be valid OCaml code. This can be useful for code that optionnally uses GADTs, but can be compiled with older versions of OCaml.

This package contains command-line tools.

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/diml/optcomp


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install optcomp