An RUST implementation of clox from Robert Nystrom's book "Crafting Interpreters", it does rely on some Rust features coming out of the box, but also contains features/structures like an implementation of Vector
and HashTable
. If you would like to catch the details faster, you might want to read the previous sections about AST section, or taking the reading list below
This repo has two main branches:
main
andsafe
,safe
is with rapid ongoing changes, and it can be considered as main branch at this moment
How bytecode VM interpreter works:
Also, a lot of implementation details and questions can be found here. It contains both English and Chinese. Check it out!
阅读推荐:
Recommendation reading list:
- Crafting Interpreters
- 上面的中文版 - 手撸解释器教程(未完成)
- The Rustonomicon
引用:
References: