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

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

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!
>++++++++[<++++++++>-]<++++++++.>++....
```