Giter Club home page Giter Club logo

brainfckinterpreter's Introduction

What is BrainF*ck?

BrainF*ck is an Esoteric programming language made by Urban Müller in 1993. It is composed of 8 different instructions and was pruposely made to be hard to read and overcomplicated.

++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.

This is a hello world example in brainf*ck. Pretty weird right?

What is this website?

This website is a brainf*ck interpreter implementation written in typescript.

Specifications of the implementation

  • The memory is an Array of length 30 000 made of numbers;
  • The pointer value begins in the position 15 000;
  • Max loop iterations are currently limited by the maximum call stack of the browser in use;
  • Only 7 of the 8 basic instructions are currently implemented:

Instruction Symbol Is Implemented?
MOV_RIGHT > Yes
MOV_LEFT < Yes
INCREMENT + Yes
DECREMENT - Yes
LOOP_START [ Yes
LOOP_END ] Yes
PRINT_CHAR . Yes
READ_CHAR , No

LICENSE

This project is licensed under the GNU GPLv3 License - see the LICENSE.md file for details.

brainfckinterpreter's People

Contributors

liberontissauri avatar

Stargazers

 avatar

Watchers

 avatar

brainfckinterpreter's Issues

Fix "Maximum call stack size exceeded" on loops

Currently the loops are reliant on the maximum call stack size of javascript, because they rely on recursive functions. To fix, one may change the recursive function to for/while loops.

Make NavBar web responsive

The navbar currently overflows on screens with small widths. The navbar should be reorganized in a burger menu or have it's size reduced based on screen width.

Make Buttons web responsive

The button component should resize it's height based on the text inside, to avoid overflows of the inner text.

Implement Input on brainfuck.ts

Currently the input instruction remains unimplemented. To implement, one must add a new argument to the interpreter constructor for the function to run as input, to allow re-usability of the interpreter object in different projects.

Implement about page

The app should have an about page, which has information about the website, the language, and myself. The design to be used is the following:

img

Build Homepage

Logically the website will need a homepage, currently this is the planned design:

img

The website will be built using Vue JS.
For new design submissions, comment on this issue.

Decouple read instruction from the console.log function

The read instruction currently does not allow types of output other than console.log(). To solve one must add a new argument to the interpreter constructor to provide a function to use on output, which will be supplied with the character to output.

Finish code insertion page

The next step in getting a functional version of the website is the interpreter page, the design for the page will be this one (subject to changes):

img

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.