vivCoding / bf-interpreter

brainfuck interpreter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brainfuck interpreter

Runs Brainfuck code from a file. Has basic error checking. Written in C.

Usage

Compile using gcc or any C compiler. Then run with file path as parameter

gcc interpreter.c -o bf
./bf <path_to_file>

You can also convert Brainfuck to simple C code

gcc converter.c -o bf_to_c
./bf_to_c <brainfuck_file> <path_to_output_file>

Examples

Run Brainfuck

./bf hello_world.bf

Convert Brainfuck to C:

./bf_to_c hello_world.bf hello_world.c

About

brainfuck interpreter


Languages

Language:C 79.5%Language:Brainfuck 14.7%Language:Makefile 5.8%