fool2fish / dragon-book-exercise-answers

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

THE PROBLEM 4.4.1-6 is WRONG

OneirdyniaYi opened this issue · comments

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}

commented

That's right. We can see a previous issue for correct answer: #60