hi all,
i'm trying to ignore unecognized lines of input (so following lines can be processed without the
parse failing).
eg: very simple scenario as follows:
///===================================================
{
using namespace boost::spirit;
typedef file_iterator<char> iterator_t;
typedef scanner
AMDG jono wrote:
i'm trying to ignore unecognized lines of input (so following lines can be processed without the parse failing).
eg: very simple scenario as follows: <snip>
i played around with eol_p as i want to skip whole lines of unrecognized content. i thought it would be easy, but i can't seem to get it right.
can anybody do my job for me?
For something this simple, it might be easier to process line by line. rule_t option = ...; std::ifstream input(filename.c_str()); std::string current_line; while(std::getline(input, current_line)) { parse(current_line, option, space_p); } In Christ, Steven Watanabe
participants (2)
-
jono
-
Steven Watanabe