Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Martin Jambon <martin_jambon@e...>
Subject: Re: [Caml-list] [Too hard?] Print values like the toplevel's printerI
On Fri, 5 Nov 2004, Wolfgang Müller wrote:

> > why don't you like this solution ? is it because it is slow ? ugly ?
>
> I think your solution gives me the feeling that there must be something
> simpler than that.
>
> This is not criticizing you, it is rather a question to the Caml people,
> like e.g. X. Leroy and colleagues and/or the ExtLibs:
>
> (Why?) is there no really simple way getting the print functionality of
> the standard toplevel?

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.
It should be not too difficult to adapt it for printing data with an
OCaml-compliant syntax.


Martin

--
Martin Jambon, PhD
Researcher in Structural Bioinformatics since the 20th Century
The Burnham Institute http://www.burnham.org
San Diego, California