On Tue, Aug 05, 2008 at 07:53:08PM +0200, Christophe TROESTLER wrote: > On Tue, 5 Aug 2008 17:04:26 +0100, Richard Jones wrote: > > > > Maybe a simple question, but does camlp4 have functions to turn > > expr and patt AST structures to and from strings? > > Parsing: > Printing: [..]
Thanks, these techniques worked perfectly for me. I too could do with 'print-to-string' functions though :-) As some background to this, I am trying to serialize Bitstring_- persistent[1] structures into a more durable format (currently based on XML). Rich. [1] http://et.redhat.com/~rjones/bitstring/html/Bitstring_persistent.html -- Richard Jones Red Hat _______________________________________________ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs