esolang

EasyFlakes

Brainfuck with its characters spelt out as words, which makes it longer and only a little easier.

2023 · Turing complete: yes · ●○○ easy · esolangs.org

Tested with 3 known programs · Test method

Run it

Expected: Hello, World!

The idea

EasyFlakes is from 2023. The specification calls it a derivative of Branflakes that is easyish. Each brainfuck character becomes a word, and a loop becomes bracket( and ) around the words it repeats. The Hello World takes 66 words, and the specification notes that it takes this much even to write a simple hello world.

The machine

WordBrainfuckDoes
right left> <Move the pointer
up down+ -Add or take 1
output input. ,Print or read a character
bracket( ... )[ ... ]Repeat while the cell is not 0

Cells hold 0 to 255 and wrap. The Hello World walks five cells left of where it starts, so the tape runs both ways. Reading past the end of the input gives 0.

Example

The Hello World is the brainfuck program…

The Hello World is the brainfuck program +[-->-[>>+>-----<<]<--<---]>-.>>>+.>>..+++[.>]<<<<.+++.------.<<-.>>>>+. word for word. It needs cells that wrap.

The truth machine prints what it reads, then takes 2 away until the cell is 0. A 0 gets there after 24 rounds. A 1 never does, so after 256 rounds a counter beside it wraps to 0 and an inner loop prints 1 for ever.

Expected: 0

The cat, up bracket(input output), stops on a null input after it has printed it.

Patterns it teaches

Further

EasyFlakes builds on Brainfuck.

Brainfuck equivalents

Write your own in Run Convert a program from EasyFlakes

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run easyflakes -e 'up bracket(input output)' --input 'cat'
shib manual easyflakes

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/easyflakes.js

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

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