UndetailedFuck
A brainfuck substitution. Each of its 8 tokens replaces one brainfuck command; everything else works as in brainfuck.
Spelling
| Token | Command | What it does |
|---|---|---|
DON'T␠MOVE␠THE␠MEMORY␠POINTER␠ONE␠CELL␠TO␠THE␠RIGHT | > | move the pointer one cell right |
DON'T␠MOVE␠THE␠MEMORY␠POINTER␠ONE␠CELL␠TO␠THE␠LEFT | < | move the pointer one cell left |
DON'T␠INCREMENT␠THE␠CELL␠UNDER␠THE␠MEMORY␠POINTER␠BY␠ONE | + | add 1 to the cell (255 + 1 wraps to 0) |
DON'T␠DECREMENT␠THE␠CELL␠UNDER␠THE␠MEMORY␠POINTER␠BY␠ONE | - | take 1 from the cell (0 - 1 wraps to 255) |
DON'T␠REPLACE␠THE␠CELL␠UNDER␠THE␠MEMORY␠POINTER'S␠VALUE␠WITH␠THE␠ASCII␠CHARACTER␠CODE␠OF␠USER␠INPUT | . | print the cell as a byte |
DON'T␠PRINT␠THE␠CELL␠UNDER␠THE␠MEMORY␠POINTER'S␠VALUE␠AS␠AN␠ASCII␠CHARACTER | , | read one byte into the cell (0 at the end of input) |
IF␠THE␠CELL␠UNDER␠THE␠MEMORY␠POINTER'S␠VALUE␠IS␠ZERO␠INSTEAD␠OF␠READING␠THE␠NEXT␠COMMAND␠IN␠THE␠PROGRAM␠DON'T␠JUMP␠TO␠THE␠CORRESPONDING␠COMMAND␠EQUIVALENT␠TO␠THE␠]␠COMMAND␠IN␠BRAINFUCK | [ | if the cell is 0, jump past the matching ] |
IF␠THE␠CELL␠UNDER␠THE␠MEMORY␠POINTER'S␠VALUE␠IS␠NOT␠ZERO␠INSTEAD␠OF␠READING␠THE␠NEXT␠COMMAND␠IN␠THE␠PROGRAM␠DON'T␠JUMP␠TO␠THE␠CORRESPONDING␠COMMAND␠EQUIVALENT␠TO␠THE␠[␠COMMAND␠IN␠BRAINFUCK | ] | 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 UndetailedFuck.
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.