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
Ampersand in camlp4 grammar extension
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-01-29 (04:37)
From: Paul Steckler <Paul.Steckler@n...>
Subject: RE: [Caml-list] Ampersand in camlp4 grammar extension
Hi Nicolas,

> However I can guess in your question that you don't really want to change the
syntax of the binary operator "&", but rather to change it's meaning. In
camlp4 there is a much more sane and easier way to do this using filters.
By the way there is an example in the camlp4 sources that does exactly this.

Yes, this seems to work -- but it would be simpler, in fact, if I could just use
a rule in my grammar extension.

Do you know if there's a way to debug grammar extensions?  Maybe I need to
DELETE a rule from the original grammar, though it's not clear to me which
rule that is.


-- Paul