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 KAA12742; Mon, 6 Oct 2003 10:45:30 +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 KAA31477 for ; Mon, 6 Oct 2003 10:45:29 +0200 (MET DST) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h968jS103422 for ; Mon, 6 Oct 2003 10:45:28 +0200 (MET DST) Received: from akasha.ijm.jussieu.fr (akasha.ijm.jussieu.fr [134.157.173.57]) by shiva.jussieu.fr (8.12.10/jtpda-5.4) with ESMTP id h968jR4B079563 ; Mon, 6 Oct 2003 10:45:28 +0200 (CEST) Received: by akasha.ijm.jussieu.fr (Postfix, from userid 11004) id 3E22F3C79F; Mon, 6 Oct 2003 10:45:22 +0200 (CEST) From: Olivier Andrieu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16257.11169.586317.913000@akasha.ijm.jussieu.fr> Date: Mon, 6 Oct 2003 10:45:21 +0200 To: skaller@ozemail.com.au Cc: caml-list@inria.fr Subject: Re: [Caml-list] Camlp4 integration In-Reply-To: <1065299593.12873.8.camel@pelican> References: <1065299593.12873.8.camel@pelican> X-Mailer: VM 7.17 under Emacs 21.2.1 X-Antivirus: scanned by sophie at shiva.jussieu.fr X-Loop: caml-list@inria.fr X-Spam: no; 0.00; andrieu:01 andrieu:01 caml-list:01 camlp:01 alain:01 frisch:01 camlp:01 ocamldep:01 ocamldoc:01 ocamldep:01 ocamldoc:01 -pp:01 recognizes:01 -pp:01 cmo:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk skaller [ 5 October 2003] : > On Sat, 2003-10-04 at 21:29, Alain.Frisch@ens.fr wrote: > > On 4 Oct 2003, skaller wrote: > > > > > Just some notes on camlp4. One problem I have noticed > > > is that camlp4'd codes don't work so well with other > > > tools such as ocamldep and ocamldoc. Both these programs > > > parse Ocaml but can't load camlp4 to do the job. > > > [I think you have to use pr_o.cmo to print a standard > > > Ocaml file to use them?] > > > > Both ocamldep and ocamldoc accept the -pp argument. > > It isn't not documented? > > > Sometimes, it would be more convenient to specify the syntax > > extensions directly in the Caml sources. > > Yes, i think that would be nice. You can almost do this since camlp4 recognizes the #load directive in .ml files. That way you only put `-pp camlp4o' on the command line and the particular syntax extension is in the .ml file. It simplifies Makefiles a lot. -- Olivier ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners