brainfuck interpreter in sed
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
bfsed
hellbox
hello_world
hi123
sierpinski.bf

README.md

bfsed

  • Input after !
  • 8 bit cells
  • EOF == 0

Requires gnu sed for things like \x00, and spaces/; after labels.

Must set LANG=C.

$ LANG=C ./bfsed < hello_world
Hello World!
$ LANG=C ./bfsed <<< ',[>,]<[.<]!foobar'
raboof

bugs

  • dog slow
  • always prints an extra trailing newline
  • a trailing newline in input is ignored

license

shmicense