Closed althonos closed 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.
[UniProt]
UnprefixedId
SynonymType-Id
XrefList
[
\n
Following example is a term clause from ChEBI:
The appropriate rule is:
but since
[UniProt]
is a validUnprefixedId
the grammar cannot differentiate between theSynonymType-Id
andXrefList
rules: it requires a potentially infinite lookahead to find another[
before\n
.