Skip to content

Binaryen based compiler from brainfuck to WebAssembly (Wasm).

License

Notifications You must be signed in to change notification settings

ttulka/brainfuck2wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck to WebAssembly Compiler

Binaryen based compiler from brainfuck to WebAssembly (Wasm).

Usage

# install:
$ npm install brainfuck2wasm -g

# from source code:
$ npm install
$ npm link

# write some brainfuck code:
$ echo ">,[>,]<[.<]" > reverse.b

# compile it:
$ brainfuck2wasm reverse.b

# run wasm:
$ node index.js reverse.wasm ABCD
DCBA

License

MIT