stk

Crates.iostk
lib.rsstk
version0.2.1
sourcesrc
created_at2020-08-06 13:14:01.577635
updated_at2020-08-06 13:26:36.117074
descriptionThe simple stack-based virtual machine.
homepagehttps://github.com/udoprog/stk
repositoryhttps://github.com/udoprog/stk
max_upload_size
id273651
size223,886
John-John Tedro (udoprog)

documentation

https://docs.rs/stk

README

Build Status

stk

STK, a simple stack-based virtual machine.

Contributing

If you want to help out, there's a number of optimization tasks available in Future Optimizations.

Create an issue about the optimization you want to work on and communicate that you are working on it.

Features of stk

  • Clean Rust FFI.
  • Stack-based C FFI like with Lua (TBD).
  • Stack frames, allowing for isolation across function calls.
  • A rust-like reference language called Rune.

Rune Scripts

stk comes with a simple scripting language called Rune.

You can run example scripts through rune-cli:

cargo run -- ./scripts/hello_world.rn

If you want to see diagnostics of your unit, you can do:

cargo run -- ./scripts/hello_world.rn --dump-unit --trace
Commit count: 1290

cargo fmt