RizzScript is an experimental programming language inspired by Gen-Z internet slang.
It supports real programming features such as:
- Variables
- Loops
- Functions
- Classes
- Arrays
- Conditionals
- Operators
But everything is written using internet culture keywords like vibe, sus check, grind, and loop the vibe.
Install globally using npm.
npm i -g rizzscriptOr install locally in a project:
npm i rizzscriptRun a .rizz program using:
rizz file.rizzExample:
rizz hello.rizzA RizzScript program can start in two ways.
yo fam
ready to lock in
Every program must end with
peace out
yo fam
spill "Hello chat"
peace out
| Keyword | Programming Meaning | Example |
|---|---|---|
| yo fam | Program start | yo fam |
| peace out | Program end | peace out |
| ghost | Terminate program | ghost |
| vibe | Variable declaration | vibe x = 10 |
| lock in | Constant declaration | lock in MAX = 100 |
| spill | Print / output | spill "Hello" |
| slay | User input | slay name "Enter name:" |
| sus check | If statement | sus check (x > 0) { } |
| or nah | Else / else-if | or nah { } |
| loop the vibe | For loop | loop the vibe i from 0 to 5 { } |
| grind | While loop | grind x < 10 { } |
| cook | Function declaration | cook greet(name) { } |
| drop | Return statement | drop result |
| aura | Class declaration | aura Player { } |
| fresh | Instantiate class | fresh Player("Tanish", 0) |
| squad | Array declaration | squad fruits = ["apple", "mango"] |
| bet | Boolean true | vibe alive = bet |
| cap | Boolean false | vibe lost = cap |
| mid | Null / default | vibe bonus = mid |
| vibe check | Debug command | vibe check |
| touch grass | Runtime error output | (auto, line 1) |
| Go outside bro 🌿 | Runtime error output | (auto, line 2) |
vibe score = 100
vibe username = "Tanish"
vibe alive = bet
vibe bonus = mid
Constants:
lock in MAX_SCORE = 999
sus check (score > 50) {
spill "W performance"
} or nah {
spill "Mid result"
}
loop the vibe i from 0 to 5 {
spill i
}
vibe xp = 0
grind xp < 50 {
xp = xp + 10
spill xp
}
cook greet(name) {
spill "Yo " + name
}
cook add(a,b) {
drop a + b
}
greet("Chat")
vibe result = add(10,20)
spill result
aura Player {
vibe name
vibe score
cook init(n,s) {
self.name = n
self.score = s
}
cook intro() {
spill "Player: " + self.name
}
}
vibe p1 = fresh Player("Tanish",0)
p1.intro()
squad fruits = ["apple","banana","mango"]
spill fruits[0]
+ - * / %
== != > < >= <=
&& || !
vibe check
Output
System aura: immaculate
When an error occurs RizzScript prints:
touch grass
Go outside bro 🌿
MIT License
Made with maximum rizz ✨