Skip to main content

BrainFunction++ is an addon and fixup of BrainFunction, which is based on BrainFuck.

Project description

BrainFunctionPlus

BrainFunction++ is an addon and fixup of BrainFunction, which is based on BrainFuck. It can do many things and is still being worked on, but is currently in a bug-free state.

What the heck is a BrainFuck?

BrainFuck is an esoteric programming language created by Urban Müller in 1993. It was created to be a very simple language: you are given an infinite array of zeroes and 8 commands to modify them, including very basic I/O. There are Plenty of BrainFuck interpreters, even one made in BrainFuck itself!

So then, what is BrainFunction?

BrainFunction is an esoteric programming language created by ryanfox in 2016. It was created to simply add functions to BrainFuck. While it did technically work, some of the code caused the language to act weird and unpredictable that I'm pretty sure was not intended.

So what is this?

This is an esoteric programming lanuage created by CreateSource in 2024. It was created with intuitiveness in mind, I hope you find it as natural as I do

Quick Note: This is a score-computing interpreter, therefore, programs that use negative indexes cannot be used.

Commands

This is a list of commands that you can currently use in BrainFunction++

Command Description
> Moves the pointer right 1
< Moves the pointer left 1
+ Increment pointer cell
- Decrement pointer cell
, Take number/character input
. Output memory cell as a Unicode character
[] Loop through until the cell at the end of the loop is 0
# Switch between None (default), 8bit, 16bit, 32bit, and 64bit rollover modes
v Jump down 1 line
^ Jump up 1 line
&v Call line below
&^ Call line above
*v Jumps down the current memory cell's value amount of lines
*^ Jumps up the current memory cell's value amount of lines
*< Jumps left the current memory cell's value amount of lines
*> Jumps right the current memory cell's value amount of lines
: Double the amount at the current memory cell
/ Half the amount at the current memory cell, rounded down
$v Calls the current memory cell's value amount of lines below
$^ Calls the current memory cell's value amount of lines above
; Returns from a call. END OF LINES ARE NOT RETURNS
" Comment, anything after is ignored. This also applies to semicolons
All jumps and calls reset the character position to 0

Thank you for using BrainFunction++! If you want to check out my other projects, you can find them here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

BrainFunctionPlus-1.2.0.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file BrainFunctionPlus-1.2.0.tar.gz.

File metadata

  • Download URL: BrainFunctionPlus-1.2.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.1

File hashes

Hashes for BrainFunctionPlus-1.2.0.tar.gz
Algorithm Hash digest
SHA256 e3bd26025ed0ca822f8776b96b8bcd045ac36fe83d6abc79f39c2d2282da8b67
MD5 333ab3bb4d0dcdfd438baaf3c781a91c
BLAKE2b-256 d12ae92d968e680bb1ec08e51f9d02ee558e2a3370a73741aa771d6acf615536

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page