oakland / tecblog

My tech blogs
4 stars 0 forks source link

Notes on Compiler construction by Niklaus Wirth #324

Open oakland opened 8 months ago

oakland commented 8 months ago

chapter 1

用编程语言书写的程序是树状,甚至网状的,最终需要被编译器转换成线性的指令,来让计算机执行。

编程语言写出来是线性的,但是通过编译器要先转换成树状的 ast,然后再生成线性的其他代码

P121 "A solution to the dangling else ambiguity in the BNF itself is more difficult than the previous ambiguities we have seen." 这部分的内容没有看,需要再看一遍。