Browse thread
New: cppo, C preprocessor for OCaml
-
Martin Jambon
-
Goswin von Brederlow
- Martin Jambon
- Richard Jones
-
Goswin von Brederlow
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Martin Jambon <martin.jambon@e...> |
| Subject: | Re: [Caml-list] New: cppo, C preprocessor for OCaml |
Goswin von Brederlow wrote: > Martin Jambon <martin.jambon@ens-lyon.org> writes: > >> Dear list, >> >> It is my pleasure to announce the first release of cppo, an OCaml-friendly >> equivalent of the C preprocessor (cpp). >> >> Cppo provides the classic #include, #define and conditionals (#ifdef, ...) >> which are occasionally useful. Cppo can be used on OCaml files and variants >> of OCaml that use the same lexer, such as ocamllex. >> >> The implementation of cppo was tested with ocaml 3.09 to 3.11 and is based on >> ocamllex/ocamlyacc (works also with menhir which I used during the development). >> >> >> The documentation and the source tarballs are at: >> >> http://martin.jambon.free.fr/cppo.html >> >> The package is also available from GODI (apps-cppo). >> >> >> Enjoy. >> >> >> Martin > > Without looking at it, is is camlp4 based and can I combine that with > other camlp4 modules or do I need to seperately preprocess the > source? No, cppo is a standalone executable and is independent from camlp4 or camlp5. Note that the camlp4 world has optcomp: http://forge.ocamlcore.org/projects/optcomp/ Martin -- http://mjambon.com/