Browse thread
[camlp4] expr_of_string, string_of_expr functions exist?
-
Richard Jones
- Yitzhak Mandelbaum
-
Christophe TROESTLER
- Richard Jones
- Jeremy Yallop
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Richard Jones <rich@a...> |
| Subject: | Re: [Caml-list] [camlp4] expr_of_string, string_of_expr functions exist? |
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