/flufflepuff

Fluffle Puff Programming Language

Primary LanguageLexGNU General Public License v2.0GPL-2.0

BrainPuff

BrainPuff is a programming language based on Brainfuck and the speech of everypony's favorite fluffy pony, Fluffle Puff.

Conversion table

BF  Fluffle Puff
+   pf
-   bl
>   b
<   t
.   !
,   ?
[   *gasp*
]   *pomf*

Examples

Sample hello world in Brainfuck:

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

Sample hello world translated in BrainPuff:

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

Output:

Hello World!

Compile and Run

This project comes with a reference implementation written in C++.

Just install flex, then type make in a Linux, Mac OS X or Windows (with Cygwin) command prompt. Then you can run it like this:

% cat hello.fp | ./flufflepuff
% ./flufflepuff < hello.fp
% ./flufflepuff hello.fp

That's really simple. For now.

Implementations

This is the reference implementation released under GPL, so feel free to make your own implementation in other languages. You'll want to link back to the original project's page on your project page and tell me about it so I can link you here, it will be greatly appreciated.

Links

Fluffle Puff