From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA21140; Thu, 29 Nov 2001 10:10:41 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA21137 for ; Thu, 29 Nov 2001 10:10:41 +0100 (MET) Received: from verdot.inria.fr (verdot.inria.fr [128.93.11.7]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id fAT9AeT09453 for ; Thu, 29 Nov 2001 10:10:40 +0100 (MET) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id KAA06425 for caml-list@inria.fr; Thu, 29 Nov 2001 10:10:40 +0100 Date: Thu, 29 Nov 2001 10:10:40 +0100 From: Daniel de Rauglaudre To: caml-list@inria.fr Subject: Re: [Caml-list] camlp4 + another preprocessor Message-ID: <20011129101040.D4695@verdot.inria.fr> References: <3C04359C.61E15A6A@univ-savoie.fr> <20011128103820.B5437@verdot.inria.fr> <3C05813F.52D9BE90@univ-savoie.fr> <20011129023913.A4302@verdot.inria.fr> <3C059E04.64880847@univ-savoie.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: <3C059E04.64880847@univ-savoie.fr>; from Christophe.Raffalli@univ-savoie.fr on Thu, Nov 29, 2001 at 03:31:32AM +0100 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, On Thu, Nov 29, 2001 at 03:31:32AM +0100, Christophe Raffalli wrote: > ça pourrait marcher avec camlp4o -impl - qui lit l'entré standard > (c'est pas documenté ? mais ça semble marcher ?) Yes, it works, but the problem is neither camlp4 nor sed, but the pipe: sed ... | camlp4o foo.ml camlp4o ... | sed foo.ml In these commands, the input file is not applied to the first command, the pipe is unuseful. And I am not sure that it is a good idea to ask ocaml to look at the string parameter. What it does is: Sys.command (the_pp_string_parameter ^ " " ^ the_input_file) If you need sed just to define constants, it is possible with camlp4 alone. Well, I can add a system of macros like #define of C. Like that, you would not need to program it, but just adding the good predefined camlp4 cmo file. I am going to think of it. -- Daniel de RAUGLAUDRE daniel.de_rauglaudre@inria.fr http://cristal.inria.fr/~ddr/ ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr