https://github.com/Thumuss/brainfuck
A brainfuck implementation in pure Typst
https://github.com/Thumuss/brainfuck
brainfuck brainfuck-compiler brainfuck-language typst typst-package
Last synced: 2 months ago
JSON representation
A brainfuck implementation in pure Typst
- Host: GitHub
- URL: https://github.com/Thumuss/brainfuck
- Owner: Thumuss
- License: mit
- Created: 2023-11-22T20:32:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-15T22:49:58.000Z (over 1 year ago)
- Last Synced: 2026-02-11T22:46:21.477Z (4 months ago)
- Topics: brainfuck, brainfuck-compiler, brainfuck-language, typst, typst-package
- Language: Typst
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-brainfuck - typst-brainfuck - names] | A brainfuck implementation in pure Typst | Interpreter | Typst | Thumus | 2024 | | (Full table)
README
# Brainf
> A brainfuck implementation in pure Typst
# Examples
## In pure brainfuck
```typst
#import "@preview/brainf:1.0.0": brainf;
#brainf("++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.");
```
Into

## With inputs
```typst
#import "@preview/brainf:1.0.0": brainf;
#brainf("++++++++++++++[->,.<]", inp: "Goodbye World!");
```
Into

# Links
I've based my implementation from theses documents:
- [Wikipedia](https://en.wikipedia.org/wiki/Brainfuck)
- [Github](https://github.com/sunjay/brainfuck)
- [A compiler of Brainfuck in c](https://onestepcode.com/brainfuck-compiler-c/)