Computer Science, asked by Anant7492, 1 year ago

4 differences between ambiguous and unambiguous grammar

Answers

Answered by SHARRSHAN
0
Ambiguous grammar. In computer science, an ambiguous grammar is a context-free grammar for which there exists a string that can have more than one leftmost derivation or parse tree, while an unambiguous grammar is a context-free grammar for which every valid string has a unique leftmost derivation or parse tree.
Similar questions