Question: Consider the grammar G = ({S, A, B},{a,b}, P, S) with P: S -> aB | bA A -> aS | bAA | a B
Consider the grammar G = ({S, A, B},{a,b}, P, S) with P:
S -> aB | bA
A -> aS | bAA | a
B -> bS | aBB | b
What is L(G)? Outline the reasons for your claim. What type of grammar is this?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
