On Thu, Sep 5, 2013 at 9:21 PM, Michael Caisse
On 09/05/2013 07:13 PM, Agustín K-ballo Bergé wrote:
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,
Whoops. K-ballo is correct of course. I got a little hasty. The second lit('$') should be lit('*') or just '*'.
Yessir, I got all that. Pretty straightforward from the NMEA docs. How to specify the width of the hex field, though? I'm pretty sure it should go $XYZ*HH\r\n (only 2-hex-digits). Thank ye...
Michael Caisse ciere consulting ciere.com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users