esolang

imput

Brainfuck, plus four misspellings of input and output, and kiwi.

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

Tested with 4 known programs · Test method

Run it

Expected: Hello, world!

The idea

imput is named after a misspelling of input. It keeps all eight brainfuck commands, which is why the specification calls it Turing complete, and adds words in the same spirit. imput reads a line, oumput prints the last line read and ounput the first, ouput("...") prints text and kiwi prints kiwi.

Read the story

The text inside ouput is read whole, so the comma in "Hello, world!" is part of the greeting and does not read a byte the way brainfuck's , would.

The machine

CommandDoes
+ - < > , . [ ]As in brainfuck, on bytes
imputRead a line of input
oumputPrint the last line read
ounputPrint the first line read
kiwiPrint kiwi
ouput("text")Print the text

Nothing adds a line feed. The greeting prints its question, the name and the rest on one line.

Example

The last one reads two lines, prints the first with ounput, the last with oumput, and then kiwi.
Expected: cat
Expected: Please enter your name: Hello, Ada. How are you?
Expected: onetwokiwi

The last one reads two lines, prints the first with ounput, the last with oumput, and then kiwi.

Patterns it teaches

Further

imput builds on Brainfuck.

Brainfuck derivatives

Write your own in Run Convert a program from imput

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run imput -e 'kiwi'
shib manual imput

Source

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

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

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