The brainfuck programming language is an esoteric programming language noted for its extreme minimalism. It is a Turing tarpit, designed to challenge and amuse programmers, and was not made to be suitable for practical use.
10
votes
1answer
362 views
Brainfuck-to-C compiler written in C++
This compiler, implemented in C++, takes brainfuck code and produces a valid (but still obfuscated) C program, which in turn can be compiled to a native binary.
Expected usage is as follows:
Build ...
7
votes
1answer
364 views
Brainfuck Interpreter
I want to write an example for a language similar to Haskell called Frege. While the interpreter is conceptually easy, it is lengthy and looks still quite messy. Note that I don't want to use Parsec ...
14
votes
2answers
506 views
ASCII table in Brainfuck
I made my first Brainfuck program today, which prints the numbers 0-255 and the corresponding character.
I was wondering if I could improve my program, as I'm repeating myself a lot (e.g. 3 x copy ...
12
votes
3answers
362 views
Brainfuck to C converter
This program converts Brainfuck source code to C and compiles it with gcc.
It runs very well (that was my first time I played Lost Kingdom), however, the code is quite long because some parts are ...
7
votes
1answer
391 views
Brainfuck interpreter in C
This is my bare-bones Brainfuck interpreter in C using lots of unixisms. What improvements can I make (with respect to the clarity of code, or obvious features to add)?
Edit: Added comments on the ...
13
votes
1answer
448 views
Thoughts on my brain fart interpreter?
Had some free time this weekend and I hacked together a small Brainfuck interpreter, with the sole intention of explaining PHP's flavour of OO to a friend. This is a bit over-engineered on purpose, ...
4
votes
1answer
270 views
Brainfuck parser
Since I have little to no knowledge about native languages, I tried once more to write a simple application in C++, this time with a Brainfuck parser.
It works, kind of, verified with the Hello World ...
6
votes
1answer
187 views
Genetic C++ programming with Brainfuck
This was a project I worked on for fun that basically uses a genetic algorithm to produce simple Brainfuck programs that output whatever the user specifies.
I was just was hoping for criticism of the ...