retagged by
1,619 views

1 Answer

0 votes
0 votes

Ans: B


$\\A\rightarrow eA' \\A'\rightarrow CA'|\varepsilon \\ C\rightarrow eC' \\C'\rightarrow aC'|\varepsilon$


After removing NULL production:

$\\A\rightarrow eA'|e \\A'\rightarrow CA'|C \\ C\rightarrow eC'|e \\C'\rightarrow aC'|a$

Related questions

2 votes
2 votes
2 answers
1
saumya mishra asked Jun 11, 2018
1,747 views
In this question should we eliminate left recursion by putting values of S and A in the respective productions so answer will be c but if according to the given productio...
1 votes
1 votes
4 answers
2
reena_kandari asked Jan 5, 2017
698 views
Consider the following grammar1)Left Recursive2)Ambiguos3)Left factored4)None of these
0 votes
0 votes
1 answer
4
learner_geek asked Aug 5, 2017
1,307 views
To avoid left recursion can we do like this. I think this is incorrect way to do