AviFS / brainfuck2wasm

Forked! Planning on using it for avifs/tabl. This is just my testing ground since it's a pain to run it locally.

Home Page:https://avifs.github.io/brainfuck2wasm/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

brainfuck2wasm

Compile brainfuck to webassembly.

function bfToWasm(bfStr: string, optimize: boolean): Uint8Array

Two pages of the linear memory are used. Each page is 64 KiB. The first one is for the output and the second one is for the brainfuck's array which is an array of 16384 4 byte wide cells.

Brainfuck's result is output in two format : string and array of int32.

TODO

  • Optimize brainfuck
  • Input instruction
  • Grow brainfuck's memory dynamically
  • Error handling

About

Forked! Planning on using it for avifs/tabl. This is just my testing ground since it's a pain to run it locally.

https://avifs.github.io/brainfuck2wasm/

License:MIT License


Languages

Language:JavaScript 57.3%Language:HTML 42.7%