1 fab3f1f6 2022-04-27 op bfc -- a brainfuck compiler
2 fab3f1f6 2022-04-27 op ===========================
4 fab3f1f6 2022-04-27 op bfc is a simple brainfuck compiler. It's written in Haskell because I
5 fab3f1f6 2022-04-27 op hate myself and outputs QBE because why not.
7 2d3add37 2022-04-27 op Makefiles are clunky, hard to write and errors prone, but they also
8 2d3add37 2022-04-27 op have their shortcomings! You can use make to build bfc:
14 fab3f1f6 2022-04-27 op $ bfc sources... > program.ssa
15 fab3f1f6 2022-04-27 op $ qbe program.ssa > program.S
16 3e25d8e2 2022-04-27 op $ cc -o program program.S && ./program
18 fab3f1f6 2022-04-27 op bfc reads from standard input if no arguments are given.
20 fab3f1f6 2022-04-27 op bfc is release into the public domain.