Skip to content

Virtual Machine / Bytecode Interpreter — Specialised for Valhalla.

License

Notifications You must be signed in to change notification settings

valhalla-lang/brokkr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a68ac7e · Feb 23, 2020

History

14 Commits
Feb 18, 2020
Feb 23, 2020
Feb 23, 2020
Jul 27, 2019
Feb 18, 2020
Feb 23, 2020
Jul 27, 2019
Feb 18, 2020
Feb 18, 2020

Repository files navigation

Brokkr Virtual Machine

VM for executing compiled bytecode. The custom VM of the Valhalla Set-based Programming Language.

Compile

In the root of this repository, in your shell, you may write:

cargo +nightly run [compiled-bytecode-file]

If you also have the valhallac compiler cloned, you may us it to compile the test_source.vh file, and then run this here interpreter on the file to be unmarshalled and executed, e.g.

cargo +nightly run ../valhallac/test_source

Why Nightly?

Currently, the source uses the #![feature(const_generics)] feature, for some function which casts an array-slice to a fixed-size type array. It’s not really worth it, so either I wait until it becomes a proper feature, or I’ll soon remove it.

Bytecode Reference

See the BYTECODE.md file (Might not always be up-to-date).

Releases

No releases published

Packages

No packages published