Skip to content

About

Documentation for the minilang language (Creative Commons CC BY-SA 4.0)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

minilang documentation

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.

Repository layout

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

The minilang ecosystem

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

Quick example

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;
}

About

Documentation for the minilang language (Creative Commons CC BY-SA 4.0)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors