Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "Gerd Stolpmann" <info@gerd-stolpmann.de>
To: "bob zhang" <bobzhang1988@gmail.com>
Cc: "Caml List" <caml-list@inria.fr>
Subject: Re: [Caml-list] Parsing cmi file
Date: Tue, 13 Mar 2012 23:36:37 +0100	[thread overview]
Message-ID: <747ffc6fd1465f32ace1cdbb7d1c5100.squirrel@gps.dynxs.de> (raw)
In-Reply-To: <CANcqPu7nMRW66UDZiZMTUBr9uDs0bx2nknqX-LEvxhjjvS4rqg@mail.gmail.com>


> Hi list,
>    I noticed that Godi can pretty print cmi files, is there already
> libraries parsing cmi files?

Yes, toplevellib.cma (i.e. the ocaml toploop). It's a silly trick. Run the
toploop and do

module M = <NameOfTheCMI>;;

and the toploop responds.

Gerd

> Many thanks
> --
> -- Bob
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa-roc.inria.fr/wws/info/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>
>


-- 
Gerd Stolpmann, Darmstadt, Germany    gerd@gerd-stolpmann.de
Creator of GODI and camlcity.org.
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
*** Searching for new projects! Need consulting for system
*** programming in Ocaml? Gerd Stolpmann can help you.



  reply	other threads:[~2012-03-13 22:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-13 21:52 bob zhang
2012-03-13 22:36 ` Gerd Stolpmann [this message]
2012-03-13 23:20   ` bob zhang
2012-03-14  0:25     ` Gerd Stolpmann
2012-03-14 17:14       ` David Brown
2012-03-14  6:48 ` rixed
2012-03-14 17:30   ` [Caml-list] " Hongbo Zhang
2012-03-14 17:38     ` rixed
2012-03-14 17:49       ` Raphael Proust
2012-03-14 17:50       ` Dmitry Grebeniuk
2012-03-14 18:09 ` [Caml-list] " Richard W.M. Jones
2012-03-14 18:14   ` Hongbo Zhang
2012-03-14 19:44     ` Mehdi Dogguy
2012-03-19 17:57     ` Richard W.M. Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=747ffc6fd1465f32ace1cdbb7d1c5100.squirrel@gps.dynxs.de \
    --to=info@gerd-stolpmann.de \
    --cc=bobzhang1988@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox