English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
quasiquoting: 3 parsers for camlp4 vs 1 for haskell?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-04-17 (20:06)
From: Jake Donham <jake@d...>
Subject: Re: [Caml-list] quasiquoting: 3 parsers for camlp4 vs 1 for haskell?
On Fri, Apr 17, 2009 at 11:24 AM, Joel Reymont <joelr1@gmail.com> wrote:
> Can someone shed light on how, where and why three different
> parsers are required for camlp4? Is this still the case with 3.11?

I haven't read the Mainland paper so I don't know exactly what he's
talking about, but with the MetaGenerator module in Camlp4 you can use
one parser for all three tasks.

Antiquotations can be used in pattern matching (you can see this all
over the Camlp4 source for the OCaml AST). Don't be misled by my
jsgen.ml; it's just not finished.