Re: How is ambiguity defined?

> Steven’s parser and mine produce different results. His parser
> claims the string is ambiguous, because it implicitly defines
> ambiguity in one way (my conjecture: in terms of the ambiguity
> of the sentence against the underlying BNF grammar)
Actually, my parser queues up all alternatives of a rule to be tried at the current position in the input, and then tries them (effectively in parallel, as I explained in my talk at XML London [1]). If more than one succeed then that rule is considered ambiguous.

[1] https://xmllondon.com/2016/xmllondon-2016-proceedings.pdf#page=120

Steven

Received on Friday, 7 January 2022 12:14:10 UTC