Fuckscript
Brainfuck with every command shouted as one word, and a ninth word that sends the pointer home.
Josh Schiavone · Turing complete: yes · ●○○ easy · esolangs.org
Tested with 2 known programs · Test method
Run it
The idea
Josh Schiavone made Fuckscript as a joke and wrote its interpreter in C++. The specification says it is more intuitive than brainfuck because the keywords are more descriptive, and that the interpreter forbids comments because that makes programming easier.
Read the story
Underneath it is brainfuck. The specification carries an 11 line Ruby program that runs it by turning each word into a piece of Ruby, and this implementation follows that program.
The machine
| Word | brainfuck | Does |
|---|---|---|
FUCK | + | Add 1 to the cell |
FUCKK | - | Subtract 1 |
FFUCK | > | Move right |
FUCKKK | < | Move left |
FUCKER | , | Read a byte |
FUCKITY | . | Print the cell |
WHATTHEFUCK | [ | Skip the loop if the cell is 0 |
IAMFUCKED | ] | Repeat while the cell is not 0 |
THISISFUCKED | Move the pointer back to cell 0 |
Words stand between spaces or line breaks, and any other word is dropped. The tape runs both ways without end, cells wrap as bytes, and reading past the end of the input leaves the cell alone.
Example
The Add Two Numbers reads two bytes and prints their sum.
The Add Two Numbers reads two bytes and prints their sum. The bytes of 1 and 2 are 49 and 50, and 99 is c.
The first line of the Hello World counts 8 times 9 into a cell, which is 72, the code of H.
The whole Hello World has 12 lines and prints Hello, World!.
Further
Ideas it shows
See also
Fuckscript builds on Brainfuck.
Pseudonatural
Brainfuck derivatives
Write your own in Run Convert a program from Fuckscript
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: fuckscript.
Command line
shib run fuckscript -e 'FUCKER
FFUCK
FUCKER
FUCKKK
FFUCK
WHATTHEFUCK
FUCKK
FUCKKK
FUCK
FFUCK
IAMFUCKED
FUCKKK
FUCKITY' --input '12'shib manual fuckscriptSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/fuckscript.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org