Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Markus Mottl <markus.mottl@gmail.com>
To: Hugo Ferreira <hmf@inescporto.pt>
Cc: caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] Escaped string in sexplib
Date: Tue, 8 Jun 2010 12:52:46 -0400	[thread overview]
Message-ID: <AANLkTilEOz1y7KGVpDdJ8-rsKLj8Dah4S-yk7h2T_3v8@mail.gmail.com> (raw)
In-Reply-To: <4C0E6561.20207@inescporto.pt>

On Tue, Jun 8, 2010 at 11:44, Hugo Ferreira <hmf@inescporto.pt> wrote:
> I am trying to us the Sexplib library to process data.
> However I am having some trouble with strings.
> Specifically I need to save and restore strings to a file
> so that the escaping done during saving is "undone"
> when data is read back in.
>
> How can I do this? Appreciate any pointers.

The I/O and parsing routines in the S-expression library should take
care of escaped strings just fine.  Btw., the escaping conventions are
absolutely identical to the ones used by OCaml.

Regards,
Markus

-- 
Markus Mottl        http://www.ocaml.info        markus.mottl@gmail.com


  parent reply	other threads:[~2010-06-08 16:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-08 15:44 Hugo Ferreira
2010-06-08 16:23 ` [Caml-list] " Paolo Donadeo
2010-06-08 19:10   ` Hugo Ferreira
2010-06-08 16:52 ` Markus Mottl [this message]
2010-06-08 18:52   ` Hugo Ferreira
2010-06-08 19:30     ` Hugo Ferreira
2010-06-09  7:39       ` Paolo Donadeo
2010-06-09  8:02         ` Hugo Ferreira
2010-06-08 19:36     ` Markus Mottl
2010-06-08 19:40       ` Hugo Ferreira
2010-06-08 19:42     ` Török Edwin
2010-06-09  6:40       ` Hugo Ferreira

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=AANLkTilEOz1y7KGVpDdJ8-rsKLj8Dah4S-yk7h2T_3v8@mail.gmail.com \
    --to=markus.mottl@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=hmf@inescporto.pt \
    /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