Commit Briefs

Omar Polo

+rot13 example (main)

Omar Polo

fix error handling of "]"

Omar Polo

rewrite the parser

Omar Polo

shorten a line



This repository contains no tags


.gitignorecommits | blame
Makefilecommits | blame
README.mdcommits | blame
bfc.hscommits | blame

bfc -- a brainfuck compiler

bfc is a simple brainfuck compiler.  It's written in Haskell because I
hate myself and outputs QBE because why not.  It's released into the
public domain.

Makefiles are clunky, hard to write and errors prone, but they also
have their shortcomings!  You can use make to build bfc:

	$ make


	$ bfc sources... > program.ssa
	$ qbe program.ssa > program.S
	$ cc -o program program.S && ./program

bfc reads from standard input if no arguments are given.