English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Two questions on OCamlDoc
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-09-05 (12:37)
From: Maxence Guesdon <maxence.guesdon@i...>
Subject: Re: [Caml-list] Two questions on OCamlDoc
On Fri, 05 Sep 2008 14:33:43 +0200
David Teller <David.Teller@univ-orleans.fr> wrote:

> I'm doing some pre-treatment on the module structure before actually
> generating documentation. In particular, I'd like to be able to find out
> if the .ml contains an inclusion of some given module -- even if there
> is a .mli -- as this will change the resulting structure.
> Is there a way to do such a thing?

You may use ocamldoc on your .ml file and look if it contains a
Element_included_module refering to some given module.

Does it help ?



Maxence Guesdon                           http://yquem.inria.fr/~guesdon/
Service Expérimentation et Développements https://devel.inria.fr/rocq/
INRIA Paris-Rocquencourt                  http://www.inria.fr/rocquencourt/