Giter VIP home page Giter VIP logo

brainf-ck-interpreter's Introduction

This code requires Boost.Spirit (>=v2), Boost.Variant, Boost.Foreach in order to compile.  You can find them here:

     	  	   		 		http://www.boost.org/

Once you have the libraries installed and in your g++ include path, you can compile like so (compiling will take a minute or so):

g++ -o bf main.cpp brainf_ck.cpp

Then, you'll find the bf binary in your current directory.  If you're using windows (without cygwin), then may God have mercy on your soul.

Once you have the bf binary, just type:

./bf <brainf_ck source file> 

At a command prompt.  I have included a couple of brainf_ck source files with this interpreter for testing.  One is from http://esoteric.sange.fi/brainfuck/utils/mandelbrot/ and the other is by Clifford Wolf http://www.clifford.at/bfcpu/.

Let me know if you find any bugs or have any suggestions!
Enjoy!

brainf-ck-interpreter's People

Contributors

grubino avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

brainf-ck-interpreter's Issues

Issue skipping over dead code?

You seem to have an issue skipping over dead or deselected loops, the shortest code that show it is my torture test.

This program should print out a 'Hello world' but as it is it prints nothing. If all the comment characters are removed it gets as far as 'Hello' then drops out. Which is a bit weird too.

The program Lost Kingdom also shows something isn't right ... but that's a little larger :-)

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.