Skip to content

miguelnto/brainj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BrainJ

A Brainf interpreter written in Java.

Most of my inspiration when I was writing this actually came from resources available on the original Brainf*ck Website.

TODO

  • I still need to make more tests, as there are probably some programs in standard Brainf*ck that doesn't work well with this implementation.
  • Create a compiler
    • That compiles to Java Bytecode
    • That compiles to native machine code
  • Make this implementation embeddable so you can execute Brainf*ck programs inside another app.

Usage

You can build and run the interpreter like any other Maven project:

mvn package
java -jar target/bf.jar <program name>.b

Tests

The following programs were tested successfully:

These all came from the Brainf*ck Website..

Resources