Re: resolving ambiguity

 > If as a grammar writer I care which parse tree is produced, then I 
should write a grammar in which no sentence is ambiguous.

Exactly. We are friendly enough to produce a serialization, and to mention 
that it is ambiguous. Specifying which serialization is produced is too 
difficult: it depends so much on which parsing algorithm is used. I think 
it is fine as it is, as long as we can agree how best to specify the 
constraint that all available input is consumed.

Steven

Received on Thursday, 1 July 2021 13:25:18 UTC