Documentation for the minilang programming language — a tiny, self-hosting, C-like language with a bytecode VM and an LLVM native backend.
This content is licensed under Creative Commons Attribution-ShareAlike 4.0
International (CC BY-SA 4.0). See the LICENSE file. Code examples
may be reused under the same terms.
| Doc | Contents |
|---|---|
| docs/language.md | Syntax, types, operators, statements |
| docs/stdlib.md | require module system and the bundled modules |
| docs/native.md | C-native methods (native func ...) |
| docs/toolchain.md | Boot compiler, self-hosting, LLVM linking |
| docs/editor.md | VS Code extension + language server |
| Repo | Role |
|---|---|
minilang-compiler |
Self-hosted .mil sources, tests |
minilang-boot |
Handwritten C bootstrap compiler + VM |
minilang-syslib |
Standard library modules (submodule) |
minilang-server |
Language Server (LSP) |
minilang-vscode |
VS Code / Cursor extension |
func fib(n) {
if (n < 2) { return n; }
return fib(n - 1) + fib(n - 2);
}
func main() {
var i = 0;
while (i < 10) {
println toString(fib(i));
i = i + 1;
}
return 0;
}