rodrigogiraoserrao / Brainetry

An esoteric programming language derived from the brainf*ck and Poetic languages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brainetry

Run on Repl.it

This repository is now archived. While I liked the concept of Brainetry, I don't think it was well applied to brainfuck.

What is brainetry?

Brainetry is an esoteric programming language that was inspired by the brainf*ck and poetic programming languages.

Being an esoteric programming language means you will program in brainetry mostly for fun and not because you are writing real world applications.

Brainetry programs represent a superset of the programs one can write in brainf*ck and that is brainetry's main inspiration, the brainf*ck model: the infinite tape with finite cell size. Note that brainf*ck is Turing complete so brainetry is also Turing complete. Poetic is a language that maps directly to brainf*ck and where instructions are encoded in the size of the words, which is similar to brainetry, except in brainetry what matters is the size of the lines and possibly punctuation marks used in each line.

Why brainetry?

Again, brainetry is an esoteric programming language so do not expect it to be the programming language in which you are going to write your next app with. You are free to give it a try, of course, and let me know how it goes!

Other than that, I will expect you to program in brainetry only for the fun of it.

I have found it to be very amuzing to write self-referential brainetry programs, often programs that explain themselves.

Get started!

Run on Repl.it

To get started you can run brainetry programs right from your web browser, just click the badge above or follow this link. Write your brainetry program in the btry\replit.btry file and press the green "Run" button.

You can also clone this repository and use the CLI tool provided to run brainetry programs, just open your command prompt and type the following commands:

git clone https://github.com/rojergs/brainetry
cd brainetry
./brainetry.py btry/hello_world.btry

Be sure to be running Python 3.8 or higher!

Learn more

If you want to find out more about brainetry, head over to this repo's wiki! You can learn to code in brainetry, you will see some example programs or maybe check an alternative Python implementation of the interpreter.

Contributors

I, RojerGS, would like to thank bangyen for their contributions (cf. #6 for example).

Feel free to open an issue or make a PR if you have anything to discuss/add!

About

An esoteric programming language derived from the brainf*ck and Poetic languages.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%