BasicLang is a minimal, experimental esoteric language designed for simplicity and readability while still being quirky enough to stand out.
It supports basic variables, loops, conditionals, printing, and program exit codes — all with a playful syntax.
-
Variable Declaration
imagine x = 10; -
Loop
doit (n) { ... }Runs the block
ntimes. -
Conditional
is (condition) { ... } else { ... } -
Print
print("Hello World"); -
Exit Program
yeet 0;
# Clone the repository
git clone https://github.com/raghavendrashande/esolang.git
cd esolang
# Build
cmake -S . -B build
cmake --build build# Run a BasicLang program
./basiclang path/to/file.blimagine x = 1;
doit (10) {
is ((x % 2) == 0) {
print("even");
} else {
print("odd");
}
x = x + 1;
}
yeet 255;
Output:
odd
even
odd
even
odd
even
odd
even
odd
even
Exit Code: 255
[P.S - To checkout exit code, use "echo $?" on linux, "echo %ERRORLEVEL%" in cmd or "$LASTEXITCODE" on powershell]
MIT License — see LICENSE for details.