Version française
Home     About     Download     Resources     Contact us    
Browse thread
New Camlp4 behavior (problem with rules starting with OPT)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christian Stork <cstork@i...>
Subject: Re: [Caml-list] New Camlp4 behavior (problem with rules starting with OPT)
On Fri, Apr 13, 2007 at 03:49:32PM +0200, Nicolas Pouillard wrote:
> On 4/13/07, Martin Jambon <martin.jambon@ens-lyon.org> wrote:
> >With camlp4 3.10.0+beta, the following syntax extension does not work,
> >but it used to work in the "old" camlp4.
> 
> IMHO having rules starting with OPT don't fit very well with the
> camlp4 parsing mechanism.
> 
> It works in the 3.09 version but I don't know why.
> 
> I think that you shouldn't rely on that anymore.

Hmm, then the same applies to rules starting with LIST0, too?  I think
this has at least to be documented.

Why not "simply" expand such rules into to obvious pair of rules?  After
all, OPT is just a shorthand for the programmer anyway.  Or are you
anticipating problems specifying such rules for DELETE?

-- 
Chris Stork   <>  Support eff.org!  <>   http://www.ics.uci.edu/~cstork/
OpenPGP fingerprint:  B08B 602C C806 C492 D069  021E 41F3 8C8D 50F9 CA2F