Brainfuck is an esoteric programming language with 8 very simple instructions.
The purpose of GBFM is to interpret the brainfuck code or transpile it into other target programming languages.
Limitations:
- 😉 now only Javascript target language is supported!
- 😏 Javascript transpiled program don't support ',' (read char from stdin) brainfuck operator.
-
Run GBFM in interpretation mode use cmd:
./gbfm.sh run ./test_data/hello_world.bf
-
Run GBFM in transpiler mode use cmd:
./gbfm.sh translate ./test_data/hello_world.bf
Generate ./test_data/hello_world.bf.js in result To run *.bf.js file use nodejs
node ./test_data/hello_world.bf.js
Prerequisites for tests running:
- local nodejs installation!
To run all tests use cmd:
go test -v ./...
Code is released under the MIT license.
Pull requests are very welcome!