From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id E6AD4BBAF for ; Fri, 5 Sep 2008 14:42:42 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiUEAH/FwEjCpx6vamdsb2JhbACSNw0FCAYSpC2BZQ X-IronPort-AV: E=Sophos;i="4.32,320,1217800800"; d="scan'208";a="16870651" Received: from smtpka.univ-orleans.fr (HELO ka.univ-orleans.fr) ([194.167.30.175]) by mail1-smtp-roc.national.inria.fr with ESMTP; 05 Sep 2008 14:42:42 +0200 Received: from smtps.univ-orleans.fr (localhost [127.0.0.1]) by ka.univ-orleans.fr (Postfix) with ESMTP id 01A3C12AD60; Fri, 5 Sep 2008 14:42:43 +0200 (CEST) Received: from [192.168.0.12] (ras75-4-82-235-58-110.fbx.proxad.net [82.235.58.110]) by smtps.univ-orleans.fr (Postfix) with ESMTP id AD1CB36E60; Fri, 5 Sep 2008 14:42:44 +0200 (CEST) Subject: Re: [Caml-list] Two questions on OCamlDoc From: David Teller To: Maxence Guesdon Cc: Caml In-Reply-To: <20080905143701.6d6ce52d@alcazar.inria.fr> References: <1220356028.6406.33.camel@Blefuscu> <1220610303.8100.16.camel@Blefuscu> <20080905140325.41812dad@alcazar.inria.fr> <1220618023.8100.31.camel@Blefuscu> <20080905143701.6d6ce52d@alcazar.inria.fr> Content-Type: text/plain Date: Fri, 05 Sep 2008 14:42:53 +0200 Message-Id: <1220618573.8100.34.camel@Blefuscu> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocamldoc:01 univ-orleans:01 rephrase:01 ocamldoc:01 odoc:01 odoc:01 cheers:01 0200,:01 maxence:01 guesdon:01 univ-orleans:01 mli:01 maxence:01 lifo:01 liquidations:98 Let me rephrase: I'm doing that pre-treatment from inside ocamldoc. Therefore, I don't think that running ocamldoc from ocamldoc is an option. Now, perhaps I should try and access data visible to Odoc_cross or Odoc_analyse? Cheers, David On Fri, 2008-09-05 at 14:37 +0200, Maxence Guesdon wrote: > On Fri, 05 Sep 2008 14:33:43 +0200 > David Teller 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 ? > > Regards, > > Maxence > -- David Teller-Rajchenbach Security of Distributed Systems http://www.univ-orleans.fr/lifo/Members/David.Teller Angry researcher: French Universities need reforms, but the LRU act brings liquidations.