Leia

Leia

Leia is a general-purpose scripting language designed to run standalone or inside Go applications. It combines a compact, Go-shaped syntax with dynamic values, modules, concurrency, an embeddable VM, and opt-in domain dialects.

rows := [
    {sym: "AAPL", px: 100.0, qty: 10},
    {sym: "MSFT", px: 101.5, qty: 12},
    {sym: "AAPL", px: 100.75, qty: 8},
]

total := 0
for _, r := range ipairs(rows) {
    if r.sym == "AAPL" {
        total += r.qty
    }
}
print(total)

What It Is

Start Here

Language

Dialects And Data

Runtime And Tooling

Project