Malbrain

From Esolang
Jump to: navigation, search

Malbrain is an esoteric programming language with only 2 commands: ">" and ".". Due to the design, it is also extremely hard to maintain, since each command is relative to the previous.

Malbrain is translated to brainfuck before it is executed and so is computationally equivalent to brainfuck. This is NOT the same as a turning tarpit. The commands are:

Token Action
> Next command
. Use command

The command number starts at 0 at the beginning, which is ">". The output commands are as follows: ><+-.,[]
Like brainfuck, all non commands are considered comments. If the command goes past the list, it restarts to 0.

This is the brainfuck hello world converted to malbrain

.>>.........>>>>.>>>.>........>>>>>>.>>>.>>>>.>>.>>>.>>>>.
>>.......>>>>.>>>.>....>>>>>>.>>>.>>>>.>>.>.>>.>>>>>>.......
>>..>>>>>>...>>.>>>>...>>........>>>>.>>>.>....>>>>>>.>>>.>>>>.
>>.>>>.>>>>...>>..........>>>>.>>>.>.........>>>>>>.>>>.>>>>.>>.
>>...>.>>>>>....>>>.>>>>>>...>>.>>>>>>>......>.>>>>>>>........>.
>>>>..>>.>>.

This is malbrain cat (No change on EOF)

>>>>>.>.>>>>>>.>>.>>>>>.>>>>.>>>>>>.>>.

External resources