FIRST and FOLLOW Sets Calculation Algorithm for Context-Free Grammars

I need an algorithm to calculate the FIRST and FOLLOW grammar sets.

Is there a simple algorithm or simple code to calculate them?

+4
source share
1 answer

The standard algorithm for calculating the FIRST and FOLLOW sets is discussed in most textbooks and books on parsing algorithms. I would be surprised if you took the course where it was covered, and the reading or materials provided on this topic were not assigned.

, . , 303-304 LL , FIRST- 32 LL , FOLLOW.

, !

+11

All Articles