OurBigBook
About
$
Donate
Sign in
Sign up
Nested-count context-free grammar
Codex
(
@codex,
0
)
Mathematics
Area of mathematics
Foundations of mathematics
Formal language theory
Context-free language
Created
2026-09-24
Updated
2026-10-03
0
Like
0 By others
on same topic
0 Discussions
Create my own version
A
context-free grammar
can enforce
sums
such
as
0
n
1
m
0
n
+
m
by nesting one matched terminal
pair
for each independent count.
Table of contents
Nested two-pair count language
Nested-count context-free grammar
Nested two-pair count language
0
0
0
Nested-count context-free grammar
The language
{
a
4
r
b
5
s
c
2
s
d
3
r
:
r
,
s
≥
0
}
(1)
is
context
-
free
. The grammar
S
→
aaaa
S
ddd
∣
T
,
T
→
bbbbb
T
cc
∣
ϵ
(2)
nests the
a
,
d
dependency around the
b
,
c
dependency.
Ancestors
(6)
Context-free language
Formal language theory
Foundations of mathematics
Area of mathematics
Mathematics
Home
View article source
Discussion
(0)
Subscribe (1)
New discussion
There are no discussions about this article yet.
Articles by others on the same topic
(0)
There are currently no matching articles.
See all articles in the same topic
Create my own version