Getting Started
Getting Started
Installation, setup, and your first MAKO program.
v0.02·early development
Overview
MAKO is a statically typed, expression-oriented language with a clean, minimal syntax. It draws from Python for readability, Lua for lightness, and C# for structure. The goal: a language that is easy to learn, fast to write, and predictable to debug.
Hello, world
The simplest MAKO program.
print("Hello, world!")Running a file
Pass any .mako file to the interpreter.
mako run main.makoA real program
A short but complete program showing variables, a function, and a loop.
fun fizzbuzz(n: int) {
for i in 1..n+1 {
if i % 15 == 0 {
print("FizzBuzz")
} else if i % 3 == 0 {
print("Fizz")
} else if i % 5 == 0 {
print("Buzz")
} else {
print(i)
}
}
}
fizzbuzz(20)MAKO v0.02 · More features added as the language matures.