fool2fish / dragon-book-exercise-answers

Compilers Principles, Techniques, & Tools (purple dragon book) second edition exercise answers. 编译原理(紫龙书)第2版习题答案。
6.37k stars 1.77k forks source link

Bug #218

Open sandeeptemp11 opened 7 months ago

sandeeptemp11 commented 7 months ago

In this link(https://dragon-book.jcf94.com/book/ch04/4.4/4.4.html). Question 4.4.4 part3. followS(S) = [), (, $] and not just followS(S) = [), $]. Because S -> S (S) S. You need to consider S in the middle to find FOLLOW(S)