Skip to content

the2pizza/bf2js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bf2js

bf2js is a transpiler from brainf*ck to js (nodejs)

You could find examples of BF programs in tests/

Usage

By default builds, transpiles and runs js code

make file=<filename>

Example: make file=tests/hello.b

Build

Builds source golang code to binary

make build

Transpile

Transpiles bf program to js and puts file to build/

make transpile file=<file>

Run compiled JS

Runs transpiled js program

make run file=build/<file>.js

#ToDo

  • Support vanilla JS for run in browser
  • Add nicely handling arguments, options
  • Add more validators for BF program (at least brackets validator)

About

Brainf*ck to JavaScript transpiler

Resources

Stars

Watchers

Forks