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 RAA07257; Sat, 4 Oct 2003 17:10:50 +0200 (MET DST) 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 RAA23933 for ; Sat, 4 Oct 2003 17:10:49 +0200 (MET DST) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h94BT5104629 for ; Sat, 4 Oct 2003 13:29:05 +0200 (MET DST) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.12.10/1.01.28121999) with ESMTP id h94BT4jw018500 ; Sat, 4 Oct 2003 13:29:04 +0200 (CEST) Received: from localhost (frisch@localhost) by clipper.ens.fr (8.12.3/jb-1.1) id h94BT25n013935 ; Sat, 4 Oct 2003 13:29:02 +0200 (MET DST) X-Authentication-Warning: clipper.ens.fr: frisch owned process doing -bs Date: Sat, 4 Oct 2003 13:29:02 +0200 (MET DST) From: Alain.Frisch@ens.fr X-X-Sender: frisch@clipper.ens.fr Reply-To: Alain.Frisch@ens.fr To: skaller cc: caml-list@inria.fr Subject: Re: [Caml-list] Camlp4 integration In-Reply-To: <1065237369.3295.53.camel@pelican> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; alain:01 frisch:01 caml-list:01 camlp:01 camlp:01 ocamldep:01 ocamldoc:01 ocamldep:01 ocamldoc:01 -pp:01 ocamlcp:01 ocamlprof:01 -pp:01 alain:01 cmo:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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. Sometimes, it would be more convenient to specify the syntax extensions directly in the Caml sources. I think that OCamlMakefile has some support for that. Note that ocamlcp/ocamlprof don't support the -pp argument, however, and to use the bytecode profiler, you'll indeed have to pretty print... -- Alain ------------------- 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