Chicken chicken chicken: chicken chicken
Every name is a count of chickens. The language's own name is its cat program.
None1, 2025 · Turing complete: unknown · ●●○ moderate · esolangs.org
Tested with 4 known programs · Test method
Run it
The idea
None1 made ccc:cc in 2025, after Chicken. Chicken has one word; ccc:cc keeps that word and adds punctuation, closer to the paper that inspired Chicken. A count of chickens names a variable, a function or a character. Three chickens is the output and two is the input, so the name of the language, chicken chicken chicken: chicken chicken, prints a line of input.
The machine
Periods split a program into sentences, counted from 1. A:a sets the variable A to the value of a. A value is a variable (a row of chickens), a character (chickens in double quotes, with the code of their count) or a function call (chickens, then arguments in parentheses).
| Chickens | As a variable |
|---|---|
| 1 | The number of the sentence running; setting it jumps there |
| 2 | Reading it takes a line of input |
| 3 | Setting it prints |
| 4 | The adder; setting it adds, reading it gives the sum and clears it |
| 5 | The multiplier, which starts at 1 |
| 6 | An ordinary variable that starts at 1 |
| Chickens | As a function |
|---|---|
1 (a) | Minus a |
2 (a,b,c) | b if a is true, else c |
3 () | A coin, 0 or 1 |
4 (a) | The character with code a |
There is no number literal. Numbers are whole and unbounded, a character counts as its code and a line of input as the number it spells. Any error prints chicken! and ends the program.
Example
The second is the XKCD random number.
The second is the XKCD random number. The character of four chickens goes into the adder as the number 4, and then the adder is printed.
A+B reads two lines. The first goes straight into the adder, the second through variable 7.
The Hello, World! has thirteen sentences, one for each character, and 1,129 chickens inside its quotes. The first holds 72 of them, the code of H.
Ideas it shows
See also
Also in Camouflage
Write your own in Run Convert a program from Chicken chicken chicken: chicken chicken
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: chicken-chicken-chicken-chicken-chicken.
Command line
shib run chicken-chicken-chicken-chicken-chicken -e 'chicken chicken chicken: chicken chicken' --input 'meow'shib manual chicken-chicken-chicken-chicken-chickenSource
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org