A brainfuck derivative based on the the characteristics of Aashutosh Rathi
Project description
RATHILANG - The Allstack Programming Language
A brainfuck derivative based on the the characteristics of Aashutosh Rathi
Syntax
rathilang | brainfuck | description |
---|---|---|
jiren |
+ | increment the byte at pointer |
bakar |
- | decrement the byte at pointer |
allstack |
[ | if pointer is zero, jump to matching developer |
developer |
] | if pointer is nonzero, jump to matching allstack |
rathi |
> | increment the data pointer |
aashutosh |
< | decrement the data pointer |
abeteri |
, | input of one byte into pointer |
pitega |
. | output the byte at pointer |
Installation
stable:
pip install rathilang
or bleeding edge...
git clone https://github.com/thepushkarp/rathilang.git
cd rathilang
python setup.py install
Usage
rathilang path/to/file.baka
File Extention
A rathilang program must be stored in a file with a .baka
extention because rathilang
doesn't considers any other file worthy enough.
API Usage
import rathilang sourcecode = """ jiren jiren jiren jiren jiren jiren jiren jiren jiren jiren allstack rathi jiren rathi jiren jiren jiren rathi jiren jiren jiren jiren jiren jiren jiren rathi jiren jiren jiren jiren jiren jiren jiren jiren jiren jiren aashutosh aashutosh aashutosh aashutosh bakar developer rathi rathi rathi jiren jiren pitega rathi jiren pitega jiren jiren jiren jiren jiren jiren jiren pitega pitega jiren jiren jiren pitega aashutosh aashutosh jiren jiren pitega rathi bakar bakar bakar bakar pitega rathi bakar bakar bakar bakar bakar bakar bakar bakar bakar bakar pitega jiren jiren jiren jiren jiren jiren jiren jiren jiren jiren jiren jiren jiren jiren jiren jiren jiren pitega bakar bakar bakar pitega aashutosh aashutosh jiren pitega aashutosh jiren jiren jiren jiren jiren jiren jiren jiren jiren jiren pitega""" # or use sourcecode = rathilang.load_source("FILENAME.allstack") to load from file rathilang.evaluate(sourcecode)
Development
When developing, use pipenv
to install needed tools.
pipenv install pipenv run black . pipenv run python -m rathilang tests/hello-devs.baka
Thanks
Special thanks to Elliot Chance for providing the base implementation of this and Pikalang for providing the implementation on top of which this repo is made.
Disclaimer
This is a small gift for Aashutosh Rathi who did big things for the institute and me. The pikalang repository served as an inspiration for me. This repository is protected under fair use.
Made with ❤️ by Pushkar Patel
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size rathilang-1.1.2-py3-none-any.whl (7.8 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Hashes for rathilang-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2dd65eb0e5c7352ee95fc9ae288d81796faae82fd30aacf77fd6cfa0922b4fe7 |
|
MD5 | 3396da39990a94906e01b8a1e78efc32 |
|
BLAKE2-256 | 88ce488395b6f7e2e5001fb297c67c2c690e9084e2b4309e940c527a329f2945 |