You could also go to the tutorial of Boost.Spirit and use that.