Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 968 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 968 Bytes

Brainfuck Interpreter

A simple interpreter for the brainfuck language written in Go.

Dialects supported (& default extension):

Running

$ cat examples/hello-world.bf
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
$ go build
$ brainfuck examples/hello-world.bf
Hello World!

Arguments

-d, --debug Prints out some debugging information. Very verbose.

--dialects Lists supported dialects.

-l, --language Specifiy the dialect to use.

Input caveat

Inputting data (with ,) is not very user friendly yet. Input is buffered so the user has to hit the enter key to send the data to the program. Fixing this on Linux is easy enough but Windows is a different story.