Which of the following productions eliminate left recursion in the
productions given below:
S → Aa | b
A → Ac | Sd | ε
(A) S → Aa | b
A → bdA’
A’ → A’c | A’ba | A | ε
(B) S → Aa | b
A → A’ | bdA’,
A’ → cA’ | adA’ | ε
(C) S → Aa | b
A → A’c | A’d
A’ → bdA’ | cA | ε
(D) S → Aa | b
A → cA’ | adA’ | bdA’
A’ → A | ε
All Replies
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.