Questions tagged [brainfuck]
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.
114 questions
6
votes
0
answers
302
views
tbf - An Optimizing Brainfuck Interpreter and Transpiler in C
Language:
The Brainfuck programming language consists of eight commands:
...
11
votes
2
answers
2k
views
Brainfuck to C transpiler
I have been working on making a transpiler from Brainfuck to C in C(11), here is the code:
...
5
votes
1
answer
149
views
Print all printable ASCII characters
Code:
...
3
votes
1
answer
127
views
BF Interpreter in C++
Need to clear my brain.
BF interpretor in C++.
bf.h
...
4
votes
1
answer
299
views
200 line Brainfuck Interpreter
I wrote a simple brainfuck interpreter in C99. Coming from a background of C++ made the task easier, but still there is some stuff I had to get used too. The program accepts a path to a brainfuck file ...
6
votes
1
answer
212
views
Add two values in brainfuck
I'm currently learning brainfuck as a challenge for golfing, and I'd like a code review to make sure I'm understanding things properly. For starters, here's my snippet:
...
2
votes
1
answer
158
views
Simple Brainfuck interpreter in C with support for nested subroutines
Wrote a simple brainfuck interpreter that supports nested subroutines ([ ] commands).
...
-1
votes
1
answer
187
views
Brainfuck interpreter in C, looking for improvements on the looping functionality [closed]
I've just started to get into PL design and made a simple Brainfuck interpreter. Although it is functional, I don't feel too confident on the execution, particularly the implementation for loops, I ...
4
votes
1
answer
264
views
A Brainfuck compiler that creates a small x86_64 Linux executable from scratch
This program compiles Brainfuck source code to an x86_64 ELF executable. It doesn't rely on any backend, just raw binary stream to a functional executable.
In the implementation, each cell holds an 8-...
3
votes
1
answer
197
views
Simple Brainfuck Interpreter Implementation in C
I wanted to implement a short and functional brainfuck interpreter with minimal code repetition. It uses a little bit of macro magic, and does nested loops iteratively rather than using a cache, but ...
1
vote
1
answer
103
views
Go Brainf*ck Interpreter
Recently wrote a brainfuck interpreter in Go.
Here's the Github Repo Brainfuck
Areas that need work
The parsing for brackets [] is still buggy and is known to fail ...
7
votes
1
answer
448
views
A beginner's brainfuck interpreter in Haskell
I am rather new to haskell, and could use some feedback on my code and the decisions I had to make. In my previous project, I made a JSON parser, but relied heavily on guidance from a university ...
4
votes
1
answer
373
views
Simple Brainfuck Interpreter in C
This is a simple interpreter for the esoteric brainfuck programming language, written in C. It is one of my personal projects and I would love to receive expert advice.
Behavior
All characters except ...
7
votes
1
answer
1k
views
Brainfuck interpreter in C++ with namespaces
I wrote this small Brainfuck interpreter in C++ where the different op codes are handled in one big switch-case statement instead of something like a tokenizer as Brainfuck is very simple in that ...
25
votes
4
answers
5k
views
A brainfuck interpreter in C
I wrote brainfuck interpreter in order to prepare myself for a C job. I try to write the code as clear and as defensively as I can. Can somebody take a look at the code and give me some hints for ...