LMX // .LMX
.lmxFull Language
General-purpose language: variables, math, if/for/while, functions, imports.
- Runs here
- a .lmx file
- free to run
WHAT IT IS
Why .lmx exists.
The flagship interpreter: a real lexer → parser → AST → async evaluator. Supports variables, PEMDAS math, booleans, arrays/objects, if/else, for/while, user functions (fn), imports, the registered-function call, and the adapter(...) bridge to every Leumas tool.
Runs here
This one runs in the browser sandbox with no account, and offline in the CLI.
A WORKED EXAMPLE
demo.lmx
The same script the engine test suite runs, so it cannot quietly stop working.
import "./shared.lmx"
set x = 10
set y = (2 + 3) * 4
if y > 10 do
print("y big")
end
fn add(a,b) do
return a + b
end
print(add(x, y))
call function-one(x, y, "hello")
SYNTAX
The shape of it.
Straight from the interpreter catalogue — the same summary the editor shows as a placeholder.
set x = 10
set y = (2 + 3) * 4
if y > 10 do
print("y big")
end
fn add(a, b) do
return a + b
end
print(add(x, y))NEXT