bf parsing