Computer Science, asked by kkn2, 1 year ago

Ambiguous grammar and unambiguous grammar

Answers

Answered by Ananyaaaaaaa
1
In computer science, an ambiguous grammar is a context-free grammarfor which there exists a string that can have more than one leftmost derivation or parse tree, while anunambiguous grammar is a context-free grammar for which every valid string has a unique leftmost derivation or parse tree.
Answered by ScarlettMoon
0

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