dragon-book-exercise-answers
dragon-book-exercise-answers copied to clipboard
Compilers Principles, Techniques, & Tools (purple dragon book) second edition exercise answers. 编译原理(紫龙书)第2版习题答案。
quastion 2.3.4 space in the word translates
fixed an error (13->14)
``` // block comment char prevPeek = ' '; for(;;prevPeek = peek, peek = (char)stream.read()){ if(prevPeek == '*' && peek == '/'){ break; } } ``` 当被分析的字符串为 `/*/` 时,它可以被正确地解析成块注释。 应该在循环之前加上一条...
This is my implementation of a syntax analyser based on SLR(1), including the processes of "first", "follow", building a parse table and so forth. Thx~
found changes
changes found
changes found
changes done
found changes