Compile with: javac Brainfk.java
run with: java Brainfk
- use
-h
to display help. - use
-f
argument to pass a file in the second argument. Example:java Brainfk "-f" "target.txt"
- use
-s
argument to pass a string directly in the second argument.
java Brainfk "-s" ">++++++++[<+++++++++>-]<.>++++[<+++++++>-]<+.+++++++..+++.>>++++++[<+++++++>-]<++.------------.>++++++[<+++++++++>-]<+.<.+++.------.--------.>>>++++[<++++++++>-]<+."
This would return a "Hello World!"
message.