Boost logo

Boost Users :

Subject: Re: [Boost-users] [spirit] Qi rule for GPS NMEA
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2013-09-05 22:13:33


On 05/09/2013 10:54 p.m., Michael Caisse wrote:
> Parsing NMEA is about as easy as you have described in english.
>
> rule = lit('$') >> ~char_('*') >> lit('$') >> hex >> lit("\r\n");

There should be a `>> '*'` right after `~char_('*')` to consume that '*'.

Regards,

-- 
Agustín K-ballo Bergé.-
http://talesofcpp.fusionfenix.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net