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
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
| Command | Does |
|---|---|
+ - < > , . [ ] | As in brainfuck, on bytes |
imput | Read a line of input |
oumput | Print the last line read |
ounput | Print the first line read |
kiwi | Print 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.
The last one reads two lines, prints the first with ounput, the last with oumput, and then kiwi.
Patterns it teaches
- Turing completeness: borrowed whole, by keeping every brainfuck command.
Further
See also
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 imputSource
- 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