esolang

PlusOrOutput

An accumulator that can only count up, and a dot to print it.

None1, 2023 · Turing complete: no · ●○○ easy · esolangs.org

Tested with 2 known programs · Test method

Run it

Expected: Nope.

The idea

None1 made PlusOrOutput in 2023, after PlusOrMinus. There is no minus. To print a letter lower than the one before, a program counts up past 255, wraps to 0 and climbs again. The Hello World, which prints Hello World!, has 1,057 plusses, because the step from o down to the space takes 177 of them.

The machine

CharDoes
+Add 1 to the accumulator, 255 wraps to 0
.Print the accumulator as a character

Everything else is ignored. A program runs once and stops.

Example

The Nope.

The Nope. interpreter, which prints Nope. whatever it is given, as every Nope. program does. N is 78; the dot needs 245 more, round past 255.

Expected: HIJ

Patterns it teaches

  • Encoding tricks: every character is a distance from the one before, counted one way round a circle of 256.

Further

Esoteric subset

Write your own in Run Convert a program from PlusOrOutput

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run plusoroutput program.txt

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

shib manual plusoroutput

Source

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

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

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