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
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
> 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?
MfG
Goswin
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
All I need now is a camlp4-powerful macro preprocessor for my C code ...
Rich.
--
Richard Jones
Red Hat
>
> On Wed, Nov 18, 2009 at 01:54:18AM +0100, Martin Jambon wrote:
>> It is my pleasure to announce the first release of cppo, an OCaml-
>> friendly
>> equivalent of the C preprocessor (cpp).
>
> All I need now is a camlp4-powerful macro preprocessor for my C
> code ...
Try coccinelle:
http://coccinelle.lip6.fr/