GithubHelp home page GithubHelp logo

brainfuck-interpreter's Introduction

Brainfuck-Interpreter

A simple Brainfuck interpreter written in python

Code Example

The program simply reads brainfuck programs and output the result(if there is any) and/or the cells that were created throughout the program(if specified)

Installation

Simply call python BFInterpreter.py 'Your_Program_Here'. Append --enable-output to output the contents of every cell in the end of the program

Tests

A couple of examples goes below:

Copies cell #1 to Cell #2 and prints the ASCII value of cell #2 python BFInterpreter.py '++++++ [ > ++++++++++ < - ] > +++++ .'

Reads a input character and copies to cell #2 python BFInterpreter.py ', [ > + < - ] > .'

Reads two input characters, multiply them, stores the result on cell #3 python BFInterpreter.py ',>,< [ > [ >+ >+ << -] >> [- << + >>] <<< -] >>'

Makes the program run out of memory python BFInterpreter.py '+[>+]'

License

GNU LGPL License

brainfuck-interpreter's People

Contributors

pbassut avatar

Stargazers

 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.