SpoilerFuck

From Esolang
Jump to navigation Jump to search
The title of this article is not correct because of technical limitations. The correct title is actually Fuck.

Fuck is an esolang invented by User:None1 which is a way of displaying brainfuck code with spoilers.

Syntax

All syntax are the same, except one: Text wrapped around with brackets in brainfuck are wrapped around with spoilers in Fuck.

For example:

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

in brainfuck is

++++++++>++++++++<->+.

in Fuck.

Examples

This Python program translates brainfuck to Fuck.

print('(code)'.replace("[",'<span class="spoiler">').replace("]","</span>"))

Cat Program

,.,

Hello World

++++++++>++++>++>+++>+++>+<<<<->+>+>->>+<<->>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.