Re: [WebIDL] grammar in ABNF

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 UTC