Newbiefuck

From Esolang
Jump to: navigation, search

Newbiefuck is an accidental derivative of the brainfuck language. It has the same commands, except that [ is a NOP:

Command Description
> 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
[ Do nothing
] Jump back to the matching [ if the cell under the pointer is nonzero

Newbiefuck has had many implementations, as about 80%[citation needed] of first-time brainfuck implementers accidentally implement it instead at some point in the process, thus the name.

This happens because [ is the only brainfuck command that requires some kind of parsing in order to find a matching point in not already seen code, something which many first time implementers stumble on.

Example Program

>[-]<[-]++++++++[->+++++++++<]>.----[--<+++>]<-.+++++++.><.+++.[-][[-]>[
-]+++++++++[<+++++>-]<+...--------------.>++++++++++[<+++++>-]<.+++.----
---.>+++++++++[<----->-]<.-.>++++++++[<+++++++>-]<++.-----------.--.----
-------.+++++++.----.++++++++++++++.>++++++++++[<----->-]<..[-]+++++++++
+.[-]+++++++[.,]-]>[-]++++++++[<++++>-]<.>+++++++++++[<+++++>-]<.>++++++
[<++++>-]<.+++.------.--------.[-]>++++++++[<++++>-]<+.[-]++++++++++.[-]