/chickenpy

A Python implementation of the chicken esoteric programming language.

Primary LanguagePythonMIT LicenseMIT

chickenpy

A Python implementation of the chicken esoteric programming language by Torbjörn Söderstedt.

What's chicken?

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.

Installation

$ pip install chickenpy
$ chickenpy --help

Manual Installation

Requirements

Steps

  1. Click the Clone or download button in the top right corner.
  2. Either clone the repository or download the ZIP file and extract.
  3. 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

Dependencies

Examples

Examples can be found in the examples/ directory:

$ chickenpy -f examples/hello_world.chn

License

This project is licensed under MIT. For more information see the LICENSE file.