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

Wrong answer

nefton opened this issue · comments

http://dragon-book.jcf94.com/book/ch02/2.2/2.2.html
question 2.2.4 unit 4 and 5
"Arithmetic expressions of integers and identifiers with the four binary operators +, -, *, /."
there are no " ( ) " in the answer.
so "factor -> id | num | (expr)" should be "factor -> id | num"