Skip to content

ya-ilya/anoitos

Repository files navigation

anoitos

Latest Version

A simple programming language written in Kotlin

TODO

  • Add boolean and numeric operations
  • Add more libraries and functions

Examples

Factorial recursive function

import 'io', 'logic', 'math';

fun factorial(n) {
    if (or(equals(n, 0), equals(n, 1))) {
        return 1;
    } else {
        return multiply(n, factorial(minus(n, 1)));
    }
}
            
println(factorial(5));

Output: 120

About

A simple programming language written in Kotlin

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages