A Python implementation of the chicken esoteric programming language by Torbjörn Söderstedt.
A chicken program only contains the tokens "chicken"
, " "
and "\n"
. The number of chickens per line represent an opcode, which is loaded onto the same stack as the program and executed directly.
For more details, view the original implementation and spec here, or view the Esolang page for chicken.
$ pip install chickenpy
$ chickenpy --help
- Python 3.8+
- Poetry
- Click the Clone or download button in the top right corner.
- Either clone the repository or download the ZIP file and extract.
- Change directory and install dependencies.
$ cd chickenpy
$ poetry install --no-dev
Run the program by launching a subshell:
$ poetry shell
$ chickenpy --help
Or by running it directly using poetry
:
$ poetry run chickenpy --help
Examples can be found in the examples/
directory:
$ chickenpy -f examples/hello_world.chn
This project is licensed under MIT. For more information see the LICENSE file.