From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id BD043BBAF for ; Wed, 18 Nov 2009 02:41:49 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhgCAAzfAkvZSMDji2dsb2JhbACBTZo2AQEBCgsKBxEFuhOEOwSBb4Ea X-IronPort-AV: E=Sophos;i="4.44,761,1249250400"; d="scan'208";a="36936665" Received: from fmmailgate02.web.de ([217.72.192.227]) by mail2-smtp-roc.national.inria.fr with ESMTP; 18 Nov 2009 02:41:49 +0100 Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate02.web.de (Postfix) with ESMTP id 029781426DFCA; Wed, 18 Nov 2009 02:41:49 +0100 (CET) Received: from [95.208.117.111] (helo=frosties.localdomain) by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #314) id 1NAZYK-0004Oq-00; Wed, 18 Nov 2009 02:41:48 +0100 Received: from mrvn by frosties.localdomain with local (Exim 4.69) (envelope-from ) id 1NAZYK-00066e-Fv; Wed, 18 Nov 2009 02:41:48 +0100 From: Goswin von Brederlow To: Martin Jambon Cc: OCaml Mailing List Subject: Re: [Caml-list] New: cppo, C preprocessor for OCaml References: <4B0345BA.9020508@ens-lyon.org> Date: Wed, 18 Nov 2009 02:41:48 +0100 In-Reply-To: <4B0345BA.9020508@ens-lyon.org> (Martin Jambon's message of "Wed, 18 Nov 2009 01:54:18 +0100") Message-ID: <87ws1o7go3.fsf@frosties.localdomain> User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.22 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: goswin-v-b@web.de X-Sender: goswin-v-b@web.de X-Provags-ID: V01U2FsdGVkX18lxxUPwhjs8fP7PE60t1NX1kd7+c9Tkd+g6GIi mrs5w3xdQzGtchKuoyXZ0jlCl4+EGBnsaG+AJNTcsMFywYQ2HA hD868QWuk= X-Spam: no; 0.00; ocaml:01 ens-lyon:01 cpp:01 conditionals:01 ifdef:01 ocaml:01 variants:01 lexer:01 ocamllex:01 ocamllex:01 ocamlyacc:01 tarballs:01 camlp:01 camlp:01 preprocess:01 Martin Jambon 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? MfG Goswin