From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id q2JHvOPU006282 for ; Mon, 19 Mar 2012 18:57:24 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAPJSZ09QRFuw/2dsb2JhbABCtkqBB4IJAQEFOi0SEAsOChwSFCghiCEHuiOFQ4pWYwSVZ5ApgmY X-IronPort-AV: E=Sophos;i="4.73,611,1325458800"; d="scan'208";a="136800791" Received: from furbychan.cocan.org ([80.68.91.176]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 19 Mar 2012 18:57:21 +0100 Received: from rich by furbychan.cocan.org with local (Exim 4.72) (envelope-from ) id 1S9gpc-0003qL-NL; Mon, 19 Mar 2012 17:57:20 +0000 Date: Mon, 19 Mar 2012 17:57:20 +0000 From: "Richard W.M. Jones" To: Hongbo Zhang Cc: Caml List Message-ID: <20120319175720.GA14651@annexia.org> References: <20120314180948.GA11143@annexia.org> <4F60DFF4.8050904@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F60DFF4.8050904@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [Caml-list] Parsing cmi file On Wed, Mar 14, 2012 at 02:14:12PM -0400, Hongbo Zhang wrote: > On 3/14/12 2:09 PM, Richard W.M. Jones wrote: > >On Tue, Mar 13, 2012 at 05:52:37PM -0400, bob zhang wrote: > >>Hi list, > >> I noticed that Godi can pretty print cmi files, is there already > >>libraries parsing cmi files? > >cmigrep may be worth looking at. It's also a nasty(-ish) hack since > >it has to use the compiler sources. I agree it would be nice to have > >a formal API, but I can understand why the OCaml team wouldn't want to > >have to maintain such a thing. > > > >Rich. > > > Thanks ! > I tried, it does not compile, but it would be not hard to fix, I guess. Fedora carries some non-upstream patches (one taken from Debian) to fix it: http://pkgs.fedoraproject.org/gitweb/?p=ocaml-cmigrep.git;a=tree There doesn't seem to be an active upstream at the moment. Rich. -- Richard Jones Red Hat