esolang

lezy

One command, and it prints its own name.

Cinnamony · Turing complete: no · ●○○ easy · esolangs.org

Tested with 3 known programs · Test method

Run it

Expected: lezy

The idea

lezy is a joke language by Cinnamony. Its only command is lezy, and lezy prints lezy. So a program prints itself without the spaces, and the program lezy is a quine.

The machine

CommandDoes
lezyPrint lezy

Spaces, tabs and line feeds between commands do not matter, and two commands may touch, as in lezylezy. This implementation follows the Common Lisp implementation in the specification, which stops with an error at anything else. The specification also gives a C# implementation that passes over other text; for programs of only lezy and whitespace the two print the same.

Example

All three are the specification's own.
Expected: lezylezy
Expected: lezylezylezylezylezy

All three are the specification's own. In the third, five commands over three lines print lezy five times.

Patterns it teaches

  • Quine: the shortest program prints itself, because that is all the language can do.

Further

Also in Jokes

Write your own in Run Convert a program from lezy

Implementation

JavaScript interpreter, source and command line

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

Command line

shib run lezy -e 'lezy'
shib manual lezy

Source

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

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

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