mamba 0.3.6

A transpiler which converts Mamba files to Python 3 files
Documentation
1
2
3
4
5
6
7
8
9
class Err(def msg: Str): Exception(msg)

def f(x: Int) -> Int raise[Err] => if x > 0 then return 10 else raise Err("Expected positive number.")

def g() -> Int raise[Err] => raise Err("Error always raised")

def h(x: Int) -> Int raise[Err] => if x < 0 then raise Err("Less than") else raise Err("Greater Than")

f(10)