Brainrot (Theothetruenerd)

From Esolang
Jump to navigation Jump to search

Ever wanted to use your brainrot and slang to code? No? Well now you can anyway. Inspired by many screenshots that went around various social media sites.

Overview

The syntax of brainrot is relatively simple, the only real quirks (besides the horrid brainrot code) are that some statements require semicolons, and some don't. It is currently a WIP and hasn't been bootstrapped yet.

Keyword Meaning
highkey Declare a variable with type
lowkey Assign a variable
vibe_check Opening "if" statement
big_yikes Opening "else" statement
leftpilled Used where a left bracket would often be used
rightmaxxer Used where a right bracket would often be used
shoutout Print
fuck_around Try
find_out Except
its_giving Return
spill_tea Log
yap Log-level debug
tea Log-level info
ick Log-level warning
oof Log-level error
tweaking Log-level critical
pour_tea Set log level
yeet Delete a variable
ratios ">"
grind While
cap False
no_cap True
gg Break
periodt Exit
bruh Raise
cringe Exception
based OSError
bodycount Length of a list
slept_on Pass
npc Defining a function
iykyk Creating a dictionary
situationship Adding to a dictionary
hooks_up_with Links the key-value pair when adding to a dictionary
sneaky_link Lookup in a dictionary
bffr User Input
homies Begin defining a list
no_homo_tho End defining a list
run_a_train_on Loop through a list
get_your_boy Get from a list
uwu [insert identifier here] whats_this Read from file into identifier
aura Get variable type
valid Check if true
ghost Float (when declaring variable type)
lead_on String (when declaring variable type)
basic Int (when declaring variable type)
bet Bool (when declaring variable type)

Example Code

pour_tea tea;
highkey x basic = 5;
highkey y lead_on = "test";
shoutout leftpilled y rightmaxxer;
spill_tea yap leftpilled x rightmaxxer
lowkey y lead_on = "test2";
shoutout leftpilled y rightmaxxer;
this_is_a_list homies test3, test4 no_homo
run_a_train_on this_is_a_list (where_we_at) leftpilled
shoutout leftpilled where_we_at rightmaxxer;
vibe_check(where_we_at ratios x) leftpilled
shoutout ("----------------");
shoutout ("Is bigger than 5");
big_yikes leftpilled
shoutout ("Is smaller than 5");
rightmaxxer
rightmaxxer