* [Caml-list] Q: ocamldoc error, camlp4, syntax differences
@ 2004-04-23 9:54 Jan Kybic
2004-04-23 12:30 ` Maxence Guesdon
0 siblings, 1 reply; 3+ messages in thread
From: Jan Kybic @ 2004-04-23 9:54 UTC (permalink / raw)
To: caml-list
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.
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
3) The reason why I am not using camlp4 for everything it that
the syntax between ocaml and campl4 is different, the one by camlp4
seems to be more restrictive. Are there any plans to unify the two?
Thank you for your help.
Jan
--
-------------------------------------------------------------------------
Jan Kybic <kybic@ieee.org> tel. +420 2 2435 7264
or <kybic@fel.cvut.cz>, http://cmp.felk.cvut.cz/~kybic
-------------------
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Q: ocamldoc error, camlp4, syntax differences
2004-04-23 9:54 [Caml-list] Q: ocamldoc error, camlp4, syntax differences Jan Kybic
@ 2004-04-23 12:30 ` Maxence Guesdon
[not found] ` <m2hdva968e.fsf@cmpgw-ii-05.felk.cvut.cz>
0 siblings, 1 reply; 3+ messages in thread
From: Maxence Guesdon @ 2004-04-23 12:30 UTC (permalink / raw)
To: caml-list
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-04-27 15:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-23 9:54 [Caml-list] Q: ocamldoc error, camlp4, syntax differences Jan Kybic
2004-04-23 12:30 ` Maxence Guesdon
[not found] ` <m2hdva968e.fsf@cmpgw-ii-05.felk.cvut.cz>
[not found] ` <20040423180508.02119dc3@tintin.inria.fr>
2004-04-27 15:07 ` Jan Kybic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox