An open API service indexing awesome lists of open source software.

https://github.com/willguimont/brainskell

Brainfuck interpreter in Haskell
https://github.com/willguimont/brainskell

Last synced: 10 months ago
JSON representation

Brainfuck interpreter in Haskell

Awesome Lists containing this project

README

          

# brainskell

Brainfuck interpreter in Haskell with a few extra features.

`>`: Move pointer right

`<`: Move pointer left

`+`: Increment value at pointer

`-`: Decrement value at pointer

`.`: Print value at pointer as `chr(x)`

`,`: Input, read terminal and store value at pointer. If the input is an integer, will store that value directly, if the input starts with a quote (`'`), will store `ord(input)` instead

`[`: Start loop

`]`: Jumps to matching `[` if the input at pointer is nonzero, otherwise pass

Anything else is considered as comment.