Hierarchy of formal grammars. A formal grammar describes how to form strings from a language alphabet that are valid according to the language syntax.

Each class in the hierarchy can completely generate the language of all inferior classes (set inclusive).

Hierarchy:

See also