gbf#
I was bored and made this ⭐ gleaming brainfuck interpreter.
How to use?#
As library#
import gbf
import gleam/io
pub fn main() -> Nil {
let input =
"++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."
let assert Ok(virtual_machine) = gbf.run(input)
virtual_machine
|> gbf.output
|> io.println
//> Hello World!
}
As CLI tool#
gleam run -m gbf/run ./examples/helloworld.bf
#> Hello World!