Redstone Language Documentation
Redstone is a minimal compiled language with an LLVM backend.
Contents
- Types — primitive types
- Variables — variable declarations
- Functions — function declarations and calls
- Expressions — arithmetic and expressions
- Control Flow —
if/elseconditionals,whileloops, comparisons, assignment - Comments — comments syntax
Quick Example
red
fn main() {
let x = 21 * 2;
print(x); // 42
return 0;
}