views:

649

answers:

2

I'm looking for a good explanation of the definitions of the FIRST, FOLLOW, and PREDICT sets of a RDP when given a grammar.

+1  A: 

Try Programming Language Pragmatics, by Michael L. Scott (Morgan Kaufmann). Parsing is covered in chapter 2. Recursive-descent parsing is described in section 2.2.3; first and follow sets in 2.2.5.

Rob Kennedy
A: 

Update for the 3rd edition, Predict Sets appears in section 2.3.2

Jackin