这不是编程语言!
The name says "This is not a programming language!", and its eight characters are brainfuck's eight commands.
None1 · Turing complete: yes · ●○○ easy · esolangs.org
Tested with 3 known programs · Test method
Run it
The idea
None1 made 这不是编程语言!. In Chinese the name means "This is not a programming language!", but it is one. Each of the eight characters in the name stands for one brainfuck command, in the order + - , . < > [ ]. Nothing else is new; the machine underneath is brainfuck's.
The machine
| Character | Reading | Brainfuck | Does |
|---|---|---|---|
这 | zhè | + | Add 1 |
不 | bù | - | Take 1 away |
是 | shì | , | Read a byte |
编 | biān | . | Print the cell |
程 | chéng | < | Move left |
语 | yǔ | > | Move right |
言 | yán | [ | Skip past the matching ! if the cell is 0 |
! | ] | Go back to the matching 言 if it is not |
Every other character does nothing. The rest is as in the Python interpreter. The tape has 1,000,000 byte cells that wrap, and a move left of the first cell reaches the last ones, as a Python list does. The Python reads the program and the input from the same place, so there 是 never gets a character. In this implementation the input is separate, and reading past its end is an error, as it is in the Python.
Example
The cat is +[,.].
The cat is +[,.]. It sets a cell to 1 so that the loop starts, then reads and prints until the input runs out, where it stops with an error.
The specification's interpreter for Nope., a language whose every program prints Nope.. Six times thirteen is 78, an N, and eleven times ten plus one is 111, an o.
The truth machine prints the digit it reads. On 0 it stops; on 1 it prints 1 forever.
The Hello World is the one on brainfuck's own page. A loop of 8 around a loop of 4 fills five cells with 72, 104, 88, 32 and 8, and the program walks between them.
Patterns it teaches
- Turing tarpit: brainfuck under another alphabet.
- Encoding tricks: one character of the name for each command.
Further
See also
这不是编程语言! builds on Brainfuck.
CJK
Brainfuck equivalents
Write your own in Run Convert a program from 这不是编程语言!
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: u8fd9-4e0d-662f-7f16-7a0b-8bed-8a00-ff01.
Command line
shib run u8fd9-4e0d-662f-7f16-7a0b-8bed-8a00-ff01 -e '语语语是编言言不语这程程这语!语不!程程程言程程!语言编!' --input '0'shib manual u8fd9-4e0d-662f-7f16-7a0b-8bed-8a00-ff01Source
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org