Simple parser for .fbp notation written in JavaScript