English version
Accueil     Ŕ propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis ŕ jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml ŕ l'adresse ocaml.org.

Browse thread
Print values like the toplevel's printer
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-11-05 (20:02)
From: Wolfgang_Müller <Wolfgang.Mueller2@u...>
Subject: Re: [Caml-list] [Too hard?] Print values like the toplevel's printer
>> Daniel de Rauglaudre wrote a Camlp4 extension that lets you export
>> (and import) non-circular data to XML (it reads type definitions and
>> uses this to insert the ad hoc export/import functions).
>> This is called IoXML. Maybe it has not been updated for the 3.08
>> version of Camlp4.
> I used it all the times and this library does not work with OCaml 3.08.
> If have made
> a little modification and it seems to work (for my data). If you need
> it, I could sent you
> this modification.

Oh, this looks very much as if it would be interesting for me. I am mainly
interested in generating quickly human readable output as I am a
"debugging by logging" person. This sounds exactly like what I need.

Thanks a lot to all of you who answered for your helpful postings.


> ps:
>> It should be not too difficult to adapt it for printing data with an
>> OCaml-compliant syntax.
> Juste change the name and the type of some functions.

This sounds very attractive.