esolang

这不是编程语言!

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

Expected: cat

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

CharacterReadingBrainfuckDoes
这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.

Expected: Nope.

The truth machine prints the digit it reads. On 0 it stops; on 1 it prints 1 forever.

Expected: 0

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.

Expected: Hello World!

Patterns it teaches

Further

这不是编程语言! 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-ff01

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/u8fd9-4e0d-662f-7f16-7a0b-8bed-8a00-ff01.js

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

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