bf v1.4.0 Bf View Source

Interprets brainfuck programs.

Examples

Bf.Parser.parse("--[>--->->->++>-<<<<<-------]>--.>---------.>--..+++.")
|> Bf.run()
Hello

Link to this section Summary

Types

The state returned by the interpreter

Functions

Parses and executes a brainfuck program. Returns the machine’s state

Link to this section Types

The state returned by the interpreter.

It is the current cell index and the memory.

Link to this section Functions

Parses and executes a brainfuck program. Returns the machine’s state.

Examples

Bf.Parser.parse("++++++++++[->++++++++++<]>++.+++++++++.." <>
                "<+++++++++[->---------<]>-----------------.---.<")
|> Bf.run
foo