dragon-book-exercise-answers
dragon-book-exercise-answers copied to clipboard
THE PROBLEM 4.4.1-6 is WRONG
From the definition of the follow set, we know,1.follow(bterm) = first(bexpr') except ∈ and 2.bexpr' => ∈ follow(bterm) = follow(bexpr) In a word, follow(bterm) = {$,),or}
That's right. We can see a previous issue for correct answer: https://github.com/fool2fish/dragon-book-exercise-answers/issues/60