๐ฅ Rizz is a meme-powered interpreted language built in Rust by exilonium and Akshansh. Itโs basically Python + Rust + TikTok slang. Serious interpreter, unserious syntax.
-
๐ฏ Variables
litโ mutable (shadowable, likelet mut)rizzโ immutable (unshadowable, likelet)beโ assignment- Shadowing:
litcan be redefined even in the same scope,rizzcannot
-
๐งฎ Math Ops
+ - * / %(works on numbers)
-
๐ค Comparisons
frโ==(for real)nahโ!=smolโ<thiccโ>smol eqโ<=thicc eqโ>=
-
๐ง Logic
saltyโ!(not)andโ&&orโ||
-
๐ก Literals
- Numbers (
42,3.14) - Strings (
"hello",'world', with escapes like\n \t \' \") - Booleans:
facts(true),fake(false) null
- Numbers (
-
๐ข Printing
yap("hello")yap(x, "is", facts)
-
โจ๏ธ Input
int rizz ageโ asks for an intstr rizz nameโ asks for a string
-
๐ Functions
bruh add(a, b) { a + b } yap(add(2, 3)) // 5- Return with
ong
bruh square(x) { ong x * x } - Return with
-
๐ Control Flow
sus (x fr 10) { yap("x is 10") } bet { yap("x ain't 10") } nocap (x smol 5) { yap("looping") x be x + 1 } cap // break inside loop -
๐ฌ Comments
// single line /* multi line */ -
๐ REPL
๐ฅ Rizz Language Interpreter v0.1.0 - No cap! ๐ฅ Welcome to Rizz REPL! Type ':q' to quit, ':help' for help
yap("started")
lit x be 0
nocap (x smol 3) {
yap("x =", x)
x be x + 1
}
bruh greet(name) {
yap("ayo", name)
ong "done"
}
lit msg be greet("Sup Guys")
yap(msg)
| Rizz | Rust | Python |
|---|---|---|
lit x be 10 |
let mut x = 10; |
x = 10 |
rizz y be 20 |
let y = 20; |
y = 20 |
x be x + 1 |
x += 1; |
x += 1 |
yap("hi") |
println!("hi"); |
print("hi") |
sus (a fr b) |
if a == b {} |
if a == b: |
nocap (cond) |
while cond {} |
while cond: |
cap |
break; |
break |
ong value |
return value; |
return value |
- Lists & indexing (
lit arr be [1,2,3]) - String interpolation (
"hi {name}") - User-defined types / structs
- Rizz Package Manager (
rizzpm) - More drip
exilonium and Akshansh
- ๐ GitHub-exilonium and GitHub-Akshansh
- ๐ Meme-driven Rustacean
- โก Building the most unserious serious language