A tiny parser for a made-up language of opening and closening brackets