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:
Definition
A Matrix Grammar,
MG
G=(N,T,M,S)
N
T
N
M={m1,m2,...,mn}
mi=
[p | |
i1 |
,...,p | |
ik(i) |
]
k(i)\geq1
1\leqi\leqn
p | |
ij |
1\leqj\leqk(i)
p | |
ij |
=(L,R)
L\in(N\cupT)*N(N\cupT)*,R\in(N\cupT)*
L → R
mi=
[L | |
i1 |
→
R | |
i1 |
,...,L | |
ik(i) |
→
R | |
ik(i) |
]
Definition
Let
MG=(N,T,M,S)
P
MG
MG
i
i=0,1,2,3
λ
G=(N,T,P,S)
Note: taken from Abraham 1965, with change of nonterminals namesThe context-sensitive language
L(G)=\{anbncn:n\geq1\}
CFMG
G=(N,T,M,S)
N=\{S,A,B,C\}
T=\{a,b,c\}
M:
\left[S → abc\right]
\left[S → aAbBcC\right]
\left[A → aA,B → bB,C → cC\right]
\left[A → a,B → b,C → c\right]
Basic concepts
Definition
A Time Variant Grammar is a pair
(G,v)
G=(N,T,P,S)
v:N → 2P
Basic concepts
A Programmed Grammar is a pair
(G,s)
G=(N,T,P,S)
s,f:P → 2P
Definition
A Grammar With Regular Control Language,
GWRCL
(G,e)
G=(N,T,P,S)
e
Consider the CFG
G=(N,T,P,S)
N=\{S,A,B,C\}
T=\{a,b,c\}
P=\{p0,p1,p2,p3,p4,p5,p6\}
p0=S → ABC
p1=A → aA
p2=B → bB
p3=C → cC
p4=A → a
p5=B → b
p6=C → c
L(G)=\{a*b*c*\}
P
P
e=p0(p1p2p
*(p | |
4p |
5p6)
Combining the CFG grammar
G
e
(G,e) =(G,p0(p1p2p
*(p | |
4p |
5p6))
L(G)=\{anbncn:n\geq1\}
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 a Turing machine powerful grammatical device.