Brainfuck2wasm Save

A brainfuck-to-WebAssembly compiler

Project README

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
Open Source Agenda is not affiliated with "Brainfuck2wasm" Project. README Source: verdie-g/brainfuck2wasm
Stars
42
Open Issues
1
Last Commit
2 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating