edited by
1,408 views
3 votes
3 votes
calculate first and follow

S -> AB

A -> SD / e

C ->  a / ε

D -> b

or
calculate follow in this

S -> AB

A -> CD

C -> a / ε

D -> b
edited by

Please log in or register to answer this question.

Related questions

3 votes
3 votes
1 answer
1
LavTheRawkstar asked Jun 25, 2016
1,518 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.
2 votes
2 votes
1 answer
2
0 votes
0 votes
3 answers
4
jayanth asked Jun 16, 2022
3,527 views
Compute the FIRST and FOLLOW for the postfix grammar after removing the left recursion:$ S → S S+/ S S* /a$