Tier 2 — Semantics & Interpretation

Hiểu nghĩa cây & chạy nó: AST/visitor, scope, kiểu, interpreter, hàm & closure.

Tier này dạy gì?

Cần Tier 1 — Front-end trước. Dẫn sang Tier 3 — Back-end.

Lộ trình 5 bài

Lesson 06
AST vs parse tree, thiết kế node, duyệt pre/in/post-order, visitor pattern (eval/print/typecheck).
Lesson 07
Bảng ký hiệu (hash map), global/local/block, lexical vs dynamic, scope chain, shadowing.
Lesson 08
Hệ thống kiểu, static vs dynamic, type rules & inference bottom-up, coercion, type error.
Lesson 09
eval(node, env), statement vs expression, if/while, runtime error — ngôn ngữ đồ chơi chạy được.
Lesson 10
Gọi hàm & environment mới, call stack & đệ quy, closure (captured env), loop variable bug.