ScarScript Documentation

Complete reference and guide for the ScarScript programming language — from your first hello world to building native binaries.

What is ScarScript?

ScarScript is a statically-typed, compiled language that transpiles to Go and produces native binaries. It combines Express.js-style syntax with compile-time safety.

func fib(n: int) int {
    if n < 2 { return n }
    return fib(n - 1) + fib(n - 2)
}

for i in 0..10 {
    print("fib({i}) = {fib(i)}")
}
New to ScarScript? Start with the Getting Started guide — you'll be running programs in under a minute.