Fluffle Puff

From Esolang
Jump to navigation Jump to search

Fluffle Puff (also known as BrainPuff or FluffleFuck) is an esoteric programming language created by juju2143 in January 2014. It is a simple Brainfuck variant designed to be similar to the speech of My Little Pony: Friendship is Magic fan character Fluffle Puff.

Language overview

Fluffle Puff is mostly identical to Brainfuck, except the symbols are substituted:

Brainfuck Fluffle Puff Description
> b Move the pointer to the right
< t Move the pointer to the left
+ pf Increment the memory cell under the pointer
- bl Decrement the memory cell under the pointer
. ! Output the character signified by the cell at the pointer
, ? Input a character and store it in the cell at the pointer
[ *gasp* Jump past the matching *pomf* if the cell under the pointer is 0
] *pomf* Jump back to the matching *gasp* if the cell under the pointer is nonzero

Due to the simple substitution, Fluffle Puff can be considered equivalent to TrivialBrainfuckSubstitution("b","t","bf","pl","!","?","*gasp*","*pomf*") and as such is Turing-complete.

Examples

This is a simple Hello, world! program:

pfpfpfpfpfpfpfpfpfpf*gasp*bpfpfpfpfpfpfpfbpfpfpfpfpfpfpfpfpfpfbpfpfpfbpfttttbl*pomf*bpfpf!bpf!pfpfpfpfpfpfpf!!pfpfpf!bpfpf!ttpfpfpfpfpfpfpfpfpfpfpfpfpfpfpf!b!pfpfpf!blblblblblbl!blblblblblblblbl!bpf!b!

Implementations