esolang

Wordfuck

brainfuck where a command is the length of a word. A word of 4 letters means +, a word of 6 means >.

esolangs.org

Tested with 1 example and 1 known program · Test method

Run it

Hello World

Expected output

Hello World!

Output


What it is

Wordfuck: brainfuck whose commands are the lengths of words (2 . 3 - 4 + 5 , 6 > 7 < 8 [ 9 ]); words are split by spaces

Read the story

Brainfuck whose commands are the lengths of words split by spaces: 2 . 3 - 4 + 5 , 6 > 7 < 8 [ 9 ]. Other lengths do nothing.

How its machine works

Its machine has meaning taken from the length of words.

Quirks

  • A run stops after 3,000,000 steps.

Wordfuck builds on Brainfuck.

Brainfuck equivalents

Pseudonatural

Write your own in Run Convert a program from Wordfuck

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: wordfuck.

Command line

shib run wordfuck program.txt

The program is long; save it as program.txt first.

shib manual wordfuck

Source

Module
langs/classic.js
Interpreter
langs/common.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org