FrainBuck--

From Esolang
Jump to navigation Jump to search

FrainBuck-- is a 2-dimemsional programming language created by User:Xi-816. It's a BrainFuck derivative, but it has only 4 commands.

Commands

Command Description
+ Add 1 to current cell, then modulo 256
: If current cell's value is even, change direction's pointer to left, and go to next cell, else, change direction's pointer to right, and go to previous cell
~ Turn right
$ Output as an ASCII character

Examples

Printing a Letter

The following simple program assembles and prints the letter A:

+++++++++++++++++++++++++++++++++~
$++++++++++++++++++++++++++++++++~

Bouncing Printer

This program perpetually outputs the character twissel composed of the null character followed by the digit 1:

++++++++++++++++++++++++++++++++++++++++++++++++~    
                                            : + :$  :

Interpreter

  • Common Lisp implementation of the FrainBuck-- programming language.