Novis is a simple, tree-walking interpreter written in Rust. Currently under development.
cargo run --release -- <file>
or
cargo run --release -- <file> --bench
if you want to measure the execution time.
print "Hello, World!";
func factorial(n) -> {
if n <= 0 {
return 1;
}
return n * factorial(n - 1);
}
-- Let's test it!
print factorial(5);