Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2003-10-04 (15:10)
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 Archives:
Bug reports: FAQ:
Beginner's list: