Skip to content

tanish-1/rizzscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔥 RizzScript

A programming language that compiles vibes, not bugs.

Weekly Downloads npm language vibes license

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 rizzscript

Or install locally in a project:

npm i rizzscript

🚀 Usage

Run a .rizz program using:

rizz file.rizz

Example:

rizz hello.rizz

🧠 Program Structure

A RizzScript program can start in two ways.

Method 1

yo fam

Method 2

ready to lock in

Every program must end with

peace out

Example

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 = mid

Constants:

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 check

Output

System aura: immaculate

⚠ Error Handling

When an error occurs RizzScript prints:

touch grass
Go outside bro 🌿

📜 License

MIT License


Made with maximum rizz

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages