《编译器》 从零开始写编译器有多难?其实很简单,一学就会!想学?我教你啊。 1/5 P1intro P2source => tokens P3tokens => abstract syntax tree P4abstract syntax tree => high-level intermediate representation P5execute 讲得提纲契领 得深入去看 编译器 代码,数据结构、逻辑流程等,才有可能更好理解 —— https://github.com/lhmouse/asteria P4abstract syntax tree => high-level intermediate representation 等价语句(上图列出了两个例子)在AST里面得用非常不同的结构描述