Question 14181 – Parsers
December 6, 2023
Question 17217 – NTA UGC NET DEC-2022 Paper-2
December 7, 2023
Question 14181 – Parsers
December 6, 2023
Question 17217 – NTA UGC NET DEC-2022 Paper-2
December 7, 2023

Question 660 – Parsers

Which of the following productions eliminate left recursion in the productions given below:
S → Aa | b
A → Ac | Sd | ε

Correct Answer: B

Question 83 Explanation: 
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 | ε
P

Leave a Reply

Your email address will not be published. Required fields are marked *