Skip to content

Rune

Rune is an expression-oriented language toolchain written in Go. It parses and checks Rune source, lowers it to a shared IR, and can interpret it, compile it to Go, or emit TypeScript for DOM-style programs.

rune
add(a: Int, b: Int) -> Int => a + b

main() => {
  @io.println(add(1, 2))
}

The language keeps the surface small: functions map parameters to expressions, blocks return their final expression, data is represented with arrays and record-like objects, and control flow is built from match expressions, pattern bodies, ternary expressions, and ordinary function calls.

Documentation

Chinese documentation is available at 简体中文.