Skip to main content

Esolang Interpreters

Python CI PyPI License: GPL v3

Interpreters and boolean-circuit generators for 59 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 59 languages with a boolean generator. It regenerates via scripts/generate.py examples.

Implemented languages

Show all 59 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. 59 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.5.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.5.0
File Size Uploaded
esolangs-0.5.0.tar.gz 768.1 kB Details

Built distribution (wheel)

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

Total release size: 1.5 MB

Release files / esolangs-0.5.0.tar.gz

Download URL esolangs-0.5.0.tar.gz
Size 768.1 kB
Tags Source
SHA-256 checksum
How to use checksums
85954ae9c529df8c23c6f5b504b435d80c60d6ae588eeac17cd42e09d2f8ec56
BLAKE2b-256 checksum
How to use checksums
45270e5185a251450a487dcf4560d82172b80026ec3975308869890dc9ca1372
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 19, 2026.

Transparency log

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

Download URL esolangs-0.5.0-py3-none-any.whl
Size 731.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9607e6dcc0c13024d743a910fdcd810ff33bdc12f563934b1dd405c39fb58dd
BLAKE2b-256 checksum
How to use checksums
a780f3bc910e6277fb2a5e6955e0795af32dc33243f10648db024130bff89dda
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 19, 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

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

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