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
-- Demonstrates correct 0-arg function call forms in ilo.
-- A 0-arg function auto-expands in statement/assignment position,
-- but needs explicit `name()` in value position (e.g. operand of `+`).

-- `stamp` returns a fixed value (not time-dependent, safe for tests).
stamp>n;42

-- In statement/assignment position: auto-expands to a call. Returns 42.
get-val>n;stamp

-- In value position: use stamp() explicitly to get the value.
add-one>n;+(stamp()) 1

main>b;=add-one() 43

-- run: main
-- out: true