Rlox
A rust interpreter for the Lox language
Install / Use
/learn @cwbriones/RloxREADME
rlox
Following along with the book Crafting Interpreters, in Rust.
An overview of the language can be found here.
In general, I try to follow the book as close as possible conceptually. That said, this is also an exercise in idiomatic Rust and so things can differ greatly from the Java implementation. Namely sum types and pattern matching see heavy use, with a few macro invocations sprinked in as well.
VM
A version of the clox VM (using the mostly same bytecode) can be found in the vm branch.
It's still a work in progress, seeming more like a straight C to rust port in some places. This will see another pass of optimizations and "rustification" at some later point. The implementation of UpValues in particular is a mess, since Rust's borrow checker is not aware of the lifetime of stack variables.
License
This code is available under the MIT License.
Related Skills
himalaya
339.1kCLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
node-connect
339.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
coding-agent
339.1kDelegate coding tasks to Codex, Claude Code, or Pi agents via background process
