A programming language that speaks your language (literally). Gen Z Lang uses Gen Z and Gen Alpha slang for programming commands, making code read like texting between friends.
Use directly without installation:
./genz examples/hello.genzCreate a file called hello.genz:
ngl This is a hello world program
yeet "Hello, World!"
fr fr "No cap, this language is bussin!"
Run it:
genz hello.genzrizz x = 10 # Declare variable
x = 20 # Reassign
yeet "Hello" # Print
fr fr "Important!" # Emphasized print
rizz name = vibe check "What's your name? "
ngl This is a single-line comment
tea: This is a
multi-line comment :tea
vibe? x highkey > 10:
yeet "x is big"
no vibe? x highkey > 5:
yeet "x is medium"
dead:
yeet "x is small"
keep slaying while x lowkey < 10:
yeet x
x = x + 1
grind from i = 1 to 10:
yeet i
main character greet(name):
yeet "Hello, "
yeet name
send it bussin
greet("World")
Math: +, -, *, /, %, ^
Comparison:
no cap- equals (==)cap- not equals (!=)lowkey <- less thanhighkey >- greater thanlowkey <=- less than or equalhighkey >=- greater than or equal
Logical: and, or, nah (not)
Booleans: bussin (true), mid (false)
Control Flow: dip (break), skip it (continue)
glow_up(x) # Convert to int
vibe_shift(x) # Convert to string
energy(x) # Convert to float
See the examples/ directory for more programs:
hello.genz- Hello worldcalculator.genz- Variables and mathfizzbuzz.genz- FizzBuzz implementationfunctions.genz- Function definitionsguessing_game.genz- Interactive game
For building complex software or passing to AI systems, see the docs/ directory:
- docs/INDEX.md - Start here! Navigation guide for all documentation
- docs/LANGUAGE_SPEC.md - Complete formal language specification
- docs/ADVANCED_GUIDE.md - Design patterns, algorithms, and complex applications
- docs/API_REFERENCE.md - Quick reference and cheat sheet
- docs/INTERNALS.md - Implementation details and extension guide
Learning Gen Z Lang:
- Language Specification - Complete guide
- API Reference - Quick syntax lookup
Building Complex Software:
- Advanced Guide - Patterns and architectures
- Example Applications - Complete apps
Extending the Language:
- Internals - Architecture and implementation
- Extension Guide - Add features
For AI Systems:
- Documentation Index - Which doc to use when
- All docs are AI-optimized with complete specifications
Gen Z Lang is designed to be:
- Fun: Code should feel like texting with friends
- Expressive: Gen Z slang is rich and descriptive
- Educational: Learn programming concepts through familiar language
- Authentic: Uses real Gen Z and Gen Alpha terms
Contributions are welcome! Feel free to:
- Add more Gen Z slang keywords
- Improve error messages
- Create example programs
- Enhance the standard library
MIT