- Supports the standard Brainfuck commands:
>
,<
,+
,-
,[
,]
,.
,,
. - Memory size is set to 1KB.
-
Clone the repository or download the
brainfuck.c
file. -
Compile the C code using a C compiler (gcc or clang):
make
-
Run the compiled executable:
./brainfuck your_sample.txt
The code.txt provided is the txt needed to print "Hello World" 4. The program will execute the code in your .txt file Brainfuck code.
The interpreter includes a basic error handling mechanism and should work for most standard Brainfuck programs. However, it is a simple implementation and may not cover all edge cases or optimizations.
- Implement testing
- Implement garbage collection
This project is licensed under the MIT License - see the LICENSE file for details.