Ursa

A friendly, stable, general-purpose programming-language
Ursa helps you write code that will last a long time: a simple, general-purpose programming language that is easy to pick up and will work the same way long into the future.
Latest release: vx.y.z (Date)
Latest news (18 July 2024)
Examples and Demo
Code
print("hello woods!")
Result
Output
Code
let fac = fn(x: Int): Int {
  if x == 0 {1} else {x * fac(x - 1)}
}
fac(6)
Result
Output
Code
let sum = fn(l: List<Int>): Int {
  var tot = 0
  var i = 0
  loop {
    if i == l.len() { return tot }
    tot := tot + l.get(i)
    i := i + 1
  }
}
sum([10, 30, 50, 5, 5])
Result
Output
Code
let my_range = gen(n) {
    var i = 0
    loop {
        i := i + 1
        if i <= n { yield i - 1 } else { return null }
    }
}

for i in my_range(5) { print(i) }
Result
Output
Result
Output
Rosetta Code
Discuss and learn Ursa
Blog