Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 485 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 485 Bytes

Brainfsck interpreter

How to build

Install stack build tool

Run following commands from root of project:

Building:

stack build

Executing:

stack exec brainfsck <file_with_code>

Examples

Examples are in examples/ folder.

Best ones are:

  • stack exec brainfsck examples/sierpinski.bf - outputs sierpinski triangle
  • echo 0123456789 | stack exec brainfsck examples/pretty.bf - pretty prints numbers