[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#736908: ITP: optcomp -- syntax extension for optional compilation with cpp-like directives



Package: wnpp
Severity: wishlist
Owner: "Stéphane Glondu" <glondu@debian.org>

* Package name    : optcomp
  Version         : 1.5
  Upstream Author : Jérémie Dimino
* URL             : https://github.com/diml/optcomp
* License         : BSD
  Programming Lang: OCaml
  Description     : syntax extension for optional compilation with cpp-like directives

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.

-- 
Stéphane


Reply to: