In spirit x3 we could use
#include <boost/spirit/include/support_istream_iterator.hpp>
typedef boost::spirit::istream_iterator iterator_t;
std::ifstream stream(file);
iterator_t iterator(stream);
const bool ok = x3::phrase_parse
(
iterator, iterator_t(),
<rule>,
<skipper>,
<object_to_parse_into>
);
What is your design to do this job in boost::parser now?
The solution should be part of the documentation.
Thanks!
In spirit x3 we could use
What is your design to do this job in boost::parser now?
The solution should be part of the documentation.
Thanks!