Here
the parse tree,
(i)
(ii)
Two left most derivations are:
S → as
→ aasbs
→ aaϵbs
→ aabs
→aabϵ
→aab
|
S → asbs
→ aasbs
→ aaϵbs
→ aabs
→ aabϵ
→ aab
|
(iii)
The two right most derivations are:
S → as
→ aasbs
→ aasbϵ
→aasb
→ aaϵb
→ aab
|
S → asbs
→ asbϵ
→ asb
→ aasb
→ aaϵb
→ aab
|
No comments
Dear Members, Thanks for Your Comments. We must be reply your comment answer as soon as possible. Please Stay with us.....