Skip to main content

Run programs written in the Bespoke esolang.

Project description

bespokelang

Run programs written in the Bespoke esolang.

Installation

bespokelang is installable from PyPI:

pip install --upgrade bespokelang

What is Bespoke?

Bespoke is an esoteric programming language I created in January 2025, based loosely on my earlier language Poetic. The goal was to use the same encoding process as Poetic, but change the underlying structure of the language into something tolerable to write programs with.

I'm very happy with what I came up with; it's been a delight to write the included example programs, and they were much easier to write than most of the Poetic programs I've ever written.

Features of Bespoke

  • Imperative paradigm
  • Arbitrary precision integers
  • A stack, for temporary number storage
  • A "heap", for permanent number storage
  • IF statements, looping, and functions!
  • Comments (which weren't in Poetic, technically)
  • Flexible syntax based on word lengths (e.g. PUSH SEVENTH = tiny pythons)

Documentation

Documentation can be found on the GitHub wiki for this project. A tutorial on how to use each feature of the language is also on the wiki.

Changelog

v1.2.3 (2025-02-03)

  • Fixed behavior of DO ROTINVERSE with an argument outside the range from 1 to the stack size

v1.2.2 (2025-02-03)

  • Fixed behavior of DO TURNOVERN with an argument of 0

v1.2.1 (2025-02-02)

  • Fixed behavior of CONTROL B and CONTROL RETURN when not nested
  • The output buffer is now flushed every 0.5 seconds

v1.2.0 (2025-01-31)

  • Added --debug option to CLI, for displaying stack/heap contents after program execution
  • Added BespokeInterpreter.from_file() method
  • Fixed bug where Specifier was expected, but none found would not show the command which expected a specifier
  • Fixed behavior of STACKTOP POW with a second argument of 0
  • BespokeInterpreter no longer writes error message to STDERR when used as a context manager
  • Many properties of BespokeInterpreter objects are now private, or have getters/setters
  • CLI now handles file-opening errors

v1.1.0 (2025-01-17)

  • Changed CONTROL RESETLOOP to CONTROL OTHERWISE

v1.0.2 (2025-01-15)

  • Fixed error on empty program
  • Fixed behavior of CONTINUED numbers

v1.0.1 (2025-01-15)

  • Fixed behavior of DO ROT and DO ROTINVERSE with negative numbers

v1.0.0 (2025-01-13)

Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bespokelang-1.2.3.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bespokelang-1.2.3-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file bespokelang-1.2.3.tar.gz.

File metadata

  • Download URL: bespokelang-1.2.3.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for bespokelang-1.2.3.tar.gz
Algorithm Hash digest
SHA256 dabaf13207c25406c6c7e4143df46bfaf74db9f3a6563490507ea34667348ea6
MD5 99256b98f791d5926004c0ac925ef796
BLAKE2b-256 37f043669a828f6f236c2c765df7fde83382b4ed51e1728335a31de57fbce561

See more details on using hashes here.

Provenance

The following attestation bundles were made for bespokelang-1.2.3.tar.gz:

Publisher: python-publish.yml on WinslowJosiah/bespokelang

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bespokelang-1.2.3-py3-none-any.whl.

File metadata

  • Download URL: bespokelang-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for bespokelang-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ef49678a3bb9802b2207b302a2ffd195c2889109c59abfc6077ff9c05ae9d44e
MD5 16867c028f0260fa47841a5b451da89d
BLAKE2b-256 dfbe194786230e477dca2361da5ae72e94ea848c950c31ba02d99d0418273f36

See more details on using hashes here.

Provenance

The following attestation bundles were made for bespokelang-1.2.3-py3-none-any.whl:

Publisher: python-publish.yml on WinslowJosiah/bespokelang

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page