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}
Compilers Principles, Techniques, & Tools (purple dragon book) second edition exercise answers. 编译原理(紫龙书)第2版习题答案。
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}