Skip to content

zaixrx/AML-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example

func get_fib() {
    func fib(n) {
        return n > 2 ? fib(n - 1) + fib(n - 2) : n;
    }
    return fib;
}
var fib = get_fib();
var start = time();
for (var i = 0; i < 10; i = i + 1) {
    print fib(i);
}
print "took:", time() - start, "nano-seconds to execute";

Usage

git clone https://github.com/zaixrx/AML-lang.git
cd ./AML-lang && go build -o aml

you can either use repl

./aml -repl

>> print "Hello, World!";
"Hello, World!"

or interpret an existing file

./aml ./examples/helloworld.aml

"Hello, World!"

Resources

Releases

No releases published

Packages

No packages published