Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] ANNOUNCE: OCaml and XML (OX v0.1)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alain.Frisch@e...
Subject: Re: [Caml-list] Camlp4 integration
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