retagged by
430 views
2 votes
2 votes

..here iam getting E->E  , when iam finding first of E  ??

retagged by

1 Answer

0 votes
0 votes
E->E is recursive production. it does not add any element in first set.
Your first() and follow() are correct.

Related questions

1 votes
1 votes
1 answer
1
3 votes
3 votes
1 answer
2
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.
1 votes
1 votes
1 answer
3
learner_geek asked Jul 31, 2017
1,971 views
How to solve recursive first or follow problems as example in second question (First of A) please give detailed explanation.
0 votes
0 votes
1 answer
4
Subhrangsu asked Apr 15, 2022
2,209 views
Compute FIRST and FOLLOW sets:S→ aAC | bBA→ Abc| Abd | eB→ f | gC→ h | i