Unleash the power of the tale of Abraham.
Project description
Abraham
Esoteric language interpreter
Install:
pip install abeinterpreter
Basic Usage:
-
Import: import abeinterpreter as ai
-
Instantiate the AbeInterpreter class: interp = ai.AbeInterpreter()
-
Interpret code with .interpret(code): interp.interpret(some abe code here)
-
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file abeinterpreter-1.2.tar.gz
.
File metadata
- Download URL: abeinterpreter-1.2.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61dc1a90d98e231625ee13e150f350dcb76b8efab159855d59a3bb3b55cfb4c7 |
|
MD5 | 5222fd76a57227c80519c65af22405e9 |
|
BLAKE2b-256 | 8c893c35c2c36998b2f706121b36a30e3e444e95770357915a999534781d18dd |
File details
Details for the file abeinterpreter-1.2-py3-none-any.whl
.
File metadata
- Download URL: abeinterpreter-1.2-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | adbd9700258dfe6d290baeedfad132a3c82ff4ccd425bcad5bc0c7086f34df3b |
|
MD5 | 90193e05794ec76e502e5511659c6f29 |
|
BLAKE2b-256 | 08f229b57474cd87cba25feceec29baa1cfe647023b0b6f5434963d504c04fe7 |