esolang

7-8

A brainfuck substitution. Each of its 8 tokens replaces one brainfuck command; everything else works as in brainfuck.

Compare all 89 esolangs.org

Spelling

7-8’s tokens and the brainfuck command each replaces
TokenCommandWhat it does
7-8␠7-8␠7-8␠7-8␠7-8␠7-8␠7-8␠7-8>move the pointer one cell right
7-8␠7-8␠7-8␠7-8␠7-8␠7-8<move the pointer one cell left
7-8␠7-8␠7-8␠7-8+add 1 to the cell (255 + 1 wraps to 0)
7-8␠7-8␠7-8␠7-8␠7-8-take 1 from the cell (0 - 1 wraps to 255)
7-8␠7-8␠7-8.print the cell as a byte
7-8␠7-8␠7-8␠7-8␠7-8␠7-8␠7-8,read one byte into the cell (0 at the end of input)
7-8␠7-8[if the cell is 0, jump past the matching ]
7-8]if the cell is not 0, jump back to the matching [

In the table, ␠ marks a space inside a token.

Tokens are matched longest first; any other character is ignored.

Examples

Hello World

Expected output

Hello World!

Output


Print the letter A

The brainfuck program ++++++++[>++++++++<-]>+. in 7-8.

Expected output

A

Output


  • Set the first cell to 8, add 8 to the next cell 8 times, add 1 more and print 65, the letter A. brainfuck explains each command.