Author: MeetinaXD Last Edit: Marc 21, 2021
Treat your brain well
This is a meaningless project for joy purposes.
This project contains a sample. It shows you how to run JavaScript Brainfuck codes. And a compiler for converting normal codes to Brainfuck codes.
There is no installation required, download the latest release and unpack it.
Open index.html in your browser (Google Chrome is recommended)
Then, press Command + Option + I or Ctrl + Shift + I (On Windows) to open DevTools
See console.
Node environment is requireto run compile.js, you may need to install colors shelljs and yargs package.
use NPM
npm i colors shelljs yargsYou can get the usege in the terminal, using:
node compile.js -hor
node compile.js --helpCompiler offers you 3 options, usage:
node compile.js sources [-o|--output] destination [-h|--help] [-r|--run] [-w|--watch]Specific the output path, only ONE path will be recognized as an output path.
Print out the help message and usage
Run the codes after compile successfully.
Watch source files and auto compile when files change are detected. It can use with -r or --runoption, it will run the compiled codes after compiling.
For example:
node compile.js main.js test.js -o output.js -w -rHope you enjoy it and I highly recommend you do NOT use it in a commercial project. If you insist on doing this, please do not leave personal information. Life is once.

