esolang

ඞlang without Quine with Quine

The language that refused its quine, with the quine given back.

WE135, 2025 · Turing complete: no · ●○○ easy · esolangs.org

Tested with 3 known programs · Test method

Run it

Expected: ඞ

The idea

WE135 made this in 2025 on top of ඞlang without Quine. There the program ඞ prints seven lines in Chinese about the Sinhala language, and every other program prints ඞ, so the one program that could print itself never does. This version adds one more rule. The seven lines, given as a program, print themselves. Now there is a quine, and it is the language's only output apart from ඞ.

The machine

There is none. Two programs print the text, ඞ and the text itself. Every other program prints ඞ, the empty one too. Each answer ends with a line feed, so the text followed by a line feed prints exactly itself. Input is never read.

The specification's Python reads its program one line at a time with input(), so there the seven lines can never match. This implementation compares the whole program, as the description says.

Example

The second program is the text, and it prints the same seven lines; the console shows them on one.
Expected: 僧伽罗语(සිංහල),是斯里兰卡的官方语言之一。 是占斯里兰卡大多数人口的僧伽罗人的语言;使用人口大约一千九百万。 从1956年开始,僧伽罗语及泰米尔语同时都是《斯里兰卡宪法》上承认的官方语言。 僧伽罗语是属于印欧语系的印度-伊朗语族的印度-雅利安语支的一种语言。 马尔代夫官方语言之一的迪维希语是与之相近的语言。 僧伽罗语书写采用源自古印度北部婆罗米文而形成的僧伽罗文。 在僧伽罗语中,有一些字母很像《在我们之间》里面的角色,比如说 D(ඩ) 或者是 Ng(ඞ) 。

The second program is the text, and it prints the same seven lines; the console shows them on one. The program ඞ prints them as well.

Patterns it teaches

  • Quine: a quine by decree, one text the language is told to give back.
  • Every text runs: every text is a program, and all but two print ඞ.

Further

No-code esolang

Zero-dimensional languages

Write your own in Run Convert a program from ඞlang without Quine with Quine

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: lang-without-quine-with-quine.

Command line

shib run lang-without-quine-with-quine -e 'ඞ'
shib manual lang-without-quine-with-quine

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/lang-without-quine-with-quine.js

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

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