Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 666 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 666 Bytes

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: