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
Hashes for abeinterpreter-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed8b9090070f2fa36b1a8eedf2d96866b9e675bb7e73ec7b1189284c9b15853f |
|
MD5 | f2dabc8f127c067a21755befe6944aaa |
|
BLAKE2b-256 | d3a94fecc3b27c3d5f1ec139232b6057841dcad35c9a527b39099c2534c7592e |