KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
brainbreak
★ 11
Open GitHub ↗
BrainFuck REPL, Interpreter and compiler.
Download README (.md)
Explore Similar Repositories
shoujo-kageki-alarm
:
少女歌劇-長頸鹿鬧鐘app
dc-api-core
:
Simple API core for your projects
the-seeker
:
Analyzer audio plug-in
Wrapper-Python
:
Python library to work with your Misty robot. Currently in BETA. Supported by the community and not Misty Robotics.
ES313
:
Support for Course ES313 Mathematical Modelling and Simulation
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
brainbreak
?
Download (.md)
[](https://coveralls.io/github/s3rius/brainbreak) [](https://github.com/s3rius/brainbreak/actions) [](https://github.com/commercialhaskell/stackage-snapshots/blob/master/lts/16/31.yaml) # brainBreak Simple BrainFuck toolkit written in haskell. This project covers 3 things: * [REPL](#REPL); * [Interpreter](#Interpreter); * [Compiler](#Compiler). You can check it by yourself. # Instalation You need to install [Stack](https://docs.haskellstack.org/en/stable/README/) before continue. Since you've got the Stack, you can simply install this project by running: ```bash git clone https://github.com/s3rius/brainbreak.git cd brainbreak stack install ``` Additionally for compilation you need to have different compilers installed. For `C++` compilation you need to install `clang++`. # REPL [](https://asciinema.org/a/k2YQQUaJdYsEjIOd0oJZxRMw9?autoplay=1) You can just call `bb` to enter REPL. It works as ipython. Every time you hit the Enter button, code evaluates. It's simple as is. REPL itself inspired by the [IPython](https://ipython.org/) project and looks similar to it. Addition commands: ``` In [0]: ++++ # Print current REPL state. In [1]: :state Current index: 0 Offset from start: 0 part of curren buffer: [0,0,0,0,0,4,0,0,0,0,0] # Print current buffer as list of integers. In [2]: :buf [0,0,0,0,0,4,0,0,0,0,0] # Print current buffer as characters. In [3]: :bufc "\NUL\NUL\NUL\NUL\NUL\EOT\NUL\NUL\NUL\NUL\NUL" ``` # Interpreter [](https://asciinema.org/a/P3QNSP4mgzigUTwS4ITfxbSrv?autoplay=1) To run brainbreak as interpreter you need to provide a `brainFuck` file. ```bash bb -i /path/to/file.bf ``` This command will optimize and evaluate the code from file. # Compiler [](https://asciinema.org/a/NzCJc6t23TDSWxLO1QqQTNM79?autoplay=1) To compile your bf files you need to provide input and output files. The backend option can be omitted. ```bash bb -i /path/to/input.bf -o /path/to/output # If you want to change compilation backend you can add option bb -i /path/to/input.bf -o /path/to/output -b Cpp ```