owlcollab / oboformat

Automatically exported from code.google.com/p/oboformat
5 stars 2 forks source link

Another case of ambiguity caused by square brackets #96

Closed althonos closed 5 years ago

althonos commented 5 years ago

Following example is a term clause from ChEBI:

synonym: "chemical entity" EXACT [UniProt]

The appropriate rule is:

synonym-Tag QuotedString ws SynonymScope [ ws SynonymType-ID ] XrefList

but since [UniProt] is a valid UnprefixedId the grammar cannot differentiate between the SynonymType-Id and XrefList rules: it requires a potentially infinite lookahead to find another [ before \n.