++brainfuck++

From Esolang
Jump to navigation Jump to search

++brainfuck++ - joke language, written by User:Maximngy 27.05.2016. That is an updated version of Brainfuck.

That is a juxtaposition of the ++brainfuck++ and Brainfuck commands:

BrainFuck ++BrainFuck++ Command
> > Move the pointer to the right
< < Move the pointer to the left
+ + Increment the memory cell under the pointer
- - Decrement the memory cell under the pointer
. . Output the character signified by the cell at the pointer
, , Input a character and store it in the cell at the pointer
[ { Jump past the matching ] or } if the cell under the pointer is 0
] } Jump back to the matching [ or { if the cell under the pointer is nonzero
none c Copies the current memory cell value to the temporary variable
none p Pastes the temporary variable's value into the current memory cell
none o Sets the current memory cell to 0
none e Exits from interpreter
none n Outputs the current memory cell's value as a number
none r Generates a random number from 1 to 1000 and stores it in the current memory cell

Examples:

++c>pn>p.

Output:

2
�

And this:

rcn>p-.

For example (random) output this:

509
Ǽ

And this cool program (for example):

rc+>p++>p+++{<.n}

Write that:

|124
{123
z122

This implements the Hello, world! program:

++++++++{>++++{>++>+++>+++>+<<<<-}>+>+>->>+{<}<-}>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

The following demonstrates an infinitely repeating cat program:

,.{,.}

The truth-machine can be designed in this fashion:

,>++++++++++++++++++++++++++++++++++++++++++++++++{<->-}<{n}n

Thanks for reading me =3

Interpreter