A programming language that hits different

GenZLang

JavaScript, but make it bussin'. Write code that slaps with GenZ slang keywords.

yap("no cap, this is fr fr")

Made with ๐Ÿ’€ by @Sohmmdev

Playground

Start cooking with GenZLang. No cap.

main.genz
output

$ Hit "Run" and let it cook.

The Translation Guide

Everything you need to know to start vibing with GenZLang

Keywords

yapconsole.log
frconst
rnlet
povif
sikeelse
lowkeyelse if
spamwhile
betreturn
cookfunction
dropnew
no_captrue
capfalse
npcnull
idkundefined
stealimport
plugexport
maindefault
viafrom

Error Messages (They Hit Different)

ReferenceError

When: "is not defined"

L Bruh. '{var}' is not defined. Who is that?

When: "cannot access before initialization"

Hold up, you can't use '{var}' before it spawns.

TypeError

When: "is not a function"

Bro, '{var}' is not a function. Stop trying to make it cook.

When: "Assignment to constant variable"

You said variable was fr. You can't switch up now!

When: "Cannot read properties"

Bruh, you're trying to read properties of an NPC (null/undefined).

When: "is not iterable"

You can't spam through '{var}'. It's not a list.

SyntaxError

When: "Unexpected token"

Vibe check failed. Unexpected token: '{token}'

When: "Unexpected identifier"

Who invited '{token}'? Unexpected identifier.

When: "Function statements require a function name"

Yo, it needs a name to cook.

When: "Unexpected end of input"

Bro left me on read. Unexpected end of input.

When: "Unexpected string"

Yo, this string shouldn't be here. Delete it.

RangeError

When: "Maximum call stack size exceeded"

You cooked too hard and burned the kitchen.

When: "Invalid array length"

That array size is sus. (Invalid array length)

Quick Example

GenZLang:

cook sayHello(name) {
 fr greeting = "Yo, "
 yap(greeting + name)
 bet no_cap
}

JavaScript:

function sayHello(name) {
 const greeting = "Yo, "
 console.log(greeting + name)
 return true
}