Example With Alphabet Σ={0,1} With Language L={x∈Σ∗:#0(x)=#1(x)} The CFG that generates L is: S→0A,1B,ϵA→1S,0AAB→0S,1BB Alternate CFG S→ϵ,0S1S,1S0S