Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Auto-generate mli from ml?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Stefano Zacchiroli <zack@u...>
Subject: Re: [Caml-list] Auto-generate mli from ml?
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@{,,} -<>-
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