A interpreter generator for your brainfuck-aliases language
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.
- Try it now.
- Examples:
- Shareable code and input through hyperlink
[&]
. - Retro/terminal theme.
- Minimal design, maximum screen real estate.
- Featuring:
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:
- 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 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.
Special thanks to:
- Brainfuck by Urban Müller
- Brainfuck-js by Nick Morgan
- The brain icon from Iconmonstr
- And Kazoku for free this project from Jquery
Fork with ❤️ by NNB