dragon-book-exercise-answers icon indicating copy to clipboard operation
dragon-book-exercise-answers copied to clipboard

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

Results 115 dragon-book-exercise-answers issues
Sort by recently updated
recently updated
newest added

https://github.com/fool2fish/dragon-book-exercise-answers/blob/master/ch08/8.3/8.3.md#833 In the link above, at addresses 108,132,140 and 164 you have used psize and qsize which I think is incorrect. It must be the size of the calling procedure...

图3-29的转换表NFA的第四个集合的元素为什么没有1?1在接受b时可以回到自己啊? 并且接着下面3.7.2的图3-29的部分也有上面的问题

Hello, I am a bit confused about this image. for f(1) the first time, t should not have any value, so t value has to be 0 or null on...

`void s() { switch(lookahead) { case '0': match('0');S();match('1'); break; default: report('syntax error') } }` The old code will take string like '001111' witch should not be took

答案中的first和follow set计算有问题

Since $B\to aBAB, B\to \epsilon$, then $FOLLOW(A) = FOLLOW(A) \cup FOLLOW(B)$, so $FOLLOW(A) = \{+,*,a,$\}$.

![image](https://user-images.githubusercontent.com/74498109/150954992-d4c78601-b01a-4b25-9bb1-27e9e069da3b.png) The answer tells me that the grammer is ambiguous by giving the example below, but the example confused me.I don't know why both trees represent the same string ....