Grammars & Parse Trees

Generator - Let's us generate all strings in a language
Recognize - Let's us recognize all strings in a language (y/n this is a legal string and parsing)

Grammars

Components of a grammar (G)

Datalog Grammar

Prefix Expression Grammar

E→D|OEE
O→+|=|∗|/
D∈0|1|2|3|4

∗+234 is equivalent to (2+3)∗4

LL(1) Grammar is type of context-free grammar