esolang

Branjunk

Two values and the capital alphabet. A character is the place of a letter, and 0 is A.

Ractangle, 2024 · Turing complete: no · ●○○ easy · esolangs.org

Tested with 3 known programs · Test method

Run it

Expected: HELLOWORLD

The idea

Ractangle made Branjunk in 2024, from brainfuck. There is no tape, only two values, A and B. The specification says the creator did not know Python's chr function, so A prints as the letter at its place in the capital alphabet, counted from 0. Nothing else can be printed, not even a space.

Read the story

There are no loops and no jumps, so every program runs straight through once. esolangs.org files it as unusable for programming.

The machine

CharDoes
+ -Add 1 to A or take 1 away
'Print A as a letter, 0 is A and 25 is Z
` | Read a capital letter into A, as its place
^Move A into B and set A to 0
vMove B into A and set B to 0

Printing A outside 0 to 25 is an error. The specification also describes Brainuck, an earlier version with other commands, which this implementation does not run.

Example

The Hello World program.

The Hello World program. B keeps the 7 of H while A counts to the 4 of E, and v brings the 7 back to build the L. With no space in the alphabet it prints one word.

The one time cat reads a letter and prints it back.

Expected: H

Further

Branjunk builds on Brainfuck.

Brainfuck derivatives

Write your own in Run Convert a program from Branjunk

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run branjunk -e '`'\''' --input 'H'
shib manual branjunk

Source

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

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

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