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

https://github.com/babiabeo/deno-brainfuck

A Brainfuck interpreter written in TypeScript and Deno
https://github.com/babiabeo/deno-brainfuck

brainfuck brainfuck-interpreter deno typescript

Last synced: 2 months ago
JSON representation

A Brainfuck interpreter written in TypeScript and Deno

Awesome Lists containing this project

README

          

# deno-brainfuck

A [Brainfuck][bf] interpreter written in TypeScript and Deno.

## Usage

```
./brainfuck
```

## Build from source

You need [Deno][deno] to run or compile TypeScript into an executable. If you
don't have it, install it.

Then clone this repo and execute the following:

```sh
git clone https://github.com/babiabeo/deno-brainfuck
cd deno-brainfuck
deno task compile
```

You should see an executable `brainfuck` in the current directory. To test it,
run:

```sh
./brainfuck examples/hello_world.bf
# Hello World!
```

[bf]: https://en.wikipedia.org/wiki/Brainfuck
[deno]: https://deno.com/

> [!NOTE]
> If you don't want to compile it, just run:
>
> ```sh
> deno run --allow-read main.ts examples/hello_world.bf
> ```