Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
antiquotations for c#
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-04-16 (00:06)
From: Alexy Khrabrov <deliverable@g...>
Subject: Re: [Caml-list] antiquotations for c#
On Wed, Apr 15, 2009 at 4:49 AM, Joel Reymont <> 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:

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