大多数编译可分为三个主要阶段:语法分析(Parsing),转换和代码生成。

语法分析(Parsing)通常为两个阶段:词法分析和语法分析(Syntactic Analysis)。

转换:将已经生成的 AST 转化成另一种形式。

代码生成:大多是表示使用 AST 生成代码。

jamiebuilds/the-super-tiny-compiler: Possibly the smallest compiler ever

The Super Tiny Compiler - README.md

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2021-11-24
  • 2022-12-23
  • 2021-04-10
  • 2021-08-20
  • 2021-09-03
猜你喜欢
  • 2022-12-23
  • 2021-06-11
  • 2021-12-18
  • 2022-02-26
  • 2021-05-03
  • 2021-11-02
  • 2021-09-21
相关资源
相似解决方案