Boost Spirit X3 and spaces

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Boost Spirit X3 and spaces

Boost - Users mailing list
Hi,

What is the best strategy to handle spaces with X3?
The files I want to parse have sometimes spaces or tabs for separators, but I also need to scan number that have an attached suffix (so x3::double_ >> *x3::char_).
If now I want to parse groups of strings, starting with a rule like 
const auto pin = x3::rule<class pin, std::string>()

  = x3::alpha >> *x3::char_;

what is the best to create a vector of these? *pin or pin % ' ' and will the latter also handle tabs by default?

Cheers,

Matthieu
--

_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users