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
Re: On language extensions (was Re: [Caml-list] global record)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-07-21 (00:31)
From: Martin Jambon <martin@b...>
Subject: Re: Camlp4 mysteries (was Re: On language extensions (was Re: [Caml-list] global record))
On Fri, 21 Jul 2006, Alain Frisch wrote:

> Martin Jambon wrote:
>> Otherwise it's possible to define well-disciplined syntax extensions.
>> For example, if each new syntax construct (new rule) is forced to start
>> with a unique, registered keyword and end with "end", then different
>> syntax extensions that follow this rule should play well together.
> Except that any new keyword can potentially break existing code. You'd
> need some other syntactical convention.

Do you mean keyword as opposed to LIDENT "mylident"?
Then something like "<:mylident<" but simpler would be better.
Maybe ``mylident ... end


Martin Jambon, PhD