Install Qelith from the latest public release:
Repo: Momwhyareyouhere/Qelith
Entry function uses root. Helper functions use
glyph.
glyph greet [
emit "hello ".
emit name.
emit "\n".
]
glyph cheer [
emit "count: ".
emit count.
emit "\n".
]
root main [
let name = "from qelith".
let count = 1.
call greet.
if name == "from qelith" call cheer.
add count 2.
loop count call cheer.
done 0.
]
Available statements:
let name = "text". # create variable
set name = "other". # replace variable value
add count 2. # integer addition
emit "text\n". # print string literal
emit name. # print variable value
line. # print newline
call function_name. # call another function
if name == "text" call fn. # conditional call
if count != 0 call fn. # inequality check
loop 3 call fn. # fixed count loop
loop count call fn. # variable-driven loop
done 0. # exit code
Rules:
- Exactly one root function per file.
- Function blocks start with [ and end with ].
- Every statement ends with a dot (.).
- Comments start with #.