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.

MY E KEY BROKE

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

MY E KEY BROKE is an esolang by user:raiseafloppafan7741 in 2026 after realizing the E key on his keyboard completely stopped working. This language is meant to cause pain to those without a functioning E key, or a broken Shift key.

Overview

There are two stacks. Each instruction is followed by a number of es which corresponds to the next state number, starting from 1.

Ee pushes a 0 to the current stack.

EEe increments the top of the current stack.

EEEe decrements the top of the current stack and moves to the state right after it. However if it is zero, then it jumps to the next state specified by the es instead.

EEEEe swaps the top two values of the current stack.

EEEEEe reads a byte of input and pushes it to the current stack. -1 is pushed on EOF.

EEEEEEe pops the top of the current stack and prints it.

EEEEEEEe duplicates the top of the current stack.

EEEEEEEEe discards the top of the current stack.

EEEEEEEEEe halts. Unlike the others, it does not have es after it as there is no next state.

EEEEEEEEEEe switches the current working stack.

EEEEEEEEEEEe moves the top element of the other stack to the current working stack.

Any errors will halt parsing and print out MY E KEY BROKE.

Examples

Error quine

This works because M is not a valid command.

MY E KEY BROKE

One Time Cat

EEEEEeeeEEeeeeEEEeeeeeeEEEEEEeeeeeeEEEEEEEEEe

WIth comments (does not work with them)

EEEEEe ee      inp : 2
EEe eee        inc : 3
EEEe eeeee     dec : 4 5
EEEEEEe eeeee  out : 5
EEEEEEEEEe     hlt

Cat program

EEEEEeeeEEeeeeEEEeeeeeEEEEEeeEEEEEEEEEe

With comments (does not work, remove them first)

EEEEEe ee  inp : 2
EEe eee    inc : 3
EEEe eeeee dec : 4 5
EEEEEe e   out : 1
EEEEEEEEEe hlt

Truth-machine

Rejects 0.

EEEEEeeeeeeEEeeeeEEEEEEeeeeeEEEEEEEEEEEeEEEeeeEEeeeeeeeeEEEEEEEeeeeeeeeeEEEEEEeeeeeeee

With comments

EEEEEe eeeee      inp : 5
EEe eee           inc : 3
EEEEEEe eeee      out : 4
EEEEEEEEEEEe      hlt
EEEe ee           dec : 6 2
EEe eeeeeee       inc : 7
EEEEEEEe eeeeeeee dup : 8
EEEEEEe eeeeeee   out : 7