B2C

From Esolang
Jump to navigation Jump to search

It's Brainfuck, with 2 cells, invented by User:None1.

Introduction

B2C is a Brainfuck derivative (or a Brainfuck equivalent, depends on how you think) with only 2 cells.

Since there are only 2 cells, B2C doesn't need 2 commands to move the pointer, it just need one command, which is the | command. The | command moves the pointer from one cell to the other.

Example Programs

If you think these programs are wrong, please change them or delete them.

Cat Program

+[,.]    [The same as the one in Brainfuck]

Non-terminating version

+[|,.|]

Nope. Interpreter

++++++[|+++++++++++++|-]|.[-]|++++++++++[|+++++++++++|-]|+.+.
-----------.[-]|+++++[|+++++++++|-]|+.

Hello World (last because it's the hardest one)

+++++++++[|++++++++|-]|.[-]|++++++++++[|++++++++++|-]|.
+++++++..+++.[-]|++++++++[|++++|-]|.[-]|
+++++++[|+++++++++++|-]|.[-]|++++++++++[|++++++++++|-]|
+.+++.------.--------.+++++++++++[|+++|-]|.