Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/commandjoo/brainfuck
Brainfuck Interpreter written in Java
https://github.com/commandjoo/brainfuck
Last synced: about 1 month ago
JSON representation
Brainfuck Interpreter written in Java
- Host: GitHub
- URL: https://github.com/commandjoo/brainfuck
- Owner: CommandJoo
- Created: 2024-10-26T18:25:10.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-26T19:04:05.000Z (3 months ago)
- Last Synced: 2024-10-26T20:36:11.254Z (3 months ago)
- Language: Java
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Brainfuck Interpreter
A Simple Brainfuck Interpreter written in Java### Functionality
```java
import java.io.OutputStream;class TestBrainfuck {
public static void main(String[] args) {
//use the interpreter with a custom output stream
OutputStream out = System.out;
new Brainfuck(new File("hello_world.bf"), out);
//or just do
new Brainfuck(new File("hello_world.bf")); //to print it to System.out
}
}
```
or using the Command Line Interface
```bash
java -jar Brainfuck-Version-all.jar --file brainfuckcode.bf
```### Information
In order to document the code better, you can use `#Documenting Comment` at the end of a line to
Explain what said line does. Alternatively you can also do `#Documenting Comment#` to make a comment
in the Middle of the line to explain what the given block does.### Libraries used
[JoptSimple](https://github.com/jopt-simple/jopt-simple) for the Command Line Interface