edited by
1,120 views

1 Answer

Best answer
2 votes
2 votes
$A \rightarrow AB / \epsilon$

Here $A\rightarrow AB$ is useless production.

So the only production that matters is $A\rightarrow \epsilon$.

So $First (A) =  \epsilon$
edited by

Related questions

3 votes
3 votes
1 answer
1
LavTheRawkstar asked Jun 25, 2016
1,517 views
Consider the Following GrammarP - SS - A | A ;S A - id = EE - E+E | E-E | E*E | E/E | (E) | TT - id | numCalculate FIRST and FOLLOW for each non terminal.
0 votes
0 votes
3 answers
3
jayanth asked Jun 16, 2022
3,513 views
Compute the FIRST and FOLLOW for the postfix grammar after removing the left recursion:$ S → S S+/ S S* /a$
3 votes
3 votes
0 answers
4