Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfmap

Functional "Brainf*ck" VM/interpreter utilizing monadic state.

(requires mtl)

Features

  • 8-bit "wrap-around" data memory cells
  • Infinite amount of data memory cells in the "right" direction
  • Turing complete

Demos and Usage

Todo. For now, running main interprets and prints the output of the included example program.

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

> B    66
> r    114
> a    97
> i    105
> n    110
> f    102
> m    109
> a    97
> p    112

Future Work

  • Live console REPL and read from user specified filepath
  • Configurable output and input modes, or allow for other representations of the outputted bytes
  • Null char to enable string printing
  • Reverse Haskell-to-Brainfuck transpiling
  • Malbolge support.

About

🧠 Functional "Brainf*ck" VM/interpreter utilizing monadic state

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages