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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.