caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
To: caml-list@inria.fr
Subject: Re: [Caml-list] [camlp4] expr_of_string, string_of_expr functions exist?
Date: Wed, 6 Aug 2008 14:40:51 +0100	[thread overview]
Message-ID: <20080806134050.GA3137@annexia.org> (raw)
In-Reply-To: <20080805.195308.265324514001300039.Christophe.Troestler+ocaml@umh.ac.be>

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


  reply	other threads:[~2008-08-06 13:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-05 16:04 Richard Jones
2008-08-05 17:43 ` [Caml-list] " Yitzhak Mandelbaum
2008-08-05 17:53 ` Christophe TROESTLER
2008-08-06 13:40   ` Richard Jones [this message]
2008-08-06 19:58 ` Jeremy Yallop

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080806134050.GA3137@annexia.org \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).