*** Welcome to piglix ***

Unrestricted grammar


In formal language theory, an unrestricted grammar is a formal grammar on which no restrictions are made on the left and right sides of the grammar's productions. This is the most general class of grammars in the Chomsky–Schützenberger hierarchy and can generate arbitrary recursively enumerable languages.

An unrestricted grammar is a formal grammar , where is a set of nonterminal symbols, is a set of terminal symbols, and are disjoint (actually, this is not strictly necessary since unrestricted grammars make no real distinction between the two; the designation exists purely so that one knows when to stop generating sentential forms of the grammar), is a set of production rules of the form where and are strings of symbols in and is not the empty string, and is a specially designated start symbol. As the name implies, there are no real restrictions on the types of production rules that unrestricted grammars can have.


...
Wikipedia

...