Boost logo

Boost Users :

Subject: [Boost-users] Fwd: How to skip leading characters
From: Al Gambardella (agam.email_at_[hidden])
Date: 2009-11-23 21:04:07


I'm sorry, I should have mentioned that I am using the Boost Spirit library
and I am asking for help with the grammer for the parser.

---------- Forwarded message ----------
From: Al Gambardella <agam.email_at_[hidden]>
Date: Mon, Nov 23, 2009 at 4:50 PM
Subject: How to skip leading characters
To: boost-users_at_[hidden]

I have an input text file that I read line by line into a standard string.

Each line has the following format:

Name1 00 12 3a 4c ff …

Name2 33 55 5c dd ee …

How do create the grammer to skip the leading NameX on each line and put the
hex digits into a vector?

If the lines had a more complex format such that anything could appear
before NameX for example:

Bla bla bla : 0a .bb cc NameX 01 22 aa dd 33 44 50 00 …

How could I once again get the hex digits after the name into a vector?



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