W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2012

Re: callback interface not LL(1)

From: Dominique Hazael-Massieux <dom@w3.org>
Date: Wed, 04 Jan 2012 10:24:18 +0100
Message-ID: <1325669058.3017.247.camel@altostratustier>
To: Cameron McCormack <cam@mcc.id.au>
Cc: public-script-coord@w3.org
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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:05 UTC