https://github.com/vendicated/brainfuckinterpreter
Brainfuck Interpreter/Converter (both ways) written in C
https://github.com/vendicated/brainfuckinterpreter
Last synced: about 1 year ago
JSON representation
Brainfuck Interpreter/Converter (both ways) written in C
- Host: GitHub
- URL: https://github.com/vendicated/brainfuckinterpreter
- Owner: Vendicated
- License: gpl-3.0
- Created: 2021-02-04T01:12:54.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-29T19:13:25.000Z (about 5 years ago)
- Last Synced: 2025-03-21T01:33:57.635Z (about 1 year ago)
- Language: C
- Homepage:
- Size: 45.9 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Ven's Brainfuck Interpreter
My Brainfuck implementation according to the spec described here
## Installation
The simplest way is to just grab precompiled binaries from the [releases tab](https://github.com/Vendicated/BrainfuckInterpreter/releases/latest)
### From Source
1. `git clone https://github.com/Vendicated/BrainfuckInterpreter`
2. `cd BrainfuckInterpreter`
3. `sudo make install` to install to /usr/local/bin or `make install PREFIX=/custom/dir` to install to /custom/dir/bin
## Interpreter
This interprets any given Brainfuck code
Usage:
```bash
brainfuck decode [FILE | TEXT...]
```
Example:
```bash
$ brainfuck decode samples/HelloWorld.bf
Hello World!
```
## Ascii to Brainfuck converter
This converts plain ascii text to Brainfuck
Usage:
```bash
brainfuck encode [FILE | TEXT...]
```
Example:
```bash
$ brainfuck encode Hello World!
>++++++++[<++++++++>-]<++++++++.>++....
```