Re: callback interface not LL(1)

Le mercredi 04 janvier 2012 à 14:08 +1100, Cameron McCormack a écrit :
> Dominique Hazael-Massieux:
> > Another case where I think the recent addition to WebIDL makes the
> > grammar no longer LL(1): since "interface" is a valid value of the
> > "identifier" production, "callback interface" could be parsed either as
> > the starting point of:
> >   callback interface foo { };
> > or of:
> >   callback interface = void ();
> 
> As with the similar comment for union types, if you want to name 
> something "interface" you'll need to write it as "_interface":

Oh right, I had forgotten about that rule, sorry for the noise :)

Dom

Received on Wednesday, 4 January 2012 09:24:57 UTC