0

I would like to use phrase_parse() of boost.

I don't know %, eol, omit, raw and so on.

phrase_parse(
    omit\[+graph\] >> eol >> 
    (raw\[*~char_(";\r\n")\] >> ';' >> long_ >> ';' >> raw\[*~char_(";\r\n")\]) % eol, 
     qi::blank, parsed);

Code from: C++: Fast way to read mapped file into a matrix

Where can I find it?

Community
  • 1
  • 1
blank_popup
  • 261
  • 1
  • 2
  • 13

1 Answers1

1

That's the Boost Spirit library. What you are looking at are expression templates: they form an embedded Domain Specific Language for specifying grammar rules.

The answer explicitly mentions it:

In all other cases, consider slamming a Spirit Qi job on it

And you could have seen the headers being included.

Look in the boost spirit documentation:

sehe
  • 374,641
  • 47
  • 450
  • 633