Your First Program
Create hello.ilo:
greet name:t > t +"hello " nameRun it:
ilo hello.ilo greet "world"# → hello worldThat’s a complete ilo program. Here’s what each part means:
| Part | Meaning |
|---|---|
greet | function name |
name:t | parameter name, type text |
> t | returns text |
+"hello " name | body: concatenate two strings (prefix +) |
Now try something with numbers. Create math.ilo:
add a:n b:n > n -- n = number, t = text + a b -- prefix: + a b means a + bilo math.ilo add 3 4# → 7Inline mode
Section titled “Inline mode”You can also run ilo without a file. Semicolons replace newlines and indentation:
ilo 'add a:n b:n>n;+a b' 3 4# → 7This is the form AI agents use - same language, just compressed to one line. See the CLI Reference for more.