Lecture-23 Context Free Grammar (CFG)
Lecture-23 Context Free Grammar (CFG)
Parsing by CFG
• As in English language any sentence can be
expressed by parse tree, so any word generated
by the given CFG can also be expressed by the
parse tree, e.g. consider the following CFG
1. S → AA
2. A → AAA|bA|Ab|a