GithubHelp home page GithubHelp logo

brainfuck's Introduction

Brainfuck

Here is a brainfuck interpreter I made using c++ as small challenge since I just recently started getting into using c++

About Brainfuck

Brainfuck is a Turing Complete esoteric programming language (esolang) designed by Urban Müller in 1993. As an esolang, it has little practical purpose in programming however is a good langauge to challenge programmers to think of their programs in different ways. Brainfuck has an infinitely long tape with cells that can hold values from 0 - 255 however in practice the tape will not be infinitely long and the tape used in this interpretor is 256 cells long. The language consists of 8 characters which are used to manipulate the tape.

Brainfuck commands

The commands are + - < > , . [ ]

  • + : Increments the cell that the pointer is currently at
  • - : Decrements the cell that the pointer is currently at
  • < : Shifts the pointer to the left by 1
  • > : Shifts the pointer to the right by 1
  • , : Get's a user input and stores it into the cell that the pointer is currently at
  • . : Outputs the value stored in the cell that the pointer is currently at
  • [ : Starts a while loop when the current cell is empty (0), loop what is between the brackets
  • ] : End of the loop

brainfuck's People

Contributors

choice404 avatar

Watchers

 avatar

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.