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 By others on same topic  0 Discussions Create my own version
A context-free grammar can enforce sums such as 0n1m0n+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
Nested-count context-free grammar
The language
{a4rb5sc2sd3r:r,s≥0}
(1)
is context-free. The grammar
S→aaaaSddd∣T,T→bbbbbTcc∣ϵ
(2)
nests the a,d dependency around the b,c dependency.

 Ancestors (6)

  1. Context-free language
  2. Formal language theory
  3. Foundations of mathematics
  4. Area of mathematics
  5. Mathematics
  6.  Home

 View article source

 Discussion (0)

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
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook