Skip to content

exilonium/rizz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงข Rizz Language

๐Ÿ”ฅ 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.


GitHub Repo stars GitHub forks Built with Rust Meme Driven


โœจ Features

  • ๐ŸŽฏ Variables

    • lit โ†’ mutable (shadowable, like let mut)
    • rizz โ†’ immutable (unshadowable, like let)
    • be โ†’ assignment
    • Shadowing: lit can be redefined even in the same scope, rizz cannot
  • ๐Ÿงฎ 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
  • ๐Ÿ“ข Printing

    • yap("hello")
    • yap(x, "is", facts)
  • โŒจ๏ธ Input

    • int rizz age โ†’ asks for an int
    • str 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
    }
    
  • ๐Ÿ”€ 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
    

๐Ÿ“‚ Example

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)

๐Ÿ“– Cheatsheet

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

๐Ÿ”ฎ Roadmap

  • Lists & indexing (lit arr be [1,2,3])
  • String interpolation ("hi {name}")
  • User-defined types / structs
  • Rizz Package Manager (rizzpm)
  • More drip

๐Ÿง‘โ€๐Ÿ’ป Author

exilonium and Akshansh


About

Got that drip? Code more yap less

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages