Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Q: ocamldoc error, camlp4, syntax differences
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Maxence Guesdon <maxence.guesdon@i...>
Subject: Re: [Caml-list] Q: ocamldoc error, camlp4, syntax differences
Hello,

On 23 Apr 2004 11:54:02 +0200
Jan Kybic <kybic@fel.cvut.cz> wrote:

> Hello,
>         I am generating documentation for my Ocaml code with ocamldoc.
> 
> I have several questions:
> 
> 1) On some files, ocamldoc fails with:
> 
>       analyse_module: parsetree and typedtree don't match.
> 
>    What does this error message mean? I could not find it anywhere. 
>    If it is a bug, I can send the offending file to the responsible
>    person.

You can send the file to me, thanks. I already heard about a similar
bug and will investigate soon.

> 2) Some files are to be preprocessed by Camlp4 in order to use the
>    stream syntax. Is there a way to tell ocamldoc to preprocess only
>    some sources files? I am using OCamlMakefile and I set:
> 
>         OCAMLDOC = ocamlfind ocamldoc -package lacaml,str 

No you can't. But you can use the -dump and -load options to do
what you want:

ocamldoc -dump t.odoc -pp "...." <the files to preprocess>
ocamldoc -load t.odoc <the files you don't want to preprocess>

Moreover, you can use the -load option several times.
 
-- 
Maxence Guesdon

-------------------
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