Skip to main content

Abraham

Esoteric language interpreter


Install:

pip install abeinterpreter


Basic Usage:

  1. Import: import abeinterpreter as ai

  2. Instantiate the AbeInterpreter class: interp = ai.AbeInterpreter()

  3. Interpret code with .interpret(code): interp.interpret(some abe code here)

  4. Display output with print: print(interp.interpret(some abe code here))


Types:

String: "Hello World!" Int: 42 Float: 3.14 Boolean: True, False


Commands:

Move right x cells: Overhead, the geese flew x miles east. Move left x cells: Overhead, the geese flew x miles west. Assign x to cell: Preparing for the storm, he inscribed x into the stone. Add to cell value: He sold x sheep. Subtract from cell value: They paid for their x mistakes. Print cell value: And Abraham spoke! While loop: He ran into the mountains, but only when ___. This is what happened there: Note: Loop conditions act on current cell value. Loop conditions: If greater than cell val: they had more than x fish If less than cell val: they had less than x fish If equal to cell val: the stone said x Signal loop end: Alas, I digress. Copy: One day he stole his neighbor's goods. Paste: He repented and returned the property.


Print even integers from 100 to zero:

He sold 100 sheep. He ran into the mountains, but only when they had more than 0 fish. This is what happened there: And Abraham spoke! They paid for their 2 mistakes. Alas, I digress. And Abraham spoke!


Download files

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

Source Distribution

abeinterpreter-1.0.tar.gz (51.1 kB view details)

Uploaded Source

Built Distribution

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

abeinterpreter-1.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file abeinterpreter-1.0.tar.gz.

File metadata

  • Download URL: abeinterpreter-1.0.tar.gz
  • Upload date:
  • Size: 51.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.1

File hashes

Hashes for abeinterpreter-1.0.tar.gz
Algorithm Hash digest
SHA256 0349e34badfdc5ff7db3a1584bc791af151adf119efca778f0abc88f05213d64
MD5 7168467ff404f4cca12567a75a57dc20
BLAKE2b-256 46e94fb4ea30ad992ea6adf671fa23c3cadeaae23a2bf980ee4ba6fc9c7c314e

See more details on using hashes here.

File details

Details for the file abeinterpreter-1.0-py3-none-any.whl.

File metadata

  • Download URL: abeinterpreter-1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.1

File hashes

Hashes for abeinterpreter-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fc59878ee4e4cec44c42737e4ee998270b14ae4154118d2728952efecb41ac55
MD5 564875c9fe361441ff645aa21f2ac50d
BLAKE2b-256 ab8205441a31d81568f5ccbec52571d99d65fd5cb0a1cc997946894520a27c6c

See more details on using hashes here.

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