all repos

gbf @ main

⭐ gleaming brainfuck
919c981 — Oleksandr Smirnov Thu, 23 Oct 2025 2025-10-23 13:26:37 +0300
ascii should be public module
10e14d9 — Oleksandr Smirnov Wed, 22 Oct 2025 2025-10-22 15:34:57 +0300
move all lib code into internal
e9c84a0 — Oleksandr Smirnov Tue, 21 Oct 2025 2025-10-21 13:36:47 +0300
some refactoring...

Clone urls

https://git.olexsmir.xyz/gbf
git@git.olexsmir.xyz:gbf

Mirror status

Last updated 21 minutes ago from: https://github.com/olexsmir/gbf

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!