ilo 26.5.0

ilo - the token-minimal programming language AI agents write
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- `ilo compile file.ilo -o out && ./out` picks `main` as the entry
-- function when a file declares more than one fn. Historically AOT
-- picked `func_names.first()`, so a file with a helper declared above
-- `main` produced a binary that called the helper instead — usually
-- SIGSEGV at runtime, no diagnostic. Tree/VM/Cranelift JIT all
-- canonicalise on `main`; AOT now matches.
--
-- When no `main` is defined and no explicit entry name is supplied,
-- AOT errors with ILO-E801 instead of compiling the wrong function.

helper>n;42
main>n;helper

-- run: main
-- out: 42
-- run: helper
-- out: 42