TrivialBrainfuckSubstitution

From Esolang
Jump to: navigation, search

TrivialBrainfuckSubstitution is not a single programming language, but rather a large family of programming languages that are trivial substitutions of the Brainfuck language.

Syntax

We will pick TrivialBrainfuckSubstitution("a","b","c","d","e","f","g","h") as an example. To write a program in TrivialBrainfuckSubstitution("a","b","c","d","e","f","g","h"), first make a program in BF. Then, convert it to according to this table:

Brainfuck TrivialBrainfuckSubstitution("a","b","c","d","e","f","g","h") Description
> a Move the pointer to the right
< b Move the pointer to the left
+ c Increment the memory cell under the pointer
- d Decrement the memory cell under the pointer
. e Output the character signified by the cell at the pointer
, f Input a character and store it in the cell at the pointer
[ g Jump past the matching h if the cell under the pointer is 0
] h Jump back to the matching g

Example Members of the TrivialBrainfuckSubstitution family

  • Ook! is equivalent to TrivialBrainfuckSubstitution("Ook. Ook?", "Ook? Ook.", "Ook. Ook.", "Ook! Ook!", "Ook! Ook.", "Ook. Ook!", "Ook! Ook?", "Ook? Ook!")
  • Alphuck is equivalent to TrivialBrainfuckSubstitution("a", "c", "e", "i", "j", "o", "p", "s")
  • Brainfuck itself could be described as TrivialBrainfuckSubstitution(">", "<", "+", "-", ".", ",", "[", "]")

There are of course, infinitely many members not listed here.