> 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 <i...@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    g...@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    g...@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.



-- 
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

Reply via email to