The Code of the Seven

From Esolang
Jump to navigation Jump to search

Before mortals, the Gods communicated in their own code. Code that not even Three-Eyed Raven could understand. They called it The Code of the Seven. Only one person is said to have understood this mysterious language; a priestess from the mists of time; Mynaemis Sleemshadee. Luckily, she wrote down the mysteries of this language, and they were discovered in her tomes after her death. Can you decipher this immortal tongue, and translate it to the Common Tongue (BrainFUck)?


Commands

Brainfuck The Code of the Seven Description
> Father Move the pointer to the right
< Mother Move the pointer to the left
+ Maiden Increment the memory cell under the pointer
- Crone Decrement the memory cell under the pointer
. Warrior Output the character signified by the cell at the pointer
, Smith Input a character and store it in the cell at the pointer
[ Stranger Jump past the matching R'hllor if the cell under the pointer is 0
] R'hllor Jump back to the matching Stranger

Examples

Cat Program

A repeating cat program follows, which terminates on a null character input:

Smith
Stranger
  Warrior
  Smith
R'hllor

Hello, World!

This program outputs the message “Hello, World!”:

Maiden
Stranger
Crone
Crone
Father
Crone
Stranger
Father
Father
Maiden
Father
Crone
Crone
Crone
Crone
Crone
Mother
Mother
R'hllor
Mother
Crone
Crone
Mother
Crone
Crone
Crone
R'hllor
Father
Crone
Warrior
Father
Father
Father
Maiden
Warrior
Father
Father
Warrior
Warrior
Maiden
Maiden
Maiden
Stranger
Warrior
Father
R'hllor
Mother
Mother
Mother
Mother
Warrior
Maiden
Maiden
Maiden
Warrior
Crone
Crone
Crone
Crone
Crone
Crone
Warrior
Mother
Mother
Crone
Warrior
Father
Father
Father
Father
Maiden
Warrior

Interpreter

  • Common Lisp implementation of the The Code of the Seven programming language.