Skip to content
/ rlox Public

Rust bytecode compiler and VM for the Lox language

License

Notifications You must be signed in to change notification settings

agubelu/rlox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rlox

Lox bytecode compiler and interpreter written in Rust.

My implementation has a few QoL improvements over the vanilla language:

  • nil -> null
  • fun -> fn
  • var -> let
  • +=, -=, *=, and /= for operation and assignment
  • % for modulo
  • break support inside for and while loops
  • print as a built-in function instead of a statement

Some possible optimizations to implement once everything is up and running so I can measure them:

About

Rust bytecode compiler and VM for the Lox language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages