caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Andrey Riabushenko <cdome@bk.ru>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Functional unparsing
Date: Fri, 17 Apr 2009 11:36:18 +0300	[thread overview]
Message-ID: <200904171136.19299.cdome@bk.ru> (raw)
In-Reply-To: <3a360f590904151440g4c1eabdbk9962880f4bb16083@mail.gmail.com>

> The Batteries Print module and associated syntax extension may be a
> useful base for implementing something similar to what you are
> proposing:
>
> http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=batteries/batteries.git;a=blo
>b_plain;f=src/core/extlib/print.ml;hb=HEAD and
> http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=batteries/batteries.git;a=tre
>e;f=src/syntax/pa_strings;hb=HEAD
>
> This allows for syntax like:
> Print.printf p"This is a list of integers: %{int list}"
> to return:
> int list -> unit = <fun>
>

Thank you, this one was much more helpful then standard printf.ml. This one is 
much shorter and easier to understand.


  reply	other threads:[~2009-04-17  8:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-15 20:41 Andrey Riabushenko
2009-04-15 21:21 ` [Caml-list] " Daniel Bünzli
2009-04-15 21:40 ` Hezekiah M. Carty
2009-04-17  8:36   ` Andrey Riabushenko [this message]
2009-04-16  9:25 ` Cedric Auger

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=200904171136.19299.cdome@bk.ru \
    --to=cdome@bk.ru \
    --cc=caml-list@yquem.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).