Skip to content

AuthentiCuber/cbf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CBF

A Brainfuck inerpreter written in C. Originally part of brainfuckery

Quick Start

Build with

$ make

This will create an executable called cbf A summary of usage can be obtained with

$ ./cbf --help

A file containting brainfuck code can be run with the run subcommand:

$ ./cbf run helloworld.bf
Hello, World!

You can enter an interactive repl with the repl subcommand

$ ./cbf repl
cbf: a simple interactive brainfuck interpreter
Type `exit` or CTRL-D to exit
bf> +++++++++[>++++++++<-]>.
H
bf> +.
I
bf> exit

Development

It is recommended to use a tool like Bear the first time you build:

$ bear -- make

This generates a compile_commands.json file which captures the build flags etc so that static analysis tools like clangd can operate based on the same conditions as the actual build.

About

A Brainfuck interpreter written in C

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Contributors