Skip to content
/ brainalias Public template
forked from skilldrick/brainfuck-js

🧠 A interpreter generator for your BF-aliases language

License

Notifications You must be signed in to change notification settings

NNBnh/brainalias

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrainAlias

A interpreter generator for your brainfuck-aliases language

License: Unlicense Development completed

💡 About

BrainAlias is an online brainfuck interpreter and also an online-interpreter-generator for your brainfuck-aliases language.

From brainfuck's Wikipedia page:

Brainfuck is an esoteric programming language created in 1993 notable for its extreme minimalism, the language consists of only eight simple commands, a data pointer and an instruction pointer. While it is fully Turing complete, it is not intended for practical use, but to challenge and amuse programmers. Brainfuck simply requires one to break commands into microscopic steps.

Command Description
> Move the pointer to the right
< Move the pointer to the left
+ Increment the memory cell at the pointer
- Decrement the memory cell at the pointer
. Output the character signified by the cell at the pointer
, Input a character and store it in the cell at the pointer
[ Jump past the matching closure if the cell at the pointer is 0
] Jump back to the matching opener if the cell at the pointer is nonzero

Note All other characters should be considered comments and ignored.

✨ Features

  • Shareable code and input through hyperlink [&].
  • Retro/terminal theme.
  • Minimal design, maximum screen real estate.
  • Featuring:

🚀 Generate

To generate a simple interpreter, just modify the following URL by replacing uppercase words with your desired configuration:

https://nnbnh.github.io/brainalias/
?commands=COMMANDS
&name=LANGUAGE_NAME
&page=LANGUAGE_URL
&author=AUTHOR_NAME
&apage=AUTHOR_URL
&description=DESCRIPTION

The COMMANDS options must contain exactly 8 characters for 8 commands in these order:

  1. Move the pointer to the right.
  2. Move the pointer to the left.
  3. Increment the memory cell at the pointer.
  4. Decrement the memory cell at the pointer.
  5. Output the character signified by the cell at the pointer.
  6. Input a character and store it in the cell at the pointer.
  7. Jump past the matching closure if the cell at the pointer is 0.
  8. Jump back to the matching opener if the cell at the pointer is nonzero.

Note Use a URL encode if your configuration contains rare characters like & or %...

For comparison here is the defaults configuration:

https://nnbnh.github.io/brainalias/
?commands=><+-.,[]
&name=Brainfuck
&page=https://esolangs.org/wiki/Brainfuck
&author=Urban Müller
&apage=https://esolangs.org/wiki/Urban_M%C3%BCller
&description=Brainfuck is an esoteric programming language created in 1993 notable for its extreme minimalism, the language consists of only eight simple commands, a data pointer and an instruction pointer. While it is fully Turing complete, it is not intended for practical use, but to challenge and amuse programmers. Brainfuck simply requires one to break commands into microscopic steps.

If you want more freedom and control over the interpreter then generate it from the template and take a look at js/index.js for configuration.

💌 Credits

Special thanks to:






Fork with ❤️ by NNB

Buy Me a Coffee