I tried to solve if a grammar is ambiguos or not. I know that I have to find a word that can be generate by two different leftmost derivations. Is there any algorithm to find a word that, if the grammar is ambiguos, can be generated by two different trees?
Ambiguos Grammar detenction algorithm
edoardottt
- 11
- 3