Brainfuck²

From Esolang
Jump to navigation Jump to search

Brainfuck2 is an esoteric programming language, a Trivial brainfuck substitution except this time actually funny. Every term in the language is a name of another brainfuck derivative. It was developed by a teenager from California as he sat on the toilet.

Language

Command Description
Ook! Move the pointer to the right
Alphuck Move the pointer to the left
Fuckfuck Increment the memory cell under the pointer
POGAACK Decrement the memory cell under the pointer. This one was especially unfunny. Not just a rip off of BF, but also a rip off of a rip off of BF.
Unibrain Output the character signified by the cell at the pointer
Wordfuck Input a character and store it in the cell at the pointer
Brainfuck² Jump past the matching ZZZ if the cell under the pointer is 0
ZZZ Jump back to the matching Brainfuck² if the cell under the pointer is nonzero

Examples

Cat Program

A repeating cat program follows which terminates on a null character input:

Wordfuck Brainfuck² Unibrain Wordfuck ZZZ

Hello, World!

This prints the message “Hello, World!” to the standard output:

Fuckfuck
Brainfuck²
POGAACK
POGAACK
Ook!
POGAACK
Brainfuck²
Ook!
Ook!
Fuckfuck
Ook!
POGAACK
POGAACK
POGAACK
POGAACK
POGAACK
Alphuck
Alphuck
ZZZ
Alphuck
POGAACK
POGAACK
Alphuck
POGAACK
POGAACK
POGAACK
ZZZ
Ook!
POGAACK
Unibrain
Ook!
Ook!
Ook!
Fuckfuck
Unibrain
Ook!
Ook!
Unibrain
Unibrain
Fuckfuck
Fuckfuck
Fuckfuck
Brainfuck²
Unibrain
Ook!
ZZZ
Alphuck
Alphuck
Alphuck
Alphuck
Unibrain
Fuckfuck
Fuckfuck
Fuckfuck
Unibrain
POGAACK
POGAACK
POGAACK
POGAACK
POGAACK
POGAACK
Unibrain
Alphuck
Alphuck
POGAACK
Unibrain
Ook!
Ook!
Ook!
Ook!
Fuckfuck
Unibrain

Interpreter

  • Common Lisp implementation of the Brainfuck² programming language. Please note that the concrete character set deployed constitutes a dependency on the Common Lisp implementation; in corollary, Unicode support may or may not be a feature incorporated in the personal environment. The interpreter at hand has been developed and tested with Steel Bank Common Lisp (SBCL) version 1.1.4 as part of the Lisp Cabinet 0.3.5 bundle.