caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alexy Khrabrov <deliverable@gmail.com>
To: Joel Reymont <joelr1@gmail.com>
Cc: "O'Caml Mailing List" <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] antiquotations for c#
Date: Wed, 15 Apr 2009 20:06:04 -0400	[thread overview]
Message-ID: <7c737f300904151706n5fda9a21k497744361dbbef85@mail.gmail.com> (raw)
In-Reply-To: <77D9D70A-15A4-400B-9035-D78D4AF85D67@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 586 bytes --]

On Wed, Apr 15, 2009 at 4:49 AM, Joel Reymont <joelr1@gmail.com> wrote:

> Suppose I have a camlp4 parser for C#.
>
> I want to include bits of C# in my code and end up with the AST.
>
> I want to have "holes" in the above AST to plug in values.
>
> I understand that antiquotations take car of filling the holes in the AST,
> any tips on implementing this, though?
>

Not quite OCaml, but Haskell got a good one which can be an inspiration:

http://www.haskell.org/haskellwiki/Quasiquotation

-- it was used by Geoff Mainland in implementing Flask (paper in ICFP 2008).

Cheers,
Alexy

[-- Attachment #2: Type: text/html, Size: 1004 bytes --]

      parent reply	other threads:[~2009-04-16  0:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-15  8:49 Joel Reymont
2009-04-15 16:45 ` [Caml-list] " Jake Donham
2009-04-16  0:06 ` Alexy Khrabrov [this message]

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=7c737f300904151706n5fda9a21k497744361dbbef85@mail.gmail.com \
    --to=deliverable@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=joelr1@gmail.com \
    /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).