Skip to content
/ brainfuck Public

Yet another Brainfuck interpreter and dialect. Written in Nim.

License

Notifications You must be signed in to change notification settings

q60/brainfuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrainF

Yet another brainfuck interpreter and dialect. Written in Nim.

Example

Features

Installation

Dependencies:

  • Nim >= 1.0
  • make
  • gzip

Firstly, you need to install Nim.

You can build it from source or just install pre-built binaries for your OS.

Then you should build the program.

git clone https://github.com/llathasa-veleth/brainfuck
cd brainfuck
make build

Executable binary: src/brainf.

If you want to install it globally to your $PATH, you should run make install with sudo.

For more options run make help.

Using

Here are some examples of using the interpreter.

$ brainf ~/Documents/some_code.bf
Hello world!
$ echo "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | brainf
Hello World!

Use man brainf for help and more information.

TODO

  • ? Multiline comments.
  • ? Inline comments.
  • ? Optional additional operators.