Code Editor
GirlieLang ready! Start coding... ✨
Documentation

GIRLIELANG

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.

Features

  • Syntax: Uses fun slang terms like istg, ykw?, gasp, OMG as keywords
  • Full Programming Language: Supports variables, functions, loops, conditionals, and more
  • Python-like Structure: Indentation-based blocks similar to Python
  • Interactive & File Mode: Run files or use interactive REPL
  • Custom Error Messages: Themed error messages that match the language aesthetic

Getting Started

Installation

git clone https://github.com/noxindeed/GIRLIELANG/
cd girlielang

Running GirlieLang

# Run a file
python main.py <your_file>.girlie

# Interactive mode
python main.py

Syntax Overview

1. Variables & Assignment

Syntax: ykw? <variable_name> = value

# Variable declarations
ykw? name = "Bestie"
ykw? age = 21
ykw? height = 5.6

2. Input & Output

Print Statement

Syntax: gasp <expression>

gasp "Hello World!"
gasp name
gasp age + 5
gasp "My name is " + name

Input Statement

Syntax: wyd <variable_name>

wyd username
gasp "Hello " + username

3. Conditionals

Syntax:

  • if - istg <condition>:
  • else if - elif <condition>:
  • else - 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

4. Loops

For Loop

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

While Loop

Syntax: while <condition>:

ykw? count = 0
while count < 5:
    gasp "Count is: " + count
    ykw? count = count + 1

5. Functions

Function Definition

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"

Function Calls

say_hello()
greet("Sarah", 20)

ykw? result = add(10, 5)
gasp result

6. Boolean Logic & Operators

Boolean Literals

  • slayed = True
  • nope = False

Boolean Operators

  • naur = not
  • whatever = or
  • and = and
ykw? 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"

7. Control Flow

Break and Continue

Syntax:

  • go girlie = continue
  • stawp = break
girl! i in 1 to 10:
    istg i == 5:
        go girlie    # continue
    istg i == 8:
        stawp        # break
    gasp i

Return Statement

Syntax: ate <value>

OMG calculate_grade(score):
    istg score >= 90:
        ate "A"
    elif score >= 80:
        ate "B"
    else:
        ate "F"

8. Program Structure

# Program start marker (optional)
hey girlie <3

# Your code here
ykw? message = "Hello GirlieLang!"
gasp message

# Program end marker (optional)
byee hg </3

Language Keywords Reference

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

Error Messages

  • Syntax Error: "omg syntax error!! <message>"
  • Runtime Error: "girl help!! runtime issue <message>"
  • Name Error: "uhhh who's 'variable'??? (NameError)"
  • Type Error: "no bestie that's a type problem <message>"

Made with love by nox ✨