This is a Haskell project that implements a brainfuck interpreter. The project consists of two modules:
- Parser: Parses a brainfuck program from a string.
- Evaluator: Evaluates a brainfuck program.
To build and run this project, you will need:
- GHC;
- Stack;
To build the project, run the following command:
stack build
To run the brainfuck interpreter, run the following command:
stack exec brainfuck-interpreter-exe
This will start the interpreter, which will read a brainfuck program and evaluates it.
To run the tests, run the following command:
stack test
- Improve error handling for invalid brainfuck programs.
- Implement A REPL.
- Use free monads.
- Improve the test suite.