Example 3: Construct the language generated from the given grammar
G = ({S, A}, {a, b}, {S}, {P})
P: S → Ab
A → aAb | λ
Solutions:
P: S → Ab
A → aAb | λ [For details see example 1]
From production A → aAb | λ, we will get
Then,
[We replace A by at production S → Ab]