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 QAA01949; Tue, 4 Sep 2001 16:00:23 +0200 (MET DST) 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 QAA01815 for ; Tue, 4 Sep 2001 16:00:22 +0200 (MET DST) Received: from verdot.inria.fr (verdot.inria.fr [128.93.11.7]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f84E0LL08420; Tue, 4 Sep 2001 16:00:21 +0200 (MET DST) Received: (from ddr@localhost) by verdot.inria.fr (8.9.3/8.9.3) id QAA29881; Tue, 4 Sep 2001 16:00:21 +0200 Date: Tue, 4 Sep 2001 16:00:21 +0200 From: Daniel de Rauglaudre To: Markus Mottl Cc: OCAML Subject: Re: [Caml-list] canonical camlp4-suffix? Message-ID: <20010904160021.Q29263@verdot.inria.fr> References: <20010903175840.A8034@chopin.ai.univie.ac.at> <20010904082037.B27407@verdot.inria.fr> <20010904144335.B9377@chopin.ai.univie.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us In-Reply-To: <20010904144335.B9377@chopin.ai.univie.ac.at>; from markus@mail4.ai.univie.ac.at on Tue, Sep 04, 2001 at 02:43:35PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, On Tue, Sep 04, 2001 at 02:43:35PM +0200, Markus Mottl wrote: > The topmost line in a file could read like this: > (*pp camlp4o -I some_dir some_quots.cmo some_more_quots.cmo *) It is almost my syntax! I use just: (* camlp4o -I some_dir some_quots.cmo some_more_quots.cmo *) Therefore my shell script tests "(* camlp4o" in my source file with a simple grep. With some appropriate "sed", I build the right command lines. And I have also a "depend" entry which tests the .cmo files of this line to create the dependencies. > Then I just check for the 'pp' tag, and if it's there, I just take the > contents of the comment as parameter for the -pp option. This could then > also be a completely different preprocessor (cpp? ;). Yes. If you need other preprocessors, you can do that. You can take the version in camlp4 (tools/camlp4_comm.sh) or take the ideas in it, if you want, no problem. It is implementable, since all compilation of camlp4 files use that (including the files not to be preprocessed). -- 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