rizzscript
v1.2.8
Published
A programming language that compiles vibes, not bugs. Gen-Z slang meets real programming.
Downloads
1,710
Maintainers
Readme
🔥 RizzScript
A programming language that compiles vibes, not bugs.
Coding… but make it Gen-Z.
✨ What is RizzScript?
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.
📦 Installation
Install globally using npm.
npm i -g rizzscriptOr install locally in a project:
npm i rizzscript🚀 Usage
Run a .rizz program using:
rizz file.rizzExample:
rizz hello.rizz🧠 Program Structure
A RizzScript program can start in two ways.
Method 1
yo famMethod 2
ready to lock inEvery program must end with
peace outExample
yo fam
spill "Hello chat"
peace out📖 Keyword Dictionary
| 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) |
🧾 Variables
vibe score = 100
vibe username = "Tanish"
vibe alive = bet
vibe bonus = midConstants:
lock in MAX_SCORE = 999🔀 Conditionals
sus check (score > 50) {
spill "W performance"
} or nah {
spill "Mid result"
}🔁 Loops
For Loop
loop the vibe i from 0 to 5 {
spill i
}While Loop
vibe xp = 0
grind xp < 50 {
xp = xp + 10
spill xp
}🍳 Functions
cook greet(name) {
spill "Yo " + name
}
cook add(a,b) {
drop a + b
}
greet("Chat")
vibe result = add(10,20)
spill result🏛 Classes
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()📚 Arrays
squad fruits = ["apple","banana","mango"]
spill fruits[0]⚙ Operators
Arithmetic
+ - * / %Comparison
== != > < >= <=Logical
&& || !🧪 Debug Mode
vibe checkOutput
System aura: immaculate⚠ Error Handling
When an error occurs RizzScript prints:
touch grass
Go outside bro 🌿📜 License
MIT License
Made with maximum rizz ✨
