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.

Potato salad

From Esolang
Jump to navigation Jump to search

Potato salad (also stylized as "potAto sAlAd") is an esoteric programming language made for the sake of being 'simply stupid and stupidly simple'. There is no input, and all output is text. There are two versions: potAto sAlAd and Petit salad.

potAto sAlAd

potAto sAlAd
Designed by User:CoolJarreb99
Appeared in 2026
Computational class Unknown
Reference implementation Unimplemented
File extension(s) .sps

potAto sAlAd is the original version of Potato salad.

Commands

Addition, subtraction, multiplication and division are all like in standard programming languages. Two strings can be joined with '+'. Subtracting a number from a string removes letters at the end, adding numbers removes them at the beginning.

Command Description Example
shut up for a sec. Ok [text][note 1] A comment.
shut up for a sec. Ok THIS PART IS A COMMENT
show me potato salad [var]! Prints variable [var].
x = 0
show me potato salad x!
[var] = [value] Sets variable [var] to [value].
x = 0

Example Programs

Hello World

str = "Hello, World!"
show me potato salad str!

Interpreter

Mediocre interpreter written in Python

import sys

if len(sys.argv) != 2:
    print("Usage: compiler.py path/to/file.sps")
else:
    _myfile = open(sys.argv[1], "r")
    _lines = _myfile.readlines()
    for i in _lines:
        if i[-1] == "\n":
            i = i[:-1]
        if i == "":
            continue
        elif i[:22] == "shut up for a sec. Ok ":
            continue
        elif "=" in i:
            if i.split("=")[0][-1] == " ":
                i = i.split("=")[0][:-1] + "=" + i.split("=")[1]
            if i.split("=")[1][0] == " ":
                i = i.split("=")[0] + "=" + i.split("=")[1][1:]
            tempval = i.split("=")[1]
            tempval = eval(tempval)
            globals()[i.split("=")[0]] = tempval
        elif i[:21] == "show me potato salad " and i[-1] == "!":
            print(globals()[i.split("show me potato salad ")[1][:-1]])
        else:
            print("ERROR: Unknown command '"+i+"'")
            break


Petit salad

Petit salad
Designed by User:CoolJarreb99
Appeared in 2026
Computational class Unknown
Reference implementation Unimplemented
File extension(s) .pps

Petit salad is a modified version of potAto sAlAd, meant to poke fun at BASIC. The entire program must be written in uppercase (excluding strings). Lines may be seperated by a : character.

Commands

Mathematic operators function the same as potAto sAlAd.

Command Description Example
REM FOR A SEC OK [text] A comment.
REM FOR A SEC OK THIS PART IS A COMMENT
SHOW ME POTATO SALAD [var] Prints variable [var].
X = 0
SHOW ME POTATO SALAD X
[var] = [value] Sets variable [var] to [value].
X = 0

Example Programs

Hello World

STR = "Hello, World!"
SHOW ME POTATO SALAD STR

References

  1. ↑ [var] refers to a variable, [value] refers to either a value (int/string/etc) or a variable, and all others are self-explanatory.