[spirit] parse(iter,iter,rule)
Hi Shouldn't it be possible to parse with the following syntax: std::string text( "fooooo"); static rule<> r = *space_p >> '"' >> (*alnum_p)[assign_a(name)] >> '"'; parse_infostd::string::const_iterator info = boost::spirit::parse( text.begin(), text.end(), r ); How do I otherwise interpret http://www.boost.org/libs/spirit/doc/scanner.html ? Thanks -Thorsten -- Thorsten Ottosen ---------------------------- www.dezide.com http://www.cs.aau.dk/index2.php?content=Research/mi www.boost.org www.open-std.org/JTC1/SC22/WG21/
Thorsten Ottosen wrote:
Shouldn't it be possible to parse with the following syntax:
std::string text( "fooooo"); static rule<> r = *space_p >> '"' >> (*alnum_p)[assign_a(name)] >> '"'; parse_infostd::string::const_iterator info = boost::spirit::parse( text.begin(), text.end(), r );
How do I otherwise interpret
http://www.boost.org/libs/spirit/doc/scanner.html
?
It should be: std::string text( "fooooo"); static rulestd::string::iterator r = *space_p >> '"' >> (*alnum_p)[assign_a(name)] >> '"'; parse_infostd::string::const_iterator info = boost::spirit::parse( text.begin(), text.end(), r ); Regards Hartmut
participants (2)
-
Hartmut Kaiser
-
Thorsten Ottosen