Skip to content

timar07/novis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Novis

Novis is a simple, tree-walking interpreter written in Rust. Currently under development.

Usage

cargo run --release -- <file>

or

cargo run --release -- <file> --bench

if you want to measure the execution time.

Examples

Hello World

print "Hello, World!";

Factorial

func factorial(n) -> {
    if n <= 0 {
        return 1;
    }

    return n * factorial(n - 1);
}

-- Let's test it!
print factorial(5);

Releases

No releases published

Packages

No packages published

Languages