predicateObjectList rule requires lookahead

I believe that grammar rule [7] predicateObjectList [1] is not LL(1) and requires look ahead to know what branch to go into. For example:

[ :a :b ; ]

may  cause it to go down the ( ":" verb objectList )* branch instead of the ";"? branch, and result in an error. The previous definition did work okay:

[7] predicateObjectList ::= verb objectList ( ";" ( verb objectList)? )* 

Any reason it was changed?

Gregg

[1] http://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html#sec-grammar

Received on Thursday, 15 December 2011 15:09:48 UTC