loxcraft:Lox语言的字节码编译器与工具链
用 Rust 实现的 Lox 语言工具链,含字节码编译器、GC 运行时、REPL、WebAssembly 在线 playground 与 LSP 支持。
loxcraft 是面向 Lox 教学语言的语言工具链,功能包括:字节码编译器加垃圾回收运行时、通过 WebAssembly 实现的在线 playground、REPL、基于 tree-sitter-lox 的语法高亮,以及通过 Language Server Protocol 提供的 IDE 集成。README 附有与 clox、jlox 的基准测试对比表(测试环境为 M1 Pro MacBook Pro、macOS Ventura、Rust 1.66.1 等)。参考资源一节列出了 Crafting Interpreters、Writing an Interpreter/Compiler in Go、Simple but Powerful Pratt Parsing 等编译器学习资料。