Skip to content

Small utility written in Go to translate ascii text into valid brainfuck code

License

Notifications You must be signed in to change notification settings

mar1332244/bftr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bftr

Small utility written in Go to translate ascii text into valid brainfuck code

Installation

To install bftr run the following command

go install github.com/mar1332244/bftr@latest

This will place the binary executable into your $GOPATH/bin directory. From there you can move the file anywhere like /usr/local/bin for example. To uninstall the executable simply delete the file.

Usage

Basics

Running the command

bftr "Hello, World!"

will output the following

>+++++++[-<++++++++++>]<++.>++[-<++++++++++>]<+++++++++.+++++++..+++.>++++++[-<---------->]<-------.>+[-<---------->]<--.>+++++[-<++++++++++>]<+++++.>++[-<++++++++++>]<++++.+++.------.--------.>++++++[-<---------->]<-------.

Make sure when you provide text with spaces it is wrapped in double quotes otherwise only the first word will get translated.

Flags

Flag Description
-f [filename] reads the file provided and uses its constents as the input
-o [filename] creates the file provided and prints the brainfuck code to it
-w [integer] splits the output into lines of no wider than the number provided

About

Small utility written in Go to translate ascii text into valid brainfuck code

Topics

Resources

License

Stars

Watchers

Forks

Languages