The Pitusya Programming Language
Overview
The language with no superpowers (no standard library, only one type - a 64 bit width floating point number).
Syntax
fn slowInverseSquareRoot(x) {
ret 1 / x * x;
}
fn main() {
ret slowInverseSquareRoot(4;);
}
Mind the second semicolon in arguments passing!
A bit complicated example:
fn complex(a, b, c) {
ret a * b / (c * a) + (c / 8) * (a * a);
}
fn main() {
let a = 11;
let b = 15;
let c = a = b = 10000;
ret complex(a, b, c);
}
Installation
Prerequisites
- LLVM-16 and Clang installed (if you are running on LLVM-15 or lower, specify your version in the .env file)
- Rustâ„¢up installed
Manual building
# Check your LLVM version with: `llvm-config --version`
# And specify it if required
$ git clone https://github.com/Jujumba/pitusya
$ cargo install --path pitusya
# Great! Your Pitusya compiler would be in target/release folder
Via Cargo
# Requires LLVM-16
$ cargo install pitusya