Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/q60/brainfuck
Yet another Brainfuck interpreter and dialect. Written in Nim.
https://github.com/q60/brainfuck
brainfuck brainfuck-interpreter brainfuck-interpreters brainfuck-parser dialect nim open-source
Last synced: 5 days ago
JSON representation
Yet another Brainfuck interpreter and dialect. Written in Nim.
- Host: GitHub
- URL: https://github.com/q60/brainfuck
- Owner: q60
- License: gpl-2.0
- Created: 2020-04-27T23:40:22.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-10T12:52:08.000Z (over 4 years ago)
- Last Synced: 2024-11-28T10:33:43.599Z (2 months ago)
- Topics: brainfuck, brainfuck-interpreter, brainfuck-interpreters, brainfuck-parser, dialect, nim, open-source
- Language: Makefile
- Homepage:
- Size: 69.3 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
BrainF
======
Yet another brainfuck interpreter and dialect. Written in **Nim**.![Example](https://i.imgur.com/GhUxNkP.png)
Features
--------
- *Unlimited tape length*.
- *Normal comments using*`!`.
- *Fast*.
- *Small*.
- *[Special Vim syntax highlight plugin supporting comment highlight](https://github.com/llathasa-veleth/vim-brainfuck)*.Installation
------------
### Dependencies:
- Nim >= 1.0
- make
- gzipFirstly, you need to install **[Nim](https://github.com/nim-lang/Nim)**.
You can build it from source or just install pre-built binaries for your OS.
Then you should build the program.
```sh
git clone https://github.com/llathasa-veleth/brainfuck
cd brainfuck
make build
```Executable binary: `src/brainf`.
If you want to install it globally to your **$PATH**, you should run `make install` with **sudo**.
For more options run `make help`.
Using
-----
Here are some examples of using the interpreter.```sh
$ brainf ~/Documents/some_code.bf
Hello world!
$ echo "++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>." | brainf
Hello World!
```Use `man brainf` for help and more information.
TODO
----
- [ ] *? Multiline comments*.
- [ ] *? Inline comments*.
- [ ] *? Optional additional operators*.