- Regulated rewriting
Regulated rewriting is a specific area of
formal languages studying grammatical systems which are able to take some kind of control over the production applied in a derivation step. For this reason, the grammatical systems studied in Regulated Rewriting theory are also called "Grammars with Controlled Derivations". Among such grammars can be noticed:Matrix Grammars
Basic concepts
DefinitionA Matrix Grammar, , is a four-tuple where
1.- is an alphabet of non-terminal symbols
2.- is an alphabet of terminal symbols disjoint with
3.- is a finite set of matrices, which are non-empty sequences , with , and, where each , is an ordered pairbeingthese pairs are called "productions", and are denoted. In these conditions the matrices can be written down as
4.- S is the start symbolDefinitionLet be a matrix grammar and let the collection of all productions on matrices of .We said that is of type i according to Chomsky's hierarchy with , or "increasing length" or "linear" or "without -productions" if and only if the grammar has the corresponding property.
The classical example (taked from [5] with change of nonterminals names)
The context-sensitive language is generated by the where is the non-terminal set, is the terminal set,and the set of matrices is defined as,,,.
Time Variant Grammars
Basic concepts
Definition
A Time Variant Grammar is a pair where is a grammar and is a function from the set of naturalnumbers to the class of subsets of the set the productions.Programmed Grammars
Basic concepts
Definition
A Programmed Grammar is a pair where is a grammar and are the "success" and "fail" functions from the set of productionsto the class of subsets of the set the productions.
Grammars with regular control language
Basic concepts
DefinitionA Grammar With Regular Control Language, , is a pair where is a grammar and is a regular expression over the alphabet of the set the productions.
A naive example
Consider the CFG where is the non-terminal set, is the terminal set,and the productions set is defined asbeing ,,,, and.Clearly,. Now, considering the productions set as an alphabet (since it is a finite set),define the regular expression over :.
Combining the CFG grammar and the regular expression, we obtain the CFGWRCL which generates the language.
Besides there are other grammars with regulated rewriting, the four cited above are good examples of how to extend
context-free grammars with some kind of control mechanism to obtain aTuring machine powerful grammatical device.Sources
[1] Salomaa, Arto Formal languagesAcademic Press, 1973 ACM monograph series
[2] G. Rozenberg, A. Salomaa, (eds.)Handbook of formal languagesBerlin; New York : Springer, 1997 ISBN 3540614869 (set) (3540604200 : v. 1; 3540606483 : v. 2; 3540606491: v. 3)
[3] Regulated Rewriting in Formal Language TheoryJurgen Dassow; G. PaunPages: 308. Medium: Hardcover. Year of Publication: 1990 ISBN:0387514147. Springer-Verlag New York, Inc. Secaucus, NJ, USA
[4] Grammars with Regulated RewritingJurgen Dassow Otto-von-GuerickeAvailable at: [http://citeseer.ist.psu.edu/700926.html] and [http://theo.cs.uni-magdeburg.de/dassow_eng.html] ( [http://theo.cs.uni-magdeburg.de/dassow/tarraphd.pdf] )
[5] Some questions of language theory S. Abrahamin Proceedings of the 1965 International Conference On Computational Linguisticspp 1 - 11, Bonn, Germany Year of Publication: 1965Available at: [http://acl.ldc.upenn.edu/C/C65/C65-1001.pdf]
Wikimedia Foundation. 2010.