Brainfffffuck

From Esolang
Jump to navigation Jump to search
This is still a work in progress. It may be changed in the future.

Brainfffffuck is an Esolang designed by User:Hsxiaobai

Introduction

Brainfffffuck is an Esolang inspired by Brainfuck.

Syntax

Eight instructions, the same as Brainfuck:

,.+-<>[]

The difference is, Brainfffffuck will change the source code after running an instruction. The source will change according to these rules:

1. Swap the two instructions after the instruction now. If the instruction now is the last two instructions, don't do anything.
2. Replace according to the pattern in the "RP"(Replace Pattern).
3. Set the pattern(string to replace) in the "RP" as the last character and the replacement in the "RP" as the next character. If the instruction is already the last or the first, don't do anything.
4. Replace all the instructions according to the Replacement list:
 Pattern Replacement
 ,       .
 .       +
 +       -
 -       <
 <       >
 >       [
 [       ]
 ]       ,
The replacement will take place at the same time.