optcomp-o
syntax extension for optional compilation with cpp-like directives (tools)
Install
- All systems
-
curl cmd.cat/optcomp-o.sh
- Debian
-
apt-get install optcomp
- Ubuntu
-
apt-get install optcomp
- Kali Linux
-
apt-get install optcomp
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install optcomp
- Raspbian
-
apt-get install optcomp
- Dockerfile
- dockerfile.run/optcomp-o
optcomp
syntax extension for optional compilation with cpp-like directives (tools)
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.