A finite collection of Production Rules which tell us whether certain strings or sentences are grammatical or not.
A grammar is context free if it is in the form of:
- is the grammar
- is a variable or Non-terminal
- is a Terminal
4-Tuple Definition
A CFG is a 4 tuple: where:
- is a finite set of variables
- is a finite set of Terminals
- is a finite set of Production Rules
- is a particular start element