e

esotefy

@preview

A brainfuck implementation in pure Typst

v1.0.0
MIT

Package Information

Last Updated
Minimum Typst Version
0.7.0
Authors
Thumus

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/esotefy:1.0.0

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/esotefy:1.0.0": *

Version History

1.0.00.7.0
289e576763fa...

Esotefy

A compilation of esoteric languages including for now brainfuck

Examples

In pure brainfuck

#import "@preview/esotefy:1.0.0": brainf;

#brainf("++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.");

Into

image

With inputs

#import "@preview/esotefy:1.0.0": brainf;

#brainf("++++++++++++++[->,.<]", inp: "Goodbye World!");

Into

image

Links

I've based my implementation from theses documents: