initial implementation of bbcode parsing