BrainRot Lang
Open Source · Built in Go

Brainrot programming language

Where internet memes meet compiler design. A fully functional interpreted language built from scratch in Go.

Code that speaks Gen-Z

Real programming — variables, functions, loops, recursion, closures — but every keyword is internet slang.

primes.brt
1trust_me_bro MAX = 100
2
3let_him_cook isPrime(n) {
4 chat_is_this_real (n < 2) {
5 take_this cap
6 }
7 run_it_back (trust_me_bro i = 2; i * i <= n; i += 1) {
8 chat_is_this_real (n % i == 0) {
9 take_this cap
10 }
11 }
12 take_this fr_fr
13}
14
15let_him_cook main() {
16 trust_me_bro count = 0
17 run_it_back (trust_me_bro n = 2; n <= MAX; n += 1) {
18 chat_is_this_real (isPrime(n)) {
19 say_my_name(n)
20 count += 1
21 }
22 }
23 say_my_name("Total primes: ")
24 say_my_name(count)
25}

Full Interpreter Pipeline

Lexer, Parser, AST builder, and tree-walking evaluator — built from scratch in Go. Every stage of compilation, laid bare.

14 Meme Keywords

trust_me_bro for var. let_him_cook for function. chat_is_this_real for if. Every keyword is internet slang you already know.

Cross-Platform Binary

Single static binary. No runtime, no dependencies. Cross-compile to Windows, macOS, or Linux in one command.

Educational Design

Clean Go source code that teaches real compiler concepts — scoping, closures, recursion, error recovery — through a language that makes you laugh.

Keyword translation table

Every keyword maps 1:1 to a standard programming concept. Learn the vibes, understand the code.

BrainRotStandard
trust_me_brovar
let_him_cookfunction
chat_is_this_realif
nah_broelse
run_it_backfor
take_thisreturn
say_my_nameprint
fr_frtrue
capfalse

Install in 3 steps

Download the binary, move it, add to PATH. No build tools required.

PowerShell
# 1. Download brainrot.exe from GitHub Releases
#    https://github.com/Tanveer-rajpurohit/brainrot-lang/releases/tag/v1.0.2

# 2. Create a folder and move the exe
mkdir C:\Users\USERNAME\brainrot
move brainrot.exe C:\Users\USERNAME\brainrot\

# 3. Add C:\Users\USERNAME\brainrot to your system PATH
#    Settings → System → About → Advanced System Settings
#    → Environment Variables → Path → New → C:\Users\USERNAME\brainrot

# 4. Open a new terminal and verify
brainrot help
1

Download the binary

Go to GitHub Releases and download the exe for your OS.

2

Move to a folder

Create C:\Users\USERNAME\brainrot, move brainrot.exe there, and add it to your system PATH.

3

Verify

Run brainrot help in a new terminal.

Ready to cook?

Read the docs, explore the source, or just start writing .brt files.