Search code examples
c++parsingboost-spirit

list of boost::spirit skip parsers


I am looking for a skip parser that skips all whitespace characters: spaces, tabs, carriage returns. does ascii::space_type do this?

I poked around the documentation and the web for some time, but was unable to find a list of skip parsers and what they do. Can someone provide one?


Solution

  • You want the character class parsers:

    space_type indeed does effectively what you described (unless you meant "carriage returns" literally, in which case blank | lit('\r') would be closer)