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.

WhimsiCode

From Esolang
Jump to navigation Jump to search

WhimsiCode is invented by PSTF and his ChatGPT.

This Esolang has a lot of emoji as its command.

Syntax

WhimsiCode uses a combination of emoji and ASCII characters for its syntax.

Each line of code must end with a smiley emoji :) to be considered valid.

Variables

Variables in WhimsiCode are represented by random combinations of fruit emojis.

For example, 🍎 represents a variable named "apple" and 🍌 represents a variable named "banana".

Control Flow

WhimsiCode uses a unique control flow structure called "Magical Forest".

The Magical Forest consists of trees represented by 🌳 emoji.

Code blocks are executed only if the programmer manages to find a hidden 🌟 emoji within the Magical Forest.

I/O Operations

Input is taken using a πŸ“· emoji, which prompts the user to take a picture of their desired input.

Output is displayed using a πŸŽ₯ emoji, which shows a short video clip of the program's result.

Arithmetic Operations

WhimsiCode uses unconventional arithmetic symbols. For instance, 🌽 represents addition, πŸ‡ represents subtraction, and πŸ‰ represents multiplication.

Example

A+B Problem

🌳 find 🌟

πŸ“· 🍎

πŸ“· 🍌

🍏 = 🍎 🌽 🍌

πŸŽ₯ 🍏 :)

I think pseudo code is this:

start();
input a;
input b;
c = a + b;
print c;
exit();

Note

Please note that WhimsiCode is purely fictional and designed to demonstrate the concept of an esoteric programming language. It may not be practical or useful for real-world programming tasks.

Turing Completeness

WhimsiCode language described above is not Turing-complete. It lacks essential features and constructs necessary to achieve Turing-completeness, such as loops or conditional statements. WhimsiCode is intentionally designed to be esoteric and whimsical, focusing more on unconventional syntax and control flow rather than practicality or computational power.

Categories