Several programs to handle the brainfuck programming language. This project is developed for learning purposes and to provide some simple programs.
Brainfuck interpreter
bfi -h
Usage of bfi:
-c string
Brainfuck source code inline
-debug
Print any non-bf symbols for debugging purposes.
-i string
Brainfuck source code file- interpret a source code file:
bfi -i source.bf - directly interpret a piece of code:
bfi -c "+++++ +++++[>++++++<-]>+++++." - use caesar "encryption" :
echo "Brainfuck" | bfi -c ",[+++.,]" - use debugflag:
bfi -i bfsource/reverse-input.bf -debug
git clone https://github.com/nicolas93/brainfuck.git
cd brainfuck/bfi
go install ./bfiYou can also just use go run bfi/bfi.go.
Brainfuck generator
bfg
<ctrl> + <D> twice to exit insert mode
Text to brainfuck.
echo "abc" | go run bfg/bfg.go
(ctrl) + (D) twice to exit insert mode+++++++++[>++++++++++<-]>+++++++.+.+.<++++++++[>----------<-]>---------.Brainfuck from textfile:
cat LICENSE | bfggit clone https://github.com/nicolas93/brainfuck.git
cd brainfuck/bfg
go install ./bfg