Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 491 Bytes

README.md

File metadata and controls

34 lines (25 loc) · 491 Bytes

ion

ion is tiny expression-based scripting language. It's small in both codebase size and syntax, but not in capability.

usage

# open a repl
go run bin/main.go

# run a file
go run bin/main.go <file>

the language

fib := n -> {
  if n > 1 {
    return fib(n - 1) + fib(n - 2)
  } else {
    return n
  }
}

for i in [ 1, 2, 3, 4, 5 ] {
  print(i * i)
}

inspiration