GP

From Esolang
Jump to navigation Jump to search

GP (also known as GPLang)

GP (also known as GPLang) is an esoteric programming language created by Slendi meant to be as degenerate as possible. It replaces every operator and literal in programming languages with more perverse and convoluted ones.

Literals

Integers can be specified using the dick operator. The length is the value.

Example:

8=====D " has the value of 5. "
8D      " has the value of 0. "

Strings can be written like this, they are not multiline:

/*This is a string*/

Math operations

Addition: :3 Subtraction: >:3 Multiplication: uwu, UWU, UwU, uwU, Uwu, UWu, uWU Division: owo, OWO, OwO, owO, Owo, OWo, oWO Modulo: :P

Conditionals

(.Y.) condition Nya!
    "code to exekawaii~ w-when weaw~~"
nya~ UOOOOOOHHHH Nya!
    "c-code to exekawaii~ when fake~~"
nya~

While loop

aaa >///< 8=====d~~
(_Y_) aaa Nya!
    sum >///< sum :3 sum~~
    a-aaa >///< aaa >:3~~
nya~

Functions

Please note the language only has global scope, so the arguments with the names specified will be overwritten.

😭😭😭😭😭😭 function_name(arg1, arg2, arg69) Nya!
    arg1 :3 arg2 :3 arg69~~
nya~
function_name(8=D, 8==D, 8====D)~~ "arg1, arg2, arg69 are set globally"

External resources