bf-wasm

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2021 License: MIT Imports: 5 Imported by: 0

README

bf-wasm

a Brainfuck compiler targeting WebAssembly (or WASM)

bf-wasm compiles Brainfuck source code from the standard input into a WASM module. The WASM module is written to the standard ouput. The WASM module is written in WebAssembly text format.

The wat2wasm - from The WebAssembly Binary Toolkit - should be used to translate WebAssembly text format to the binary format.

What is Brainfuck?

Brainfuck is an esoteric programming language created in 1993 by Urban Müller.

(from https://en.wikipedia.org/wiki/Brainfuck)

Installing

Using go get
go get github.com/hiddenbyte/bf-wasm
Build yourself
make build # build bf-wasm

The bf-wasm executable is available at the ./dist folder after running make build.

Usage

bf-wasm compiles Brainfuck source code from the standard input into a WASM module. The WASM module is written to the standard ouput.

cat example.bf | bf-wasm > example.wat
Examples

See https://github.com/hiddenbyte/bf-wasm/tree/main/examples/

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL