Configure and build:
cmake -S . -B build
cmake --build build --parallel
- Variables
- Types (
str
,bool
,int
,float
,null
) - Flow control (
if
,else if
,else
,while
) - Reference counted strings
- Functions
Variable declarations:
const title = "Hello World!";
let i = 0;
let truth = false;
let null_for_the_moment;
Flow control:
let i = 8;
if (i < 7) {
i = 0;
} else if (i == 8) {
i += 1;
} else {
i = -12;
}
while (i < 100) {
i += 1;
}
Functions:
fn add(a, b) {
return a + b;
}