ilusm.dev

Quickstart

Install, run one file, then skim core syntax. Canonical detail lives in the .ilu sources under lib/ in your install and in the language reference.

Install

Install a .deb, Windows .exe, or macOS .pkg from Download, then use the ilusm command on your PATH.

Details: Installation.

Hello

printf '%s\n' 'prn("hello")' > hi.ilu
ilusm hi.ilu

More: Hello, World.

Core syntax (cheat sheet)

  • Variables - first assignment creates: x = 5
  • Functions - add(a,b) = a + b or blocks with final expression as ret
  • Conditionals - if cond: a | b
  • While - whl n < 5: n = n + 1
  • Loops - for x <- xs: and for i <- 1..3:
  • Modules - use fs, use txt

Full grammar: Syntax quick ref and Syntax reference.