4 releases

0.2.1 Dec 10, 2020
0.2.0 Dec 10, 2020
0.1.1 Dec 3, 2020
0.1.0 Nov 15, 2020

#65 in #brainfuck


Used in bf-bot

MIT license

25KB
658 lines

bf-lib

A simple library to run brainfuck code

An example binary is included

TODO

  • Stop infinite loops Not detectable, have a timeout.
  • Return error if the input isn't long enough while doing the first pass, not at runtime

lib.rs:

bf-lib

bf-lib is small library to run brainfuck programs non-interactively

The entry point is the Exec struct, stole the idea from subprocess

Dependencies

~0.7–0.9MB
~14K SLoC