GIRLIELANG is my fun, satirical and ironical take on making an Esoteric Programming language purely for the sake of it. In a nutshell, it's a TikTok girlie-themed language that makes use of modern TikTok Gen Z teenage girl slang for programming.
istg, ykw?, gasp, OMG as keywordsgit clone https://github.com/noxindeed/GIRLIELANG/
cd girlielang
# Run a file
python main.py <your_file>.girlie
# Interactive mode
python main.py
Syntax: ykw? <variable_name> = value
# Variable declarations
ykw? name = "Bestie"
ykw? age = 21
ykw? height = 5.6
Syntax: gasp <expression>
gasp "Hello World!"
gasp name
gasp age + 5
gasp "My name is " + name
Syntax: wyd <variable_name>
wyd username
gasp "Hello " + username
Syntax:
istg <condition>:elif <condition>:else:hey girlie <3
ykw? score = 85
istg score >= 90:
gasp "A grade! Slayed!"
elif score >= 80:
gasp "B grade! Pretty good bestie"
elif score >= 70:
gasp "C grade! Could be better"
else:
gasp "Need to study more girl!"
bye hg </3
Syntax: girl! <variable> in <start> to <end>:
# Print numbers 1 to 5
girl! i in 1 to 6:
gasp i
# Nested loops
girl! row in 1 to 4:
girl! col in 1 to 4:
gasp row * col
Syntax: while <condition>:
ykw? count = 0
while count < 5:
gasp "Count is: " + count
ykw? count = count + 1
Syntax: OMG <function_name>(parameters):
# Function with no parameters
OMG say_hello():
gasp "Hello bestie!"
# Function with parameters
OMG greet(name, age):
gasp "Hey " + name
gasp "You are " + age + " years old"
say_hello()
greet("Sarah", 20)
ykw? result = add(10, 5)
gasp result
slayed = Truenope = Falsenaur = notwhatever = orand = andykw? is_student = slayed
ykw? has_job = nope
istg is_student and naur has_job:
gasp "Student without job"
elif is_student whatever has_job:
gasp "Either student or has job"
Syntax:
go girlie = continuestawp = breakgirl! i in 1 to 10:
istg i == 5:
go girlie # continue
istg i == 8:
stawp # break
gasp i
Syntax: ate <value>
OMG calculate_grade(score):
istg score >= 90:
ate "A"
elif score >= 80:
ate "B"
else:
ate "F"
# Program start marker (optional)
hey girlie <3
# Your code here
ykw? message = "Hello GirlieLang!"
gasp message
# Program end marker (optional)
byee hg </3
| Keyword | Standard Equivalent | Purpose |
|---|---|---|
ykw? |
var = |
Variable declaration |
gasp |
print |
Output statement |
wyd |
input |
Input statement |
istg |
if |
Conditional statement |
OMG |
def |
Function definition |
slayed |
True |
Boolean true |
nope |
False |
Boolean false |
"omg syntax error!! <message>""girl help!! runtime issue <message>""uhhh who's 'variable'??? (NameError)""no bestie that's a type problem <message>"Made with love by nox ✨