#vm #rush #run-time #interpreter #leveraging #programming-language #micro-compiler

bin+lib rush-interpreter-vm

A rush interpreter leveraging a micro-compiler alongside a VM for its runtime

3 releases

0.1.2 Dec 28, 2022
0.1.1 Dec 11, 2022
0.1.0 Dec 11, 2022

#1112 in Programming languages

GPL-3.0-only

155KB
3.5K SLoC

VM Interpreter Backend

A rush interpreter leveraging a micro-compiler alongside a VM for its runtime.

Running rush Code

  • Prerequisite: A file ending in .rush which contains the program.
  • Execute the following command in order to run the program.
cargo run your-file.rush

Debugging Output

  • When debugging output is desired, following command is to be used.
  • The 1 at the end specifies how many instructions per second are executed by the VM.
  • In this case, the VM will operate at its minimum speed.
  • Hence, a larger value will result in faster program execution
cargo run your-file.rush debug 1

Dependencies

~150KB