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

2.2.2(5)

zwhu opened this issue · comments

sorry for my poor english.

我想第5个应该是:数字乘以括号内的项,可以省略乘号。
例如: 5*(5+8) == 5(5+8)

S -> a | S + S | S S | S * | ( S )

I think the language is L = {when digit minus brackets's term, can omit minus signs }
for example:
5*(5+8) == 5(5+8)