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
- Host: GitHub
- URL: https://github.com/babiabeo/deno-brainfuck
- Owner: babiabeo
- License: mit
- Created: 2025-01-01T13:17:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-02T12:46:35.000Z (over 1 year ago)
- Last Synced: 2025-02-24T12:19:50.081Z (over 1 year ago)
- Topics: brainfuck, brainfuck-interpreter, deno, typescript
- Language: TypeScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
> ```