A C++ parser for BBCode