Re: BNF (and XML) grammar extensibility

Jos de Bruijn wrote:
> 
>>>>    METADATALIST   ::= absolute-IRI METADATAVALUE | METADATALIST ' ; 
>>>> ' METADATALIST
>>>
>>> Why not:
>>>    METADATALIST  ::=  absolute-IRI METADATAVALUE ( ' ; ' METADATALIST)?
> 
> They seem equivalent.

If this is, indeed, what you meant, I prefer the second one. Actually, I 
think that I would prefer even better:

    METADATALIST ::=
         absolute-IRI METADATAVALUE ( ' ; ' absolute-IRI METADATAVALUE )*

It shows what it means more clearly, I think.

Cheers,

Christian

Received on Tuesday, 11 March 2008 19:05:35 UTC