W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2009

Re: [WebIDL] grammar in ABNF

From: Cameron McCormack <cam@mcc.id.au>
Date: Wed, 1 Jul 2009 15:39:25 +1000
To: Marcin Hanclik <Marcin.Hanclik@access-company.com>, public-webapps <public-webapps@w3.org>
Message-ID: <20090701053925.GD27420@arc.mcc.id.au>
Marcin Hanclik:
> > I had the following problem:
> > 
> > [45]    ScopedName      -> "::" ScopedNameAfterColon
> >  | identifier ScopedNameParts
> > Where I assumed that each ScopedName has to start with "::", because according to ABNF this production has to be written as
> > [45ABNF]        ScopedName      = ("::" ScopedNameAfterColon) | (identifier ScopedNameParts)

Cameron McCormack:
> Was the confusion because the ‘"::" ScopedNameAfterColon’ and
> ‘identifier ScopedNameParts’ weren’t written on the same line?

Ah I see the confusion is more about how strongly the ‘|’ operator
binds compared to adjacent symbols.

-- 
Cameron McCormack ≝ http://mcc.id.au/
Received on Wednesday, 1 July 2009 05:40:06 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:32 GMT