Skip to main content

Esolang Interpreters

Python CI PyPI License: GPL v3

Interpreters and boolean-circuit generators for 65 esoteric languages. generate takes a truth table and returns a program computing it; verify runs that program on every row and checks what it answers.

usage is the caller's guide -- the exported functions, the four odd input shapes, templates, reading an answer back, the debugger. architecture shows how the registry, generators, interpreters, and answer extraction connect. roadmap tracks live work and limitations records contracts.

Start with the CLI, Python API, or contribution guide.

Command line

just install-dev                 # installs into ./.venv
source .venv/bin/activate        # ...or prefix each command with `uv run`

esolangs --help
esolangs list
esolangs generate Suffolk 0110 > program.txt
printf '0\n1\n' | esolangs run Suffolk program.txt

esolangs generate brainfuck 0110 > bf.txt
printf '0\n1\n' | esolangs debug --steps 20 --watch-cell 0 brainfuck bf.txt
just test

Python API

import esolangs

esolangs.verify("Fargo", "10010110")  # -> True

Pass each command the language it was generated for: running a Suffolk program as brainfuck does not fail, it reports something useless. How a language reads its input bits is not universal either -- let encode_inputs build the stdin.

Examples

esolangs generate Sophie 0110 emits 51 characters computing XOR:

;@$48{;@$48{#$48,&}{#$49,&}}{;@$48{#$49,&}{#$48,&}}

Feeding it the two input bits, one per line, prints their XOR. tests/test_readme_example.py runs all four rows, so the block cannot drift.

Stepping a program

--tui steps it on screen instead. This is a real frame -- Flowchart at step 14, redrawn by tui.render every time this file is generated:

Flowchart  step 14  ip (9, 7, 1, 0)  running
--------------------------------------------------------------------------
 5 |     ┌───< >───┐
 6 |     │         │
 7 |    / /       / /
 8 |     │         │
 9 |   ┌< >─┐    ┌< >─┐
10 |   │    │    │    │
11 |  { ]  [ }  [ }  { ]
12 |   │    │    │    │
13 |  \ \  \ \  \ \  \ \
14 |   │    │    │    │
15 | (( ))(( ))(( ))(( ))
--------------------------------------------------------------------------
memory   (empty)
stack    (empty)
output   ''
views    deques={}  pointers=[_Pointer(row=9, col=7, d=(1, 0), reg=1, dequ
hjkl move | t break | space step | c continue | r run | b back | q quit

The live screen reverse-videos the cell at that ip; colour does not survive the page. usage names every key.

Ready-to-run programs are committed under examples/: examples/ holds a truth-table program for each of the 65 languages with a boolean generator. It regenerates via scripts/generate.py examples.

Implemented languages

Show all 65 languages

Grid-based Languages

Languages that move a pointer or beam across a 2D grid.

Stack-based Languages

Languages that use a stack for data manipulation.

Queue-based Languages

Languages whose primary data structure is a queue or deque.

Tape-based Languages

Languages that operate on a tape (similar to Turing machines).

Register-based Languages

Languages that use registers to store and manipulate data.

Other Languages

Languages that don't fit into the above categories.

Line is an image-language module under esolangs.line; run just test-line for its suite.

Generators

Boolean generators accept a most-significant-input-first binary truth table.

The truth table is a binary string of length 2**n, most-significant input first; its length implies n, so it isn't passed separately. 65 of the languages have such a generator, some covering only a documented subset of tables.

esolangs list --details marks which languages have one (gen), which return a template (tmpl), and which have a committed example (ex); add --json for structured output:

esolangs list --details --json | jq '.[] | select(.name == "Sophie")'
{
  "name": "Sophie",
  "boolean_generator": true,
  "parameterized": false,
  "has_example": true
}

Regenerate the committed examples with python scripts/generate.py examples.

Contributing

Read the contribution guide, then run just test. The project is GPL v3; see LICENSE.

Metadata

Release files for esolangs 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for esolangs 0.3.0
File Size Uploaded
esolangs-0.3.0.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for esolangs 0.3.0
File Interpreter ABI Platform
esolangs-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.2 MB

Release files / esolangs-0.3.0.tar.gz

Download URL esolangs-0.3.0.tar.gz
Size 1.1 MB
Tags Source
SHA-256 checksum
How to use checksums
c1d50a75b5d0a702bb7767a82901ef9de4f9614643cf3d8d365753982fbb295e
BLAKE2b-256 checksum
How to use checksums
8ba8502b0e57badb29cb30a5f85dff2b68228721aa58167faaf241bb99c051e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / esolangs-0.3.0-py3-none-any.whl

Download URL esolangs-0.3.0-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
4b780bf6ca4827f250d280d720afc253eff8354ed803603e81dcb84221ab0b01
BLAKE2b-256 checksum
How to use checksums
99434e3a332442fbd040cedfe20e414469b7346b62293e40c4e02af05c97e9ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release history Release notifications | RSS feed

0.9.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page