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: Wed, 14 Mar 2012 01:25:49 +0100 [thread overview]
Message-ID: <cb22697538e54ae0813bb08934e13d5f.squirrel@gps.dynxs.de> (raw)
In-Reply-To: <CANcqPu7-2L_JrvWEDmN8ZqHsq-PY52GuQEwEvt77vO44YzQmxQ@mail.gmail.com>
> Thanks.
> I know the dirty tricks, is there some way not that dirty?
> Godi did pretty printing this way?
Yes. But why do you consider it as dirty? There is nothing wrong with it,
isn't it? This uses a helper program with a well-defined interface.
I think you can also "use" ocamlc -i for it, maybe easier to wrap.
Gerd
> On Tue, Mar 13, 2012 at 6:36 PM, Gerd Stolpmann <info@gerd-stolpmann.de>
> wrote:
>>
>>> 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.
>>
>
>
>
> --
> -- Bob
>
>
--
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.
next prev parent reply other threads:[~2012-03-14 0:25 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
2012-03-13 23:20 ` bob zhang
2012-03-14 0:25 ` Gerd Stolpmann [this message]
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=cb22697538e54ae0813bb08934e13d5f.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