Definition
Grammar
A grammar is a 4-tuple:
where:
- is the finite set of non-terminal symbols
- is the finite set of terminal symbol ()
- are the product rules
- is the start symbol
Denote:
- instead of
- instead of
Further, is also called unconstrained grammar or type- grammar.
Sentential Form
Definition
Link to originalSentential Form
Generated Language
Definition
Link to originalGenerated Language
Equivalence
Two grammars are called equivalent iff their generated languages match: