Definition
Grammar
A grammar is defined as 4-tuple
, where
is the finite set of non-terminal symbols, is the finite set of terminal symbols, is the finite set of production rules (relation), and is the start symbol. Without further constraints,
is called unconstrained grammar or type-0 grammar and is the most general form of a grammar in the Chomsky hierarchy.
Sentential Form
Definition
Link to originalSentential Form
Let
be a grammar. A word is called sentential form if the production rule exists. The set of all sentential forms over
that can be produced within steps is given by:
Generated Language
Definition
Link to originalGenerated Language
Equivalence
Two grammars