hush 0.1.1

Hush is a unix shell scripting language based on the Lua programming language
1
2
3
4
5
6
7
8
9
10
function factorial(n)
  if n < 2 then
    return 1
  else
    return n * factorial(n - 1)
  end
end

std.assert(factorial(5) == 120)
std.assert(factorial(0) == 1)