A simple, experimental native language with graded types.
Just a backup of the compiler in 2025. There're a few problems with the compiler, but the core type inference/checking and the code generation is good.
Basically Rust syntax, with some special type prefix syntaxes for the grades:
&a/bfor fractional borrows@modalfor owned data with non default modality
And some small tweaks:
- No
&mutor pointers since modals are enough - Suffix reference/dereference operators as sugar to chaining
- No simple bitwise operators
There's nothing magic in this repo: cargo b and cargo r is enough.
It expects the file name and outputs a.ll for the generated LLVM IR.