Code Monkey home page Code Monkey logo

brainalias's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.