Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ranon-rat/brainfuck-interpreter
a simple brainfuck interpreter made with haskell and love
https://github.com/ranon-rat/brainfuck-interpreter
Last synced: 15 days ago
JSON representation
a simple brainfuck interpreter made with haskell and love
- Host: GitHub
- URL: https://github.com/ranon-rat/brainfuck-interpreter
- Owner: ranon-rat
- License: bsd-3-clause
- Created: 2022-04-29T21:41:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-19T00:36:49.000Z (5 months ago)
- Last Synced: 2024-08-19T01:46:13.209Z (5 months ago)
- Language: Haskell
- Size: 16.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# brainfuck-interpreter-made-with-haskell
a simple haskell interpreter made with love ❤️```
The only commands that you can use when you arent using the repl are:help :obviously this is going to show you this
repl : you can use it for interact with the interpreter
run run : with this you can run the program
There is only two commands in the REPL
:q to quit
:help to list the coomands
:clear clear the screan
:reset reset the cells and the current cell
:where-im show you where you are
:cells
The operators of brainfuck are:+ to add in the current cell
- to subtract in the current cell
> to move to the next cell
< to move to the previous cell
. to print the current cell
, to print a new lineThe operators for the loop
[ to open a loop(if the value of the current cell if is 0
it will go to the next cell after "]")] this close the loop( if the current value of the cell
when we evaluate this is 0 , the loop ends
and if it doesnt the loop iterate again)```