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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 0E19FBB84 for ; Mon, 6 Oct 2008 16:07:09 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqACAGO46UhDz4HeiGdsb2JhbACTXAEBARUipyeBag X-IronPort-AV: E=Sophos;i="4.33,368,1220220000"; d="scan'208";a="15710609" Received: from fettunta.fettunta.org ([67.207.129.222]) by mail2-smtp-roc.national.inria.fr with ESMTP; 06 Oct 2008 16:07:08 +0200 Received: from usha.takhisis.invalid (unknown [10.17.0.18]) by fettunta.fettunta.org (Postfix) with ESMTP id 9A3C6180E6 for ; Mon, 6 Oct 2008 14:07:06 +0000 (UTC) Received: by usha.takhisis.invalid (Postfix, from userid 1000) id 06BF16A99; Mon, 6 Oct 2008 16:05:53 +0200 (CEST) Date: Mon, 6 Oct 2008 15:05:53 +0100 From: Stefano Zacchiroli To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Auto-generate mli from ml? Message-ID: <20081006140553.GA21339@usha.takhisis.invalid> References: <1223300185.6141.18.camel@Blefuscu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1223300185.6141.18.camel@Blefuscu> User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam: no; 0.00; zacchiroli:01 zack:01 mli:01 0200,:01 mli:01 'ocamlc:01 ocamldoc:01 'ocamlc:01 camlp:01 ocamldoc:01 ocamlc:01 zacchiroli:01 postdoc:01 zack:01 wrote:01 On Mon, Oct 06, 2008 at 03:36:25PM +0200, David Teller wrote: > I'm currently looking for a complete .ml -> .mli generator. That is, a > generator which would essentially perform the same job as 'ocamlc -i', > but which would keep whichever comments of the .ml remain meaningful in > the .mli (i.e. anything that ocamldoc would keep). Now, that doesn't > look like something too hard to write, with a combination of 'ocamlc -i' > and camlp4, I'm just wondering if someone has already written such a > tool. It does not answer your question directly, but if I'm guessing correctly that your goal is obtaining both the .mli and the ocamldoc output, you can achieve that with legacy "ocamlc -i" and ocamldoc with merge options on the .ml alone. But it is likely that I'm not guessing correctly :-) -- Stefano Zacchiroli -*- PhD in Computer Science \ PostDoc @ Univ. Paris 7 zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/ I'm still an SGML person,this newfangled /\ All one has to do is hit the XML stuff is so ... simplistic -- Manoj \/ right keys at the right time