Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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

--
Martin Jambon, PhD
http://martin.jambon.free.fr