目录
❧前言
I.欢迎
II.漫说解释器
- 4.Scanning
- 设计笔记: Implicit Semicolons
- 5.Representing Code
- 6.Parsing Expressions
- 设计笔记: Logic Versus History
- 7.Evaluating Expressions
- 设计笔记: Static and Dynamic Typing
- 8.Statements and State
- 设计笔记: Implicit Variable Declaration
- 9.Control Flow
- 设计笔记: Spoonfuls of Syntactic Sugar
- 10.Functions
- 11.Resolving and Binding
- 12.Classes
- 设计笔记: Prototypes and Power
- 13.Inheritance
III.字节码虚拟机
- 14.Chunks of Bytecode
- 设计笔记: Test Your Language
- 15.A Virtual Machine
- 设计笔记: Register-Based Bytecode
- 16.Scanning on Demand
- 17.Compiling Expressions
- 设计笔记: It’s Just Parsing
- 18.Types of Values
- 19.Strings
- 设计笔记: String Encoding
- 20.Hash Tables
- 21.Global Variables
- 22.Local Variables
- 23.Jumping Back and Forth
- 设计笔记: Considering Goto Harmful
- 24.Calls and Functions
- 25.Closures
- 设计笔记: Closing Over the Loop Variable
- 26.Garbage Collection
- 设计笔记: Generational Collectors
- 27.Classes and Instances
- 28.Methods and Initializers
- 设计笔记: Novelty Budget
- 29.Superclasses
- 30.Optimization