We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

NoGolfersLand

From Esolang
Jump to navigation Jump to search
This is still a work in progress. It may be changed in the future.

NoGolfersLand is an esoteric programming language made by User:Cordership. Do not let the name deceive you; it’s for golfing.

Syntax

Command Description
~ Pushes character input into the main stack.
, Pops top of main stack and outputs as ASCII.
& Pushes integer into the main stack.
. Pops top of main stack and outputs as integer.
0-9 Push corresponding number into the main stack.
+-*/% Same as in Befunge.
{} While len(main stack) != 0...
[] Peek top of main stack, while it is not 0...
()() Peek top of main stack, if it is 0… else…
" Toggle string mode for main stack.
S Swap the two topmost elements of the main stack.
D Duplicate top of main stack.
:…;:…;:…;:…; By random choice, go into one of the 4 :; slots.
p Pop top of main stack, push it into box 1.
P Pop box 1 and push it into the main stack, box 1 is then set to 0.
k Pop top of main stack, push it into box 2.
K Pop box 2 and push it into the main stack, box 2 is then set to 0.
! Toggle stringmode to push into the string stack.
@ Push string input into main stack.
s Push string input into the string stack.
= Pop top of string stack and output.
# Pop top of string stack, execute it as a program in this language.
$ Pop top of main stack and discard.
^ Pop top of string stack and discard.
r Reverse the entire main stack.
t Reverses the entire string stack.

Programs

Hello, World!

"!dlroW ,olleH"{,}

Cat program

~(,~)

Alternative:

@r{,}

Reverse cat

@{,}

A+B problem

&&+.

DNA code

"D"[:"A";:"C";:"G";:"T";,1-]

Truth-machine

&(.)([D.])

FizzBuzz

4*5*5*1S[pD3%(D5%(k"FizzBuzz"K)(k"Fizz"K))(D5%(k"Buzz"K)(D.))1+P1-]

99 bottles of beer

52*1+9*[Dp."llaw eht no reeb fo selttob "{,}52*,PDp."reeb fo selttob "{,}52*,"dnuora ti ssap ,nwod eno ekaT"{,}52*,P1-Dp."llaw eht no reeb fo selttob "{,}52*,52*,P]
^"llaw eht no reeb fo selttob oN"{,}52*,"reeb fo selttob oN"{,}52*,"erom emos yub ,erots eht ot oG"{,}52*,"llaw eht no reeb fo selttob 99"{,}

4-function calculator

"/4 *3 -2 +1 :rotaluclaC dnaLsrefloGoN"{,}&~&SD"*"-($$*.)(1-($$+.)(2-($$-.)($$/.)))