实现步骤:
- 词法分析:将源代码转换成 token
- 语法分析:将 token 转换为 AST 抽象语法树
- 语义分析:AST 处理
- ......
- Lisp interpreter in 90 lines of C++
- Lisp interpreter in 90 lines of C++
- (How to Write a (Lisp) Interpreter (in Python))
- Implementing Scheme in C++ - Introduction
- Pratt Parsers: Expression Parsing Made Easy
- Pratt Parser in Python 源代码
- 让 Go 很容易手写 Parser
- Simple Top-Down Parsing in Python
- Simple but Powerful Pratt Parsing