Skip to main content

A brainfuck derivative based on the the characteristics of Aashutosh Rathi

Project description

RATHILANG - The Allstack Programming Language

PyPI Travis (.com)


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.

Files for rathilang, version 1.1.2
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

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page