igorw/brainfuck

Brainfuck implementation.

dev-master 2014-11-28 23:36 UTC

This package is not auto-updated.

Last update: 2024-04-22 12:10:36 UTC


README

brainfuck

Brainfuck is a turing complete language with 8 instructions.

Example

Hello World:

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

Cat:

,[.,]

Usage

Just pass a filename to the interpreter:

$ bin/brainfuck examples/hello.b

You can also run the debug command to get a log of all instructions.

$ bin/brainfuck debug examples/hello.b

References